1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice

Video editing software...

Discussion in 'Ask EvilDragon Questions' started by DAP, Jun 1, 2017.

  1. DAP

    DAP Member

    Joined:
    Aug 29, 2008
    Messages:
    411
    Can you recommend some open source video editing software which will allow me to cut & splice video without re-encoding the video? Every tool I've tried seems to want to re-compress the video to a different resolution and compression level than the original.
     
    Tags:
  2. Kev2442

    Kev2442 Still French

    Joined:
    Nov 4, 2014
    Messages:
    442
    Location:
    42 (Loire) is the answer.
    I think I can answer for him :)
    You'll need to reencode the video. Most video codecs use interframe compression, which means your frames aren't complete for the most parts. Some are full JPEG images, assuring the picture quality from time to time, but most only contain the difference between the prior frame and the current one.
    That is why you don't need 600GB to store an hour of HD content. But you can't edit it without the need to decode it first, and even if you could, then it would be a nightmare to re-encode, because the order in which complete and incomplete images are stored follows a pattern, which breaks during editing.

    If you're interested in temporal compression, you can find more about it here.
     
  3. pmprog

    pmprog Advanced Member

    Joined:
    Apr 25, 2011
    Messages:
    3,373
    VirtualDUB, though I think it's Windows only. You don't need to re-encode the video using this
     
    Swordfish II likes this.
  4. ible

    ible Advanced Guard Tower

    Joined:
    Mar 24, 2014
    Messages:
    1,693
    Location:
    Twice in North Dakota, once in the Netherlands
    i use trim with ffmpeg and concat to put things together. very low level, so i have to use mplayer to see where i want to cut.

    https://stackoverflow.com/questions...deos-based-on-start-and-end-time-using-ffmpeg
    i'll probably make a script for this soon, as it's annoying to remember the details, but it looks like you can do it in place.

    concatenate (may require things to be .mp4 files, but haven't checked outside that case):
    Code:
    #!/bin/bash
    if [ "$#" -lt "2" ]
    then
        echo "concat [video1] [video2] ..."
        exit 1
    fi
    
    echo "file '$1'" > .concat.tmp
    shift
    for var in "$@"
    do
        echo "file '$var'" >> .concat.tmp
    done
    ffmpeg -f concat -i .concat.tmp -codec copy out.MP4
    rm .concat.tmp
    
     
  5. lukey

    lukey Rare Species

    Joined:
    Jun 17, 2015
    Messages:
    447
    Location:
    Germany
  6. ingoreis

    ingoreis Advanced Member

    Joined:
    Mar 7, 2012
    Messages:
    2,937
    Location:
    49.491276,8.423518
    Oh no one recommend AviDemux?
    Its free,for Windows and Linux and i
    use this for Freeing my recorded Videos from Commercials without reencoding all.

    Avidemux can simply change the Containerformat without encoding the Video new.
    Its Great for Cutting Videos and work here
    with my Dvb-C Receiver Files wonderfull.

    Work even my decrypted Sky Movie Records :D

    With my Samsung 950 Evo M.2 Hdd i can write a freed a HD Movie in around 30 Seconds with it.
    And i can Change the Ts4 Format to Mkv without new encoding.

    A Bonus for me is that i can free Videos from unused Second or Thirth Audiotracks. :D
     
    Farox and canseco like this.
  7. Swordfish II

    Swordfish II Very Active Member

    Joined:
    May 20, 2015
    Messages:
    584
    Virtualdub can do it. Just select direct stream copy for video and audio then trim as needed.
     
  8. DAP

    DAP Member

    Joined:
    Aug 29, 2008
    Messages:
    411
    Virtualdub is out, it is windows only, and I run Linux.

    The basic problem I am trying to solve is that my camera, a Sony DSC-RX100 has some nasty habits regarding video. In spite of using EXFAT file system on the SD cards, the camera breaks the videos into 2.1 GB files. Also, to avoid taxes, Sony programmed the camera to stop recording video after about 30 minutes. On top of this, the camera will overheat while recording and stop. And sometimes I need to change the battery during recording.

    My previous attempts to splice those files together resulted in an audio dropout of several seconds, and the picture freezing for about 8 frames, and the frames that should have been there completely missing.

    Sony claims that using their software (which only works on Windows, Mac and PS3) will correctly combine the files without dropouts. I don't have either a Windows or Mac machine, but I do have a PS3. The problem with the PS3 is that it does not support any file system more modern than FAT32, so it can not even read the EXFAT SD cards, let alone join the files, or once joined, transfer them to any other media.

    The format I have the files in is .MTS

    Edit: I did some experiments, and it seems that I can just use cat to string the files together where the camera split the file but did not stop recording. If I try this on the files where the camera stopped recording, it will play, but the player has no idea how long the video is, and won't show the time in the progress.
     
    Last edited: Jun 2, 2017
  9. ingoreis

    ingoreis Advanced Member

    Joined:
    Mar 7, 2012
    Messages:
    2,937
    Location:
    49.491276,8.423518
    My Technisat Dvb-C Receiver do splitting Files too.

    With this Avidemux i can merge the Files fine into one File without any rekognations in the Movie.
    And manualy free it from Commercials.

    But i recommend it to cut not per Frame...
    ..do cut it per Keyframe and you should not have more this Audio Delay then.

    It a TS and TS4 Transport Stream.
    Maybe on your Camera is a Type of Transport Stream too.

    I stay @ it...try AviDemux.
    Realy my Videosoftware Number one here.
    And it support nearly all Formats.

    Good Luck

    Edit:
    When you open your Video without the Timeline and save it as new File with AviDemux..
    ..a new Timeline should be automatic created.
     

Share This Page

Loading...