Memotong File Video di Ubuntu Linux

Ada cara mudah untuk memotong file video dalam durasi tertentu di Ubuntu Linux menggunakan command line. Dalam contoh ini saya akan memotong file tes.mp4 menjadi tes_edit.mp4 berdurasi 5 menit 57 detik.

  1. Tekan tombol Ctrl+Alt+T untuk membuka terminal.
  2. Ketik ffmpeg -i tes.mp4 -vcodec copy -acodec copy -ss 00:00:00 -t 00:05:57 tes_edit.mp4

  3. ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
    built on Jun 12 2012 16:37:58 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.

    Seems stream 0 codec frame rate differs from container frame rate: 59.94 (2997/50) -> 29.97 (30000/1001)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tes.mp4':
    Metadata:
    major_brand : isom
    minor_version : 1
    compatible_brands: isomavc1
    creation_time : 2012-01-22 17:24:02
    Duration: 00:17:06.92, start: 0.000000, bitrate: 864 kb/s
    Stream #0.0(und): Video: h264 (High), yuv420p, 640x352 [PAR 1:1 DAR 20:11], 750 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
    Metadata:
    creation_time : 2012-01-22 17:24:02
    Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 109 kb/s
    Metadata:
    creation_time : 2012-01-22 17:24:04
    Output #0, mp4, to 'tes_edit.mp4':
    Metadata:
    major_brand : isom
    minor_version : 1
    compatible_brands: isomavc1
    creation_time : 2012-01-22 17:24:02
    encoder : Lavf53.21.0
    Stream #0.0(und): Video: libx264, yuv420p, 640x352 [PAR 1:1 DAR 20:11], q=2-31, 750 kb/s, 2997 tbn, 29.97 tbc
    Metadata:
    creation_time : 2012-01-22 17:24:02
    Stream #0.1(und): Audio: libvo_aacenc, 44100 Hz, stereo, 109 kb/s
    Metadata:
    creation_time : 2012-01-22 17:24:04
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Press ctrl-c to stop encoding
    frame=10698 fps= 0 q=-1.0 Lsize= 42275kB time=356.99 bitrate= 970.1kbits/s
    video:37225kB audio:4781kB global headers:0kB muxing overhead 0.639633%
    eko@desktop:~$

Sumber: What to use to quickly cut Audio/Video

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s