Jump to content

Live Tv Keeps Freezing


iamkrillin

Recommended Posts

iamkrillin

I've been having trouble getting my live tv to play without stopping.  The tuner being used is a HD Homerun Flex Duo.  The stream starts ok, then after a minute or so the playback just stops.

I did find an error in the logs ::

	01:28:41.779 ffmpeg version 5.1-emby_2023_06_25 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
	01:28:41.779   built with gcc 10.3.0 (crosstool-NG 1.25.0)
	01:28:41.779 Execution Date: 2023-11-29 01:28:41
	01:28:43.360 [mpegts @ 0xa8f980] PES packet size mismatch
	01:28:43.360 [mpegts @ 0xa8f980] Packet corrupt (stream = 1, dts = 1563188539).
	01:28:43.361 [mpegts @ 0xa8f980] probed stream 0 failed
	01:28:43.361 [mpegts @ 0xa8f980] probed stream 1 failed
	01:28:43.361 [mpegts @ 0xa8f980] Could not find codec parameters for stream 0 (Unknown: none): unknown codec
	Consider increasing the value for the 'analyzeduration' (3000000) and 'probesize' (5000000) options
	01:28:43.361 [mpegts @ 0xa8f980] Could not find codec parameters for stream 1 (Unknown: none): unknown codec
	Consider increasing the value for the 'analyzeduration' (3000000) and 'probesize' (5000000) options
	01:28:43.361 Input #0, mpegts, from 'http://127.0.0.1:8096/LiveTv/LiveStreamFiles/48f8a6acbd894e2ebeb0b5fdb0d21cf2/stream.ts':
	01:28:43.361   Duration: N/A, start: 17368.761544, bitrate: N/A
	01:28:43.361   Stream #0:0[0x31]: Unknown: none, Start-Time 17369.350s
	01:28:43.361   Stream #0:1[0x34]: Unknown: none, Start-Time 17368.762s
	01:28:43.361 Stream specifier ':0' in filtergraph description [0:0]scale@f1=width=256:height=144[f1_out0] matches no streams.
	01:28:43.361 EXIT

 

I assume that bit about stream specifier is what is killing it, but I have no idea how to resolve this.  Any help would be greatly appreciated

embyserver.txt

Link to comment
Share on other sites

Have you tried other options to play from your HDhomerun ? one big thing is your internet speed, how fast is your net speed? Flex duo should not be stopping, is your emby client connected through a repeater which is on a different internal ip 'example: modem is 192.168.1.1 - repeater: 192.168.2.1' this will cause it to do that.

Link to comment
Share on other sites

iamkrillin

I done quite a bit of troubleshooting, and while I'm still not sure _what_ caused the problem, I can relay what troubleshooting I done and what ended up fixing it.

Some notes before I get started:
The android TV device and my pc use wired connections, my wifi is on v6 and is rather fast.  Additionally, there are no firewalls or similar between my client devices and the emby server during this testing

1: The first thing I tried was changing from the stable branch to the beta branch, this yielded the same behavior
2: I then tried it on a variety of clients (PC, Android TV, iPad, Phones, etc).

The above testing yielded the same behavior, after about 10 seconds or so the live tv would just pause, additionally, I noticed that after I stopped, emby did not disconnect from the HD Homerun device (this is when I posted here for help)

I then had a thought that maybe it was something to do with the software encoder being used by emby (as that was the only error that I saw), and I moved emby server to my desktop and tried it from there;  The problem vanished.

Euraka! I thought, I put a GPU in my server and used that for transcoding, the behavior returned.  Then I thought, um ok?..

After some thought, I installed the official docker image on another docker host, still using software encoding, flawless playback.

After this I surmised, it must be _something_ between truenas and emby that was interacting in a bad way, after this I moved emby to a another host it could have to itself, and I've not had any problems since

I guess, the moral to this story is, if your having emby playback issues with watching live tv from a hdhomerun AND your server is running on truenas (scale).  Try moving your emby server to another host, that may be the problem.

I can provide more logs and whatever, if someone is interested, I still have the docker image on my truenas server, its just turned off.

  • Like 1
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...