dragonfly9527 2013-12-23 11:58 采纳率: 100%
浏览 228

ffmpeg压缩mp4视频没有播放mozilla文件损坏错误

I have compressed mp4 video using ffmpeg in php environment. Videos are being compressed but these are not playing in firefox showing error:

Video can't be played because the file is corrupt

while this video is playing fine in VLC media player also in chrome browser. My code of comression is as-

exec("ffmpeg -i input.mp4 -acodec mp2 output.mp4");
  • 写回答

2条回答 默认 最新

  • dongqian5639 2014-03-13 15:12
    关注

    I know this is a few months old, but in case anyone is still intereste: I had this same thing happen and I found it was because my MP4s were encoded in "MPEG-4 Simple profile" a.k.a. H.263/MPEG4 part 2/xvid. These formats are not supported for playback in most browsers any more.

    Transcoding the files to H.264 fixed the problem.

    评论

报告相同问题?

悬赏问题

  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制