我的MKV到MP4转换的视频不会弹奏 [英] My MKV to MP4 converted video doesn't play in flex

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

问题描述

我过去1天遇到了一个问题。我使用Adobe Flex视频显示器为我的网站播放视频。



使用ffmpeg有一些从MKV转换为MP4的视频。

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

现在,我正在尝试从本地播放该视频正常工作。但是当我在服务器上上传视频并尝试播放视频时。然后它将无法使用flex VideoDisplay 同样可以在浏览器和HTML视频播放器中使用,并且还可以与JWPlayer一起使用。



其他不转换的mp4视频效果非常好。只有转换的视频才能在Flex VideoDisplay中工作。



我只是在使用。

 < s:VideoDisplay id =videoDispautoPlay =falseautoDisplayFirstFrame =true/> 

并给出 videoDisplay 的路径,如:

  videoDisp.source = Video_path; 

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





任何帮助将会欣赏,

谢谢。

解决方案

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



你可以从这里下载该工具,或者如果您是python的乐趣,您可以尝试来自 here 。我还将上传此处的副本Win64。





希望可以帮助。


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

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

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

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.

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

I am Just playing using.

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

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.

解决方案

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.

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.

Hope that can help.

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

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