Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques How to get ffmpeg/x264 to use same parameters as input?

  • How to get ffmpeg/x264 to use same parameters as input?

    Posted by Gyan Doshi on November 11, 2014 at 5:32 am

    I’m trying to accomplish a smart rendering workflow using ffmpeg/x264, which goes like this: get ffmpeg to segment the input file at keyframes. Locate the segment(s) with changes to be made. Re-encode altered segments with same parameters as source. Concatenate altered + original segments.

    Problem: the resulting video turns garbage when it first traverses from an original to altered segment or vice-versa. Most likely, because the altered chunks and original chunks differ in some bitstream parameters, or possibly some GOP boundary issues are at play.

    I’ve provided an illustration at https://ffmpeg.gusari.org/viewtopic.php?f=11&t=1793

    So,

    1) is there a way to tell ffmpeg/x264 to generate a concat-with-source-compliant output?

    2)If it’s GOP related, what do I look for in the source and what do I tell the encoder?

    Thanks,

    Gyan

    Gyan Doshi replied 11 years, 7 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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