[FFmpeg-user] converting audio in MPG

nikj nik.jell at sky.com
Fri Jun 27 14:18:52 CEST 2014


Hi Moritz,

apologies if my post lacked enough info.

My scenario is that I have an MPG files that I need to change the audio to MP2.

The command and results are this:

/opt/local/bin/ffmpeg -i '/Users/Shared/.EVNZ_config/Titles/a_opentitles.mpg' -target pal-dvd -s 720x576 -vcodec copy -acodec mp2 -ab 256k -y '/Users/Shared/.EVNZ_config/EVNZ_DVD_Temp/EVNZ_DVD/a_opentitles.mpg'
ffmpeg version 2.2.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun  4 2014 15:38:57 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass --enable-libbluray --enable-gnutls --enable-fontconfig --enable-libfreetype --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --enable-vda --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
  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 @ 0x7fcc2400aa00] start time is not set in estimate_timings_from_pts
Input #0, mpeg, from '/Users/Shared/.EVNZ_config/Titles/a_opentitles.mpg':
  Duration: 00:00:28.00, start: 0.500000, bitrate: 2755 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt709), 720x576 [SAR 16:15 DAR 4:3], max. 8000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s
[mp2 @ 0x7fcc24839400] bitrate 448 is not allowed in mp2
Output #0, dvd, to '/Users/Shared/.EVNZ_config/EVNZ_DVD_Temp/EVNZ_DVD/a_opentitles.mpg':
    Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 6000 kb/s, 25 fps, 90k tbn, 25 tbc
    Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 448 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:2 -> #0:1 (ac3 -> mp2)
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

The version of ffmpeg that I’m running where this command is not and issue is:

/opt/local/bin/ffmpeg -version
ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep 15 2012 03:22:35 with clang 4.0 ((tags/Apple/clang-421.0.60))
  configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libvpx --enable-libspeex --disable-libopencore-amrnb --disable-libopencore-amrwb --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
  libavutil    50. 43. 0 / 50. 43. 0
  libavcodec   52.123. 0 / 52.123. 0
  libavformat  52.111. 0 / 52.111. 0
  libavdevice  52.  5. 0 / 52.  5. 0
  libavfilter   1. 80. 0 /  1. 80. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0
ffmpeg 0.7.13
libavutil    50. 43. 0 / 50. 43. 0
libavcodec   52.123. 0 / 52.123. 0
libavformat  52.111. 0 / 52.111. 0
libavdevice  52.  5. 0 / 52.  5. 0
libavfilter   1. 80. 0 /  1. 80. 0
libswscale    0. 14. 1 /  0. 14. 1
libpostproc  51.  2. 0 / 51.  2. 0

My scenario is that I have MPG files that originate from a video camera, I also have 2 other Mpg files that are 'man made'. What I’m trying to do is convert the video files so that they’re all the same and then either stitch them back together or use them to burn a dvd.

I hope this is enough info but please let me know if not.

Many Thanks,
Nik

On 27 Jun 2014, at 10:13, Moritz Barsnick [via FFmpeg-users] <ml-node+s933282n4666027h8 at n4.nabble.com> wrote:

> On Wed, Jun 25, 2014 at 23:06:24 -0700, nikj wrote: 
> > I'm a complete novice with ffmpeg and would appreciate any suggestions. 
> 
> I suggest you tell us what's wrong! 
> 
> You don't even mention any problem, you only say "it works on a 
> different machine". 
> 
> Please give us the command line and the complete uncut output of your 
> ffmpeg call. 
> 
> Moritz 
> 
> P.S.: And for the future, a small hint if you're asking someone for help: 
> Do explain 
> - what you're trying to do 
> - what happened 
> - what you expected to happen. 
> _______________________________________________ 
> ffmpeg-user mailing list 
> [hidden email] 
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://ffmpeg-users.933282.n4.nabble.com/converting-audio-in-MPG-tp4666005p4666027.html
> To unsubscribe from converting audio in MPG, click here.
> NAML





--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/converting-audio-in-MPG-tp4666005p4666029.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list