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 31st August 2011, 07:15   #1  |  Link
chipzoller
Mr. Woof
 
chipzoller's Avatar
 
Join Date: Jan 2002
Location: USA
Posts: 784
ffmpegsource2 Blank initial frame

I'm getting an error when trying to open an MKV VC-1 BluRay stream (2048 x 1080, 29.97) using ffmpegsource2 (v2.16) in avsp: "Insanity detected: decoder returned an empty frame". I've tried changing several parameters including seekmode with no joy. Apparently, ffdshow x64 will not play this stream back via libavcodec but WMVideo decoder DMO in Windows 7 will. This is the first problem I've had opening such streams via FFMS2 and can't figure out what in this stream is causing it to fail. I've even tried re-muxing the video stream to MKV again with no luck. Any ideas?
chipzoller is offline   Reply With Quote
Old 31st August 2011, 19:26   #2  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
Try ffvidesource("derp.mkv", threads=1). The error message means exactly what it says though; for some reason libavcodec decided to output a frame without any data in it. Before 2.16 the behavior with such frames was just to crash.
TheFluff is offline   Reply With Quote
Old 31st August 2011, 20:27   #3  |  Link
chipzoller
Mr. Woof
 
chipzoller's Avatar
 
Join Date: Jan 2002
Location: USA
Posts: 784
No change. FWIW, this is a stream extracted from my "Life" box set (Attenborough). Every one has opened without a hitch and was progressive; the last, "Plants", is proving problematic and also interlaced. I've tried extracting the stream several times with eac3to provided with MeGUI (svn 2028).
chipzoller is offline   Reply With Quote
Old 31st August 2011, 21:25   #4  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
Provide a sample and I'll take a look.
TheFluff is offline   Reply With Quote
Old 31st August 2011, 22:48   #5  |  Link
chipzoller
Mr. Woof
 
chipzoller's Avatar
 
Join Date: Jan 2002
Location: USA
Posts: 784
Thanks for your help. First 5 seconds here: http://www.mediafire.com/?zp29i622rha0i3i
chipzoller is offline   Reply With Quote
Old 31st August 2011, 23:36   #6  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
Quote:
Originally Posted by chipzoller View Post
Thanks for your help. First 5 seconds here: http://www.mediafire.com/?zp29i622rha0i3i
Quote:
Originally Posted by libavcodec
[vc1 @ 0x3c220] Interlaced frames/fields support is not implemented
I guess that explains why it doesn't output anything. It also answers the mystery of whether interlaced VC-1 works in FFMS2 or not with a resounding "no".
TheFluff is offline   Reply With Quote
Old 31st August 2011, 23:38   #7  |  Link
chipzoller
Mr. Woof
 
chipzoller's Avatar
 
Join Date: Jan 2002
Location: USA
Posts: 784
Ah, that would explain it. Any other suggestions as to what I can use as a source plugin/function?
chipzoller is offline   Reply With Quote
Old 1st September 2011, 01:50   #8  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
dss2() will probably work for your purposes. Another alternative is DGDecodeNV.
TheFluff is offline   Reply With Quote
Old 1st September 2011, 02:08   #9  |  Link
chipzoller
Mr. Woof
 
chipzoller's Avatar
 
Join Date: Jan 2002
Location: USA
Posts: 784
Oddly, DirectShowSource() and dss2() will open the 5 second sample but not the complete video file (10.9GB). dss() gives me a "can't open" error code 80004005 and DirectShowSource() a timeout waiting for graph to start.
chipzoller is offline   Reply With Quote
Old 1st September 2011, 02:22   #10  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
You sample works just fine with DGDecNV. This is the only source filter I know that handles interlaced VC1 correctly.
Guest is offline   Reply With Quote
Old 1st September 2011, 02:24   #11  |  Link
chipzoller
Mr. Woof
 
chipzoller's Avatar
 
Join Date: Jan 2002
Location: USA
Posts: 784
Unfortunately, I don't have an Nvidia GPU or else I would gladly spend the $15 for a license.
chipzoller is offline   Reply With Quote
Old 1st September 2011, 06:54   #12  |  Link
TheRyuu
warpsharpened
 
Join Date: Feb 2007
Posts: 787
Use this (assuming you're running Windows 7) to make sure that VC1 is using the Microsoft decoders for both 32 and 64bit.

Then try dss2 again.
TheRyuu is offline   Reply With Quote
Old 1st September 2011, 07:00   #13  |  Link
chipzoller
Mr. Woof
 
chipzoller's Avatar
 
Join Date: Jan 2002
Location: USA
Posts: 784
Thanks for the advice but I still get the same error regardless of whether MS or ffdshow is used as the decoder of choice.
chipzoller is offline   Reply With Quote
Old 1st September 2011, 07:11   #14  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
I find it really odd that it works with the sample but not with the full file. DirectShow graph debugging can be really annoying, but I guess that's what you'll have to start doing. Grab GraphStudio or something and start poking at it; also try with other smaller parts of the file and see what happens.

Last edited by TheFluff; 1st September 2011 at 07:14.
TheFluff is offline   Reply With Quote
Old 1st September 2011, 13:01   #15  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
Quote:
Originally Posted by chipzoller View Post
Unfortunately, I don't have an Nvidia GPU or else I would gladly spend the $15 for a license.
You can install a $50 GT520 card alongside your ATI card, assuming you have a PCIe slot available. That card has the VP5 engine, which is the fastest to date for CUVID by a large margin.
Guest is offline   Reply With Quote
Old 1st September 2011, 22:31   #16  |  Link
chipzoller
Mr. Woof
 
chipzoller's Avatar
 
Join Date: Jan 2002
Location: USA
Posts: 784
I might consider doing that in the future, but I'd like to figure this out first. I've never had the need to mess with GraphEdit and so am unsure about how I can construct a graph to have avisynth pick it up for processing. When I render this file, it connects to WMVideo Decoder DMO. If I change VC-1 decoder to wmv9 in ffdshow x64 I can have it renderable in directshow filters with other players, but how can I force that behavior elsewhere? Even when I set the merit to high in ffdshow I can't render the file in the editor.
chipzoller is offline   Reply With Quote
Old 2nd September 2011, 01:18   #17  |  Link
TheRyuu
warpsharpened
 
Join Date: Feb 2007
Posts: 787
Can you upload a slightly larger sample that has a reproducible failure (I can take a look at it)?
TheRyuu is offline   Reply With Quote
Old 2nd September 2011, 05:10   #18  |  Link
chipzoller
Mr. Woof
 
chipzoller's Avatar
 
Join Date: Jan 2002
Location: USA
Posts: 784
1.5 minute clip here: http://www.mediafire.com/?8adtciod2oy8odb

EDIT: That sample doesn't exhibit the problem I am experiencing. However, I tried splitting larger chunks from the problematic file and found that even dividing it in half produced 2 perfectly fine files. I just combined them back into a whole file and while ffmpegvideosource() still complains, dss2() will render the file now. Really bizarre

Last edited by chipzoller; 3rd September 2011 at 00:26. Reason: update
chipzoller is offline   Reply With Quote
Old 5th September 2011, 19:17   #19  |  Link
chipzoller
Mr. Woof
 
chipzoller's Avatar
 
Join Date: Jan 2002
Location: USA
Posts: 784
Thanks again, guys, for offering to help me out with this.
chipzoller 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 12:02.


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