Results 1 to 4 of 4

Thread: Joining .ogv files causes slight pause.

  1. #1
    Join Date
    Nov 2013
    Beans
    12

    Joining .ogv files causes slight pause.

    Hi All! I have a small problem. I am recording screencasts with gtk-recordmydesktop. I like to record in small bursts, to save on editing, and join the file later. When I try this, the image... stutters... while the audio continues. So, I will be talking about my next point, but the video image has not moved on. I have tried justing .ogv files using openshot, and
    Code:
    cat foo-01.ogv foo-02.ogv > foo-03.ogv
    Code:
    oggCat foo-01.ogv foo-02.ogv > foo-03.ogv
    But they all have these pauses in the video. Any ideas how I can join them smoothly? Thanks guys!

  2. #2
    Join Date
    Dec 2004
    Location
    Manchester
    Beans
    2,086
    Distro
    Ubuntu Mate 15.10 Wily Werewolf

    Re: Joining .ogv files causes slight pause.

    cat just sticks all the bytes in the 2 files together. That works fine for joining text files, but not for much else. You video player is probably seeing the start of the second file (which will contain a new header) as corruption in the file, but manages to recover and continue.

    I'd recommend using an actual video editor, such as openshot, pitivi (you might want to get a recent version from https://launchpad.net/~gstreamer-dev...s/+archive/ppa ) kdenlive or one of several others.

    If you want to use the command line it looks like you can join files with avconf/ffmpeg https://stackoverflow.com/questions/...deos-by-avconv http://trac.ffmpeg.org/wiki/How%20to...0media%20files

  3. #3
    Join Date
    Nov 2013
    Beans
    12

    Re: Joining .ogv files causes slight pause.

    Hi Ssam. Thanks for the swift response! I tried the commands in the link you included, and neither worked. The first
    Code:
    avconv -i concat:foo-1.ogv\|foo-2.ogv -c copy foo-3.ogv
    just desynchronised the audio for the first clip, ignored the rest! the second command in the thread
    Code:
    mencoder -oac pcm -ovc copy -o foo-3.ogv ls *.ogv
    just errored out complaining about .avi files. As you can see in my original post, I did also try openshot with the file in the first instance, but with the same short pause.

  4. #4
    Join Date
    Sep 2006
    Beans
    3,713

    Re: Joining .ogv files causes slight pause.

    Try the concat demuxer in ffmpeg (the real one from FFmpeg, not the buggy, fake one in the repo which lacks this feature).

    Get a recent ffmpeg build from the FFmpeg Download page.

    Or do this:
    Code:
    wget http://ffmpeg.gusari.org/static/32bit/ffmpeg.static.32bit.$(date -d yesterday +%F).tar.gz
    tar xzvf ffmpeg.static.32bit.$(date -d yesterday +%F).tar.gz
    Then make a text file listing your files. The contents should look like:
    Code:
    file 'foo-1.ogv'
    file 'foo-2.ogv'
    file 'foo-3.ogv'
    Then run ffmpeg (note the ./ before ffmpeg):
    Code:
    ./ffmpeg -f concat -i input.txt -codec copy output.ogv
    As already mentioned by ssam see How to concatenate (join, merge) media files for more information.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •