我的 MKV 到 MP4 转换的视频不能在 flex 中播放 [英] My MKV to MP4 converted video doesn't play in flex

查看:39
本文介绍了我的 MKV 到 MP4 转换的视频不能在 flex 中播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被困在过去 1 天的一个问题上.我正在使用 Adob​​e flex 视频显示器为我的网站播放视频.

I am stuck on one issue from last 1 day. I am using Adobe flex video display to play video for my site.

有一些使用 ffmpeg 将 MKV 转换为 MP4 的视频.

There is some converted video from MKV to MP4 using ffmpeg.

ffmpeg -i Test.mkv -vcodec copy -acodec copy Test.mp4

现在,我正在尝试从本地播放该视频,效果很好.但是当我将该视频上传到服务器并尝试播放视频时.那么它就不能与 flex VideoDisplay 一起工作,同样可以在浏览器和 HTML 视频播放器中工作,也可以与 JWPlayer 一起工作.

Now, i am trying to play that video from local it's working fine. But when i upload that video on server and trying to play video. Then it will not work with flex VideoDisplay same will work in browser and HTML videoplayer and also works with JWPlayer.

其他未转换的 mp4 视频效果很好.只有转换后的视频在 flex VideoDisplay 中不起作用.

Other mp4 video which are not converted works very fine. Only converted Videos are not working in only flex VideoDisplay.

我只是在玩.

<s:VideoDisplay id="videoDisp" autoPlay="false" autoDisplayFirstFrame="true" />

并给出 videoDisplay 的路径,例如:

And give path to videoDisplay like:

videoDisp.source = Video_path;

我的视频文件视频和音频编解码器如下图所示:

My video file Video and Audio codec is as shown in below image:

任何帮助将不胜感激,
谢谢.

Any help will be appreciate,
Thanks.

推荐答案

对于我的第一次测试,我看到一个 #2032 错误,这是一个流错误,我认为这是由您的视频大小引起的,因为 Flash 播放器正在尝试在开始播放之前下载整个视频,我认为有超时或类似的东西会触发该错误.所以为了避免这种情况,你可以使用 qt-faststart 将元数据和偏移信息移动到文件的前面,这将有助于更快地播放.

For my first tests, I saw an #2032 error, which is a stream error, and I think it's caused by the size of your video, because Flash player is trying to download the whole video before starting playing it, and I think there is a timeout or something like that which fire that error. So to avoid that, you can use qt-faststart to move metadata and offset information to the front of the file which will help to play it more quickly.

您可以从此处下载该工具,或者如果您喜欢python 你可以从这里尝试它.我还将在此处上传副本Win64.

You can download that tool from here or if you are a fun of python you can try it from here. I will also upload a copy here for Win64.

希望能帮到你.

这篇关于我的 MKV 到 MP4 转换的视频不能在 flex 中播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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