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

Freeze after playing first stream #4

Open
frederikbosch opened this issue Mar 27, 2015 · 5 comments
Open

Freeze after playing first stream #4

frederikbosch opened this issue Mar 27, 2015 · 5 comments

Comments

@frederikbosch
Copy link

We have problems with playing multiple stream after another. The usecase is as follows: we play a live stream, then we start to stream a video and finally we return to the live stream again.

With the current setup: our player (JW Player) freezes after the first stream. This was not the case with our previous streaming service (crtmpserver). Because this project also offers HLS, we would love to continue with the docker solution.

What could be the issue?

Our live stream is as follows:

ffmpeg -f x11grab -s 1472x1024 -r 25 -i :0.0+220,0 -f alsa -ac 2 -ab 128k -ar 44100 -i pulse -f flv rtmp://host/pub_12345k/stream

Our video stream is as follows:

ffmpeg -re -i file.mp4 -c copy -f flv rtmp://hostpub_12345/stream

Should we change something to the Nginx template?

@frederikbosch
Copy link
Author

I also opened a issue at the rmtp module of Nginx, because I do not know what is causing the issue. Is it configuration or is it a bug?

@Dexus
Copy link
Contributor

Dexus commented Apr 8, 2015

Hey, witch version of ffmpeg you use? And please give some info about nginx version, and other plugins/modules you use withit.

Thank You!

@frederikbosch
Copy link
Author

@Dexus See below my ffmpeg config:

ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014

Nginx is just the latest from the Dockerfile

nginx-1.7.7.tar.gz

Thanks for having at look at this!

@reid
Copy link
Member

reid commented Feb 26, 2016

Hey @frederikbosch and @Dexus,

I've updated this project's dependencies over on this project's experimental branch. You can pull these changes from the Docker Hub using the experimental tag. I have not tested this code yet — I'll be trying this out tomorrow and will promote to latest if things go well.

We use videojs-contrib-hls as the frontend player for the code on master without any issues.

@frederikbosch
Copy link
Author

Thanks @reid. I will check that out. But it's been a long time I have worked with rtmp and video streaming in general. Will let you know my feedback.

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