Why sony vegas can't open this video? Can it be because YV12 codec?
http://youtu.be/-KuGdr_RRGg
+ Reply to Thread
Results 1 to 25 of 25
-
-
Yes, might be. YV12 is a very basic color format, yet, Microsoft YUV converter does not handle it because it is planar. You have to assign a codec which will actively convert it. There are several excamples of VfW codecs providing such a conversion in addition, e.g. Xvid or ffdshow's VfW codec. Unfortunately, as convenient as the user interface of ffdshow's VFW Codec Configuration may be, it does not reliably register VfW codec associations after it has been installed, so you may have to use RegEdit to fix that...
-
The codec in an AVI file is identified by a fourcc -- a four letter code that indicates what codec is used. Even if the video is uncompressed it needs to have a fourcc to tell the program that opens it what uncompressed format the data is in. Try using installing ffdshow and enabling the YV12 fourcc decoder. Or install some other YV12 decoder.
Last edited by jagabo; 8th Dec 2014 at 19:28.
-
IOW, It may not need to be De-Compressed, but it still needs to be De-Coded. That needs SOME codec.
Scott -
Do you want to do some tests? Don't install anything, and try importing these into vegas . It's hard for me to do "clean out of the box" tests because all my computers have a bunch of codecs and junk installed
They are just 3 clips, 3 frames each, 640x360, YUV 4:2:0 uncompressed, but different fourcc's - I420, IYUV, YV12
Vegas should import I420, IYUV natively (at least I think it should), and it should decode it with studio RGB levels. The YV12, if you have a YV12 decoder installed should get computerRGB treatment -
You can specify an output type for ffdshow's encoder configuration. For uncompressed output, it probably defaults to RGB, but you can change it. After selecting "uncompressed" click on "generic" and you'll see the output option.
I've never used Vegas, but you could try disabling all the output types in ffdshow's decoder configuration aside from YV12 (and maybe NV12). It's under "Output" in the ffdshow VFW configuration (and also the ffdshow DirectShow configuration). When ffdshow is decoding you should be able to hover the cursor over the ffdshow icon and the tooltip will tell you the input and output video type.
I'm not exactly sure how it works, but I'm pretty sure programs can tell ffdshow their preference for video type and ffdshow will convert it to that format if it can. If you disable the RGB output options that may solve the problem. Changing the "primary output colour space" setting to YV12 might also fix it without needing to disable the RGB output options.
-
-
-
What didn't work, saving the video as an uncompressed AVI in YV12 format or setting the ffdshow decoder to only output RGB? What program are you using to save the video as an uncompressed AVI? I can definitely open an AVI with VirtualDub, set the compressor as the ffdshow video codec and then configure ffdshow to output the correct type. It might help if you describe your process in a little more detail.
If Vegas can open AVIs, there's probably a way to avoid the large file problem with the help of Avisynth. I don't know if you use it but one method would be to create a basic Avisynth script for opening the original video. Once you create the script you can open it with MakeAVIS. It usually comes along for the ride when you install ffdshow, although I don't think there's a start menu shortcut for it. You need to navigate to the folder where ffdshow is installed and run it manually or create your own shortcut. MakeAVIS will "wrap" the AVISynth script into an AVI. You should be able to open the AVI with any program capable of opening one and AVISynth will frame serve uncompressed video. Doing it that way tends to be a bit slower when it comes to navigating but the AVI in question will only be a few MBs in size and you don't need to spend time converting to an uncompressed format. MakeAVIS can also add the audio to the AVI it creates in the form of uncompressed LPCM, or alternatively you can open the AVI with VirtualDub, add audio such as MP3 or AC3 or DTS and save it while using Direct Stream Copy for the audio and video. You'll end up with an AVI the size of the audio stream plus a few more MBs. That way you can import the AVI and edit the video and audio together as you normally would. You can even open the AVI with VirtualDub and edit, and if you use DirectStream copy for the audio and video when saving you'll still only have an AVI the size of the audio stream plus a few MBs.
By default, I don't think AVISynth files are enabled in ffdshow's decoder configuration (under codecs). You'll probably need to enable that for it to work.
Rather than use MakeAVIS, I use the AVISynth Wrapper Codec. It works in much the same way as MakeAVIS except it installs a right click Explorer option "wrap into AVI". Right click on an AVISynth script, select "wrap into AVI" and it'll create one for you. VirtualDub can open it, add the audio and save that as a new AVI. I've attached it as it's hard to find these days.
Or there's the Avisynth Virtual File System.
If you want to give any of that a shot and you're not familiar with AVIsynth someone will be able to help you to create a basic script for opening video once the type of source file is known. That's all the script needs to do, although you can add filtering to it before wrapping it into an AVI if you want to. -
-
of course i used virtualdub. i did how you showed. uncompressed AVI in YV12 with ffdshow couldn't open in sony vegas.
uum, if i understand right i already created untitled.avs and opened it with virtualdub. the source file is mkv. so i used DirectShow filters(don't understand what it actually is) as it is mkv. and you mean remuxing i guess. But since i hardcode subtitles it needs encoding. i am satisfied with utvideo video codec. -
Thank you so much. it is really fast. and sony can handle it. i didn't notice that lossless codecs are so fast. and i think the file size is really matters to speed. cuz uncompressed video at YUV420 file size was 3 times huge than lossles ut codec at YUV420.
by the way UtVideo RGB VCM codec gives error in virtualdub: unable to initialize video compression.Last edited by chazz spacey; 9th Dec 2014 at 11:02.
-
i use virtualdub for hardcode subtitles beacuse sony can't add subtitles. it needs plugin which costs $99.95 and called Vegasaur. so i wanted to save video without quality loss then to edit it in sony vegas. so i just saved them uncompressed without playing with lossless codecs. and i thought they will be slow. but after ut codec it is ok.
-
-
Using subtitle filter for virtualdub is faster than messing around with script.
and i hate scripts!
What you mean?
Wow. That is a very good idea. I must try it. -
I mean - Is the reason for using vegas to edit the video, that already has hardsubs on it ? Why are you using vegas ? What are you doing with the subs ? It's difficult to edit the video and keep the timing, unless the subs are hardcoded - Is that what you are doing ? Unless you export the edited video then retime the subs in another program.
Basically you use masksub() , but it requires avisynth and a 2 line script . Encoding will be faster, filesize will be much smaller because a transparent overlay with subs only will compress very well compared to "normal" content
See this
https://forum.videohelp.com/threads/364265-Importing-SRT-subtitles-into-Premiere-Pro-CC...00#post2319000 -
So "didn't work" meant Vegas couldn't open it, not that ffdshow was outputting RGB when YV12 was selected etc? I wasn't clear on exactly where the problem was.... whether you'd managed to get ffdshow to output uncompressed YUV.
So many ways do do things....
If you open the MKV directly with Virtualdub and the ffmpeg input plugin, and you choose "fast recompress" for the video, the output will be uncompressed but should be the same format as the source. ie YV12 in, YV12 out. The same should apply to opening an Avisynth script, as long as the decoder doesn't convert to another format.
It did just occur to me the "normal" and "full" VirtualDub compression modes output RGB by default. I don't know why, or whether you're aware of it, but the output format can be set under the Video/Color Depth menu. Could VirtualDub be doing the converting to RGB? If it is, and you can force the UT Video Codec to compress it as YV12 it might be converting it too.
That's omething else to maybe keep in mind..... I've never used the Ut Video Codec myself, but generally lossless codecs that can compress different types of video can also convert from one format to another. Sometimes you can limit the input and output formats but it's very possible a codec can compress lossless YV12 video and output RGB because that's what a program says it prefers. I'm not saying that's what's happening or it's something you necessarily need to worry about too much, but it's something to keep in mind.
DirectShowSource tends to be a "last resort" decoding method, although if you're just re-encoding a video from start to finish it's usually fine. The main problem is it's not frame accurate so you can't rely on it for accurate seeking/editing while decoding/encoding. One of the most commonly used Avisynth decoding methods for video in MKVs would be FFMS2. You'd open an MKV with FFMS2 instead of DirectShowSource something like this:
LoadPlugin("C:\Program Files\ffms2.dll")
FFVideoSource("E:\video.mkv", threads=1)
You can probably add the subtitles to the AVISynth script, wrap the script into an AVI, open the AVI with Vegas and the subtitles should be included with the video as though they're already hard-coded, and you should be able to edit in Vegas normally. There's definitely times when creating a lossless intermediate file is a good idea, or a necessity, but if the sort of thing you're doing at the moment is the sort of thing you'll be doing regularly, frameserving with AVISynth can save a fair bit of time.
There's a utility called AVISynthesizer that can help to automate opening video with Avisynth. It lets you create script templates and adds a shortcut to the Windows SendTo menu. Right click on a video file and select SendTo/Avisynthesizer and it'll open a menu displaying your script templates. Pick one and it creates the script for you. Then if need be I can right click on the script, select "wrap into AVI" and I'm ready to frameserve.
Here's a few examples of basic Avisynthesizer script templates if you're interested in playing with it at some stage (they're templates I use).
Just opening via DirectShow:
#ASYNTHER DirectShowSource
[DirectShowSource("%f")]
#ASYNTHER 25fps - DirectShowSource - No Audio
[DirectShowSource("%f", audio=false, fps=25, convertfps=true)]
#ASYNTHER FFMS2 - Video Only
LoadPlugin("C:\Program Files\ffms2\ffms2.dll")
[FFVideoSource("%f", threads=1)]
An Avisynth based encoder GUI such as MeGUI might be worth a bit of time getting to know. It'll open files, index them for you and create a script for encoding which you can easily edit if need be. MeGUI also has an AVS Cutter under the tools menu which opens a script and lets you add multiple start and end points for encoding using a preview, much like VirtualDub's editing. It can add straight edits or basic fades etc to a script and add the subtitles for encoding. I generally don't leave AviSynth-land unless there's a necessity. A script created by MeGUI including subtitles and edits might look something like this:
LoadPlugin("C:\Program Files\MeGUI\tools\ffms\ffms2.dll")
FFVideoSource("E:\video.mkv", threads=1)
Spline36Resize(1280,720)
LoadPlugin("C:\Program Files\MeGUI\tools\avisynth_plugin\VSFilter.dll")
TextSub("D:\test.srt", 1)
__film = last
__t0 = __film.trim(0, 6513)
__t1 = __film.trim(7215, 9436)
__t2 = __film.trim(9481, 12547)
FadeOut0(__t0, 10, fps=AudioRate(__film)) ++ FadeIO0(__t1, 10, fps=AudioRate(__film)) ++ FadeIn0(__t2, 10, fps=AudioRate(__film))Last edited by hello_hello; 9th Dec 2014 at 20:36.
-
nevermind
Thank you. i'll try. when you said overlay subtitles some memory flashes happened and then i remembered that video.
https://www.youtube.com/watch?v=pelPO-xNO7U
cuz i was stucked with this problem too. but didn't use it. maybe this time i'll use this software(Subtitle Workshop). -
Thank you very much hello_hello for such a guide.
and yes:
So "didn't work" meant Vegas couldn't open it, not that ffdshow was outputting RGB when YV12 was selected -
Ok, you 're complaining about vegasaur's price? Lemony is used in that video. Lemony is nice but more expensive and doesn't integrate directly with vegas. Moreover, it doesn't support ASS subs. So if you had ASS fancy subs, fonts, styles, animation and effects, it wouldn't work. The free avisynth method supports ASS -