mencoder quality low
Ok, it's my first day here and my second thread, but this just occured to me.
I've been using mplayer and mencoder for less than a week and really like it on the whole. I'm using them on SuSE 8.2 on a really nice Compaq nx9005 with a whizzing 1.8GB processor and 256MB of RAM, so no really performance issues.
The question I have is this: I've tried using both 2 and 3 pass encoding of a couple of DVD's I borrowed from a friend, but find that the quality really isn't very good unless I crank up the bitrate to silly proportions (1800 plus) which then makes a 1.6GB file. Whew! Man, that's just too big! :)
I know nothing about video technology, so small steps (and small words) would be appreciated. The only thing that occurs to me is this: I have a couple of DivX's (avi's) from a friend and they are both in a much smaller, "letterbox" format and the clarity and resolution are perfect!
If I rescale the DVD's at rip time, will this go a long way toward improving quality and making the file sizes smaller? I'd like to keep the films to 2 CD's max.
Thanks in advance for all replies.
1) what commands are you using?
2) have you tried my program? http://acidrip.sf.net
Glad to see your reply! I've read some of your postings, so that's why I joined linuxquestions! (flattery, flattery).
I've just downloaded it and will give it a go when I get home.
Here are the commands I've used so far:
2 pass encoding:
mencoder -dvd 1 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o movie.avi
mencoder -dvd 1 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o movie.avi
3 pass option:
mencoder -dvd 1 -ovc frameno -oac mp3lame -lameopts vbr=3 -o frameno.avi
mencoder -dvd 1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=<bitrate>
mencoder -dvd 1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=<bitrate>
The quality until now (and I've only done two versions of one DVD - Buena Vista Social Club (100 minutes long) has been grainy and what I can only describe as "mosaic" - that is, blocky segments instead of clean, crisp resolution.
A colleague here at work reckons it's due to the file sizing itself just like it does when I play the DVD - a large square in the center of the screen rather than a nice, smaller "letterbox" shape.
The MEncoder docks say that resizing (rescaling) is a bad thing. Don't know what to try first, to be honest.
saliong isn't a problem really... in theory it's not as good, but hey... that's life. works fine for me.
add some extra options to lavcopts, e.g "vhq:vqmin=2". if you're going to encode manually, i'd suggest doing a -vop cropdetect before hand and whopping off any widescreen bands for extra quality.
i also habbitually resize to about 480 to 560 by whatever.... you really need to work out the average bits per pixel value, and aim to hit around 0.20 for a good divx quality. less and it's ugly, more and you're throwing away file space that could be used to actually encode at a larger dimension etc....
personally i noramlly only encode 1pass, and it's fine for me.
I don't really follow what you mean about the pixel values(honestly, I know nothing about this technology). Can you give me a bigger hint plus a site where I might can learn more? Do I need an extra bit of software to figure out these pixel values?
Or could you give me an example based on one of the lines of script I'm running currently (that is, does it matter where in the string of commands I place any of your suggested options?).
I apologize if it sounds like I'm lazy. I'd just like to rule out any user errors due to me being new at this (and copy the two disks before my friend starts to miss them too much).
Would this be right for a possible cleaner option?
mencoder -dvd 1 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy vhq:vqmin=2 scale=640:480 -o my_movie.avi
Thanks for your help.
this is a little script one of the mencoder guys wrote.... there is an indepth discussion of bpp in the mplayer mailing list if you search for "calcbpp.pl" in google....
mencoder dvd://1 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 vhq:vqmin=2 -vop scale=640:480 -o my_movie.avi -oac mp3lame -lameopts abr:br=128
just noticed you're using audio copy... hell no wonder the fiels were so big!
Thanks for all that. The Perl stuff goes a bit over my head, but I'll find that google posting you mentioned and read up on it.
Thanks, too, for the script. I'll take that home now (just going home) and run it on that DVD.
I'd really like to learn more about this. Had no idea that the copy option for the sound was the problem - just followed the guidelines in the docs. Should have guessed, though. Makes sense on reflection (but then, most things do, I suppose).
I'll let you know how the general quality pans out.
Really appreciate your time.
I took your suggested values home and had a go.
The first run failed (seems my mencoder doesn't like the "://" redering. I also found I had to put the values in a different order to get it to accept them (said I hadn't selected any -oac values when I first tried the given format).
Anyway, it ran and the quality was pretty good, but it still has some blocky output. I'll try a second pass rendering tonight.
I also just printed out an article I found when searching for the perl script you printed above:
Again, the first string of entries listed failed:
mencoder dvd://1 -o /dev/null -oac copy -ovc lavc \
To me, not surprising as it was directed to /dev/null to start with. Hmmm.....
I removed this and moved the -oac settings around and it ran, but still produces one big block in the center of the screen rather than the nice "letterbox" format. I'll keep reading and keep experimenting.
And I haven't forgotten about your acidrip! I need to install the other components first and then I'll give it a go.
Are there any pointers or things I should be mindful of since you first put this out that might make using it more successful?
Thanks in advance for your help.
well the biggest thing there is still that you are straight copying the audio, so are including a 400kbps stream rather than a more suitable 128kbps in mp3 format.
/dev/null is being used as that is the first pass, and so you only really want the divx2pass.log file, not the actual video.
Thanks. Any ideas why the script failed with /dev/null included? Only ran once I took that out.
Also, I just used it as is the first time, but put in your suggested mp3lame settings on the second go. Output wasn't that bad.
You mentioned that this would produce a log file (I'm assuming like with the 2 pass method I've used up to now). Will this de facto increase the quality or have I misunderstood? You mentioned you use single pass encoding with good results.
One last point that struck me when trying to encode "Crouching Tiger" last night: I did a test run of about 45 seconds and found when I played it back it had the commentary as default and not the Mandarin or English soundtrack. How weird is that?
|All times are GMT -5. The time now is 10:46 PM.|