Opened 10 years ago

Closed 10 years ago

#3736 closed defect (fixed)

convert to pal dvd with mp2 audio

Reported by: subroutine Owned by:
Priority: important Component: ffmpeg
Version: git-master Keywords: regression
Cc: batguano999@zoho.com Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by Carl Eugen Hoyos)

Hi there, I have ffmpeg installed via macports on a mac running 10.9.3 I am trying to convert an mpg from a video camera so that it can be encoded to burn to a pal dvd. My command is:

/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'

but I'm getting this error:

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 @ 0x7f9901010800] 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 @ 0x7f9901012a00] 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!

I can run this on an older version of ffmpeg without any issue so don't know why it's not working in this version.

I have very limited knowledge of ffmpeg and the options so please give any explanations in simple terms.

Many Thanks,
Nik

Change History (4)

comment:1 by Carl Eugen Hoyos, 10 years ago

Description: modified (diff)
Keywords: regression added
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Summary: convert mpg to pal dvdvconvert to pal dvd with mp2 audio
Version: unspecifiedgit-master

For future tickets: Please always test current FFmpeg git head before opening a ticket.

Regression since af4b1c02

$ ffmpeg -f s16le -i /dev/null -f lavfi -i testsrc -target pal-dvd -acodec mp2 -ab 128k -t 10 out.vob
ffmpeg version N-64138-g7e6cf36 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun 22 2014 22:26:12 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      52. 90.100 / 52. 90.100
  libavcodec     55. 68.100 / 55. 68.100
  libavformat    55. 44.100 / 55. 44.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  9.100 /  4.  9.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Guessed Channel Layout for  Input Stream #0.0 : mono
Input #0, s16le, from '/dev/null':
  Duration: N/A, bitrate: 705 kb/s
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
Input #1, lavfi, from 'testsrc':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
[mp2 @ 0x2d12660] bitrate 448 is not allowed in mp2
Output #0, dvd, to 'out.vob':
    Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 6000 kb/s, 25 fps, 25 tbc
    Metadata:
      encoder         : Lavc55.68.100 mpeg2video
    Stream #0:1: Audio: mp2, 0 channels, 128 kb/s
    Metadata:
      encoder         : Lavc55.68.100 mp2
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo (native) -> mpeg2video (native))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> mp2 (native))
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

comment:2 by Carl Eugen Hoyos, 10 years ago

Component: undeterminedffmpeg

comment:3 by bat999, 10 years ago

Cc: batguano999@zoho.com added

comment:4 by Michael Niedermayer, 10 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.