[FFmpeg-user] mpg to mp4 request

wally wally at voosen.eu
Tue Apr 8 20:35:49 CEST 2014


Hello,
i want to ask for help on converting a mpg videofile recorded from TV
to a mp4 format my SAT Receiver can play, (mp4).
Below are the format infos of source and target output by ffmpeg -i:
All done on Linux.

Which ffmpeg commandline do this job ?

source:

     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 
[SAR 64:45 DAR 16:9], max. 9500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:2[0x83]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s

target:

     Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), 
yuv420p(tv), 720x406 [SAR 1:1 DAR 360:203], 1894 kb/s, 25 fps, 25 tbr, 
25k tbn, 50 tbc (default)
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 93 kb/s (default)


 > ffmpeg -i ./source.mpg
ffmpeg version 2.2 Copyright (c) 2000-2014 the FFmpeg developers
   built on Mar 24 2014 17:15:07 with gcc 4.8 (SUSE Linux)
   configuration: --shlibdir=/usr/lib --prefix=/usr 
--mandir=/usr/share/man --libdir=/usr/lib --enable-shared 
--disable-static --enable-debug --disable-stripping 
--extra-cflags='-fomit-frame-pointer -fmessage-length=0 
-grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 
-funwind-tables -fasynchronous-unwind-tables -g -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gsm' --enable-gpl --enable-x11grab 
--enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse 
--enable-libvpx --enable-libopus --enable-libass --enable-libx265 
--enable-libmp3lame --enable-libvorbis --enable-libtheora 
--enable-libspeex --enable-libxvid --enable-libx264 
--enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-postproc --enable-libdc1394 
--enable-librtmp --enable-libfreetype --enable-avresample 
--enable-libtwolame --enable-libvo-aacenc --enable-gnutls
   libavutil      52. 66.100 / 52. 66.100
   libavcodec     55. 52.102 / 55. 52.102
   libavformat    55. 33.100 / 55. 33.100
   libavdevice    55. 10.100 / 55. 10.100
   libavfilter     4.  2.100 /  4.  2.100
   libavresample   1.  2.  0 /  1.  2.  0
   libswscale      2.  5.102 /  2.  5.102
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
[NULL @ 0x82baf20] start time is not set in estimate_timings_from_pts
Input #0, mpeg, from './Rossini.mpg':
   Duration: 01:49:08.19, start: 0.252622, bitrate: 4815 kb/s
     Stream #0:0[0x1bf]: Data: dvd_nav_packet
     Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576 
[SAR 64:45 DAR 16:9], max. 9500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:2[0x83]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s
At least one output file must be specified
 >



 > ffmpeg -i ./target.mp4
ffmpeg version 2.2 Copyright (c) 2000-2014 the FFmpeg developers
   built on Mar 24 2014 17:15:07 with gcc 4.8 (SUSE Linux)
   configuration: --shlibdir=/usr/lib --prefix=/usr 
--mandir=/usr/share/man --libdir=/usr/lib --enable-shared 
--disable-static --enable-debug --disable-stripping 
--extra-cflags='-fomit-frame-pointer -fmessage-length=0 
-grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 
-funwind-tables -fasynchronous-unwind-tables -g -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gsm' --enable-gpl --enable-x11grab 
--enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse 
--enable-libvpx --enable-libopus --enable-libass --enable-libx265 
--enable-libmp3lame --enable-libvorbis --enable-libtheora 
--enable-libspeex --enable-libxvid --enable-libx264 
--enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-postproc --enable-libdc1394 
--enable-librtmp --enable-libfreetype --enable-avresample 
--enable-libtwolame --enable-libvo-aacenc --enable-gnutls
   libavutil      52. 66.100 / 52. 66.100
   libavcodec     55. 52.102 / 55. 52.102
   libavformat    55. 33.100 / 55. 33.100
   libavdevice    55. 10.100 / 55. 10.100
   libavfilter     4.  2.100 /  4.  2.100
   libavresample   1.  2.  0 /  1.  2.  0
   libswscale      2.  5.102 /  2.  5.102
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './target.mp4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: isommp42
     creation_time   : 2014-03-31 22:03:51
   Duration: 01:20:35.84, start: 0.000000, bitrate: 1992 kb/s
     Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), 
yuv420p(tv), 720x406 [SAR 1:1 DAR 360:203], 1894 kb/s, 25 fps, 25 tbr, 
25k tbn, 50 tbc (default)
     Metadata:
       creation_time   : 2014-03-31 22:03:51
       handler_name    : Mainconcept MP4 Video Media Handler
     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 93 kb/s (default)
     Metadata:
       creation_time   : 2014-03-31 22:03:51
       handler_name    : Mainconcept MP4 Sound Media Handler
At least one output file must be specified
 >



More information about the ffmpeg-user mailing list