Eu tentei usar o openshot, o pitivi, o kdenlive, o videolan para cortar um arquivo de áudio / vídeo, mas todos parecem congelar. Então, agora estou tentando usar o seguinte comando:
avconv -i input.MP4 -vcodec copy -acodec copy -ss 01:25:00 -t 01:26:00 output.MP4
Isso cria um arquivo no meu computador, mas quando eu o abro em vlc, só consigo ouvir o som e a duração é de 37.04 minutos. Era para ser um minuto de duração.
Além disso, tentei isso:
ffmpeg -ss 01:24:30 -t 01:25:00 -i orginalfile -vcodec copy -acodec copy newfile
Isso não corta o arquivo av, ele acaba sendo de corpo inteiro, mas apenas o áudio está disponível, sem vídeo.
O que estou fazendo de errado?
Eu também tentei:
avconv -i input.MP4 -ss 01:25:00 -t 01:26:00 -c:a copy -c:v copy output.MP4
e isso me dá o mesmo resultado acima.
A saída completa de ambos os comandos pode ser vista aqui:
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$