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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th April 2013, 06:49   #1  |  Link
wqcr
Registered User
 
Join Date: Sep 2007
Posts: 24
Troubles with DirectShowSource and MTS

Hello,
for the last 7 days I've been trying to convert 1080i MTS video to 720p@50fps using Avisynth+QTGMC. Everything works fine but the resulting clip sort of "lags" at the beginning and on the end. At first I thought it is caused by ffdshow, so I switched to CoreAVC, but the problem persisted, even with Skip deblocking is selected.
This is the script I use:

Code:
Directshowsource("00083.mts")
AssumeTFF
QTGMC( preset="very fast" )
Spline36Resize(1280, 720)
Converting procedure: load AVS into Virtualdub, select Fast Recompress, output codec Lagarith and Save AVI
As MT 2.6 QTGMC version is inefficient on my CPU, I try to run two instances of VDub with the source video splitted into two parts, so any kind of "lags" that would appear only on the beginning and on the end are now in the middle of the clip.

Is there any way how to fix those "lags"?
I've already tried DSS2, but with no reasonable results (VBR>CBR). Perhaps how to completely avoid DirectShowSource when loading MTS files to Avisynth?

Thanks!
PS: Link to the resulting clip (xvid mpeg4): link
wqcr is offline   Reply With Quote
Old 24th April 2013, 14:39   #2  |  Link
wqcr
Registered User
 
Join Date: Sep 2007
Posts: 24
OK, I got it to work somehow using DGAVCDec (oldie, but goodie, thanks Neuron2) and AVCSource.
A bit of warning though, DGAVCDec probably doesn't support MTS files, so you need to demux them to TS (with TSMuxer). Then you load your TS file to DGAVCIndex, save project, call the project file from Avisynth script and voila! It works, even with seeking. But it's truly tedious work, so I am still open for better solution.

Edit: False alarm, it does not work well, DGAVCDec introduced some artefacts to the video

Last edited by wqcr; 24th April 2013 at 15:51.
wqcr is offline   Reply With Quote
Old 24th April 2013, 17:32   #3  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,559
Have you tried FFVideoSource ?
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 24th April 2013, 20:17   #4  |  Link
wqcr
Registered User
 
Join Date: Sep 2007
Posts: 24
Quote:
Originally Posted by Selur View Post
Have you tried FFVideoSource ?
Yes and it was the worst actually. The clip "lagged" for the entire length and FFMpeg through Virtualdub even reported "Seeking is severely broken".
wqcr is offline   Reply With Quote
Old 27th April 2013, 08:25   #5  |  Link
wqcr
Registered User
 
Join Date: Sep 2007
Posts: 24
I believe I've located the problem - AVISYNTH and VIRTUALDUB. Both are unable to decode properly using directshowsource. Video Enhancer used the same set of Directshow plugins and no problems, unfortunately it generates some "weird" avis that Virtualdub report with error and is unable to resave them.
So my thought of a workaround - use ffdshow video decoder and apply the avisynth script through it, then use VfW enabled converter to decode MTS through directshow and convert it to Matrox MPEG2 iFrame AVI

Now it breaks down - can anybody please recommend me some VfW enabled video converter that can import through directshow?

What puzzles me though, AVCHD (MTS) is one of the most widespread formats for semi-pro and consumer use. After 7 years of AVCHD existence I cannot believe that the only way to import it to Avisynth is through DSS. MPEG-2 has similar frame sequence, yet it is no problem to load it (mpeg2source). Perhaps I am doing something wrong as this topic is not much discussed, like the only one who has difficulties importing MTS is me.
wqcr is offline   Reply With Quote
Old 27th April 2013, 09:03   #6  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,559
Quote:
After 7 years of AVCHD existence I cannot believe that the only way to import it to Avisynth is through DSS.
Normally FFVideoSource, LWLibavVideoSource, DGDecNV and if the video stream is MPEG-2, DGDecode should also work.
__________________
Hybrid here in the forum, homepage

Last edited by Guest; 27th April 2013 at 13:55. Reason: corrected spelling of DGDecNV
Selur is offline   Reply With Quote
Old 28th April 2013, 07:02   #7  |  Link
wqcr
Registered User
 
Join Date: Sep 2007
Posts: 24
Quote:
Originally Posted by Selur View Post
Normally FFVideoSource, LWLibavVideoSource, DGDecNV and if the video stream is MPEG-2, DGDecode should also work.
LWLibavVideoSource is finally working well (even audio is synced)! Thanks, Selur for your suggestions.
wqcr is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.