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 23rd June 2013, 17:55   #1  |  Link
ChibiBoi
Registered User
 
Join Date: Dec 2004
Posts: 50
Problem importing H264 HD video

It seems like a lot of people have this problem where using DGAVCIndex on HD H264 footage gives them blocks in the video that weren't there before. I'm having the same issue, and I haven't been able to find a solution to it on the internet.

So I tried alternative ways of loading my .TS files. I tried extracting the video into .MKV format and using FFMSIndex and FFVideoSource to load it, but it messes up the framerate for some reason when I load it into AviSynth (it doubles it, or converts it into variable frame rate??) And also when I try to play the video in MeGui's preview window unfiltered, it creates a jerky, stuttering movement where it plays the video forward a few frames, then jumps back one or two frames, then plays the video forward again.

I've also tried using DirectShowSource but I don't think it's handling the interlaced footage very well. It gives me this weird color dropping/ghosting especially with red colors. It's like blended frames, but it messes up the colors.

Does anyone have suggestions as to what I should do? I've attached a little clip:
http://www.mediafire.com/download/tr...m_clip_clip.ts

Last edited by ChibiBoi; 23rd June 2013 at 18:00.
ChibiBoi is offline   Reply With Quote
Old 23rd June 2013, 18:17   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
DGDecNV and DGAVCDecDI both can handle it without any issues.
Guest is offline   Reply With Quote
Old 23rd June 2013, 18:27   #3  |  Link
ChibiBoi
Registered User
 
Join Date: Dec 2004
Posts: 50
Quote:
Originally Posted by neuron2 View Post
DGDecNV and DGAVCDecDI both can handle it without any issues.
I didn't consider DGDecNV since I have an Intel graphics card. For DGAVCDecDI are there any other requirements besides the DiAVC decoder?
ChibiBoi is offline   Reply With Quote
Old 23rd June 2013, 18:48   #4  |  Link
creaothceann
Registered User
 
Join Date: Jul 2010
Location: Germany
Posts: 357
What about DSS2 ?
creaothceann is offline   Reply With Quote
Old 23rd June 2013, 18:56   #5  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Try LWLibavVideoSource.
Groucho2004 is offline   Reply With Quote
Old 23rd June 2013, 20:16   #6  |  Link
ChibiBoi
Registered User
 
Join Date: Dec 2004
Posts: 50
Quote:
Originally Posted by creaothceann View Post
What about DSS2 ?
Quote:
Originally Posted by Groucho2004 View Post
DSS2 has the same problem :-/
LWLibavVideoSource freezes the program for me
EDIT: LWLibavVideoSource works!
EDIT: Actually, LWLibavVideoSource loads the video without any blocks or color drops or other artifacts, but it somehow increases the video length (looks like it doubles it?)

Last edited by ChibiBoi; 23rd June 2013 at 20:25.
ChibiBoi is offline   Reply With Quote
Old 23rd June 2013, 20:46   #7  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by ChibiBoi View Post
...but it somehow increases the video length (looks like it doubles it?)
Yes I can confirm that, DGDecNV returns 660 frames and LWLibavVideoSource returns 1320.

Last edited by Reel.Deel; 23rd June 2013 at 21:20.
Reel.Deel is offline   Reply With Quote
Old 23rd June 2013, 21:41   #8  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
Quote:
Originally Posted by Reel.Deel View Post
Yes I can confirm that, DGDecNV returns 660 frames and LWLibavVideoSource returns 1320.
Set repeat=true .

Quote:
+ repeat (default : false)
Reconstruct frames by the flags specified in video stream and then treat all frames as interlaced if set to true and usable.
If set to false, video frames consisting of two separated field coded pictures are displayed twice consecutively.
Currently, I don't distinguish PAFF field coded pictures and pulldown flags.
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software

Last edited by VFR maniac; 23rd June 2013 at 21:47.
VFR maniac is offline   Reply With Quote
Old 23rd June 2013, 21:56   #9  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by VFR maniac View Post
Set repeat=true.
Just tried that but it still returns double the frames.
Reel.Deel is offline   Reply With Quote
Old 23rd June 2013, 22:03   #10  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
Hmmm? It's weird.

Sorry, unfortunately my PC (motherboard) is dead.
I can't test, confirm and debug that.

EDIT:
Reel.Deel, your file is a raw H.264 stream?
Libavcodec returns no PTS for some file formats, and we can't get frames in presentation order for such files.
Therefore, as long as seeking by frame number (the way LWLibavVideoSource does), repeat=true won't work for them.
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software

Last edited by VFR maniac; 23rd June 2013 at 22:20.
VFR maniac is offline   Reply With Quote
Old 23rd June 2013, 22:28   #11  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
No the file is in a .ts container. It's the sample that the OP uploaded.
Remuxing to mkv solves the issue.

Edit:
Don't know if this any help to you but after your (bottom) post I thought the original file might be corrupted.
So I used TSMuxer to remux to TS and M2TS but the problem is still there.

Last edited by Reel.Deel; 23rd June 2013 at 22:51. Reason: Additional info
Reel.Deel is offline   Reply With Quote
Old 23rd June 2013, 22:39   #12  |  Link
VFR maniac
Spinner of yarns
 
VFR maniac's Avatar
 
Join Date: May 2009
Posts: 164
So, some PTSs returned by libavformat are invalid in that TS file I guess.

Invalid PTSs are an annoying issue for frame-accurate seek.
It is solved if the libavcodec parser returned POC though.

I may send a patch to libav to support returning POC.
__________________
僕と契約して、L-SMASH developerになってよ!
L-SMASH | L-SMASH Works | Opus-in-ISOBMFF specification and reference software
VFR maniac is offline   Reply With Quote
Old 23rd June 2013, 23:03   #13  |  Link
ChibiBoi
Registered User
 
Join Date: Dec 2004
Posts: 50
Quote:
Originally Posted by VFR maniac View Post
So, some PTSs returned by libavformat are invalid in that TS file I guess.

Invalid PTSs are an annoying issue for frame-accurate seek.
It is solved if the libavcodec parser returned POC though.

I may send a patch to libav to support returning POC.
Interesting. It was captured with the Hauppauge HD PVR2 and Arcsoft Showbiz, then cut with VideoReDo

Quote:
Originally Posted by Reel.Deel View Post
No the file is in a .ts container. It's the sample that the OP uploaded.
Remuxing to mkv solves the issue.
Quote:
Originally Posted by VFR maniac View Post
Set repeat=true .
Looks like it's working!

Last edited by ChibiBoi; 24th June 2013 at 04:04.
ChibiBoi is offline   Reply With Quote
Old 27th June 2013, 08:40   #14  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,743
Cool, repeat=true works with my TS files (recorded on hdtv) encoded in interlaced h264, otherwise I get 50 fps instead of 25.

Quote:
Originally Posted by VFR maniac View Post
So, some PTSs returned by libavformat are invalid in that TS file I guess.

Invalid PTSs are an annoying issue for frame-accurate seek.
It is solved if the libavcodec parser returned POC though.

I may send a patch to libav to support returning POC.
Great.
Music Fan 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 16:41.


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