Jump to content

XMLTV playback interruption on change


doffactory

Recommended Posts

doffactory

What I think it is that in the transcode-temp folder emby creates a file aaaaaaaaaaaaa.ts and starts its playback. While playing this, it is already creating bbbbbbbbbbb.ts, and so on. At some point emby fails to play one of these intermediary files, and exits with black screen. 

Link to comment
Share on other sites

Well  yes, but i think the problem happens earlier - the transcoding process fails when the program changes, and thus, the stream characteristics change.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
doffactory

I have an update. I digged out an earlier version of emby with which I had no issue with LiveTV (v3.4.0.0), and there is a setting "Auto-loop live streams". As soon as I tick it, my playback is fine. Without it it stops random, usually in 20-40 minutes once. Can you explain this behaviour and what does this setting do with ffmpeg? This setting is missing in newer versions of emby.

 

EDIT: typos

Edited by doffactory
Link to comment
Share on other sites

I have an update. I digged out an earlier version of emby with which I had no issue with LiveTV (v3.4.0.0), and there is a setting "Auto-loop live streams". As soon as I tick it, my playback is fine. Without it it stops random, usually in 20-40 minutes once. Can you explain this behaviour and what does this setting do with ffmpeg? This setting is missing in newer versions of emby.

 

This has been dropped deliberately because overall it did a lot more bad than good. For example, it allowed to continue in cases where users had overused their stream limits (or bad guys had stolen heir IPTV credentials from logfiles that users had posted). But the continuation often lead to repetitions in the tv recordings, or - even more subtle - created recordings playable on some devices but failing on others. 

The point is: when an incoming stream is not reliable and not properly adhering to mpegts and tv broadcast standards, it will cause problems at some point. That's why we're raising the bar a bit with regards to the incoming stream quality instead of trying to save to disk whatever we get.

 

I don't know what's happening in your case, though. We'd need to take a look at the logs to proceed.

Link to comment
Share on other sites

doffactory

@@doffactory - would you be able to show some logs? (you can PM these when you prefer)

Yes, during the weekend I might be able to create a new docker container and extract the logs. Sorry guys, I am working :)

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
doffactory

Hi, finally had some time to test. I set up a docker with emby v3.4.0.0 and loaded the same m3u from dockerized tvheadend as with the dockerized emby v4.3.1.0. Unfortunately, unlike my previous remarks, the transcoding breaks after a while with my streams (they must be somehow special) also in v3.4.0.0. I attach logs with both versions, also the logs from dockerized emby v4.3.1.0 (no idea why the .ts links differ, they refer to the same source coming through from my ISP iptv) with the same issue. After 10-20 minutes of continuous playback in Firefox the stream breaks (black screen with controls still visible on mouse movement). I try the playback from Firefox as my PC connected to tv is a linux box, so I wonder whether recent changes in Firefox might be the issue or what. I do not have similar issues with the same streaming server with the (mobile) Android client. Any suggestions are welcome as it drives me crazy when I watch the evening news, and it goes black when the most important message is being said.

emby-3.4.0.0.log

emby-4.3.1.0.log

Link to comment
Share on other sites

  • 2 weeks later...
doffactory

One more observation. I am using a dockerized emby container with the built-in ffmpeg provided within the container by you. However, my NAS (Asustor AS3202T) also comes with its own ffmpeg version. When I use the emby and ffmpeg provided by the NAS manufacturer, the transcoding does not appear to have the issue described above. I did not have a chance to test extensively though.

Link to comment
Share on other sites

doffactory

I meant I had an earlier apk from ASUSTOR App Central, and there you had the option to select the ffmpeg path.

Link to comment
Share on other sites

  • 1 month later...
doffactory

OK, finally I had some time to play with this myself. As much as I tried to use this with Emby and its web player, I ended up putting tvheadend in front of my iptv streams and defined a profile that does the transcoding of live tv streams for Emby. As a result, Emby now does not transcode the streams just directplays them, which seems to work. Tvheadend does the transcoding (with the help of iGPU, same setup as with Emby before, ie. /dev/dri/render128), and it uses less memory for doing this compared with Emby. The whole thing seems to be now stable enough and also the change in aspect ratio on certain channels seems to be solved when using tvheadend. 

 

Overall, this whole endeavour made me wonder whether there is something wrong with Emby's implementation of ffmpeg, or how ffmpeg is built for Emby... Tvheadend also uses ffmpeg, and over there it seems rock solid. Just a food for thought.

Link to comment
Share on other sites

  • 2 weeks later...

@@doffactory - Thanks for your investigations.

 

There are substantial changes in the works regarding IPTV, so please excuse that I can't look into this more closely as it wouldn't make a lot of sense :-)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...