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

Streaming .avi files shows a download popup #21

Open
mreis1 opened this issue Jan 16, 2015 · 3 comments
Open

Streaming .avi files shows a download popup #21

mreis1 opened this issue Jan 16, 2015 · 3 comments

Comments

@mreis1
Copy link

mreis1 commented Jan 16, 2015

Hello,
I tried to stream a .avi file but it gets downloaded instead of streamed. .mp4 files works like a charm.
Thanks

@mreis1 mreis1 changed the title Streaming .avi files Streaming .avi files shows a download popup Jan 16, 2015
@meloncholy
Copy link
Owner

This is probably because your browser doesn't support playing AVI files. I've just tried opening an AVI in Chrome directly (hadn't checked if they supported those for a while) and it downloaded, whereas an MP4, as you say, will play fine in the browser.

If you're using a different browser / have different plugins / are running a different OS then you may get different behaviour (and please let me know :), but otherwise there's not a lot I can do. Sorry.

@mh-cbon
Copy link
Contributor

mh-cbon commented Feb 17, 2016

afaik, and after a quick check, avi is not a good candidate for streaming
http://stackoverflow.com/a/743229/4466350

One solution is to encode on the fly the avi to mp4, see this for example
https://github.com/nknapp/html5-media-converter/blob/master/src/VideoConverter.js
it is using fluent-ffmpeg under the hood.

My personal tries about that was not so good as it needs a good machine to transcode the video with a good quality. It also depends of the context within what your application will run.

@mreis1
Copy link
Author

mreis1 commented Aug 11, 2016

@mh-cbon thanks for the reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants