Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GStreamer error: can't play video #24180

Open
elaye opened this issue Sep 11, 2019 · 6 comments
Open

GStreamer error: can't play video #24180

elaye opened this issue Sep 11, 2019 · 6 comments

Comments

@elaye
Copy link

elaye commented Sep 11, 2019

I'm testing a very simple HTML file with just a video like this:

<!DOCTYPE html>
<html>
  <body>
    <video src="./video.mp4" type="video/mp4" controls style="display: block;"></video>
  </body>
</html>

The video doesn't display and I have the following error in the terminal:

[2019-09-11T12:15:47Z ERROR script::dom::htmlmediaelement] Player error: "Error from element /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0: GStreamer encountered a general stream error.\nGStreamer encountered a general stream error.\nqtdemux.c(7577): gst_qtdemux_process_adapter (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:\nno \'moov\' atom within the first 10 MB"

The video plays fine in Quicktime Player, mpv and gst-play. I can play it in other browsers too.

My version of GStreamer is 1.16.0 and I'm running servo on MacOS 10.14.6 (Mojave).

@ceyusa
Copy link
Contributor

ceyusa commented Sep 11, 2019

I always tested the video using a local http server (python's simple http). I don't know how the local resource works in this case, if it's fast enough to feed the player.

@ferjm
Copy link
Contributor

ferjm commented Sep 11, 2019

@elaye thanks for the issue report. Could you share the mp4 you are testing with, please?

@ferjm
Copy link
Contributor

ferjm commented Sep 11, 2019

This may be a dup or be related to #23241

@ferjm ferjm added this to To do in Media playback Sep 11, 2019
@elaye
Copy link
Author

elaye commented Sep 11, 2019

@ceyusa good call ! I tried with a local http server and it works fine so my use of a local resource seems to be the issue.

@ferjm
Copy link
Contributor

ferjm commented Sep 11, 2019

Ideally, we should make a/v playback from local resources work as reliably as possible as well :). So I would still like to investigate the reason of this error you are experiencing.

@elaye
Copy link
Author

elaye commented Sep 12, 2019

It seems there are two different issues depending on the size of the video.
With a short video the playback freezes after a couple of frames and with a longer video I have the error mentioned above.
I put my tests online so you can try to reproduce it.

https://github.com/elaye/tests/tree/master/servo/local-video-playback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Media playback
  
To do
Development

No branches or pull requests

4 participants