[FFmpeg-devel] Have some difficulty in encoding MPEG-2 Program File

Luca Piccarreta luca.piccarreta
Sat Jun 5 18:07:50 CEST 2010


Hi all,
may be someone can help me?

If I encode a mpeg2-transport file with the following command:

   ffmpeg -y -bufsize 5M -maxrate 20M -b 20M -g 1 -vcodec mpeg2video -acodec
mp2 -i foo.ts foo.mpeg

the resulting file is not readable and ffmpeg says:

   ffmpeg -i blabla.mpeg o blabla.mp4  --> "At least one output file must be
specified"

I believe the mpeg2 program stream probe is failing, probably due to a probe
window too short.

The problem can be solved simply adding a "-probesize 1048576" parameter
value.
This looks like an enormous number, and moreover, there are sizes (1000000,
for example)
that cause segfaults.

Thanks for any help / advice.

Luca

(here's the full output)
FFmpeg version SVN-r23481-snapshot-rpmfusion, Copyright (c) 2000-2010 the
FFmpeg developers
  built on Jun  5 2010 12:28:56 with gcc 4.1.2 20070626 (Red Hat 4.1.2-14)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg
--incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
--arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic' --extra-version=rpmfusion --enable-bzlib --enable-libfaac
--enable-nonfree --enable-libfaad --enable-libgsm --enable-libmp3lame
--enable-libx264 --enable-libxvid --enable-avfilter --enable-avfilter-lavf
--enable-postproc --enable-pthreads --disable-static --enable-shared
--enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64
--enable-runtime-cpudetect
  libavutil     50.16. 0 / 50.16. 0
  libavcodec    52.74. 0 / 52.74. 0
  libavformat   52.68. 0 / 52.68. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.20. 0 /  1.20. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Input #0, mpeg, from 'blabla.mpeg':
  Duration: 00:00:10.52, start: 0.500000, bitrate: 17849 kb/s
    Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 704x576 [PAR 49:33 DAR
49:27], 20000 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
    Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, 2 channels, s16, 64 kb/s
At least one output file must be specified


I'm "almost" on ffmpeg head (yesterday tarball) and...



More information about the ffmpeg-devel mailing list