Saya telah mencoba menggunakan openshot, pitivi, kdenlive, videolan untuk memotong file audio / video tetapi mereka semua tampaknya membeku. Jadi saya sekarang mencoba menggunakan perintah berikut:
avconv -i input.MP4 -vcodec copy -acodec copy -ss 01:25:00 -t 01:26:00 output.MP4
Ini membuat file di komputer saya tetapi ketika saya membukanya di vlc, saya hanya bisa mendengar suara dan panjangnya 37,04 menit. Seharusnya sepanjang 1 menit.
Juga, coba saja ini:
ffmpeg -ss 01:24:30 -t 01:25:00 -i orginalfile -vcodec copy -acodec copy newfile
Ini tidak memotong file av sama sekali, itu berakhir menjadi panjang penuh tetapi hanya audio yang tersedia, tidak ada video.
Apa yang saya lakukan salah?
Saya juga sudah mencoba:
avconv -i input.MP4 -ss 01:25:00 -t 01:26:00 -c:a copy -c:v copy output.MP4
dan itu memberi saya hasil yang sama seperti di atas.
Output penuh dari kedua perintah dapat dilihat di sini:
oshiro@home-desktop:~/Desktop$ avconv -i SDV_1195.MP4 -vcodec copy -acodec copy -ss 01:24:00 -t 01:25:30 2.MP4
avconv version 0.8.13-4:0.8.13-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
built on Jul 15 2014 12:56:47 with gcc 4.6.3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1e8c7a0] max_analyze_duration reached
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'SDV_1195.MP4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
creation_time : 1947-02-10 00:03:08
Duration: 02:01:04.29, start: 0.000000, bitrate: 2137 kb/s
Stream #0.0(eng): Video: h264 (Main), yuv420p, 720x576, 2000 kb/s, PAR 64:45 DAR 16:9, 50 fps, 50 tbr, 90k tbn, 180k tbc
Metadata:
creation_time : 1947-02-10 00:03:08
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 127 kb/s
Metadata:
creation_time : 1947-02-10 00:03:08
Output #0, mp4, to '2.MP4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
creation_time : 1947-02-10 00:03:08
encoder : Lavf53.21.1
Stream #0.0(eng): Video: ![0][0][0] / 0x0021, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 2000 kb/s, 90k tbn, 90k tbc
Metadata:
creation_time : 1947-02-10 00:03:08
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, 127 kb/s
Metadata:
creation_time : 1947-02-10 00:03:08
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press ctrl-c to stop encoding
frame= 0 fps= 0 q=-1.0 Lsize= 35570kB time=2224.30 bitrate= 131.0kbits/s /s
video:0kB audio:34755kB global headers:0kB muxing overhead 2.345804%
oshiro@home-desktop:~/Desktop$ avconv -i SDV_1195.MP4 -ss 01:24:00 -t 01:25:30 -c:a copy -c:v copy output-clip.mp4
avconv version 0.8.13-4:0.8.13-0ubuntu0.12.04.1, Copyright (c) 2000-2014 the Libav developers
built on Jul 15 2014 12:56:47 with gcc 4.6.3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xd307a0] max_analyze_duration reached
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'SDV_1195.MP4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
creation_time : 1947-02-10 00:03:08
Duration: 02:01:04.29, start: 0.000000, bitrate: 2137 kb/s
Stream #0.0(eng): Video: h264 (Main), yuv420p, 720x576, 2000 kb/s, PAR 64:45 DAR 16:9, 50 fps, 50 tbr, 90k tbn, 180k tbc
Metadata:
creation_time : 1947-02-10 00:03:08
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 127 kb/s
Metadata:
creation_time : 1947-02-10 00:03:08
Output #0, mp4, to 'output-clip.mp4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
creation_time : 1947-02-10 00:03:08
encoder : Lavf53.21.1
Stream #0.0(eng): Video: ![0][0][0] / 0x0021, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 2000 kb/s, 90k tbn, 90k tbc
Metadata:
creation_time : 1947-02-10 00:03:08
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, 127 kb/s
Metadata:
creation_time : 1947-02-10 00:03:08
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press ctrl-c to stop encoding
frame= 0 fps= 0 q=-1.0 Lsize= 35570kB time=2224.30 bitrate= 131.0kbits/s /s
video:0kB audio:34755kB global headers:0kB muxing overhead 2.345804%
oshiro@home-desktop:~/Desktop$
ffmpeg
. Periksa jawaban ini. askubuntu.com/a/318132