PDA

View Full Version : Unable to decode a 2vuy with RawSource


mp3dom
3rd September 2007, 11:09
Hi to all.
I have a raw 2VUY file (all capital) 4:2:2 8bit coming from a CineWave/Targa board (with Liquid Chrome 6 as software) that I'm unable to correctly decode with RawSource (trying all possible pixel type allowed by the plugin)
If I decode as a uyvy pixel type I get the most "corrected" image (I have the right colors) but in every frame (720x486) I have 2 half images (like both fields separated) that scrolls up and down. Could be a little variaton to the standard 2Vuy by BlackMagic? Anyway I dunno how to correctly decode the file. Any idea?
Thanks!

Leak
3rd September 2007, 11:40
Hi to all.
Any idea?
Yes - a sample would make things so much easier... :p

bill_baroud
3rd September 2007, 12:09
You most likely have some padding byte between frames, so you need to find how much and use the index parameter provided by Rawsource.

mp3dom
3rd September 2007, 15:42
I have tried the yuvscan.exe to analyze the file but without a result (no value).
Anyway I have a demo of the file. It's a colorbar video in NTSC format (720x486, 29.976fps, 120 frames, 80 MB) that WinRAR compress to 62 KB (amazing!)
Please let me know if you need a longer file (in length).
Thanks!

tateu
4th September 2007, 02:40
Open the file in a hex editor. You can see that it has a 1024 byte header. Also, each field is stored separately (720x243). Try:

Rawsource("Test.2VUY", 720, 243, "UYVY", index="0:1024")
AssumeFieldBased()
Weave()

mp3dom
4th September 2007, 09:42
Wow! It looks perfect! Thanks tateu! Thanks again!

Smetvid
14th October 2007, 12:14
I found this very usefull as well since I work with the same 2Vuy files.

How hard would it be for an export option to this same 2vuy format? I noticed FFmpeg now has support for the Avid DNX format and I started to get excited that perhaps the 2vuy format could be added to FFmpeg as well. Could the format be forced by just doing a raw output but formatting it a special way?