Results 1 to 4 of 4

Thread: Joining video files?

  1. #1
    Join Date
    Jun 2008
    Location
    Belgrade, Serbia
    Posts
    719

    Default Joining video files?

    Hi!

    I have a camera with HD, which records one MPG each time I press stop recording... so, let's say, I recorder 5 minute sequence from 3 start-stop clicks. I will get 3 MPG files.

    if I do:
    Code:
    $ cat 1.mpg 2.mpg 3.mpg > final_movie.mpg
    it will join files, and it will play.

    However, "length" of the movie in player will be length of 1st MPG file, even though it will play till the end.

    In linux, no problem, but when I send video file to a friend who has Windows (media player usually), it has problem with playback.

    Question is: how can I join video files, where final product will have duration properly set (and not making problems on windows players)
    Emil Beli
    http://www.beli.ws/blog/
    openSUSE 11.4 x64 KDE, ATI 5600, i7 dell inspire laptop

  2. #2
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: Joining video files?

    mencoder file1.mpg file2.mpg file3.mpg -ovc copy -oac copy -of mpeg -o output.mpg

    ffmpeg can do a similar thing

  3. #3

    Default Re: Joining video files?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    I saw a demo of kdenlive a few weeks ago; I believe it also uses ffmpeg on
    the backend but it was pretty nice (though a beta version demo's, so a
    little buggy).

    Good luck.






    microchip8 wrote:
    > mencoder file1.mpg file2.mpg file3.mpg -ovc copy -oac copy -of mpeg -o
    > output.mpg
    >
    > ffmpeg can do a similar thing
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.9 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

    iQIcBAEBAgAGBQJK6FLKAAoJEF+XTK08PnB5xB0P/jT5RAIRWIyGlfO5yQHwMHEE
    OdglUrZnXksBbwWDcbDLLEdySVYHo1mVZxl76F4S++etE2ZfVDdd07jV6HKzDaO7
    6hXsy64ess7vRtXiibRlEo1UGCae/Zh2RCjTfhJxSUMeO1HO7n0J/Mz4d0ydr9jt
    AfvQ37zs34AcEvCIuhOjbOzjBCkE57+QGekXHLyNlIpPC6z6nLGEVbMujcfeAvjJ
    8VmFGK/BWyPFk9HsIxFAvGpegnMY+czfv+vsSrC5J/HRW1rdsRu44CY0m7ulHhuT
    k3dwNE/Y7T+8IBddiXSbFBSJCb1lR0SN13gwQGLyd4llZNgR7JAxAJsOlyNqH6AF
    OwaxdZ/bTb/WpVrlJwm6tRZf7aUciByPMEHnu8ziIUn89Dvah4zadtVdvXvVVahH
    i0QbcZAbpUE1mypOKe3u2GHiqObKoOwFAF0RNbVc1bvby6q79nlh3Pszp6p8Ei0i
    JaGgJjAYM/Gk0ZljqpVmfn4F4lWOi/Uy6E9mRRsL6N/XwuV81iKRdFQLiMfwX6SJ
    q6ZtKfO8oABgAGbZDBM8jJADFeKlWyImOGKFl7GErhUwTud+TQ1Q8Dvfouolj16n
    OmteqK9+FZNtqjoNfUyO7B726qYNwPn5WhewavJva6Qg8QykrJxNdsUMiMq2aVVO
    wlR8AdaNLr5lwIgSMYgW
    =kWgS
    -----END PGP SIGNATURE-----

  4. #4
    Join Date
    Jun 2008
    Location
    Belgrade, Serbia
    Posts
    719

    Default Re: Joining video files?

    Yap, that works.
    Thanks!!
    Emil Beli
    http://www.beli.ws/blog/
    openSUSE 11.4 x64 KDE, ATI 5600, i7 dell inspire laptop

Tags for this Thread

Posting Permissions

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