search

Home  >  Q&A  >  body text

javascript - Help! When playing a video on a web page, there is only sound but no picture. How do you know whether the video is encoded as H264 or MPEG4 when uploading a video file on the web page?

Update question:

After testing, neither flash nor video tags can play mp4 files encoded in MPEG4. Now I want to change my thinking and want to prohibit users from uploading videos in this format from the source. I would like to ask if this encoding format can be recognized when uploading MP4 files on the web page? ?

The project I am developing plays videos uploaded by others. I encountered an MP4 file recorded by a mobile phone. When using the video tag to play, there is only sound but no picture. I originally thought that using flash could solve the problem, but then using jwplayer and ckplayer became a tragedy. There is only sound but no picture. I would like anyone in the forum who knows about this to help me find out how to solve it. I hope you can help me test it. Thank you!

Video information:


Video address:

http://test1-store.oss-cn-beijing.aliyuncs.com/591abafc12bbb0e42cc3896a.mp4 

Use jwplayer to play the picture:

高洛峰高洛峰2739 days ago1167

reply all(2)I'll reply

  • 迷茫

    迷茫2017-05-24 11:38:12

    Go check the video formats supported by HTML5 and convert your MP4 to a supported format

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-05-24 11:38:12

    There should be something wrong with the video format or the process of uploading the video. Indeed, there is only sound but no image

    reply
    0
  • Cancelreply