Need help editing an AVC h264 mkv file

Discussion in 'Other video questions' started by ZippyDan, Nov 8, 2009.

  1. ZippyDan

    ZippyDan Member

    Joined:
    Nov 8, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    11
    I've used mkvextract to extract the raw files i want to work with

    mkv1 contains a .h264 file:
    4 797 Kbps (4 925 Kbps), 1280x720 (16:9), at 23.976 fps, AVC (Container profile=Unknown@3.1) (High@L3.1) (CABAC / 5 Ref Frames)

    and a .dts file:
    1 510 Kbps, 48.0 KHz, 6 channels, DTS

    mkv2 contains a .h264 file:
    5 872 Kbps (6 000 Kbps), 1280x720 (16:9), at 23.976 fps, AVC (Container profile=Unknown@5.1) (High@L5.1) (CABAC / 16 Ref Frames)

    and a .ac3 file:
    384 Kbps, 48.0 KHz, 6 channels, AC-3

    There are several things I would like to accomplish:

    Cut some video and audio from mkv1
    Cut some video and audio from mkv2 and insert it into mkv1
    Change audio levels for some channels in mkv1
    Replace some audio channels in mkv1

    I need to do all of this with nanosecond (or frame) accuracy. I tried using avidemux but it doesn't reproduce the audio on one of the files, and it seems very difficult to perform edits to the accuracy I need. It seems in general that the way mkv files are rendered introduces uncertainty.

    I think I need to convert both video formats to a common format that is more widely supported and more accurate, and then perform my edits.

    I may also need to do the same with the differing audio formats.

    I want to do all of this while maintaining as close to the original video and audio quality as possible, and maintaining all the discrete audio channels. Maintaining audio/video sync through all the editing processes is also a challenge I need help with (e.g. if I am editing video with frame-level accuracy, but I am editing sound separately, how do I ensure I am at correct corresponding video frame?).

    Finally, if possible, I would like to convert the finished product back to the original .h264 and .dts mkv (multi-channel AC-3 may be acceptable too).

    I need some kind of guide as to:

    Step 1. With what program and to what format should I convert the video to something that maintains quality but is easily editable?
    Step 2. With what program and to what format should I convert the audio to something that maintains quality and discrete channels but is easily editable?
    Step 3. With what program can I easily cut and paste video from the file created in Step 1 while maintaining audio sync with the program in use in Step 4?
    Step 4. With what program can I easily cut and paste audio from the file created in Step 2 while maintaining audio sync with the program in Step 3?
    5. With what program can I convert the finish video file back to .h264 format?
    6. To what format should I save the finished audio?

    Finally, use mkvmerge GUI to create my finished mkv...
     
  2. ZippyDan

    ZippyDan Member

    Joined:
    Nov 8, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    11
    anyone?
     

Share This Page