[FFmpeg-user] Problem with amerge
Tim Nicholson
nichot20 at yahoo.com
Mon Jun 10 12:16:40 CEST 2013
On 04/06/13 19:43, Nicolas George wrote:
> Le duodi 12 prairial, an CCXXI, Tim Nicholson a écrit :
>> However the updated version produces an error and the resulting file has
>> a large "echo" offset between the 2 audio channels. I have highlighted
>> the error line which is near the bottom:-
>
> The offset could be related to a difference in timestamps. I suggest you
> insert the "ashowinfo" filter in front of both audio inputs and compare the
> timestamps of the first few frames in the "amovie" case that works and the
> "filter_complex" case that does not work, to see if there is any
> differences.
>
>> Error while decoding stream #0:2: Cannot allocate memory <------ERROR
>> Last message repeated 6 times
>
> Can you observe the memory usage growing during the encode?
>
> Also, I suggest you trim your test command line to see exactly what part of
> it is causing the error; it may be that the "cannot allocate memory" error
> is completely unrelated to the offset problem.
>[...]
OK, so a simpler command line atill fails in the same way:-
ffmpeg \
-i 'Pipeline_test/BPR10407_01.mov' \
-filter_complex "[0:2][0:3] amerge=inputs=2,
aformat=sample_fmts=s16:channel_layouts=stereo [a_out]" \
-map 0:v -map '[a_out]' \
-target pal-dvd -b:v 8000k -minrate 8000k -maxrate 8000k \
-b:a 192k -ar 44100 \
-t 1 \
-y 'out.mpg'
and adding:-
-filter_complex "[0:2] ashowinfo [left]; [0:3] ashowinfo [right];[left]
[right] amerge=inputs=2,......
gives:-
[Parsed_ashowinfo_0 @ 0x239fc20] n:0 pts:0 pts_time:0 pos:5007872 [...]
[...]
[Parsed_ashowinfo_1 @ 0x23a0380] n:0 pts:0 pts_time:0 pos:5084672 [...]
Ran through the whole file watching for memory leaks in htop and VIRT &
SHR stayed rock solid with RES fluctuating up and down a little so
nothing there.
--
Tim
More information about the ffmpeg-user
mailing list