Hi, this is my first mail to this list. Hope i am not posting a stupid question and i could express myself in english. I am trying to use mencoder to extract a movie off a dvd. The command i use is like: mencoder dvd://1 -o whatevermovie.avi -oac copy -ovc lavc -vf scale 1024:800 -lavcopts vcodec=mpeg4 (all one line) However, the output movie doesnt have a very high quality. It seems to be very ´pixelized´ I am using SuSE 9.3, with mplayer and mencoder downloaded from Packman, a well known rpm source for suse distro. Is there something i could do to impruve the results? Tia! -- Saludos, miguel
miguel gmail wrote:
mencoder dvd://1 -o whatevermovie.avi -oac copy -ovc lavc -vf scale 1024:800 -lavcopts vcodec=mpeg4 (all one line)
The default bitrate is rather low for a resolution of 1024x800. First off, you probsbly don't really want 1024x800... how about trying: -vf scale -zoom -xy 512 and use these lavcopts (just for starters): -lavcopts vcodec=mpeg4:vbitrate=1800:nr=200:mbd=2:v4mv:trell You can scale it up when you watch it with mplayer usign the -x and -y options. These are just simple starting options. (puts on flameproof leotard and dances offstage)
Hi,
The default bitrate is rather low for a resolution of 1024x800. First off, you probsbly don't really want 1024x800... how about trying:
-vf scale -zoom -xy 512
and use these lavcopts (just for starters):
-lavcopts vcodec=mpeg4:vbitrate=1800:nr=200:mbd=2:v4mv:trell
You can scale it up when you watch it with mplayer usign the -x and -y options.
This did the trick. The only ´problem´ is that the ouput file is quite big (1.9GB), but in my case it´s not an issue. Quality is really good now. Thanks! -- Saludos, miguel
miguel gmail wrote:
Hi,
The default bitrate is rather low for a resolution of 1024x800. First off, you probsbly don't really want 1024x800... how about trying:
-vf scale -zoom -xy 512
and use these lavcopts (just for starters):
-lavcopts vcodec=mpeg4:vbitrate=1800:nr=200:mbd=2:v4mv:trell
You can scale it up when you watch it with mplayer usign the -x and -y options.
This did the trick. The only ´problem´ is that the ouput file is quite big (1.9GB), but in my case it´s not an issue. Quality is really good now.
Ah, I'll bet the source had pcm (raw) audio. You can add this option: -oac mp3lame And if your output file is much smaller, then your source had pcm audio. Sorry if the nomenclature is difficult. I've been at this for almost 3 years and some of the terminology still baffles me.
Hi,
This did the trick. The only ´problem´ is that the ouput file is quite big (1.9GB), but in my case it´s not an issue. Quality is really good now.
Ah, I'll bet the source had pcm (raw) audio. You can add this option:
-oac mp3lame
And if your output file is much smaller, then your source had pcm audio.
God, you are right! The size went down from 1.9G to 0.9G! Thanks! As an aside note. I noticed that when using the right/left arrow keys, it seemed like the movie was longer; This is, the status bar of the movie seemed to be about 25% longer. The movie finished when there was remaining yet about 20-25% of the bar. This doesnt happen now.
Sorry if the nomenclature is difficult. I've been at this for almost 3 years and some of the terminology still baffles me.
My fault! Just copy&paste work for now :-) At the moment i am happy to make it work. When i have a little more time i will go deeper into the mplayer documentation to understand what i am really doing, and what alternatives i have... just for fun. Many many thanks to you (and the co-listers) to help me with this issue with detailed instructions (or comments). -- Saludos, miguel
On Tuesday, 20 September 2005 at 22:26, miguel gmail wrote:
Hi,
this is my first mail to this list. Hope i am not posting a stupid question and i could express myself in english.
I am trying to use mencoder to extract a movie off a dvd. The command i use is like:
mencoder dvd://1 -o whatevermovie.avi -oac copy -ovc lavc -vf scale 1024:800 -lavcopts vcodec=mpeg4 (all one line)
However, the output movie doesnt have a very high quality. It seems to be very ´pixelized´
I am using SuSE 9.3, with mplayer and mencoder downloaded from Packman, a well known rpm source for suse distro.
Is there something i could do to impruve the results?
Yes. :) First, make sure you have something tasty to eat, some of your favourite beverage and a lot of time. Then embark upon the journey through the marvelous MPlayer documentation found at http://www.mplayerhq.hu/DOCS/HTML/en/index.html . Pay special attention to chapters 7 and 8, which go into detail on the mysteries of video encoding using MEncoder. If you have any _specific_ questions later, please ask them here or at our friendly IRC channel #mplayer at irc.freenode.net. Have fun! R. -- MPlayer RPMs maintainer: http://rpm.greysector.net/mplayer/ "I am Grey. I stand between the candle and the star. We are Grey. We stand between the darkness ... and the light." -- Delenn in Grey Council in Babylon 5:"Babylon Squared"
Hi,
Yes. :) First, make sure you have something tasty to eat, some of your favourite beverage and a lot of time. Then embark upon the journey through
I like that part :-)
the marvelous MPlayer documentation found at http://www.mplayerhq.hu/DOCS/HTML/en/index.html . Pay special attention to chapters 7 and 8, which go into detail on the mysteries of video encoding using MEncoder.
Really, I tried to do so. But i simply couldnt understand much. My problem is that i know nothing about image/video processing. To be honest, i tried with the spanish version, but i see now it is some out of date. And i get lost with the english version. However, the real problem _for me_ is, imho, the high level (or not for novice) of the help. I think it requires a previous knowledge of video stream, formats, etc etc Newcommers, like me, just pretend to decryp a dvd without having a deep knowledge of all the posibilities that mencoder provides. As time goes by, i will try to impruve my output files, once i get a deeper knowledge and practice with mencoder.
If you have any _specific_ questions later, please ask them here or at our friendly IRC channel #mplayer at irc.freenode.net.
Uff, i really tried. But i simply ignore what to ask! For example, Phil Ehrens provided a completely new light to me by saying:
The default bitrate is rather low for a resolution of 1024x800.
Uuau! So i can change it! Or, ´wtf is a bitrate, how does it affects me, and what can i do change it?´ were my first thoughts. Hope you see my point now. Imho, there is a big gap between beginners knowledge and the level of the help provided by mplayer documentation (which, on the other hand, is really extensive and it full documents all the options availabe in mplayer/mencoder).
Have fun!
I try all the time! :-) Thanks for the comments. -- Saludos, miguel
the marvelous MPlayer documentation found at http://www.mplayerhq.hu/DOCS/HTML/en/index.html . Pay special attention to chapters 7 and 8, which go into detail on the mysteries of video encoding using MEncoder.
Really, I tried to do so. But i simply couldnt understand much. My problem is that i know nothing about image/video processing. To be honest, i tried with the spanish version, but i see now it is some out of date. And i get lost with the english version.
However, the real problem _for me_ is, imho, the high level (or not for novice) of the help. I think it requires a previous knowledge of video stream, formats, etc etc
Newcommers, like me, just pretend to decryp a dvd without having a deep knowledge of all the posibilities that mencoder provides.
As time goes by, i will try to impruve my output files, once i get a deeper knowledge and practice with mencoder.
Miguel, I agree, as a beginner, I found the documentation very hard to follow because you do really need to understand quite a bit about video. I found that simply trying to encode a bunch of different things, reading about and trying different parameters, and looking at the results, thing slowly started to make more sense to me. It does take a while to start feeling comfortable with all the terminology and different things you need to know. For encoding DVDs, you really need to read through Chapter 8 (unfortunately it hasn't been translated into the Spanish version!). It's very important to understand how the DVD is encoded so that you can properly re-encode it. Many DVDs will require certain filters depending on how the DVD was encoded, otherwise you could end up with a poor quality rip. In addition, you'll find that two pass encodings will produce much better results than a single pass. They'll also be somewhat smaller (about 10-20%, I find). Unfortunately, the example in the Spanish docs (7.1 Codificacion MPEG-4 en 2 or 3 pasadas) is not a particularly good example. It does a 2 pass encoding but does a 3rd pass for audio which isn't necessary. Modifying their example, I would do something like this instead: Pass #1: mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null Pass #2 mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac mp3lame -lameopts vbr=3 -o pelicula.avi The first pass sends the output to /dev/null because the AVI output isn't needed. What's needed is the divx2pass.log file that's generated. The second pass encodes both audio and video. It will use the information from divx2pass.log to further refine the encoding which will produce higher quality output and a smaller .avi. This is simply a generic example, though. Depending on the original DVD, you made need to apply certain filters. Hope this helps. Buena suerte. Pete
Hi, On 9/21/05, Pete Davis <pete@petedavis.net> wrote:
the marvelous MPlayer documentation found at http://www.mplayerhq.hu/DOCS/HTML/en/index.html . Pay special attention to chapters 7 and 8, which go into detail on the mysteries of video encoding using MEncoder.
Really, I tried to do so. But i simply couldnt understand much. My problem is that i know nothing about image/video processing. To be honest, i tried with the spanish version, but i see now it is some out of date. And i get lost with the english version.
However, the real problem _for me_ is, imho, the high level (or not for novice) of the help. I think it requires a previous knowledge of video stream, formats, etc etc
Newcommers, like me, just pretend to decryp a dvd without having a deep knowledge of all the posibilities that mencoder provides.
As time goes by, i will try to impruve my output files, once i get a deeper knowledge and practice with mencoder.
Miguel, I agree, as a beginner, I found the documentation very hard to follow because you do really need to understand quite a bit about video.
I found that simply trying to encode a bunch of different things, reading about and trying different parameters, and looking at the results, thing slowly started to make more sense to me. It does take a while to start feeling comfortable with all the terminology and different things you need to know.
For encoding DVDs, you really need to read through Chapter 8 (unfortunately it hasn't been translated into the Spanish version!).
If you are willing to translate it, I'm sure that this will be greatly appreciated. [..]
Unfortunately, the example in the Spanish docs (7.1 Codificacion MPEG-4 en 2 or 3 pasadas) is not a particularly good example. It does a 2 pass encoding but does a 3rd pass for audio which isn't necessary.
Modifying their example, I would do something like this instead:
Pass #1:
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null
Pass #2
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac mp3lame -lameopts vbr=3 -o pelicula.avi
I do not think this is a good example, though I have not double checked myself: you should process "almost" the same audio data on both pass, otherwise you may/will end-up with A/V desync. You may for example do -oac mp3lame -lameopts vbr=3:aq=9 on first pass to reduce the amount of time sucked up by the mp3 encoding. Guillaume -- Reading doesn't hurt, really! -- Dominik 'Rathann' Mierzejewski
Hi,
the marvelous MPlayer documentation found at http://www.mplayerhq.hu/DOCS/HTML/en/index.html . Pay special attention to chapters 7 and 8, which go into detail on
On 9/21/05, Pete Davis <pete@petedavis.net> wrote: the
mysteries of video encoding using MEncoder.
Really, I tried to do so. But i simply couldnt understand much. My problem is that i know nothing about image/video processing. To be honest, i tried with the spanish version, but i see now it is some out of date. And i get lost with the english version.
However, the real problem _for me_ is, imho, the high level (or not for novice) of the help. I think it requires a previous knowledge of video stream, formats, etc etc
Newcommers, like me, just pretend to decryp a dvd without having a deep knowledge of all the posibilities that mencoder provides.
As time goes by, i will try to impruve my output files, once i get a deeper knowledge and practice with mencoder.
Miguel, I agree, as a beginner, I found the documentation very hard to follow because you do really need to understand quite a bit about video.
I found that simply trying to encode a bunch of different things, reading about and trying different parameters, and looking at the results, thing slowly started to make more sense to me. It does take a while to start feeling comfortable with all the terminology and different things you need to know.
For encoding DVDs, you really need to read through Chapter 8 (unfortunately it hasn't been translated into the Spanish version!).
If you are willing to translate it, I'm sure that this will be greatly appreciated.
[..]
Unfortunately, the example in the Spanish docs (7.1 Codificacion MPEG-4 en 2 or 3 pasadas) is not a particularly good example. It does a 2 pass encoding but does a 3rd pass for audio which isn't necessary.
Modifying their example, I would do something like this instead:
Pass #1:
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null
Pass #2
mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac mp3lame -lameopts vbr=3 -o pelicula.avi
I do not think this is a good example, though I have not double checked myself: you should process "almost" the same audio data on both pass, otherwise you may/will end-up with A/V desync.
You may for example do -oac mp3lame -lameopts vbr=3:aq=9 on first pass to reduce the amount of time sucked up by the mp3 encoding.
Guillame, I don't know about the inner workings of mencoder, but almost EVERY encoding I've done for the past several months has had -oac copy for the first pass and -oac mp3lame ... for the second pass. This includes mpeg-2 to mpeg-4 conversion from my hauppauage capture card, DVD to mpeg-4 encodings, as well as mpeg-4/AC3 to mpeg-4/MP3 encodings. I have never once experienced audio-video desync with any of my conversions using this method. That's not to say it's not possible. I'm sure you know better than I. But I have never experienced it over a pretty wide range of encodings. Pete
Guillame, I don't know about the inner workings of mencoder, but almost EVERY encoding I've done for the past several months has had -oac copy for the first pass and -oac mp3lame ... for the second pass. This includes mpeg-2 to mpeg-4 conversion from my hauppauage capture card, DVD to mpeg-4 encodings, as well as mpeg-4/AC3 to mpeg-4/MP3 encodings.
I have never once experienced audio-video desync with any of my conversions using this method.
That's not to say it's not possible. I'm sure you know better than I. But I have never experienced it over a pretty wide range of encodings.
I will give it a try to see i can notice any difference... -- Saludos, miguel
Pete Davis wrote:
You may for example do -oac mp3lame -lameopts vbr=3:aq=9 on first pass to reduce the amount of time sucked up by the mp3 encoding.
Guillame, I don't know about the inner workings of mencoder, but almost EVERY encoding I've done for the past several months has had -oac copy for the first pass and -oac mp3lame ... for the second pass. This includes mpeg-2 to mpeg-4 conversion from my hauppauage capture card, DVD to mpeg-4 encodings, as well as mpeg-4/AC3 to mpeg-4/MP3 encodings.
I have never once experienced audio-video desync with any of my conversions using this method.
That's not to say it's not possible. I'm sure you know better than I. But I have never experienced it over a pretty wide range of encodings.
Same here. I have done this with all sorts of material and never had sync issues... and I usually scale, change the frame rate, and hardsub when I encode. Perhaps there are some filters that are troublesome?
On Tue, 20 Sep 2005 22:26:54 +0200 miguel gmail <miguel.listas@gmail.com> wrote:
mencoder dvd://1 -o whatevermovie.avi -oac copy -ovc lavc -vf scale 1024:800 -lavcopts vcodec=mpeg4 (all one line)
However, the output movie doesnt have a very high quality. It seems to be very ´pixelized´
The default bitrate is 800 which is pretty low, only really suitable for half size video. Set a higher one. Scaling up before encoding is pointless and wasteful. You should encode at the original size or less. If the pixels are not square set the aspect so they get displayed correctly. Crop off any black borders though make sure the dimensions you encode are divisble by 16. Those are the most important things, the rest is just option twiddling for diminishing returns. Martin
Am Dienstag, 20. September 2005 22:26 schrieb miguel gmail:
Hi,
this is my first mail to this list. Hope i am not posting a stupid question and i could express myself in english.
I am trying to use mencoder to extract a movie off a dvd. The command i use is like:
mencoder dvd://1 -o whatevermovie.avi -oac copy -ovc lavc -vf scale 1024:800 -lavcopts vcodec=mpeg4 (all one line)
However, the output movie doesnt have a very high quality. It seems to be very ´pixelized´
See http://mplayerhq.hu/DOCS/HTML-single/en/MPlayer.html#mencoder
I am using SuSE 9.3, with mplayer and mencoder downloaded from Packman, a well known rpm source for suse distro.
Is there something i could do to impruve the results?
What about http://www.kde-apps.org/content/show.php?content=21455 ? Regards, Matthias
participants (7)
-
Dominik 'Rathann' Mierzejewski -
Guillaume POIRIER -
Martin Collins -
Matthias Wieser -
miguel gmail -
Pete Davis -
Phil Ehrens