jordicenzano / lhls-simple-live-platform

Very simple low latency live platform prototype
68 stars 5 forks source link

Having issues running the demo #1

Closed ericxtang closed 4 years ago

ericxtang commented 4 years ago

Hi @jordicenzano, Thank you for publishing this demo! I tried to reproduce it and ran into some issues. I've recorded the issue here. Please take a look. I'd love to get this working in my dev environment.

jordicenzano commented 4 years ago

Hi, you are totally right I reproduced the problem really easy. Try Safari and/or quicktime. I will take a look when I have a change but my guess is ffmpeg does NOT like HTTP chunked transfer

Thanks to your feedback I updated the guide: "Tested with following players: Safari, and Quicktime (there is a known problem with ffplay)"

jordicenzano commented 4 years ago

Closing because there is a workaround (using other players: Safari and/or quicktime.)

ericxtang commented 4 years ago

Hi @jordicenzano - sorry I forgot to record in the previous video - I couldn't get Safari or Quicktime to work either. Here is another video for that

jordicenzano commented 4 years ago

Could you show in a video (or post a screenshot) the network tab of dev utils in Safari

Instead of ./transcoding-multirendition-rtmp.sh live could you try ./transcoding-multirendition-rtmp.sh test (the script will also generate a test video for you, so no need for OBS)

PS: You have the same Safari version as me

ericxtang commented 4 years ago

When I run the test video, it plays for a few seconds, and then hangs. Safari seems to get stuck trying to load the segments, but also the video ingest seems to stop. So it's unclear if the ingest is the problem or the playback is the problem.

I ran this a few times, and noticed that the ingest runs fine if I don't watch the video. I see that you write files to disk and then pipe them into the ts segment server. Do you think it could be something going on with the file upload/download path?

Screen Shot 2020-06-26 at 11 16 52 AM Screen Shot 2020-06-26 at 11 16 57 AM
jordicenzano commented 4 years ago

Thanks a lot for being persistent. I did find a deadlock in the go-chunked-streaming-server, and I just committed a fix. Now it should work for any player (it works for ffplay too)

You just need to:

ericxtang commented 4 years ago

Ahh - those file deletions.

Thanks for fixing the issue! Now it works really well. This is gonna help me get some early CDN testing done before we add LLHLS into Livepeer :)