• [Lubuntu 20.04] Ark - merging video files

    From askingtheoracle@askingtheoracle@invalid.com to alt.os.linux.ubuntu on Wed May 26 11:54:50 2021
    From Newsgroup: alt.os.linux.ubuntu

    deepl.com translate:
    Hi!
    Can Ark program merge two small video files into one big file?
    The video files have the same audio and video encoding.
    Ark doesn't have this function or I didn't understand the man manual. http://manpages.ubuntu.com/manpages/focal/en/man1/ark.1.html
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From Paul@nospam@needed.invalid to alt.os.linux.ubuntu on Wed May 26 10:16:38 2021
    From Newsgroup: alt.os.linux.ubuntu

    askingtheoracle wrote:
    deepl.com translate:
    Hi!
    Can Ark program merge two small video files into one big file?
    The video files have the same audio and video encoding.
    Ark doesn't have this function or I didn't understand the man manual. http://manpages.ubuntu.com/manpages/focal/en/man1/ark.1.html

    If done using GUI interfaces, the required program
    is called a "video editor".

    *******

    If done from the command line, this can be done with FFMPEG.

    ffmpeg -f concat -r 30000/1001 -i filelist.txt -c copy output.avi

    The "-r" option in my sample command, is there to correct the
    incorrect "frame rate" encoded in the movie. If a test concatenation
    does not have the correct frame rate, you can apply the correct value
    using "-r" .

    The contents of the filelist.txt file in the current
    working directory, look like this.

    file 'a00.avi'
    file 'a01.avi'
    file 'a02.avi'

    The content of the working directory would be:

    filelist.txt
    a00.avi
    a01.avi
    a02.avi

    This would concatenate three movies having identical metadata
    (codec choices, container choice). If one video had five streams,
    the other video had four streams, you need to select the streams
    you want copied to join them. This makes the command much more
    complicated. Using commands like this, allows reviewing the metadata

    ffprobe a00.avi
    ffprobe a01.avi
    ffprobe a02.avi

    For some movie formats, no re-encoding is required,
    and the stitching of the movies is minimally visible
    at the stitching points. The video type I tested, is an
    obscure one, and one of the nice characteristics, is
    it can be stitched with practically no effort at all.

    If you were passing in .mp4 videos and asking for .avi
    output, this will cause all kinds of problems. The
    expert addition of more parameters to the command line,
    can make a workable concatenation command, but it will
    work slowly.

    When I used the above command, it copied the movie content
    as fast as the disk drive could provide it. Most of the
    streams are just copied, and the only work it needs to do
    is stitching at the ends.

    If the video requires re-encoding, then the command is
    more complicated and the command runs a lot slower.

    One of the reasons for using a "video editor", is to
    automate the decision process.

    Paul
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From askingtheoracle@askingtheoracle@invalid.com to alt.os.linux.ubuntu on Wed May 26 18:19:13 2021
    From Newsgroup: alt.os.linux.ubuntu

    W dniu 26.05.2021 o 16:16, Paul pisze:
    If done using GUI interfaces, the required program
    is called a "video editor".

    deepl.com translate:
    A person on the internet wrote that any file archiver
    can merge two video files into one file. In Lubuntu
    there is Ark. I couldn't find a command to merge files
    using Ark, so I asked here.
    Thank you for the simple explanation.
    --- Synchronet 3.18a-Linux NewsLink 1.113