ErsatzTV icon indicating copy to clipboard operation
ErsatzTV copied to clipboard

ErsatzTV and ffmpeg bogs down the PC and makes it unusable.

Open Gryphon324 opened this issue 2 years ago • 3 comments

I'm running plex and ersatz on a dell Optiplex 7010 running win10. It's an i7 with 4 cores. I'm also running with 16GB of ram. When I play just one show from the DVR guide from the plex app on my roku, or even on plexweb, ersatz/plex just clocks for about 60-120 seconds before it either plays or aborts. I watch the CPU performance and it pegs out at 100% and ffmpeg constantly shows at 70%-95%. On the other hand, when I play the very same show through plex, the CPU utilization is down around 15% or lower. Is there some sort of setting I can use to keep ffmpeg from making the PC unusable for viewing media through ersatz?

Gryphon324 avatar Sep 20 '22 17:09 Gryphon324

Creating a continuous IPTV stream has significantly higher requirements/overhead than streaming a single VOD item to a matching client (Plex has its own clients, ETV has no client).

There are basically two options to reduce CPU use:

  1. Use a GPU for hardware acceleration
  2. Use HLS Direct streaming mode (see docs)

HLS Direct is 100% a hack, but one that works with some clients to use very little CPU. TiviMate on Android is the one that most people use.

jasongdove avatar Sep 21 '22 10:09 jasongdove

I'm having this issue as well. Even using hls direct fires something in ffmpeg and bogs down the machine. 6 cores all pegged at 100%. I've tried using Intel qsv but get an error:

HLS process for channel 2.1 has terminated unsuccessfully with exit code 1: [AVHWDeviceContext @ 000001a389ddbc40] Failed to create Direct3D device Device creation failed: -1313558101. Failed to set value 'qsv=hw:hw,child_device_type=dxva2' for option 'init_hw_device': Unknown error occurred Error parsing global options: Unknown error occurred

ellisd4 avatar Oct 17 '22 16:10 ellisd4

Even using hls direct fires something in ffmpeg and bogs down the machine

Note that if you are using Plex as a client, it does not support HLS Direct so ErsatzTV will force the channel to use MPEG-TS streaming mode regardless of the channel configuration.

Try HLS Direct with a client like MPV or TiviMate.

jasongdove avatar Oct 28 '22 23:10 jasongdove

HLS process for channel 2.1 has terminated unsuccessfully with exit code 1: [AVHWDeviceContext @ 000001a389ddbc40] Failed to create Direct3D device Device creation failed: -1313558101. Failed to set value 'qsv=hw:hw,child_device_type=dxva2' for option 'init_hw_device': Unknown error occurred Error parsing global options: Unknown error occurred

@ellisd4 this issue should be fixed on the latest release - ETV now uses Direct3D 11 on Windows for QSV (d3d11va instead of dxva2) which should work better in headless environments.

jasongdove avatar Sep 27 '23 11:09 jasongdove

This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.

If you have any questions you can use one of several ways to contact us.

github-actions[bot] avatar Feb 06 '24 04:02 github-actions[bot]

This issue was closed due to inactivity.

github-actions[bot] avatar Feb 28 '24 02:02 github-actions[bot]