My 720 x 480i videos are YV12. I'm using Huffyuv because some Avisynth filters only work in VirtualDub so I make a lossless file. Then I convert the lossless file to h264.
Does Huffyuv only output RGB32?
Is there any reason why I should NOT keep my video in RGB32. The videos will end up as 720 x 480i on a Bluray disc for viewing on my TV.
+ Reply to Thread
Results 1 to 28 of 28
-
Last edited by VideoFanatic; 17th Aug 2013 at 11:31.
-
My video is YV12. So do I just load my MPEG2 script as normal into VirtualDub but add the Info() line and it will say what colour space the video will be output in, is that correct? It says YV12. Or does that just tell you what colour space your video is already before you output?
After the lossless file is created I used MediaInfo on the AVI and it says it's RGB which I don't understand? The only thing in my script was RemoveSpotsMC(last, 0).
I don't have "Always suggest RGB format for output" enabled. -
have you used directshowsource to load your mpeg2 or mpeg2source ?
*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE -
Sometimes mediainfo is wrong. Open the exported AVI up with AVISource() and use Info()
Are you using any vdub filters ? or are you using video=>fast recompress (this will prevent any colorspace conversions)
My video is YV12. So do I just load my MPEG2 script as normal into VirtualDub but add the Info() line and it will say what colour space the video will be output in, is that correct? It says YV12. Or does that just tell you what colour space your video is already before you output? -
Info() tells you information about the video at the point in the script you invoke it. So
Code:AviSource() Info() ConvertToYV12()
Code:AviSource() ConvertToYV12() Info()
-
OK my source video is YV12. I loaded the following script into VirtualDub and it said the video is YV12.
Code:setmtmode(5,9) Mpeg2Source("X:\Video with Comets.d2v", CPU=6) setmtmode(2) RemoveSpotsMC(last, 0) RemoveSpotsMC(last, 0) Separatefields() RemoveSpotsMC(last, 0) RemoveSpotsMC(last, 0) RemoveSpotsMC(last, 0) Weave() Info()
Code:AviSource("X:Video with Comets after Huffyuv.avi") Info()
-
As I said earlier, make sure the "Always suggest RGB format for output" option is NOT enabled. Make sure you didn't do anything in VirtualDub (in your first compression from AviSynth to Huffyuv) that caused the video to be converted to RGB. Generally, that means no filtering in VirtualDub and make sure VirtualDub output color depth isn't forced to RGB (Video -> Color Depth).
Huffyuv can't save in YV12. Only YUY2 or RGB. If you want AviSynth to perform the YV12 to YUY2 conversion use ConvertToYUY2(interlaced=true) at the end of your script. If you want VirtualDub to do the conversion use Video -> Color Depth -> Output Format to Compressor/Display -> 4:2:2 YCbCr (YUY2).Last edited by jagabo; 17th Aug 2013 at 17:58.
-
The first sentence seems to contradict the 2nd?! If Huffyuv only saves in YUY2 or RGB then how could I do anything to cause it to save in RGB instead of YV12?!
If I just load my source video with a script as simple as this: Info() then save as AVI, then load an identical script with the AVI as the source then it says the video is RGB32 which is to be expected isn't it?
I made sure I unticked "always suggest RGB format for output. I haven't changed any settings in VirtualDub from the defaults.
Can someone clarify this issue for me please: Some filters require YV12. So in my future Huffyuv scripts I will be converting from RGB32 (what Huffyuv encodes as by default) to YV12. When doing a lossy encoding you lose picture quality when converting the colour space so do you still lose quality like that when making a lossless video with Huffyuv? -
HuffYUV does not encode to RGB32 unless it receives RGB32, you have it set to encode as RGB, and you have the Enable RGBA option enabled.. You have some setting in VirtualDub that's causing the conversion to RGB.
Last edited by jagabo; 17th Aug 2013 at 20:13.
-
I suspect VideoFanatic is viewing the script in VirtualDub and saving in "full processing mode". VirtuaLDub will always output RGB unless the user selects YUY2 as "Color depth", set compression to YUY2, and set processing to "fast recompress". Huffyuv compresses only to RGB or YUY2. If you want YV12, use Lagarith.
Last edited by sanlyn; 25th Mar 2014 at 07:20.
-
-
I'm using Lagarith now as it supports YV12. Most of my scripts use YV12. However the last step in my script does this: ConvertToRGB32(interlaced=true) RGBAdjust(1.0, 1.0, 1.1, 1.0, 0.0, 0.0, 0.0, 0.0, 1.00) Converttoyv12(interlaced=true)
My videos were taped off TV in 720 x 480i. Is there any reason why I can't just keep the conversions as RGB instead of losing quality converting back to YV12 (as shown above). The videos will be muxed to a Bluray sturcture. -
You can probably leave the video RGB. Unless something you are doing downstream requires YV12. RGB will be bigger. RGB is 3 bytes per pixel, YUY2 is 2 bytes per pixel, YV12 is 1.5 bytes per pixel.
Which means they'll end up YV12 in the end. -
Just noticed that. My h264 encoder converts the RGB file into YV12 automatically. Is RGB not compatible with Bluray then?
-
*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
-
I've been using VirtualDub for many years so I don't remember what the original defaults were. In any case, on the Color Depth dialog there's a Save As Defaults button. So you can specify what you want as the default every times VirtualDub starts.
-
Well....yes, I'm aware of saving the default setup, but it seems most people use VirtualDub for RGB filters. So if you don't want to save as whatever default colorspace you've set, you still have to change the setting every time you want a different colorspace. My point to VideoFanatic is that he should check whatever default colorspace his VirtualDub installation is using, and change it if or when necessary. When VirtualDub is first installed, it saves to RGB24 by default. If you don't want the RGB default, change it.
Last edited by sanlyn; 25th Mar 2014 at 07:21.
-
I changed no settings in VirtualDub apart from in Lagarith I set it to output YV12 and it does so.
I don't know if you guys know this but I was getting fed up of VirtualDub not remembering settings when I loaded the program - for example I had to select the compression codec I wanted every time I started the program. To make it remember your settings, do this:
File, Save Processing Settings, save in your VirtualDub plugins folder as whatever you want. Note that your settings won't load automatically. You have to load them manually. To load automatically you can make a shortcut as follows:
Right-click on the "VirtualDub.exe" file and create shortcut. In Properties for the shortcut go to the end of the Target box and type: " /s.\plugins\Lagarith.vcf"
Replace the bold text with whatever you called your settings file. Now whenever you open VirtualDub your settings are loaded automatically. -
You can change the default output colorspace with:
1. "Video..."
2. "Color depth..."
3. Set the default output color depth you want.
4. Click"Save As default"
Other project settings are saved as .vcf's, as you describe. Many VDub users do this all the time, there's nothing unusual about it. If you want different settings you have to change them, just as you would with almost any other software.Last edited by sanlyn; 25th Mar 2014 at 07:21.
-
Want my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS -
-
"Same As Decompression Format" is not the installed default for that column.
Last edited by sanlyn; 25th Mar 2014 at 07:21.
Similar Threads
-
Present state of play with B&W conversion to Colour
By GeneLamp in forum Newbie / General discussionsReplies: 39Last Post: 30th Jun 2013, 19:03 -
regarding color spaces
By Aston in forum Newbie / General discussionsReplies: 3Last Post: 6th Mar 2013, 12:27 -
Spaces between syllables in karaoke subtitles
By Headof$ecurity in forum SubtitleReplies: 0Last Post: 10th Oct 2011, 18:36 -
VHS-C playback issue, playback in B&W and distorted/noisy colour.
By jpoel in forum Newbie / General discussionsReplies: 4Last Post: 11th Aug 2010, 09:36 -
Spaces in Srt Dialogue
By Soixante in forum SubtitleReplies: 1Last Post: 10th Oct 2008, 16:49