This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[BUG] crash when encoding ac3
#1
Hi Selur,
Here's the bug I wanted to report firstable.

I try to passthrough a mkv x264 video + dts audio
and adding an ac3, changing its speed from 25 to 23,976

Hybrid crashes when encoding the ac3.
I join the debug.

Thanks again for your help.


Attached Files
.zip   HybridDebugOutput.txt.zip (Size: 22,38 KB / Downloads: 22)
Reply
#2
There seems to be some issue with the decoding of the audio while calling:
"/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -loglevel fatal -nostdin -i "/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3" -ac 2 -ar 48000 -f sox - |  "/Applications/Hybrid.app/Contents/MacOS/sox" --multi-threaded  --temp "/Users/Laurent/Movies/Hybrid/2021-09-04@12_14_00_471001" --buffer 524288 -S -t sox - -t wav - tempo 0.95904000 | "/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -f sox -i - -b:a 384k -ar 48000 -channel_layout stereo "/Users/Laurent/Movies/Hybrid/iId_2_aid_0_2021-09-04@12_14_00_4710_02.ac3"
a. Since the audio is an additional file: Are you sure the audio has no errors?
b. What happens if your call:
"/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -nostdin -i "/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3" -ac 2 -ar 48000 -f sox - |  "/Applications/Hybrid.app/Contents/MacOS/sox" --multi-threaded  --temp "/Users/Laurent/Movies/Hybrid/2021-09-04@12_14_00_471001" --buffer 524288 -S -t sox - -t wav - tempo 0.95904000 | "/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -f sox -i - -b:a 384k -ar 48000 -channel_layout stereo "/Users/Laurent/Movies/Hybrid/iId_2_aid_0_2021-09-04@12_14_00_4710_02.ac3"
inside a terminal window ?

Cu Selur
Reply
#3
(04.09.2021, 12:40)Selur Wrote: There seems to be some issue with the decoding of the audio while calling:
"/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -loglevel fatal -nostdin -i "/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3" -ac 2 -ar 48000 -f sox - |  "/Applications/Hybrid.app/Contents/MacOS/sox" --multi-threaded  --temp "/Users/Laurent/Movies/Hybrid/2021-09-04@12_14_00_471001" --buffer 524288 -S -t sox - -t wav - tempo 0.95904000 | "/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -f sox -i - -b:a 384k -ar 48000 -channel_layout stereo "/Users/Laurent/Movies/Hybrid/iId_2_aid_0_2021-09-04@12_14_00_4710_02.ac3"
a. Since the audio is an additional file: Are you sure the audio has no errors?


Cu Selur

Actually I'm not sure about the consistency of this file. I got it from my DVD through "iSuper DVD Ripper". I did trust this app but I don't know if something went wrong. Now as you say that, I think that's a possibility.
Reply
#4
Only thing I can say atm. is that the decoding of that file crashes and that normally decoding ac3 files works fine with ffmpeg, so I suspect, that it's not really Hybrids fault, but the file is broken in some way.

Cu Selur
Reply
#5
(04.09.2021, 12:40)Selur Wrote: b. What happens if your call:
"/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -nostdin -i "/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3" -ac 2 -ar 48000 -f sox - |  "/Applications/Hybrid.app/Contents/MacOS/sox" --multi-threaded  --temp "/Users/Laurent/Movies/Hybrid/2021-09-04@12_14_00_471001" --buffer 524288 -S -t sox - -t wav - tempo 0.95904000 | "/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -f sox -i - -b:a 384k -ar 48000 -channel_layout stereo "/Users/Laurent/Movies/Hybrid/iId_2_aid_0_2021-09-04@12_14_00_4710_02.ac3"
inside a terminal window ?

Cu Selur

I think it's the same answer as in Hybrid. I give you the end of it:

[ac3 @ 0x7ff526c00880] Estimating duration from bitrate, this may be inaccurate
Input #0, ac3, from '/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3':
  Duration: 01:24:54.14, start: 0.000000, bitrate: 384 kb/s
  Stream #0:0: Audio: ac3, 48000 Hz, stereo, fltp, 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (ac3 (native) -> pcm_s32le (native))
Output #0, sox, to 'pipe:':
  Metadata:
    encoder        : Lavf59.4.100
  Stream #0:0: Audio: pcm_s32le, 48000 Hz, stereo, s32, 3072 kb/s
    Metadata:
      encoder        : Lavc59.3.101 pcm_s32le
/Applications/Hybrid.app/Contents/MacOS/sox WARN wav: Length in output .wav header will be wrong since can't seek to fix it

Input File    : '-' (sox)
Channels      : 2
Sample Rate    : 48000
Precision      : 32-bit
Sample Encoding: 32-bit Signed Integer PCM

In:0.00% 00:00:10.92 [00:00:00.00] Out:0    [      |      ]        Clip:0    [sox @ 0x7fe52ac00b40] truncating fractional part of sample rate (0.000000)
[sox @ 0x7fe52ac00b40] invalid header
pipe:: Invalid data found when processing input
av_interleaved_write_frame(): Broken pipe
Error writing trailer of pipe:: Broken pipe
size=    4152kB time=00:00:11.10 bitrate=3063.2kbits/s speed=93.5x   
video:0kB audio:4164kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!


Is it possible that when changing the speed of this audio file, its length becomes too long for the video file?
The video is from a blu-ray. The audio is from a dvd. Maybe there's a small change in the credits before the film making it smaller in length for the audio once rendered longer in 23,976 im/s ?
Or the crash happens even before muxing the audio with the video?

I checked the two versions of the film and what I said could be relevant.
The audio file is 6 seconds longer than the video and would become even longer after speed change.
Reply
#6
Quote:Is it possible that when changing the speed of this audio file, its length becomes too long for the video file?
no.

From the looks of it the crash happens during the decoding.
Since the first one complaining is sox and after that the ffmpeg behind sox.
[sox @ 0x7fe52ac00b40] invalid header
pipe:: Invalid data found when processing input


What do you get when calling:
1. just calling the decoding
"/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -nostdin -i "/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3" -ac 2 -ar 48000 -f sox /dev/null

2. the decoding with the filtering
/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -nostdin -i "/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3" -ac 2 -ar 48000 -f sox - |  "/Applications/Hybrid.app/Contents/MacOS/sox" --multi-threaded  --temp "/Users/Laurent/Movies/Hybrid/2021-09-04@12_14_00_471001" --buffer 524288 -S -t sox - -t wav /dev/null tempo 0.95904000

both calls will not create output files since the output is send to 'dev/null'.

Cu Selur
Reply
#7
(04.09.2021, 14:36)Selur Wrote: What do you get when calling:
1. just calling the decoding
"/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -nostdin -i "/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3" -ac 2 -ar 48000 -f sox /dev/null

The encoding starts. I give you the result :

ffmpeg version N-102973-gcdbf2fc3e4-tessus  https://evermeet.cx/ffmpeg/  Copyright © 2000-2021 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.17)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
  libavutil      57.  0.100 / 57.  0.100
  libavcodec    59.  3.101 / 59.  3.101
  libavformat    59.  4.100 / 59.  4.100
  libavdevice    59.  0.100 / 59.  0.100
  libavfilter    8.  0.103 /  8.  0.103
  libswscale      6.  0.100 /  6.  0.100
  libswresample  4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100
[ac3 @ 0x7ff509c07000] Estimating duration from bitrate, this may be inaccurate
Input #0, ac3, from '/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3':
  Duration: 01:24:54.14, start: 0.000000, bitrate: 384 kb/s
  Stream #0:0: Audio: ac3, 48000 Hz, stereo, fltp, 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (ac3 (native) -> pcm_s32le (native))
Output #0, sox, to '/dev/null':
  Metadata:
    encoder        : Lavf59.4.100
  Stream #0:0: Audio: pcm_s32le, 48000 Hz, stereo, s32, 3072 kb/s
    Metadata:
      encoder        : Lavc59.3.101 pcm_s32le
size= 1910304kB time=01:24:54.14 bitrate=3072.0kbits/s speed= 617x     
video:0kB audio:1910304kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000002%

(04.09.2021, 14:36)Selur Wrote: What do you get when calling:

2. the decoding with the filtering
/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -nostdin -i "/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3" -ac 2 -ar 48000 -f sox - |  "/Applications/Hybrid.app/Contents/MacOS/sox" --multi-threaded  --temp "/Users/Laurent/Movies/Hybrid/2021-09-04@12_14_00_471001" --buffer 524288 -S -t sox - -t wav /dev/null tempo 0.95904000

Nothing happens :

>

I decided to use Audacity to shorten the ac3 file from 6 seconds.
When exporting the modified file in ac3, Audacity claimed to use ffmpeg. There weren't any crash, so I suppose ffmpeg isn't the problem. But I'm not sure which ffmpeg is used here...

So I tried with this shorten ac3 file but the encoding failed the same way.
As you warned me, the length is not the problem, but I had nothing else to do, so it worthed the try. Blush
Reply
#8
Quote:Nothing happens
Okay, that is less than expected. :/
Does:
/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -nostdin -i "/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3" -ac 2 -ar 48000 -f sox - |  "/Applications/Hybrid.app/Contents/MacOS/sox" --multi-threaded  --temp "/Users/Laurent/Movies/Hybrid/2021-09-04@12_14_00_471001" --buffer 524288 -S -t sox - -t wav "/Volumes/Racines/Le Tombeau des lucioles/deleteme.wav" tempo 0.95904000
do anything?
Reply
#9
(04.09.2021, 18:51)Selur Wrote: Does:
/Applications/Hybrid.app/Contents/MacOS/ffmpeg" -y -threads 4 -nostdin -i "/Volumes/Racines/Le Tombeau des lucioles/LE_TOMBEAU_DES_LUCIOLES_SCN_Titre_1.ac3" -ac 2 -ar 48000 -f sox - |  "/Applications/Hybrid.app/Contents/MacOS/sox" --multi-threaded  --temp "/Users/Laurent/Movies/Hybrid/2021-09-04@12_14_00_471001" --buffer 524288 -S -t sox - -t wav "/Volumes/Racines/Le Tombeau des lucioles/deleteme.wav" tempo 0.95904000
do anything?

Hi Selur,

I didn't have much time this week-end to move on this problem.
And I suffered a few electrical disconnections on Sunday.

The code up there produce the same thing as before : >
That is nothing again :/
And I checked, to be sure, I didn't change folder or file names Angel
Reply
#10
No clue why this happens, try whether it works if you rename the 'Le Tombeau des lucioles'-folder to 'Le_Tombeau_des_lucioles'.

Cu Selur
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)