Your location:Tech News>News>Script>Solution html5 video tag in question can not play mp4

Latest News

Solution html5 video tag in question can not play mp4




  Recently I discovered a problem in the mobile phone recorded a 1.mp4 file, normal playback mainstream browsers.However, the use of plant rmvb format file transcode 2.but can not play mp4.By finding relevant information finally resolved, share out the following for your reference study, let''s look at a detailed description:

  problem analysis

  Phone recorded video attributes:


  Video format transcoding chemical properties:


  First, rule out code issues, path issues, browser does not support issues.Transcoded video coding is MP4V, which is the reason the playback can not be converted into AVC (H264) can be encoded.

  Consult the documentation, the label on video supported video formats and encoding:

  With MPEG4 = H.264 video encoding and AAC audio encoding of MPEG4 files

  WebM = WebM files with VP8 video coding and audio coding Vorbis

  Ogg = Ogg files with Theora video coding and audio coding Vorbis

  Through the above information we found that only h264 encoded video MP4 (MPEG-LA Company), VP8 video encoding webm format (Google company) and video formats ogg Theora encoded (iTouch development) can support the html5


  video label allows multiple source elements, source elements can link to different video files, the browser will use the first recognized format, which can be used to resolve browser compatibility issues.




  Your browser does not support the video tag.


  to sum up

  That''s all for this article, I hope the contents of this paper, we study or work can bring some help, if in doubt you can leave a message exchange, thank you for the support scripts House.

Recommend article

Relate article