如何使用 ffmpeg 将视频转换为网络
我正在尝试重新划分,subclip和转换Web视频(HTML5视频标签)。目标浏览器:Chrome,Safari,Firefox,YA浏览器。
我正在使用这样的命令(更改一些参数)
ffmpeg -i c.mp4 -ss 00:00:00:00 -T 10 -VF scale = 312x104 -vcodec libx264 -strict -strict -strict -strict -movflags fastStart -pix_fmt yuv420p -profile :v高-Level 3 -r 25 -AN -SN -DN d.mp4 -y
,但每次视频都不在浏览器中播放时。
我想找到一些快速执行该任务的方法(这就是为什么我使用ffmpeg)和稳定(以便通过任何视频都可以为所有浏览器提供一个有效的视频),
我也尝试使用SetSar,SetDar params,但是仍然没有成功
I am trying to rescale, subclip and convert video for web (html5 video tag). Target browsers : Chrome, Safari, Firefox, Ya Browser.
I am using command like that (changing some params)
ffmpeg -i C.mp4 -ss 00:00:00 -t 10 -vf scale=312x104 -vcodec libx264 -strict -2 -movflags faststart -pix_fmt yuv420p -profile:v high -level 3 -r 25 -an -sn -dn d.mp4 -y
But every time video is not playing in some browser.
I would like to find some way to do that task fast (that's why I am using ffmpeg) and stable (so that any video passed would give me a valid video for all browsers)
I also tried to play with setsar, setdar params, but still no success
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
谢谢大家,我想我找到了适合我的情况
Thanks everyone, I guess I found smth suitable for my case