How to convert VOB file using ffmpeg ?
hey guys,
i want to know how to convert .VOB to .mp4 using ffmpeg i have do Quote:
Code:
root@ks3092546:/var/www/video/VIDEO_TS ffmpeg -i outss.VOB video.mp4 |
The problem is the output audio stream; no codec was specified. If you want to copy the input audio, you can use '-acodec copy' or if you want mp3 audio you can specify '-acodec libmp3lame -ac 2 -ar 22050' for example.
Code:
ffmpeg -i outss.VOB -acodec libmp3lame -ac 2 -ar 22050 video.mp4 |
i am getting this error why ?
Code:
root@ks3092546:/var/www/video/VIDEO_TS# ffmpeg -i outss.VOB -acodec libmp3lame -ac 2 -ar 22050 video.mp4 |
Why don't you start by trying to actually read the error messages and interpret what they mean?
Code:
Unknown encoder 'libmp3lame' Do you see the line at the top with all the "--enable" options? It tells you what external libraries and certain other features your version of ffmpeg has been compiled to use. Since I don't see "--enable-libmp3lame" listed, it appears you are using a version that doesn't support it. This isn't surprising. Since mp3 is a patent-encumbered codec, many Free distributions can't legally compile it into in their packages. So you'll have to find a version from a separate source that does have it enabled, or else compile your own version. Another option is to simply use a codec that is enabled instead. mp2 is commonly available and supported by most media formats, for example. ffmpeg also has a built-in mp3 encoder of its own that might possibly be enabled (although lame is generally much better). Run "ffmpeg -codecs" for a full list of what's available to your version. Since this is a common problem, a google search or two should turn up a source for you. Someone here might also be able to tell you if you tell us what distribution you're using. |
Just try Handbrake
Handbrake found Here:http://handbrake.fr/downloads.php
|
also, xvidenc, h264enc are good.
|
i am using debian ssh i can't find handbreak for debian
|
You will want to specify the "q" range to use or the bitrate you want. The default (200k) in your example is to low for reasonable quality. Using "-sameq" is another possibility, but may result in too high of a bitrate from what you want.
Try looking for examples with Google. They are a good way to pick up esoteric options you may want to use to lower the size while not degrading quality. DVD audio is MP2. You could use -acodec copy. The results should be acceptable. The sweatspot for mp2 audio is "-acodec mp2 -ab 224k -ar 44100". For mp3 audio, a sampling rate of "-ar 48k" is very common. For most distros, there is a repository that that has restricted versions of media packages with features like mp3 builtin. You need this as well as downloading and installing the library & codecs. I don't use Debian, but I think ftp.deb-multimedia.org may be such a repository. |
Yes, for fully-enabled versions of most media apps on debian, use deb-multimedia.org as your source.
Actually, dvd audio can be mp2, ac3, DTS, or raw pcm, with ac3 being the most common. The output posted above shows that that source has ac3 audio. You should be able to use -acodec copy to keep the ac3 track, but if file-size is important, you can save a few megabytes by re-encoding it to mp2 or mp3 (and if audio quality isn't important, use a lower bitrate to shave off even more). http://en.wikipedia.org/wiki/DVD-VIDEO |
All times are GMT -5. The time now is 05:26 AM. |