[FFmpeg-devel] [PATCH] better reporting of programs
Nico Sabbi
nicola_sabbi
Thu Oct 25 23:34:48 CEST 2007
Michael Niedermayer wrote:
>hmm, does ffmpeg -i 2st out.avi -newvideo work?
>that is if 2st contains 2 video streams and work==copy both instead
>of duplicate the first?
yes:
ftp://upload.mplayerhq.hu/MPlayer/samples/MPEG-VOB/sample_aac_streams/er02.ts
contains 2 video streams (same image but resized).
I had to add -an because the aac stream is detected incorrectly, but
the sample is good enough to test
./ffmpeg -i /mnt/linux/home/nicodvb/tss/aac/er02.ts -an -vcodec
copy -y -f mpegts x2.mpegts -newvideo
FFmpeg version SVN-r10817, Copyright (c) 2000-2007 Fabrice Bellard, et
al.
configuration: --disable-shared --enable-gpl --enable-pp
libavutil version: 49.5.0
libavcodec version: 51.46.0
libavformat version: 51.16.0
built on Oct 20 2007 10:18:08, gcc: 4.1.2 20070925 (Red Hat
4.1.2-32)
Input #0, mpegts, from '/mnt/linux/home/nicodvb/tss/aac/er02.ts':
Duration: 00:00:29.4, start: 62458.415256, bitrate: 6293 kb/s
Program 102 Stream #0.0[0x200]: Video: , 29.97 fps(r)
Stream #0.1[0x201]: Video: , 29.97 fps(r)
Stream #0.2[0x210]: Audio:
Stream #0.3[0x211]: Audio:
Stream #0.4[0x212]: Audio:
Output #0, mpegts, to 'x2.mpegts':
Stream #0.0: Video: , 29.97 fps(c)
Stream #0.1: Video: , 29.97 fps(c)
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
error, non monotone timestamps 12856 >= 12856
frame= 875 fps= 0 q=0.0 Lq=0.0 size= 21276kB time=29.2
bitrate=5960.9kbits/s
video:19469kB audio:0kB global headers:0kB muxing overhead 9.277402%
both video streams were copied correctly
Other test: copy the first video stream and encode the second one:
./ffmpeg -i /mnt/linux/home/nicodvb/tss/aac/er02.ts -an -vcodec
copy -y -f mpegts x2.mpegts -vcodec mpeg1video -s 800x600 -newvideo
FFmpeg version SVN-r10817, Copyright (c) 2000-2007 Fabrice Bellard, et
al.
configuration: --disable-shared --enable-gpl --enable-pp
libavutil version: 49.5.0
libavcodec version: 51.46.0
libavformat version: 51.16.0
built on Oct 20 2007 10:18:08, gcc: 4.1.2 20070925 (Red Hat
4.1.2-32)
Input #0, mpegts, from '/mnt/linux/home/nicodvb/tss/aac/er02.ts':
Duration: 00:00:29.4, start: 62458.415256, bitrate: 6293 kb/s
Program 102 Stream #0.0[0x200]: Video: , 29.97 fps(r)
Stream #0.1[0x201]: Video: , 29.97 fps(r)
Stream #0.2[0x210]: Audio:
Stream #0.3[0x211]: Audio:
Stream #0.4[0x212]: Audio:
Output #0, mpegts, to 'x2.mpegts':
Stream #0.0: Video: , 29.97 fps(c)
Stream #0.1: Video: , 29.97 fps(c)
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
error, non monotone timestamps 12856 >= 12856
frame= 603 fps=106 q=0.0 Lq=31.0 size= 15029kB time=20.2
bitrate=6106.0kbits/s
video:13721kB audio:0kB global headers:0kB muxing overhead 9.534011%
same here
More information about the ffmpeg-devel
mailing list