PDA

View Full Version : Mencoder - Blocky Artifacts - very first couple offrames only and only from DVD


nkarnold
3rd March 2008, 00:01
Hello

When i use mencoder (any SVN or RC), i get the exact same problem (only from DVD's) (Win32)
For the very first few frames of the encoded video, i see large blocky artifacts. just for a split second and then there gone.

I've stripped my command line right down to bare minimum and they are still present

Interestingly enough, if i use
x264encopts and x264 = still blocky
xvidencopts and xvid = still blocky
lavc vcodec=mpeg4 - still blocky

But if I encode from a file, its crystal clear as it should be, so it looks to be DVD related.

My 'stripped' command line looks like this :-
mencoder dvd://1 -dvd-device "R:\" -of lavf -lavfopts format=avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800 -o c:\new.avi -chapter
02-02 -endpos 00:00:10

Example of what i mean in terms of video blocks
http://img87.imageshack.us/img87/1015/image1sh5.jpg

This is very nearly the same corruption everytime for a DVD that starts with a black screen (99% do)

When I start at a chapter, I get something like this
http://img341.imageshack.us/img341/9736/image2iz5.jpg

again only for about 0.5 seconds and then the video is fine.

ANY help much appreciated.

Regards

N

Dark Shikari
3rd March 2008, 00:14
Perhaps you're starting at a point other than a keyframe?

Mr VacBob
3rd March 2008, 03:22
This is a bug in mencoder. Use -vf pullup.

Also, avi output is the default, and isn't this the wrong forum?

nkarnold
3rd March 2008, 11:39
Hi
Thanks for the response.

My full command line is
dvd://1 -dvd-device "D:\" -oac lavc -of lavf -lavfopts format=mp4:i_certify_that_my_video_stream_does_not_use_b_frames -ovc lavc -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:vbitrate=1024:acodec=aac:abitrate=128 -af volnorm -vf scale=720:-10,harddup -aid 0x80 -ofps 24000/1001 -Chapter 07-07 -noodml -o "C:\Test.mp4"

Which does produce the .MP4 files that are in the QuickTime screenshots. Sorry if i caused confusion with the previous command line, which was clearly muxing into AVI.

I have tried added pullup and pullup,softskip to the VF chain above and it made no difference.