Author Topic: interlaced vc-1 with mencoder + wmvvc1dmo + x264  (Read 2387 times)

Offline Selur

  • Member
  • Posts: 247
    • View Profile
    • Hybrid
interlaced vc-1 with mencoder + wmvvc1dmo + x264
« on: July 20, 2011, 11:10:41 PM »
Being aware of the problem, that libav can't handle interlaced vc-1 atm. I thought about using the windows dmo decoder in mencoder to handle the problem (copying wmv9dmod.dll into the codecs folder) and calling:
Code: [Select]
mencoder -v "G:\Hybrid\test - clips\vc-1 interlaced no sound.mkv" -vfm dshow -o "D:\Encoding Output\mencoderInternal.mp4" -vf yadif=0 -ovc x264 -nosoundthe output was fine.

Since I prefer to use an external x264 build instead of compiling (or downloading a already build) mencoder each time a x264 update comes I thought
Code: [Select]
mencoder "G:\Hybrid\test - clips\vc-1 interlaced no sound.mkv" -vfm dshow -ovc raw -noskip -vf scale,format=i420,yadif=0,scale,format=i420 -forcedsubsonly -nosub -nosound -mc 0 -lavdopts threads=8 -really-quiet -ofps 30000/1001 -of rawvideo -o - | x264 --crf 18 --direct auto  --fps 30000/1001 --input-res 1920x1080 --output "D:\Encoding Output\external.mp4" - would do it.
Problem is: it doesn't, the colorspace seems to be distorted.


I uploaded the source to http://www.multiupload.com/H6RXCUUJRL (around 17.5MB) .

Since I remember of getting this working a year ago or so I'm wondering that I'm doing wrong. (don't think this is a bug in mencoder or x264, but a problem caused by stupid-user-action)

If someone knows/figures out how to fix this, please post. :)

Thanks!

Cu Selur

Offline J_Darnley

  • Global Moderator
  • Member
  • *****
  • Posts: 397
    • View Profile
Re: interlaced vc-1 with mencoder + wmvvc1dmo + x264
« Reply #1 on: July 21, 2011, 01:15:29 AM »
Problems like that are usually due to someone specifying the wrong frame size.  But that should give a diagonal distortion.  That looks more like there was some fixed number of bytes before the frame.  ...  Does mencoder output anything but the video on stdout?
Knowledgeable about: cmd.exe, ffmpeg, x264

Offline Selur

  • Member
  • Posts: 247
    • View Profile
    • Hybrid
Re: interlaced vc-1 with mencoder + wmvvc1dmo + x264
« Reply #2 on: July 21, 2011, 01:21:03 AM »
Quote
Does mencoder output anything but the video on stdout?
I hope not, that's why I added: -really-quiet

ARGH,.. just did a:
Code: [Select]
mencoder "G:\Hybrid\test - clips\vc-1 interlaced no sound.mkv" -vfm dshow -ovc raw -noskip -vf scale,format=i420,yadif=0,scale,format=i420 -forcedsubsonly -nosub -nosound -mc 0 -lavdopts threads=8 -really-quiet -ofps 30000/1001 -of rawvideo -o d:\test.yuv > test.txt and checked the text.txt

and it wasn't empty, it contained:
Code: [Select]
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
-> ARGH!!!

+ @J_Darnley: Thanks !! For the help!!

Cu Selur
« Last Edit: July 21, 2011, 01:24:20 AM by Selur »