Import issues - MKV

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
User avatar
RolltheStampede
Joined: Tue Jun 15, 2004 8:02 pm
Location: Seattle, WA
Contact:
Org Profile

Re: Import issues - MKV

Post by RolltheStampede » Wed Jun 03, 2009 9:12 pm

Vax wrote:Try to use a ffmpegsource.
Download it from this Doom9 thread. Get the 1.21 version, not the beta. put the dll in your avisynth plugins folder (usually c:\program files\avisynth 2.5\plugins), and create a script with

Code: Select all

ffmpegsource("path to video file", vtrack=-1, atrack=-1)
I had a similar problem with .MKV before. And this is how I got it fixed.

hi you seem pretty knowledgable about this. could you use the avs file and edit it directly in premiere using the mkv import instead of running it through Vdub.
sort of like a dgindex file.

im at work so i cant try it first hand yet
Newest Video:Cirque du Kaliedo
Image
Video Pimpage Loves got to be there | Sungazing | 7 Seas of Enishi

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Re: Import issues - MKV

Post by Kariudo » Thu Jun 04, 2009 12:09 am

that should work just fine (as fine as any other script would), ffmpegsource() is frame-accurate as well
Image
Image

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

Re: Import issues - MKV

Post by mirkosp » Fri Jun 05, 2009 7:09 pm

Yeah, as Kariudo said, direct avs editing with ffmpegsource does work just fine. However, I should note that it tends to be sensibly slower than direct avs on d2v files, since the mkvs are most likely to contain a lossy video stream which means that not all the frames are keyframes, hence the slower editing. You can notice this especially when you try to move "backwards" between frames or when you just move between far points in the source file or in the timeline. The "backwards" thing is especially noticeable if you try to export one clip with the speed reversed. It will take a lot of time. I think that exporting it with the normal speed, importing that exported clip, time-reversing it and re-exporting might take less time.
So yeah, depending on your system setup, editing with avs directly with ffmpegsource might or might not be a good idea, it's up to you, and in any case it will be slower than d2v.
Image

User avatar
Ardour
Joined: Sun May 03, 2009 2:44 am
Status: Spazzy
Location: On Top of a Strawberry Ice Cream Cake
Contact:
Org Profile

Re: Import issues - MKV

Post by Ardour » Wed Oct 21, 2009 10:45 pm

Okay, so I'm having a problem with getting the script open in VD.
Image
I followed everything in the thread to the best of my abilites. I was also wondering about the 1.21 version of ffmpegsource because I could only find version 1.12...
Help plz. And would it matter if I said that my file was a .mp4?
Thx in advanced.
There are always two choices in life: the right one and the easy one.
Image

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Re: Import issues - MKV

Post by LantisEscudo » Wed Oct 21, 2009 11:13 pm

Re-open your script in Notepad and save as ANSI text, not Unicode. Avisynth doesn't recognize Unicode text.

User avatar
Ardour
Joined: Sun May 03, 2009 2:44 am
Status: Spazzy
Location: On Top of a Strawberry Ice Cream Cake
Contact:
Org Profile

Re: Import issues - MKV

Post by Ardour » Wed Oct 21, 2009 11:36 pm

My Hatsukoi avisynth script was ANSI txt already...
Any other suggestions?
There are always two choices in life: the right one and the easy one.
Image

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

Re: Import issues - MKV

Post by mirkosp » Wed Oct 21, 2009 11:52 pm

Make sure you don't have any japanese or otherwise weird character in the path or filename.
Image

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: Import issues - MKV

Post by Qyot27 » Thu Oct 22, 2009 12:12 am

Ardour wrote:I was also wondering about the 1.21 version of ffmpegsource because I could only find version 1.12...
FFmpegSource 1.21:
http://code.google.com/p/ffmpegsource/d ... r&can=1&q=

and FFmpegSource2 2.12:
http://code.google.com/p/ffmpegsource/d ... z&can=1&q=

You can also find straight SVN builds on the downloads page too, but unless you've got some really esoteric problem I'd just wait for the next official release.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
Ardour
Joined: Sun May 03, 2009 2:44 am
Status: Spazzy
Location: On Top of a Strawberry Ice Cream Cake
Contact:
Org Profile

Re: Import issues - MKV

Post by Ardour » Thu Oct 22, 2009 1:06 am

Nope. No japanese or other worldly texts in my script.
Anybody have any other suggestions?

And thanks Qyot for the links. :]
There are always two choices in life: the right one and the easy one.
Image

User avatar
Bakadeshi
Abuses Spellcheck
Joined: Mon Sep 29, 2003 9:49 am
Location: Atlanta, GA
Contact:
Org Profile

Re: Import issues - MKV

Post by Bakadeshi » Thu Oct 22, 2009 9:21 am

if all else fails, you can always get virtualdubmod and open the video using AVISynth template, choosing DirectSHowSOurce(), then click "Tools"-> "Script Editor" and change DirectShowSOurce to ffmpegsource. Virtualdubmod will always create the avs file in the proper character coding.

(I dunno why this was taken out of amvapp, its so convinient for avisynth script editing.)

ALso I think the latest version of amvapp has ffmpegsource built in. That might be your easiest method of getting it and making sure it all works out of the box.

Locked

Return to “AviSynth Help”