Skip to content

Instantly share code, notes, and snippets.

@vo
Created February 24, 2017 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vo/a0cc9313861888ad5180f442a4b7bf48 to your computer and use it in GitHub Desktop.
Save vo/a0cc9313861888ad5180f442a4b7bf48 to your computer and use it in GitHub Desktop.
simple streaming of video from gstreamer to WebM / VP8 / HTML5 in chrome
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>gstreamer video example</title>
</head>
<body>
<video width=640 height=480 autoplay>
<source src="http://localhost:8080">
</video>
</body>
</html>
gst-launch-1.0 -v videotestsrc ! vp8enc ! webmmux ! tcpserversink host=127.0.0.1 port=8080
@biohazardlby
Copy link

biohazardlby commented Nov 11, 2019

Thanks for the code! I'm getting a "Failed to load resource: net::ERR_INVALID_HTTP_RESPONSE" in chrome, but firefox works fine. Is there other way to stream video from gstreamer to chrome?

@captain1991cv
Copy link

Is there other way to stream video from gstreamer to chrome

did you find any solution for that?

@garciatruan
Copy link

Is there other way to stream video from gstreamer to chrome

did you find any solution for that?

anyone?

@LuxoftAKutsan
Copy link

Thanks for the code! I'm getting a "Failed to load resource: net::ERR_INVALID_HTTP_RESPONSE" in chrome, but firefox works fine. Is there other way to stream video from gstreamer to chrome?

Same issue

@janoglezcampos
Copy link

Hello everyone, Im working on an Electron app with GStreamer, and I needed it to work with Chrome, and after lots of headaches I managed it work, I posted the script used on a repository, is my first time posting code, may its not very good explained, so open an issue if you don't can't make it work or anything else so I can improve it.

The problem (as net::ERR_INVALID_HTTP_RESPONSE states), is that you need to add a response, so I did with NodeJs, wish it can help.

Here is the repository: https://github.com/janoglezcampos/GstreamerChromeBridge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment