FFVideosource crashing

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
User avatar
Daramue
BUTTERCUP!
Joined: Mon Aug 03, 2009 11:27 am
Org Profile

FFVideosource crashing

Post by 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?
I created/designed my own anime blog. Maybe check it out sometime? - >http://www.daramue.com

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: FFVideosource crashing

Post by 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
Daramue
BUTTERCUP!
Joined: Mon Aug 03, 2009 11:27 am
Org Profile

Re: FFVideosource crashing

Post by 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.
I created/designed my own anime blog. Maybe check it out sometime? - >http://www.daramue.com

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: FFVideosource crashing

Post by 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

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: FFVideosource crashing

Post by 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.

User avatar
irriadin
BUBBLES!
Joined: Tue Jun 07, 2005 11:59 pm
Status: I fight for my friends
Location: Los Angeles, California
Org Profile

Re: FFVideosource crashing

Post by 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.

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: FFVideosource crashing

Post by 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.

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: FFVideosource crashing

Post by 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

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: FFVideosource crashing

Post by 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.

User avatar
irriadin
BUBBLES!
Joined: Tue Jun 07, 2005 11:59 pm
Status: I fight for my friends
Location: Los Angeles, California
Org Profile

Re: FFVideosource crashing

Post by irriadin » Thu Mar 29, 2012 5:49 pm

remuxed the h264 files into an .mp4 container, still getting insanity errors :/

Locked

Return to “AviSynth Help”