[FFmpeg-user] Using -filter_complex instead of lavfi with amerge hangs.

Nicolas George nicolas.george at normalesup.org
Tue Jun 26 16:17:35 CEST 2012


Le nonidi 9 messidor, an CCXX, Tim Nicholson a écrit :
> On 26/06/12 11:54, Nicolas George wrote:
> > [..]
> > I need to add examples for amerge with -filter_complex. The syntax should be
> > something like that:
> > 
> > -i LTA01631701.mxf -filter_complex '[0.1] [0.2] amerge [audio]' \
> >   -map 0.0 -map '[audio]'
> > 
> 
> Hmmm. something is still not right.
> 
> ffmpeg -i LTA01631701.mxf -filter_complex "
> [0:1] [0:2] amerge [audio]" \
> -map 0:0 -map '[audio]' \
> -c:v dvvideo -pix_fmt yuv420p \
> -c:a pcm_s16le -ar 48k -ac 2 \
> -t 10 -y ./LTA01631701-4-1.mov
> 
> leads to:-
> 
> Stream mapping:
>   Stream #0:1 (pcm_s24le) -> amerge: (graph 0)
>   Stream #0:2 (pcm_s24le) -> amerge: (graph 0)
>   Stream #0:0 -> #0:0 (rawvideo -> dvvideo)
>   amerge (graph 0) -> Stream #0:1 (pcm_s16le)
> 
> 
> and now immediately gives me the progress line which runs at the
> expected speed....
> 
> frame=  250 fps= 28 q=0.0 Lsize=   37035kB time=00:00:10.00
> bitrate=30339.1kbits/s
> 
> but then hangs after the last frame and eventually returns a:-
> 
> 8424 Killed                  ffmpeg -i.......
> 
> In the meantime kernel CPU goes through the roof, as does swap usage.

This shows that frames are accumulating in the graph, probably in its
inputs. You can avoid swap usage by limiting the total address space ffmpeg
is allowed to use.

That is part of the problem that needs fixing. Can you check that
all streams of your input video have the same length?

> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x17faa60] moov atom not found
> LTA01631701-4-1.mov: Invalid data found when processing input

If your encode did not finish, that is normal.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20120626/83793ab9/attachment.asc>


More information about the ffmpeg-user mailing list