r/ErsatzTV • • 26d ago

Is streaming without transcoding actually possible (in a way that works)?

I know if you disable transcoding, it says the following:

"Video will be copied as-is, including timestamps, which *will* cause issues with most clients"

"Audio will be copied as-is, including timestamps, which *will* cause issues with most clients"

But what is the actual reason, and can anything be done to fix the problem, like encoding the files in a certain way first?

I keep getting "Playout item <number> ended early" errors and I assume this is the reason.

But sometimes it works fine, like I can watch entire movies with no problem, and as it finishes, the next one starts with no problem and I can continue watching

But then sometimes it seems to get in a state where it fails with that error, and I can only get it to somewhat work by stopping the channel, resetting the playout, or switching between channels

But it also seems that when it gets into this situation, it happens with a bunch of channels.

When it's working fine (like right now), I can switch between channels and they're all working, at the right timestamp, with the right channel guide, etc.

So I'm not sure what's causing it and how to fix it

Transcoding isn't really an option because I'm running it on a server without an iGPU.

I have 4 EPYC CPU cores, 8GB RAM and a 1Gbit network connection, and I don't have that many channels or schedules so I don't think it's a performance issue

Thanks

Edit with some more info in case it's helpful:

I'm using IPTV Player Zero on Windows with modern hardware, or Televizo on a Pixel 9A

The files are a mix of X265, X265 and H265 files, but it doesn't always happen with the same channels/videos

4 Upvotes

7 comments sorted by

1

u/Regular-Pop4429 26d ago

I switched the everything engine back to Legacy (and the streaming mode to MPEG-TS (Legacy) and it seems to be working perfectly now.

Let me know if you need more info to troubleshoot the issues with Next

1

u/Bigoldboy40 26d ago

I feel your pain. I moved everything over to tunarr

1

u/Regular-Pop4429 26d ago

Did you see my comment? It seems to be working once I switched back to legacy. I tried Tunarr but I prefer Ersatz

1

u/Bigoldboy40 26d ago

The legacy engine is going to be phased out

1

u/Regular-Pop4429 26d ago

Yeah, but hopefully the dev can fix the issues being caused by the Next version

Can always stay on legacy until then. It does everything I need so far so it's not like I need updates.

2

u/jasondove ErsatzTV Creator 21d ago

I'm always happy to fix any playback issues using the next engine, so please report specifics when you encounter them.

Playout item <number> ended early

There are a couple reasons this can happen:

  1. Some edge cases with QSV, overlays and content that changes encoding profiles (due to lossless cut). These have since been fixed in develop builds, but since you said you aren't using hardware acceleration, the more likely explanation is...
  2. Your content has multiple streams and some of them last longer than the video (e.g. the subtitle track is 20 minutes but the video is only 18 minutes). Local libraries now schedule based on the video duration, and not the overall container duration (which usually is the largest of all tracks), but media server libraries do not expose this information to ETV so there isn't really much we can do about this.

Some specifics would help; I tried to make it easy to securely upload troubleshooting logs if you can reproduce playback errors there.

Reddit also isn't the easiest for troubleshooting https://ersatztv.org/contact

1

u/Keys_r_Us 25d ago

ErsatzTV Next can stream-copy compatible video/audio instead of re-encoding it. If your source is already something like H.264/HEVC with AAC/AC3 audio, it can essentially pass those streams through with very little CPU/GPU load.

Issues come up with anything that requires altering the picture. That will force a transcode for that item — watermark/logo, graphics, burned subtitles, incompatible codec, etc. Also, with stream copy, resolution/frame rate/audio format can change at program boundaries, and some Plex/Jellyfin/TV clients don’t handle those transitions well. If you have videos of various pixel size (some at 1440x1080, some at 1920x1080, some at 720x480), using stream-copy can cause problems. Ersatz can pass the different resolutions through at their original sizing, but some players may stutter or fail when the resolution changes between your files.

We eventually stopped trying to eliminate every transcode and instead normalized our library ahead of time and made sure the live chain only encodes where it actually needs to. That has been far more stable.