Results 1 to 8 of 8

Thread: Split video files (.mp4, .avi, .wmv, .mkv)

  1. #1
    Join Date
    Sep 2013
    Beans
    5

    Split video files (.mp4, .avi, .wmv, .mkv)

    Hi,

    I try to split videos on Ubuntu 12.10 and I found MKVmerge for splitting matroska (.mkv) and Avidemux for splitting avi files.

    Could you tell me what software (or commands) I can use to split .mp4 and .wmv files please ?

    Thanks for your help.

  2. #2
    Join Date
    Jul 2013
    Beans
    190

    Re: Split video files (.mp4, .avi, .wmv, .mkv)

    Hello,

    you can try ffmpeg for the mp4 files

    ffmpeg -acodec copy -vcodec copy -ss START -t LENGTH -i ORIGINALFILE.mp4 OUTFILE.mp4

    found it in less then a minute google search http://askubuntu.com/questions/35605...ng-an-mp4-file

    Avidemux can handle wmv since version 2.3.0 if you have all codecs installed.

    sudo apt-get install non-free-codecs

    in sum two minutes goolge, why can't you do that.

  3. #3
    Join Date
    Sep 2013
    Beans
    5

    Re: Split video files (.mp4, .avi, .wmv, .mkv)

    Thanks for your help.

    For FFMpeg, that I use, I consider that it's not a really split, but a conversion that allows multiple small files in output. The problem is that conversion is much longer than a split.

    I didn't know for wmv and avidemux, thanks !
    Last edited by marfin2; September 2nd, 2013 at 06:55 PM.

  4. #4
    Join Date
    Aug 2013
    Beans
    86
    Distro
    Xubuntu

    Re: Split video files (.mp4, .avi, .wmv, .mkv)

    I don't know about wmv. I suppose you could just use VirtualDub in Wine/Windows. Avidemux should work with mp4, surely?

  5. #5
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: Split video files (.mp4, .avi, .wmv, .mkv)

    duplicate.
    Last edited by shantiq; September 2nd, 2013 at 10:25 AM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  6. #6
    Join Date
    Jul 2009
    Location
    Hippiesoldierstan Norwich
    Beans
    2,326
    Distro
    Lubuntu 22.04 Jammy Jellyfish

    Re: Split video files (.mp4, .avi, .wmv, .mkv)

    hi marfin

    you can use ffmpeg or mencoder to split video file in multiple sections


    use same input file add "&&" between cuts and do as many sections as you need to
    First time entry is where you start from. Second time entry the duration you require


    ffmpeg -i INPUT.mp4 -ss 00:35:54 -t 00:04:12 -vcodec copy -acodec copy OUTPUT1.mp4 && ffmpeg -i INPUT -ss 01:14:14 -t 00:14:10 -vcodec copy -acodec copy OUTPUT2.mp4 && etc...

    or

    mencoder -ss 01:00:00 -endpos 00:05:56 -oac copy -ovc copy INPUT.mp4 -o OUTPUT1.mp4 && mencoder -ss 01:20:00 -endpos 00:05:56 -oac copy -ovc copy INPUT.mp4 -o OUTPUT2.mp4 && etc...


    iN MY PERSONAL experience mencoder is more stable for this task
    Last edited by shantiq; September 2nd, 2013 at 10:33 AM.
    Linux is Latin for off-the-beaten-track
    what I like MOST about our Ubuntu ... The Community ie 50 brains are better than one
    Playing with Slackware too now ...
    ShanArt

  7. #7
    Join Date
    Sep 2013
    Beans
    5

    Re: Split video files (.mp4, .avi, .wmv, .mkv)

    Thanks a lot everyone.
    And mea culpa for my for my wrong remark on FFmpeg : if we use "-vcodec copy -acodec copy" and we have the same format in the input and output, FFmpeg split correctly the file (and don't convert as I thought).
    rai_shu2> I can't use VirtualDub beacause I need use tools with command lines, but thanks for the idea.
    Last edited by marfin2; September 8th, 2013 at 09:44 PM.

  8. #8
    Join Date
    Sep 2013
    Beans
    5

    Re: Split video files (.mp4, .avi, .wmv, .mkv)

    Just one question : why when I use FFmpeg to convert (not to split), even if I put the bitrate video and audio, the bitrate video (but not the bitrate audio) is out from metadata ?

Tags for this Thread

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
  •