Hi list! I am trying to convert a avi to mp4 woth the following command: $ ffmpeg -i ./movie.avi -vcodec mpeg4 -b 800k -qmin 3 -qmax 12 -g 300 -s -deinterlace -acodec aac -ab 128 -ac 2 -ar 48000 -f mp4 -r 25 movie.mp4 but I get the following error: ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame --enable-faad --enable-faac --enable-xvid --enable-ogm built on Apr 29 2006 00:14:12, gcc: 4.0.3 (Ubuntu 4.0.3-1ubuntu5) Input #0, avi, from './movie.avi': Duration: 01:44:00.2, start: 0.000000, bitrate: 935 kb/s Stream #0.0: Video: msmpeg4, yuv420p, 512x256, 25.00 fps Stream #0.1: Audio: mp3, 44100 Hz, stereo, 127 kb/s Incorrect frame size I get the same mistake when I add "-s 512x256" to the command (I did use this for converting videos already) Additional info about the movie file: $ tcprobe -i ./movie.avi [tcprobe] RIFF data, AVI video [avilib] V: 25.000 fps, codec=DIV3, frames=156007, width=512, height=256 [avilib] A: 44100 Hz, format=0x55, bits=0, channels=2, bitrate=127 kbps, [avilib] 155933 chunks, 99573495 bytes, CBR [tcprobe] summary for ./movie.avi, (*) = not default, 0 = not detected import frame size: -g 512x256 [720x576] (*) frame rate: -f 25.000 [25.000] frc=3 audio track: -a 0 [0] -e 44100,0,2 [48000,16,2] -n 0x55 [0x2000] (*) bitrate=127 kbps length: 156007 frames, frame_time=40 msec, duration=1:44:00.280 Is there anything I can do to convert the movie to mp4 so that I can use it on a DVD? Greets, Dennis
On Sat, 23 Dec 2006 09:37:58 +0100, Dennis Neumeier <dennismail at gmx.net> wrote:
Is there anything I can do to convert the movie to mp4 so that I can use it on a DVD?
To start with, a DVD doesn't use mp4. It uses MPEG2 video at fixed sized defined by the standard, and AC3, PCM or MP2 audio sampled at 48kHz. If you want a PAL DVD then use the 'pal-dvd' target, if you want NTSC then use the 'ntsc-dvd' target. $ ffmpeg -i yourfile.avi -target pal-dvd -aspect 4:3 output.mpg ffmpeg's pal-dvd target uses AC3 audio at 448kbps by default. You can override this if you like with appropriate -acodec and -ab options. The output file picture size will be 720?576 for a PAL DVD or 720?480 for NTSC. If the original 2:1 aspect ratio of your AVI file is to be maintained then you'll have to -padtop and -padbottom, and override the -s. -- G. Stewart - godwin.stewart at gmail.com Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats. -- Howard Aiken
To start with, a DVD doesn't use mp4. It uses MPEG2 video at fixed sized defined by the standard, and AC3, PCM or MP2 audio sampled at 48kHz.
Oh, ok, I should have known this...
If you want a PAL DVD then use the 'pal-dvd' target, if you want NTSC then use the 'ntsc-dvd' target.
$ ffmpeg -i yourfile.avi -target pal-dvd -aspect 4:3 output.mpg
I used this command and right now, my PC is onverting.
ffmpeg's pal-dvd target uses AC3 audio at 448kbps by default. You can override this if you like with appropriate -acodec and -ab options.
As far as I know, AC3 is standard on dvd, right? Is there any point I should think of concerning sound? Most movies (so mine too) is recorded with a stereo (which means 2.0) signal, so there shouldn't be to many problems about this?!? Thanks up to now! Dennis
On Sat, 23 Dec 2006 09:56:39 +0100, Dennis Neumeier <dennismail at gmx.net> wrote:
As far as I know, AC3 is standard on dvd, right?
It's one of them. MP2 and PCM are also valid within the DVD standard. The advantage of AC3 over the other 2 is that it can have more than 2 channels, which is why it's used for Dolby 5.1 for example. MP2 and PCM can only do mono or stereo. If your movies are in stereo 2.0 then there's very little advantage to AC3 over the other formats. -- G. Stewart - godwin.stewart at gmail.com Just remember, if the world didn't suck, we'd all fall off.
It's one of them. MP2 and PCM are also valid within the DVD standard.
Thanks for the info!
If your movies are in stereo 2.0 then there's very little advantage to AC3 over the other formats.
Sounds logic to me. But this leads to another questions: Is there a gpl-programm capable to deal with AC3 channels - I mean if I can record myself AC3-5.1 sound for e.g. demo-dvds from my band? Or is this a question of AC3-licences? Greets, Dennis
On Sat, 23 Dec 2006 10:30:43 +0100, Dennis Neumeier <dennismail at gmx.net> wrote:
Sounds logic to me. But this leads to another questions: Is there a gpl-programm capable to deal with AC3 channels - I mean if I can record myself AC3-5.1 sound for e.g. demo-dvds from my band? Or is this a question of AC3-licences?
If you mean GPL'ed software that can *edit* AC3-5.1 files then I've never looked into it. GIYF. If, OTOH, you mean software that will multiplex an AC3-5.1 file into your MPEG file for the DVD then they pretty much all do. ffmpeg can for starters, as can mplex (part of mjpegtools). -- G. Stewart - godwin.stewart at gmail.com FAILURE IS NOT AN OPTION. It comes bundled with Microsoft software.
If, OTOH, you mean software that will multiplex an AC3-5.1 file into your MPEG file for the DVD then they pretty much all do. ffmpeg can for starters, as can mplex (part of mjpegtools).
I was quite sure that ffmpeg was able to do this. But as you say "multiplex an AC3-5.1 file into your MPEG", I guess that the AC3-5.1 file has to already exist at multiplexing time. Edit is one more step, but editing means to me that I modify a existing file. So real creation is quite another thing to me. (And, btw, it also arises the question how to create 5.1 sound, because it may be difficult for most of us to record 5 sources at a time....) I am trying to find out something about the licence behind AC3 right (I didn't find anything up to now), but if I find something, I can post it here. Thanks a lot for your support! Greets, Dennis
hi there Am Samstag, 23. Dezember 2006 11:35 schrieb Dennis Neumeier:
If, OTOH, you mean software that will multiplex an AC3-5.1 file into your MPEG file for the DVD then they pretty much all do. ffmpeg can for starters, as can mplex (part of mjpegtools).
I was quite sure that ffmpeg was able to do this. But as you say "multiplex an AC3-5.1 file into your MPEG", I guess that the AC3-5.1 file has to already exist at multiplexing time.
Edit is one more step, but editing means to me that I modify a existing file. So real creation is quite another thing to me. (And, btw, it also arises the question how to create 5.1 sound, because it may be difficult for most of us to record 5 sources at a time....)
I am trying to find out something about the licence behind AC3 right (I didn't find anything up to now), but if I find something, I can post it here.
might ac3jack and ardour can help you out. http://www.essej.net/ac3jack/ to get you started, you'll probable read this post "Multi Channel Bus Panning Behaviour" on the following page: http://blog.gmane.org/gmane.comp.audio.ardour.user/month=20050101/page=1 if you need to monitor the video with the sound, xjadeo comes in handy. http://sourceforge.net/projects/xjadeo/ lukas
On Sunday 24 December 2006 18:52, Lukas Erni wrote:
hi there
Am Samstag, 23. Dezember 2006 11:35 schrieb Dennis Neumeier:
If, OTOH, you mean software that will multiplex an AC3-5.1 file into your MPEG file for the DVD then they pretty much all do. ffmpeg can for starters, as can mplex (part of mjpegtools).
I was quite sure that ffmpeg was able to do this. But as you say "multiplex an AC3-5.1 file into your MPEG", I guess that the AC3-5.1 file has to already exist at multiplexing time.
Edit is one more step, but editing means to me that I modify a existing file. So real creation is quite another thing to me. (And, btw, it also arises the question how to create 5.1 sound, because it may be difficult for most of us to record 5 sources at a time....)
I am trying to find out something about the licence behind AC3 right (I didn't find anything up to now), but if I find something, I can post it here.
might ac3jack and ardour can help you out.
to get you started, you'll probable read this post "Multi Channel Bus Panning Behaviour" on the following page: http://blog.gmane.org/gmane.comp.audio.ardour.user/month=20050101/page=1
if you need to monitor the video with the sound, xjadeo comes in handy. http://sourceforge.net/projects/xjadeo/
Converting stereo to 5.1 is easy, front to rear panning is lost (without the use of some expensive matrix encoder) but it emulates dolby/dts surround nicely to achieve decent output on all 6 channels. Process follows: * Extract audio stream * Extract left and right channels from audio stream (as WAV files) * Mix both channels into one mono stream for the centre channel * Use the mono centre channel to create the LFE sub channel with a lowpass filter * Optionally put the centre channel through a bandpass filter to enhance more vocal frequencies * Duplicate the left and right channels to use as rear left and right channels as well as front left and right channels * Feed the 6 WAV files through multimux and into ffmpeg to create a 5.1 AC3 file * Mux newly created audio stream together with video stream Multimux is available here -> http://panteltje.com/panteltje/dvd/ Basic guide here -> http://mightylegends.org/dvd/dvdauthor_howto_surround.html Rick
participants (4)
-
dennismail@gmx.net -
godwin.stewart@gmail.com -
lerni@gmx.ch -
rickharris@mightylegends.zapto.org