FFmpeg的移动视频编码口吃 [英] FFMpeg Mobile video encoding stutter

查看:185
本文介绍了FFmpeg的移动视频编码口吃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直与ffmpeg的视频编码,即使我的MP4的工作有很大的桌面上打转转,他们是光滑等他们在移动设备上的可怕。他们口吃并加载速度很慢,我想弄清楚这个问题。

作为一个例子,我做使用媒体元素插件的页面: http://mediaelementjs.com/ 和这我第一次放在附带mediaelementjs视频和它的工作好,它扩展到台式机和移动,快速装载,没有任何口吃播放。

不过我装我的视频,它是缓慢而充满口吃的,但只有在移动。所以,我想这可能是S3(它托管),但在本地保存的文件和同样的事情。

我希望有人谁知道H.264和/或ffmpeg的可以点我在为什么方向;这里是当前命令我正在运行的ffmpeg:

 的ffmpeg -i $ input_file_name -v codeC libx264 -r 100 -bt 300K -ac-AR 48000-AB 192K -strict -2 -y $ output_temp_file 2  - ;&放1

那么,我错过了?


解决方案

  

那么,我错过了?


移动设备有一个非常有限的计算能力。您正在尝试播放100FPS的视频文件 - 不会有任何移动设备我知道,能处理这样的帧频

第一 - 改变帧率为合理值,则调整分辨率,集编码的个人资料(基线,例如),视频比特率(质量,速率因子)。之后,你可以尝试一下你的文件。

I have been playing around with ffmpeg and video encoding and even though my mp4's work great on desktop, they are smooth etc they are terrible on mobile devices. They stutter and load very slowly and I am trying to figure out the problem.

As an example I made a page using the media element plugin: http://mediaelementjs.com/ and on it I first placed the video that comes with mediaelementjs and it worked well, it scaled to desktop and mobile and loaded quickly and played without any stutter.

However I loaded my video and it was slow and full of stutter, but only on mobile. So I thought it might be S3 (where it is hosted) but saved the file locally and same thing.

I am hoping someone who knows h.264 and/or ffmpeg can point me in the direction of why; here is the current command I am running on ffmpeg:

ffmpeg -i $input_file_name -vcodec libx264 -r 100 -bt 300k -ac 2 -ar 48000 -ab 192k -strict -2 -y $output_temp_file 2>&1

So what have I missed?

解决方案

So what have I missed?

Mobile devices have a very limited computing power. You are trying to play 100fps video file - there aren't any mobile device i know that can handle such framerate.

First - change framerate to reasonable value, then adjust resolution, set encoding profile (baseline, for example), video bitrate (quality, rate-factor). After that you can try out your files.

这篇关于FFmpeg的移动视频编码口吃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆