From c7bab22de9139b1f9243966aed16c107ff25d36c Mon Sep 17 00:00:00 2001 From: atze Date: Wed, 23 Dec 2015 01:03:48 +0100 Subject: added verbose warning about timestamp patch, correct typo in filename pattern --- example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh b/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh index 86bd1d1..2a5ef02 100755 --- a/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh +++ b/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented-timestamps.sh @@ -1,8 +1,13 @@ #!/bin/sh + +# WARNING: Using '%t' in the output filename requires a patched FFmpeg! +# If this command fails with the messate 'Invalid segment filename template', +# you do not have such a FFmpeg version. + ffmpeg \ -i tcp://localhost:11000 \ -ac 2 -channel_layout 2 -aspect 16:9 \ -map 0:v -c:v:0 mpeg2video -pix_fmt:v:0 yuv422p -qscale:v:0 2 -qmin:v:0 2 -qmax:v:0 7 -keyint_min 0 -bf:0 0 -g:0 0 -intra:0 -maxrate:0 90M \ -map 0:a -c:a:0 mp2 -b:a:0 192k -ac:a:0 2 -ar:a:0 48000 \ -flags +global_header -flags +ilme+ildct \ - -f segment -segment_time 180 -segment_format mpegts segment-%t-%05d.ts.ts + -f segment -segment_time 180 -segment_format mpegts segment-%t-%05d.ts -- cgit v1.2.3