strftime段文件名模板

时间:2015-05-12 05:56:25

标签: ffmpeg

我有一个很大的mp3文件,我在17:24开始录制。试图分成2分钟段:

ffmpeg -y -i test.mp3 -map 0 -c copy -f segment -segment_time 120 -reset_timestamps 1 -strftime 1 '1/test-%H-%M.mp3'

需要test-17-24.mp3, test-17-26.mp3, ...等细分受众群名称,实际第一个细分受众群被命名为当前时间,不会创建额外细分受众群

$ date
Tue May 12 06:52:04 MSK 2015
$ ffmpeg -y -i test.mp3 -map 0 -c copy -f segment -segment_time 120 -reset_timestamps 1 -strftime 1 '1/test-%H-%M.mp3'
ffmpeg version N-72058-g3ecc063 Copyright (c) 2000-2015 the FFmpeg developers
Input #0, mp3, from 'test.mp3':
  Duration: 05:45:05.94, start: 0.000000, bitrate: 171 kb/s
    Stream #0:0: Audio: mp3, 48000 Hz, stereo, s16p, 171 kb/s
[segment @ 000000000051d560] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, segment, to '1/test-%H-%M.mp3':
  Metadata:
    encoder         : Lavf56.33.100
    Stream #0:0: Audio: mp3, 48000 Hz, stereo, 171 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=N/A time=00:13:07.87 bitrate=N/A
video:0kB audio:16211kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
$ ls 1
test-06-52.mp3
$

0 个答案:

没有答案