Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
24th January 2016, 07:05 | #1 | Link |
Registered User
Join Date: Jan 2016
Posts: 28
|
QTGMC help for a complete beginner having serious struggles...
Hi all. About 2 weeks ago I posted this thread to the Sony Vegas Creative COW forum asking for ideas as to how I could take interlaced TV footage and convert it to 50fps video I can use in Sony Vegas. The deinterlacing methods available in Vegas are primitive and I'm looking to get the best out of the footage I've got. In summary, I want my 1080i (or 576i occasionally) video to be editable in 50fps unlike the 25fps I'm usually forced to work with. The footage I use appears best when using the 'Bob' deinterlacer in VLC.
It was suggested in the thread I posted to look into QTGMC with Avisynth ('in conjunction with VirtualDub', of which I can't appreciate the relevance at this point). I read the absolute basics on the wiki, downloaded the skeleton, but got stuck at the point it asked me to load an .avi file, which I rarely come across in my editing. I tried to find a plugin that would allow me to load .ts files, but had no luck, when windows media player told me it could not open the file. I used an .avs file that read this: Code:
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\ffms2.dll") FFmpegSource2("x:/filename.ts") I'm looking to start fresh, and I am extremely keen to learn and would be incredibly grateful for any help I may get from this forum. I'm not sure if many people come here with no previous posts looking to get quick answers, but I understand how annoying that may seem. I'm hoping to get a working solution within maybe a week, but Avisynth appears to be an extremely helpful resourse - as of now I use MediaCoder to trim and convert footage, so I'd love to replace this with a more all-encompassing method. I've probably left some important information out, so if this is super vague I'm happy to expand on it. Thanks Also, if anyone wants an example of the kind of footage I'm dealing with, I took a section from a 576i video using VLC and uploaded it to MEGA here. It's from a football game, so safe for work. Last edited by LilWiz; 24th January 2016 at 07:10. |
24th January 2016, 08:38 | #2 | Link | |
Registered User
Join Date: Sep 2005
Location: Vancouver
Posts: 600
|
Quote:
Your script is wrong. Read the docs for FFmpegSource2 for more info on proper usage. Here is one way: Code:
FilePath = "x:\filename.ts" A = FFAudioSource(FilePath) V = FFVideoSource(FilePath) AudioDub(V,A) LoadPlugin is redundant because you already have the plugin in the autoload directory. But leaving it in wouldn't cause a problem. |
|
24th January 2016, 11:19 | #3 | Link |
Registered User
Join Date: Jan 2015
Posts: 47
|
Well you can create a script and open it in a media player and it will just play the video with said filters applied (assuming there weren't any errors in the script). If you want to render the script so you can use it in vegas then you have a couple of choices: open that script in virtualdub and save it as avi (this can be lossless or lossy depending on the codec you choose in virtualdub, IIRC the default is uncompressed), otherwise you can use x264 (or really most command line encoders have support for avisynth and if they don't there are workarounds for that) to input the avisynth script or you can use a gui for x264 or so like megui.
Also with a .ts source I'd suggest using dgindex (or variants) as source filter, don't think ffsource even supports .ts sources properly. Verstuurd vanaf mijn SM-A500FU met Tapatalk |
24th January 2016, 11:43 | #4 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
As for a suitable script for the sample you posted, this looks pretty good to me:
Code:
LWLibavVideoSource("vlc-record-2016-01-12-21h36m08s-20160110 rangers-cowdenbeath english.ts-.ts") a = LWLibavAudioSource("vlc-record-2016-01-12-21h36m08s-20160110 rangers-cowdenbeath english.ts-.ts") AssumeTFF() QTGMC(Preset="Slow") AudioDub(last, a) Last edited by Groucho2004; 24th January 2016 at 12:26. |
27th January 2016, 09:16 | #5 | Link |
Registered User
Join Date: Jan 2016
Posts: 28
|
Thanks very much for all the helpful and prompt replies everyone! I redownloaded the QTGMC plugins and got the LSMASH plugin also (hopefully I have done everything corrrectly!)
I feel far closer to success than before! As Groucho suggested, my .avs file now reads: Code:
LWLibavVideoSource("x:\vlc-record-2016-01-12-21h36m08s-20160110 rangers-cowdenbeath english.ts-.ts") a = LWLibavAudioSource("x:\vlc-record-2016-01-12-21h36m08s-20160110 rangers-cowdenbeath english.ts-.ts") AssumeTFF() QTGMC(Preset="Slow") AudioDub(last, a) Code:
AVI Filter Import error: (Unknown) (80040154) Once again, thanks for the prompt and extremely helpful replies guys! EDIT: Here are the contents of the avisynth plugins folder, just in case it's relevant. There are probably a couple of plugins in there that are unnecessary; should I leave or remove them? Last edited by LilWiz; 27th January 2016 at 09:26. |
27th January 2016, 10:23 | #8 | Link |
Registered User
Join Date: Jan 2016
Posts: 28
|
The file is now opening in VirtualDub! Plus it looks excellent.
I do have one slight problem, and I guess it might not be relevant in this thread any more, but the projected output file size if I choose to save as an avi is around 4.5Gb, over 100x the size of the original file! Maybe I should have expected this, but is there a way to cut down on this size? It seems ridiculously large, doesn't it? 1080i clips would be huge |
27th January 2016, 11:34 | #10 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
|
|
27th January 2016, 11:43 | #11 | Link |
Registered User
Join Date: Jan 2016
Posts: 28
|
Here's some more info.
The original file details are below: Code:
General ID/String : 30559 (0x775F) CompleteName : x:\vlc-record-2016-01-12-21h36m08s-20160110 rangers-cowdenbeath english.ts-.ts Format : MPEG-TS FileSize/String : 38.0 MiB Duration/String : 1mn 16s OverallBitRate_Mode/String : Variable OverallBitRate/String : 4 148 Kbps Video ID/String : 69 (0x45) MenuID/String : 1 (0x1) Format : MPEG Video Format_Version : Version 2 Format_Profile : Main@Main Format_Settings_BVOP/String : Yes Format_Settings_Matrix/String : Custom Format_Settings_GOP : Variable Format_Settings_PictureStructure : Frame CodecID : 2 Duration/String : 1mn 16s BitRate_Mode/String : Variable BitRate/String : 3 749 Kbps BitRate_Maximum/String : 15.0 Mbps Width/String : 704 pixels Height/String : 576 pixels DisplayAspectRatio/String : 16:9 FrameRate/String : 25.000 fps Standard : PAL ColorSpace : YUV ChromaSubsampling : 4:2:0 BitDepth/String : 8 bits ScanType/String : Interlaced ScanOrder/String : Top Field First Compression_Mode/String : Lossy Bits-(Pixel*Frame) : 0.370 TimeCode_FirstFrame : 13:32:37:19 TimeCode_Source : Group of pictures header Gop_OpenClosed/String : Open StreamSize/String : 34.2 MiB (90%) Audio ID/String : 68 (0x44) MenuID/String : 1 (0x1) Format : MPEG Audio Format_Version : Version 1 Format_Profile : Layer 2 CodecID : 3 Duration/String : 1mn 16s BitRate_Mode/String : Constant BitRate/String : 192 Kbps Channel(s)/String : 2 channels SamplingRate/String : 48.0 KHz Compression_Mode/String : Lossy Video_Delay/String : 8ms StreamSize/String : 1.75 MiB (5%) Language/String : English EDIT: Okay, so I need to change the codec in the Compression menu? I have 7 other options, I'll see how it looks with some of those. Thanks again! Last edited by LilWiz; 27th January 2016 at 11:49. |
27th January 2016, 11:55 | #12 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Yes. However, the options that VDub comes with are very limited. As I wrote, first decide what target format you want. This choice mainly depends on the playback device you are going to use. Also, VirtualDub can be configured to use external encoders like x264.
|
27th January 2016, 12:03 | #13 | Link | |
Registered User
Join Date: Jan 2016
Posts: 28
|
Quote:
|
|
27th January 2016, 15:10 | #14 | Link |
Registered User
Join Date: Sep 2005
Location: Vancouver
Posts: 600
|
It's silly to use XviD as an intermediate codec these days (and probably ever).
You originally said "I'm looking to get the best out of the footage I've got." That would mean using a lossless intermediate, in 4:2:0 if your sources are all transport streams -- and assuming Vegas can properly handle 4:2:0 with whatever editing/filters you will be applying. Use Fast Recompress in VirtualDub to avoid conversion to RGB. A lossless 4:2:0 file will still be much bigger than your input, but a fraction of uncompressed RGB. My personal favourites are Ut Video and MagicYUV, but there are others. |
14th December 2017, 21:32 | #15 | Link |
Registered User
Join Date: Jun 2015
Location: France
Posts: 46
|
That thread is quite old, but I'm surprised noone mentioned AVFS : you can avoid having to export a huge intermediate lossless file by opening the AVS script with Avisynth Virtual File System, which, as its name implies, will create a virtual uncompressed file in a "C:\Volumes" directory. It won't occupy significant space on the system partition (despite the huge size displayed in Windows explorer), but it will behave just like an uncompressed video file created with the same Avisynth script would : you can read it with a media player, or you can directly import it in any non-linear editing software. You may need to configure ffdshow for raw YUV footage to be recognized by those softwares (ffdshow video decoder configuration > Uncompressed video > toggle "all supported formats").
http://turtlewar.org/avfs/ |
Tags |
qtgmc |
Thread Tools | Search this Thread |
Display Modes | |
|
|