[FFmpeg-user] "target" commands don't seem to work any more.

bat guano batguano999 at hotmail.com
Sat Jun 4 13:34:16 CEST 2011




----------------------------------------
> Date: Fri, 3 Jun 2011 19:54:06 -0700
> From: baptiste.coudurier at gmail.com
> To: ffmpeg-user at ffmpeg.org
> CC: batguano999 at hotmail.com
> Subject: Re: [FFmpeg-user] "target" commands don't seem to work any more.
>
> Hi,
>
> On 06/03/2011 07:29 PM, bat guano wrote:
> >
> > Hi
> > I used to be able to convert files to DVD format using commands like this:-
> > ffmpeg -i foo -target pal-dvd foo.mpg
> >
> > But when I try that now I get an error like this:-
> > Invalid encoder type 'ac3
> >
> > There are errors with all these commands:-
> >
> > ffmpeg -i foo -target dvd foo.mpg
> > Invalid encoder type 'ac3'
> >
> > ffmpeg -i foo -target pal-dvd foo.mpg
> > Invalid encoder type 'ac3'
> >
> > ffmpeg -i foo -target vcd foo.mpg
> > Invalid encoder type 'mp2'
> >
> > ffmpeg -i foo -target pal-vcd foo.mpg
> > Invalid encoder type 'mp2'
> >
> > I know that both my ac3 and mp2 encoders work OK.
> > So has something changed recently with the 'target' commands?
>
> Thanks for the report, this should be fixed in latest git.
>
> --
> Baptiste COUDURIER
> Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
> FFmpeg maintainer http://www.ffmpeg.org


Yes, it's fixed.
These commands work OK now:-
ffmpeg -i foo -target dvd foo.mpg
ffmpeg -i foo -target pal-dvd foo.mpg
ffmpeg -i foo -target vcd foo.mpg
ffmpeg -i foo -target pal-vcd foo.mpg

Thanks.

***********************************
@ubuntu:~$ ffmpeg -i foo -target pal-dvd foo.mpg
ffmpeg version git-N-30534-g87f4036, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun  4 2011 12:17:34 with gcc 4.4.1
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --disable-encoder=vorbis --enable-libvo-amrwbenc --enable-libvo-aacenc
  libavutil    51.  4. 0 / 51.  4. 0
  libavcodec   53.  6. 1 / 53.  6. 1
  libavformat  53.  2. 0 / 53.  2. 0
  libavdevice  53.  1. 0 / 53.  1. 0
  libavfilter   2. 12. 0 /  2. 12. 0
  libswscale    0. 14. 1 /  0. 14. 1
  libpostproc  51.  2. 0 / 51.  2. 0

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, asf, from 'foo':
  Metadata:
    duration        : 270
    lasttimestamp   : 270
    datasize        : 26326655
    metadatacreator : FlixEngineLinux_8.0.16.0 (www.on2.com)
    canSeekToEnd    : true
    videocodecid    : 4
    width           : 640
    height          : 360
    videodatarate   : 698
    framerate       : 24
    videosize       : 24163299
    audiocodecid    : 2
    audiodatarate   : 63
    audiosize       : 2163356
    encoder         : Lavf53.2.0
  Duration: 00:04:30.41, start: 0.000000, bitrate: 1202 kb/s
    Stream #0.0: Video: wmv2, yuv420p, 640x360, 25 tbr, 1k tbn, 1k tbc
    Stream #0.1: Audio: wmav2, 44100 Hz, 2 channels, s16, 160 kb/s
[buffer @ 0xaa8b8e0] w:640 h:360 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[scale @ 0xaa8bd00] w:640 h:360 fmt:yuv420p -> w:720 h:576 fmt:yuv420p flags:0x4
[ac3 @ 0xaa93440] channel_layout not specified
[ac3 @ 0xaa93440] No channel layout specified. The encoder will guess the layout, but it might be incorrect.
Output #0, dvd, to 'foo.mpg':
  Metadata:
    duration        : 270
    lasttimestamp   : 270
    datasize        : 26326655
    metadatacreator : FlixEngineLinux_8.0.16.0 (www.on2.com)
    canSeekToEnd    : true
    videocodecid    : 4
    width           : 640
    height          : 360
    videodatarate   : 698
    framerate       : 24
    videosize       : 24163299
    audiocodecid    : 2
    audiodatarate   : 63
    audiosize       : 2163356
    encoder         : Lavf53.2.0
    Stream #0.0: Video: mpeg2video, yuv420p, 720x576, q=2-31, 6000 kb/s, 90k tbn, 25 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop, [?] for help
frame=   22 fps=  0 q=2.0 size=     144kB time=00:00:00.84 bitrate=1404.3kbits/s
frame=   41 fps= 38 q=2.0 size=     322kB time=00:00:01.60 bitrate=1648.6kbits/s
frame=   53 fps= 33 q=2.0 size=     436kB time=00:00:02.08 bitrate=1717.2kbits/s
frame=   73 fps= 34 q=2.0 size=     620kB time=00:00:02.88 bitrate=1763.6kbits/s
frame=   91 fps= 35 q=1.6 size=     836kB time=00:00:03.60 bitrate=1902.4kbits/s
etc.
etc.
etc.

 		 	   		  


More information about the ffmpeg-user mailing list