I am new to editing and have been wasting away trying to find the best and easiest way to import MKV files into Premiere Pro CS4.
I have tried Avisynth using a script. It crashed a few time but then I got it to work. I tested a snippet and exported it with fairly good results but for some reason, the last frame on the timeline appeared on the finished project at the very start of the video. I also had a few sluggish frames and it didn't flow as well as the original.
I guess my question to you guys is what is the best way to work with this type of container without creating a large file ( Lossless) and without encoding it and losing quality?
I am going gray just trying to find a way to work around this.
By the way, the original files are over 1-1/2 hours long. I am also looking to grab small sections at a time using several MKV files to make one highlight video. And finally, this isn't just a cut and past deal, I am looking to add transitions and all that good stuff.
Your help is greatly appreciated.
+ Reply to Thread
Results 1 to 30 of 35
If your .mkv has progressive content, then use dgavcindex, avisynth, premiere avs import plugin
Editing will be slow unless you have a very fast computer. If your listed specs are correct, it won't work smoothly. Although the file may play normally in a media player , there is additional overhead imposed upon by the NLE, frameserving in.
Otherwise encode to a digital intermediate like cineform , dnxhd , or UT (if you want lossless)
How can i import .mkv in Premiere CS5.5?
1) encode to digital intermediate (e.g ut video codec, lagarith, ffv1, etc...)
2) frameserve in (e.g. avfs - avisynth virtual file system)
3) Premiere CS5 AVS Importer
4) sometimes re-wrapping to transport stream works e.g. tsmuxer (but it depends on how the video was encoded - some settings may make it incompatible)
About our Conversation...is it true?
SEVERE WARNING: do not install something like K-Lite codec packs. That will generally require a complete reformat of your boot disk and a complete fresh install of OS and programs. A typical SNAFU (systems normal, all f*cked up) situation.
I would avoid codec packs in general (just install the things you need), but I think the warning is overstated
True fact - In the past codec packs caused a lot of problems for many people, but they undeservedly have a poor reputation these days. Many people use them without issue , but I would still avoid them in general
So, Do you avoid installing them? (I mean, is codec packs)
What is your suggestion in the end?
p.m: Do you use Premiere pro?
Assuming codec packs are mainly benign and organized (which I still disagree with), the main problem is still in the troubleshooting. If 1 or 2 items is messing things up, you WON'T KNOW how to isolate for those. Best left alone.
I have several computers, most of them don't have codec packs, but 2 of them have k-lite mega
But on the computers that have k-lite, none of them have blown up . But I have custom install (selected only filters that I know I need), not the shotgun approach. (I know exactly what filters I need and how to disable/enable them in configuration and through graphstudio)
If I make suggestions to other people, it's usually not to install a pack (they might not know about codecs and how to troubleshoot)
There is no "best"
Quality, size, speed are tradeoffs
Performance in premiere is also another consideration. More compressed = slower performance (slower to edit and navigate)
Higher quality usually means bigger size. Faster editing speed usually means less compressed, bigger size. Faster conversion speed usually means less compressed
I often use cineform for close to lossless, ut video codec for lossless . Both are many times larger than typical filesizes so you need lots of free HDD space
If the mkv used compatible encoding parameters, the fastest and "best" would be re-wrapping with tsmuxer. No quality loss, only small change in filesize (transport stream overhead), very fast. If it didn't, it won't work
Another fast way is frameserving using those methods above, like avfs. You have to learn avisynth scripting, but there is no time wasting converting, no large intermediate files , it's instant. But the performance isn't as good in premiere (editing speed) as something like cineform
Each method has trade-offs, pros & cons
Welcome to the Hotel California
It's the same idea as tsmuxer. The potential problem is it won't work (like tsmuxer). It only works if the video in the mkv used compatible encoding settings. It's worth giving a try , because it's very fast (just re-wrapping)
The other frameserving or DI methods work 100% of the time
THAT's where K-Lite solves the problem, but you need an AVI container, not MP4.
What? You think xmedia recode doesn't use the free codecs? Even Sony Vegas Pro can render to ffdshow codecs. While you're waving the big WARNING! flag, everybody but YOU is using 'em.
Hello? McFly? Anybody in there?
Last edited by budwzr; 6th May 2012 at 20:18.
What is your opinion?Welcome to the Hotel California
AVI container is not reliable for h.264 and b-frames (likely that's what your mkv is using for video compression). You will get seek problems and/or black or green frames .
No, I meant use avi to associate-access the vfw codecs, not MP4. Doesn't Premiere use the ffdshow, Lagarith, etc. filters via AVI?
1) He's trying to import an MKV
2) The MKV is likely using h.264 with b-frames
3) h.264 with b-frames is unreliable in AVI container - b-frame decoder lag, green frames
4) Therefore re-wrapping the h.264 video into AVI for the purpose of importing into an NLE through VFW codec usually isn't a good idea
5) If your h.264 video didn't have b-frames, it can be ok sometimes. But it's more reliable if you use intra only
Both premiere and vegas use VFW codecs, but lagarith has it's own VFW decoder (not ffdshow). It is reliable because it's an intra codec (I frame only, no b-frames)
Yeah, understood. just mentioning AVI in case OP needs Lagarith or Cineform. As a DI.
I know first choice is to edit natively, but if that doesn't work with a simple container remux, then might as well go the DI route.
I don't think the OP understands about AVI vs. MP4, because he mentions simply wanting to go from MKV to MP4, as if the container is the problem.
Whatever you stated is flawless, as usual, just throwing in my extra two-cents.
Last edited by budwzr; 7th May 2012 at 08:44.
Just click and drag it . Make sure tracks aren't locked . Your screenshot doesn't show audio track #1
If audio track #1 doesn't have matching channel configuration, it won' t let you. (E.g. 5.1 vs 2.0) . Then you would need to set up your sequence settings properly in the first place
Welcome to the Hotel California
what is your export goal?
your video is cropped 1920x816 (no letterbox), so there are no presets for that
use a custom sequence setting to match 1920x816, 23.976 fps , square pixel - go to the general tab, editing mode: desktop, timebase 23.976, 1920x816, PAR square pixel, fields progressive - basically match all the settings to your input video . (When you export use similar settings, assuming you want the same type of video) .
Master audio should be 5.1, because your source is 5.1 . The other settings only matter if you are mixing other tracks
how did you import the video? re-wrap into mp4?
what type is the audio? AC3? DTS? from your other screenshot, it looks like you are importing mono channels individually, not a 5.1 single track. Is there a reason for that ? You might have to import audio separately e.g. mkvextractgui2, then import audio separately
Yeas, re-wrapping into mp4
Audio type is AAC
There's no reason I did not know
ThanksWelcome to the Hotel California