Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe Premiere Pro Editing h.264/x.264 in Premiere Pro

  • Editing h.264/x.264 in Premiere Pro

    Posted by Robert Dodson on April 3, 2012 at 9:04 pm

    Hi,

    I have some questions regarding editing h.264/x.264 files in Premiere Pro. I’ve tried figuring this out myself and looking it up online but I’ve had no luck.

    I make anime music videos as a hobby. Up until recently I would manually rip the video files off of the DVD into DV-AVI or lossless codecs and edit them like that, which always worked fine. Now Blu-Ray is becoming the standard, but it’s more trouble than it’s worth to rip a Blu-Ray, so I tried downloading a few episodes and throwing them into Premiere.

    These downloads are in MP4 or MKV containers but VLC player identifies the codec as h.264. Since it’s anime, it’s likely the files were encoded using the free x.264 codec. The files import into Premiere Pro 2.0 and PPCS4 just fine (after I change the extension to .AVI), and play on the timeline ok, but they tend to skip, usually by repeating a few frames at random intervals.

    At first the skipping won’t be too bad, but eventually it gets so bad the files are not editable. The skipping gets significantly worse if I make any changes to the clip, such as applying effects, turning on/off frame blending, etc. This skipping is not just a playback/performance problem, it occurs in preview renders and the final output.

    While I normally use PP2.0, it tends to choke on HD footage, so I tried the CS4 trial, which renders moderately faster, but otherwise functions identically with said files.

    I decided to try the PPCS5.5 trial, as I read it has better codec support. However, it won’t even let me import these files, giving me different errors depending on what extension I use when importing.

    Anyone have any thoughts on this? It’d be nice to be able to use CS5.5 but I don’t want to buy a copy for a hobby if it won’t even open the video files. Otherwise I’m fine with PP2.0 or CS4, if anyone has any solution to the skipping problem.

    As a side note, I tried converting a piece of one file into lossless using Adobe Media Encoder but this also induced severe skipping. I also don’t really have the hard drive space for lossless 1080p footage.

    Windows 7 Home Premium 64-bit
    Intel i7 860
    12gb DDR3

    Cios Kappel replied 14 years, 2 months ago 3 Members · 5 Replies
  • 5 Replies
  • Angelo Lorenzo

    April 4, 2012 at 5:42 am

    Have you tried using FFMPEG to just simply rewrap your files?

    It’s command line but fairly easy, something like (this is off memory so expect to google this):
    ffmpeg.exe -i input_file.mkv -codec copy output_file.mov

    The extension of the output file will most easily denote what the container should be, in this case quicktime. There is no reencoding as it just copies over the h.264 and whatever audio streams.

  • Robert Dodson

    April 5, 2012 at 1:01 am

    Will that fix skipping? My understanding (I forgot to say this) was that h264 skips because it is not frame-accurate and therefore is no good for editing?; however during my research on this problem I discovered some HD video cameras record in MP4 natively, and it sounded like PPCS5.5 supports these files.

    Anyway, I’ll try rewrapping with FFMPEG, thanks.

  • Robert Dodson

    April 6, 2012 at 4:33 am

    Hi Angelo,

    At the beginning of the output I was getting a couple errors:
    “Using MS style audio codec tag, the file may be unplayable!”
    “[mov @ 00000000057A77E0] track 1: codec frame size is not set”

    This was followed by Metadata, including chapters, and then
    “Could not write header for output file #0 (incorrect codec parameters?)”

    I tried disabling the audio stream with -an and used -vcodec to only copy the video stream. This worked correctly, but CS5.5 still won’t import the new file, calling it “unsupported format or damaged file”. CS4 wouldn’t import the new file until I changed the extension to .avi. I threw it onto the timeline and checked it quickly and it hasn’t skipped yet, but I’m too caught up in other work to do anything comprehensive at the moment. I’ll check back later.

  • Robert Dodson

    April 9, 2012 at 5:26 am

    Unfortunately the new .mov file still skips. Any other ideas?

  • Cios Kappel

    June 18, 2012 at 3:47 am

    I experienced the same issues in the following process:
    – Create sequences with source material as proxies (.MTS footage off a Panasonic GH2 with custom firmware)
    – Process source material in VirtualDub (for deshaking using Deshaker) and encode using x264vfw
    – “Replace Footage” to get the deshaken versions into Premiere

    The original material never showed any problems. Once replaced with the (audioless) deshaken versions, the problems started occuring (black/red frames at beginning and/or end of clips, repeated frames –> judder at random points in clips). Replacing them with the source material would result in problemless video yet again.

    After a lot of trial/error and online research, I find the following things are suspect:
    – Transitions, specifically Cross Dissolve
    – Video For Windows (VfW)
    – B-frames in the video stream

    I’m afraid I was happy enough to be able to export a problem-free version of my current project that I am not able to point the finger at the culprit without doubt. It may very well be a combination of factors.

    The things I tried in chronological order were:
    – Clear the media cache and delete all renders for the project (this step actually happened regularly in the debugging process)
    – Rename/delete the userAppdataRoamingAdobePremiere Pro5.5 directory
    – Disable writing an XMP ID to the files
    – Remove transitions on clips before replacing the footage
    – Repackage the video streams in the .avi-files outputted by VirtualDub in .mp4 containers using ffmpeg (this seemed to do wonders initially, if only in speeding up Premiere operation)
    – Disable h264 decoding in ffdshow VfW configuration (after reading about VfW’s issues with B-frames and having seen implied that Premiere might use external VfW codecs)
    – Reencode the footage where problems were showing with settings that avoid B-frames altogether

    I’m not sure what the role of transitions is in this, but I do feel that for clips that do not involve any transitions, I’ve had way less or even no problems with repeated frames. Having said that, only the reencoding without B-frames seems to have reliably removed the issues (although most of the replacement material in the aforementioned project _does contain B-frames_ and is rendered without issue).

    You could use MediaInfo to inspect your problematic material. The encoding settings are most probably stored in the video descriptor. I’d definitely try reencoding with a B-frame-less setting.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy