2시간 분량의 영화가 있고 다른 파일의 오디오(예: 01:25:00에서 01:30:00 사이의 5분)를 추출/복사하고 싶다고 가정해 보겠습니다. 이를 수행할 수 있는 방법이 있습니까?
파일은 .avi 형식입니다 -
Format : AVI
Format/Info : Audio Video Interleave
File size : 929 MiB
Duration : 2h 44mn
Overall bit rate mode : Variable
Overall bit rate : 790 Kbps
Writing application : VirtualDubMod 1.5.4.1 (build 2178/release)
Writing library : VirtualDubMod build 2178/release
Video
ID : 0
Format : MPEG-4 Visual
Format profile : Advanced Simple@L5
Format settings, BVOP : 1
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Custom
Codec ID : XVID
Codec ID/Hint : XviD
Duration : 2h 44mn
Bit rate : 662 Kbps
Width : 672 pixels
Height : 288 pixels
Display aspect ratio : 2.35:1
Frame rate : 23.976 (23976/1000) fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.143
Stream size : 778 MiB (84%)
Writing library : XviD 1.2.1 (UTC 2008-12-04)
Audio
ID : 1
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo
Mode extension : MS Stereo
Codec ID : 55
Codec ID/Hint : MP3
Duration : 2h 44mn
Bit rate mode : Variable
Bit rate : 115 Kbps
Nominal bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 136 MiB (15%)
Alignment : Aligned on interleaves
Interleave, duration : 24 ms (0.58 video frame)
Interleave, preload duration : 485 ms
Writing library : LAME3.98r
Encoding settings : -m j -V 4 -q 2 -lowpass 17 --abr 128
답변1
시도해 보셨나요 ffmpeg
? 그것은 마치
ffmpeg -vn \ # no video
-ss 01:25:00 \ # start offset
-t 300 \ # duration
-i foo.avi bar.mp3
성공할 수도 있습니다.