ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7376|回复: 0

[Linux] 求助ffmpeg -ss 时间裁剪问题

[复制链接]
发表于 2020-6-24 11:49:42 | 显示全部楼层 |阅读模式
我使用 -ss t1 -to t2 命令作为输入选项,然后对这段视频添加了一些滤镜,输出视频的第一帧没有视频,只有添加的背景图和文字。

命令:
  1. /usr/bin/ffmpeg -loglevel warning -y -t 31.6 -i black_bkg.png -t 31.6 -itsoffset 0 -i 18b8f9788ea9407d8d380255f1af13b5 -ss 11.96 -to 43.56 -itsoffset 0 -i 55199cf70ec5479da33bee3e1db79a4b.mp4 -ignore_loop 0 -t 31.6 -itsoffset 0 -i gif-5a.gif -filter_complex [1:v]scale=720:1280[background];[0:v][background]overlay=0:0:enable=between(t\,0\,31.6)[bkg1];[2:v]delogo=x=10:y=356:w=138:h=30,crop=w=575:h=308:x=0:y=348,scale=720:384[body];[bkg1][body]overlay=0:448:enable=between(t\,0\,31.6)[bkg2];[3:v]scale=720:160[res3];[bkg2][res3]overlay=0:1056:enable=between(t\,0\,31.6)[bkg3];[bkg3]drawtext=fontfile=/workspace/code/modi_video_edit_service/modi_video_edit_service/fonts/lottie_fonts/NotoSansHans-Black.otf:text=五官便会消失不见:fontcolor=#FFFFFF:fontsize=60:bordercolor=#000000:borderw=12:x=(w-text_w)/2:y=847,drawtext=fontfile=/workspace/code/modi_video_edit_service/modi_video_edit_service/fonts/lottie_fonts/NotoSansHans-Black.otf:text=村里出现奇怪泥巴:fontcolor=#f2d85f:fontsize=68:bordercolor=#000000:borderw=12:x=(w-text_w)/2:y=280,drawtext=fontfile=/workspace/code/modi_video_edit_service/modi_video_edit_service/fonts/lottie_fonts/NotoSansHans-Black.otf:text=只要小孩粘上:fontcolor=#f2d85f:fontsize=68:bordercolor=#000000:borderw=12:x=(w-text_w)/2:y=360 -strict -2 -preset superfast /workspace/code/modi_video_edit_service/modi_video_edit_service/tmp_materials/tmp_tou_6daf6616-b5c9-11ea-b608-0b58fed0aae1/6ee461a8-b5c9-11ea-b608-0b58fed0aae1.mp4
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-12-27 12:19 , Processed in 0.049735 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表