[FFmpeg-user] Using -filter_complex instead of lavfi with amerge hangs.
Tim Nicholson
nichot20 at yahoo.com
Tue Jun 26 11:00:41 CEST 2012
Trying to update some scripts to use the new filter_complex syntax, but
am finding it hangs the process....
Original version to extract first 2 audio streams from a 4 stream file
and convert to a single stereo stream:-
ffmpeg -i LTA01631701.mxf -f lavfi -i "
amovie=LTA01631701.mxf:si=1 , aconvert=s16:mono:planar [a1];
amovie=LTA01631701.mxf:si=2 , aconvert=s16:mono:planar [a2];
[a1][a2] amerge" -map 0:0 -map 1:0 \
-c:v dvvideo -pix_fmt yuv420p \
-c:a pcm_s16le -ar 48k -ac 2 \
-t 10 -y ./LTA01631701-V1.mov
This works fine however:-
ffmpeg -i LTA01631701.mxf -map 0:0 -filter_complex "
amovie=LTA01631701.mxf:si=1, aconvert=s16:mono:planar [a1];
amovie=LTA01631701.mxf:si=2, aconvert=s16:mono:planar [a2];
[a1] [a2] amerge" \
-c:v dvvideo -pix_fmt yuv420p \
-c:a pcm_s16le -ar 48k -ac 2 -t 10 -y ./LTA01631701-4-1.mov
Hangs after producing the followng console output and has to be killed
pressing q or <CTL> q or anything less than SIGKILL is ignored.
Any ideas anyone?
ffmpeg version N-41821-g5d17a51-by_Tim Copyright (c) 2000-2012 the
FFmpeg developers
built on Jun 22 2012 12:56:13 with gcc 4.6.2
configuration: --extra-version=by_Tim --enable-static --disable-shared
--enable-gpl --enable-nonfree --enable-version3
--prefix=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local
--libdir=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64
--samples=../fate-suite/ --enable-runtime-cpudetect
--extra-cflags='-static
-I/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/include'
--extra-ldflags='-static
-L/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64'
--progs-suffix=_Jun-22 --enable-libfaac --enable-libx264
--enable-libfree libavutil 51. 60.100 / 51. 60.100
libavcodec 54. 29.100 / 54. 29.100
libavformat 54. 11.100 / 54. 11.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 82.100 / 2. 82.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mxf @ 0x1805960] could not resolve material track sequence strong ref
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Guessed Channel Layout for Input Stream #0.3 : mono
Guessed Channel Layout for Input Stream #0.4 : mono
Input #0, mxf, from 'LTA01631701.mxf':
Metadata:
timecode : 00:00:00:00
Duration: 00:17:44.44, start: 0.000000, bitrate: 170532 kb/s
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576,
25 fps, 25 tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s
[mxf @ 0x1835600] could not resolve material track sequence strong ref
[Parsed_amovie_0 @ 0x1835200] seek_point:0 format_name:(null)
file_name:LTA01631701.mxf stream_index:1
[mxf @ 0x181f120] could not resolve material track sequence strong ref
[Parsed_amovie_2 @ 0x181edc0] seek_point:0 format_name:(null)
file_name:LTA01631701.mxf stream_index:2
[Parsed_amerge_4 @ 0x1876120] Inputs overlap: output layout will be
meaningless
[Parsed_aconvert_1 @ 0x181e700] fmt:s32 cl:mono -> fmt:s16 cl:mono
[Parsed_aconvert_3 @ 0x1875a00] fmt:s32 cl:mono -> fmt:s16 cl:mono
[Parsed_amerge_4 @ 0x1876120] in0:mono + in1:mono -> out:stereo
[buffer @ 0x189a920] w:720 h:576 pixfmt:uyvy422 tb:1/25 fr:25/1 sar:0/1
sws_param:flags=2
[ffmpeg_buffersink @ 0x189afa0] No opaque field provided
[format @ 0x1869300] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'Parsed_null_0' and the filter 'format'
[auto-inserted scaler 0 @ 0x1868a00] w:720 h:576 fmt:uyvy422 sar:0/1 ->
w:720 h:576 fmt:yuv420p sar:0/1 flags:0x4
Output #0, mov, to './LTA01631701-4-1.mov':
Metadata:
timecode : 00:00:00:00
encoder : Lavf54.11.100
Stream #0:0: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo,
s16, 1536 kb/s
Stream #0:1: Video: dvvideo (dvcp / 0x70637664), yuv420p, 720x576,
q=2-31, 200 kb/s, 25 tbn, 25 tbc
Stream mapping:
amerge (graph 0) -> Stream #0:0 (pcm_s16le)
Stream #0:0 -> #0:1 (rawvideo -> dvvideo)
Press [q] to stop, [?] for help
--
Tim
More information about the ffmpeg-user
mailing list