更新时间:2022-03-18 02:08:31
preview.ibb.co/ibNB4k/1.jpg第一个代码
preview.ibb.co/ibNB4k/1.jpg First code
在第一个字幕中,字幕有点高,代码是:
At the first one, subtitles are little bit high, and the code is:
ffmpeg -i http://localhost:9099/play/a07w -metadata title="Cinemax" -filter_complex "[0:s:0] scale=-1:500 [sub],[0:v][sub] overlay=x=30:y=-10" -c:v libx264 -crf 20 -preset veryfast -aspect 16:9 -c:a aac -strict experimental -b:a 192k -flags -global_header -f segment -segment_format mpegts -segment_list_type m3u8 -segment_list /var/www/html/CINEMAX.m3u8 -segment_time 5 -segment_list_flags +live -segment_wrap 6 -segment_time 10 /var/www/html/CINEMAX-%00d.ts
在第二个字幕中,字幕比第一个略低: https://preview.ibb.co/e6VaVQ/2.jpg 第二个密码
At second one, subtitles are little low than the first one: https://preview.ibb.co/e6VaVQ/2.jpg Second code
ffmpeg -i http://localhost:9099/play/a07w -metadata title="Cinemax" -filter_complex "[0:s:0] scale=-1:500 [sub],[0:v][sub] overlay=x=30:y=-1" -c:v libx264 -crf 20 -preset veryfast -aspect 16:9 -c:a aac -strict experimental -b:a 192k -flags -global_header -f segment -segment_format mpegts -segment_list_type m3u8 -segment_list /var/www/html/CINEMAX.m3u8 -segment_time 5 -segment_list_flags +live -segment_wrap 6 -segment_time 10 /var/www/html/CINEMAX-%00d.ts
第三个位于底部: https://preview.ibb.co/hyZfx5/3.jpg
nohup ffmpeg -i http://localhost:9099/play/a07w -metadata title="Cinemax" -filter_complex "[0:s:0] scale=-1:500 [sub],[0:v][sub] overlay=x=15:y=80" -c:v libx264 -crf 20 -preset veryfast -aspect 16:9 -c:a aac -strict experimental -b:a 192k -flags -global_header -f segment -segment_format mpegts -segment_list_type m3u8 -segment_list /var/www/html/CINEMAX.m3u8 -segment_time 5 -segment_list_flags +live -segment_wrap 6 -segment_time 10 /var/www/html/CINEMAX-%00d.ts > /dev/null 2>&1
缩放选项用于缩放字体大小",它取决于视频分辨率.
The scale option is for scaling "the font size", and it's depend from video resolution.
当前正在运行并经过测试的版本:ffmpeg版本3.3.2-1〜14.04.york1版权所有(c)2000-2017 FFmpeg开发人员
The current running and tested version: ffmpeg version 3.3.2-1~14.04.york1 Copyright (c) 2000-2017 the FFmpeg developers