FFVideosource crashing

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

FFVideosource crashing

Postby Daramue » Tue Mar 27, 2012 7:06 pm

When running VirtualDub and trying to export an AVI, it will always end up crashing with an error message something like this: "FFVideosource Insanity error: decoder returned an empty frame." See: http://code.google.com/p/ffmpegsource/i ... tail?id=74

So, are there any other frame-accurate libraries I can use to import .mkv video files into virtual dub?
User avatar
Daramue
BUTTERCUP!
 
Joined: 03 Aug 2009

Re: FFVideosource crashing

Postby mirkosp » Tue Mar 27, 2012 7:38 pm

Call it like
Code: Select all
ffvideosource("file.mkv", seekmode=0)

Since you are doing linear decoding when transcoding in vdub, there won't be the speed drop from the random seeking, and this should fix the insanity error.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: FFVideosource crashing

Postby Daramue » Tue Mar 27, 2012 8:26 pm

mirkosp wrote:Call it like
Code: Select all
ffvideosource("file.mkv", seekmode=0)

Since you are doing linear decoding when transcoding in vdub, there won't be the speed drop from the random seeking, and this should fix the insanity error.


Tried that, still crashes while transcoding with the "insanity" error.
User avatar
Daramue
BUTTERCUP!
 
Joined: 03 Aug 2009

Re: FFVideosource crashing

Postby mirkosp » Tue Mar 27, 2012 10:24 pm

Very weird, first time that I see seekmode 0 failing to solve an insanity error. Out of curiosity, what kinda mkv are you dealing with? Remuxed BDs can be tricky, and you should most definitely be using neuron2's tools with those.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: FFVideosource crashing

Postby Mister Hatt » Tue Mar 27, 2012 11:54 pm

Try remuxing it, or confirm it's MKV. Insanity error tends to only come up in poorly muxed MP4, so I wonder if someone just renamed an MP4 or something to MKV. It's generally a container issue and not video stream itself.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: FFVideosource crashing

Postby irriadin » Wed Mar 28, 2012 4:30 pm

I've been trying to help Daramue fix this. Tried renaming all the files to mp4 and it still came up with the insanity error. I rendered the episode that was giving him trouble all by itself and it worked fine. That makes me think I did something wrong in writing the combining script. What did I do wrong here?

Code: Select all
loadplugin("\VirtualDub\plugins\ffms2.dll")
video1 = ffvideosource("filename.mkv", seekmode=0)
video2 = ffvideosource("filename.mkv", seekmode=0)
video3 = ffvideosource("filename.mkv", seekmode=0)
video4 = ffvideosource("filename.mkv", seekmode=0)
video5 = ffvideosource("filename.mkv", seekmode=0)
video6 = ffvideosource("filename.mkv", seekmode=0)
video7 = ffvideosource("filename.mkv", seekmode=0)
video8 = ffvideosource("filename.mkv", seekmode=0)
video9 = ffvideosource("filename.mkv", seekmode=0)
video10 = ffvideosource("filename.mkv", seekmode=0)
video11 = ffvideosource("filename.mkv", seekmode=0)
video12 = ffvideosource("filename.mkv", seekmode=0)
video13 = ffvideosource("filename.mkv", seekmode=0)
video14 = ffvideosource("filename.mkv", seekmode=0)
video15 = ffvideosource("filename.mkv", seekmode=0)
video16 = ffvideosource("filename.mkv", seekmode=0)
video17 = ffvideosource("filename.mkv", seekmode=0)
video18 = ffvideosource("filename.mkv", seekmode=0)
video19 = ffvideosource("filename.mkv", seekmode=0)
video20 = ffvideosource("filename.mkv", seekmode=0)
video21 = ffvideosource("filename.mkv", seekmode=0)
video22 = ffvideosource("filename.mkv", seekmode=0)
video23 = ffvideosource("filename.mkv", seekmode=0)
video24 = ffvideosource("filename.mkv", seekmode=0)
video25 = ffvideosource("filename.mkv", seekmode=0)
video26 = ffvideosource("filename.mkv", seekmode=0)
video27 = ffvideosource("filename.mkv", seekmode=0)
combined = video1+video2+video3+video4+video5+video6+video7+video8+video9+video10+video11+video12+video13+video14+video15+video16+video17+video18+video19+video20+video21+video22+video23+video24+video25+video26+video27
return combined


obviously, I changed the path here to hide certain details.
User avatar
irriadin
BUBBLES!
 
Joined: 07 Jun 2005
Location: PA
Status: I fight for my friends

Re: FFVideosource crashing

Postby Mister Hatt » Thu Mar 29, 2012 12:19 am

Insanity error is caused by it being mp4 in the first place. I said to remux it. Also ffms2 isn't a vdub plugin but no need to explain that. On the side, avs doesn't like splicing more than a certain number of clips.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: FFVideosource crashing

Postby mirkosp » Thu Mar 29, 2012 12:28 am

Mister Hatt wrote:On the side, avs doesn't like splicing more than a certain number of clips.

But yatta generated scritps can handle o9k presets just fine... :uhoh:
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: FFVideosource crashing

Postby Mister Hatt » Thu Mar 29, 2012 3:08 am

As someone who once did a bit over 10,000 trims, it doesn't. It is a way higher number than 27 clips though, but it might dislike it due to VFR or non-aligned splicing or some other stupidness.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: FFVideosource crashing

Postby irriadin » Thu Mar 29, 2012 5:49 pm

remuxed the h264 files into an .mp4 container, still getting insanity errors :/
User avatar
irriadin
BUBBLES!
 
Joined: 07 Jun 2005
Location: PA
Status: I fight for my friends

Re: FFVideosource crashing

Postby Mister Hatt » Sun Apr 01, 2012 5:32 am

I'm sorry but at what stage did anyone say you need to make it MP4, especially given that MP4 IS THE ACTUAL PROBLEM HERE (most likely.) The recommendation was to remux it as MKV so that it gets a proper Matroska created index.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you

Re: FFVideosource crashing

Postby irriadin » Sun Apr 01, 2012 8:50 am

Mister Hatt wrote:I'm sorry but at what stage did anyone say you need to make it MP4, especially given that MP4 IS THE ACTUAL PROBLEM HERE (most likely.) The recommendation was to remux it as MKV so that it gets a proper Matroska created index.


You never explicitly said to remux it to MKV, just to "remux it." Anyway, we're just rendering each episode individually and it's working perfectly.
User avatar
irriadin
BUBBLES!
 
Joined: 07 Jun 2005
Location: PA
Status: I fight for my friends

Re: FFVideosource crashing

Postby Mister Hatt » Mon Apr 02, 2012 12:40 am

You're right, it was only implied. However, I was rather obviously explain MP4 was the cause. If it's working for you, then awesome. In future events, try muxing to MKV, as doing so will rebuild the index (which is part of the container) and thus prevent any seek issues in lavf.
Mister Hatt
 
Joined: 25 Dec 2007
Status: better than you


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest