[Ffmpeg-devel] ffmpeg does not know duration of remuxed mpeg2

Thomas Börkel thomas
Tue Jul 4 19:34:19 CEST 2006


HI!

Using ffmpeg-0.4.9-6.pm.svn20060701 on Suse 10.1.

Sometimes it happens, that ffmpeg knows the duration of an mpeg2 file,
but after I rework it, it does not know the duration anymore.

"Rework" means:
- demux with mpeg2desc
- tcrequant
- audio mp2 -> ac3 with ffmpeg
- mplex -f 8

ffmpeg -i before rework:

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
   configuration:  --prefix=/usr --mandir=/usr/share/man
--libdir=/usr/lib --enable-shared --enable-mp3lame --enable-libogg
--enable-vorbis --enable-theora --enable-faad --enable-faac
--enable-xvid --enable-x264 --enable-a52 --enable-pp --enable-gpl
--enable-gprof --enable-amr_nb --enable-amr_wb
   libavutil version: 49.0.0
   libavcodec version: 51.9.0
   libavformat version: 50.4.0
   built on Jul  1 2006 11:34:46, gcc: 4.1.0 (SUSE Linux)
Input #0, mpeg, from '6_20060702185500.mpg':
   Duration: 01:26:14.6, start: 0.284300, bitrate: 7490 kb/s
   Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576, 8000 kb/s,
25.00 fps(r)
   Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 384 kb/s
Must supply at least one output file


After rework:

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
   configuration:  --prefix=/usr --mandir=/usr/share/man
--libdir=/usr/lib --enable-shared --enable-mp3lame --enable-libogg
--enable-vorbis --enable-theora --enable-faad --enable-faac
--enable-xvid --enable-x264 --enable-a52 --enable-pp --enable-gpl
--enable-gprof --enable-amr_nb --enable-amr_wb
   libavutil version: 49.0.0
   libavcodec version: 51.9.0
   libavformat version: 50.4.0
   built on Jul  1 2006 11:34:46, gcc: 4.1.0 (SUSE Linux)
Input #0, mpeg, from '6_20060702185500.mpg.mpg':
   Duration: N/A, start: 0.184656, bitrate: N/A
   Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576, 8000 kb/s,
25.00 fps(r)
   Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, 224 kb/s
Must supply at least one output file


Any hints?

Thanks!

Thomas






More information about the ffmpeg-devel mailing list