Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLS transcoding not using the GPU #4534

Closed
Mik-S-UMS opened this issue Mar 16, 2024 · 2 comments · Fixed by #4647
Closed

HLS transcoding not using the GPU #4534

Mik-S-UMS opened this issue Mar 16, 2024 · 2 comments · Fixed by #4647

Comments

@Mik-S-UMS
Copy link

I have been trying to figure this one out on the forum
It appears GPU encoding is not working for HLS but works normally when not using it.
I don't have a graphics card that can do the encoding so I can't test it myself.

All I see in the logs is "Something wrong" before the transcode command and it uses lib264 instead of h264_nvenc

net.pms.encoders.FFMpegVideo Switching from FFmpeg to Hls FFmpeg to transcode.
net.pms.platform.windows.WindowsUtils Using short path name of "F:\Films et Séries 4K\Avatar - la voie de l'eau\Avatar - la voie de l'eau.mkv": "F:\FILMSE~2\AVATAR~1\AVATAR~1.MKV"
net.pms.configuration.ConfigurationReader Reading gpu_acceleration: true (default: false)
net.pms.encoders.FFMpegVideo Something wrong, falling back to h264
net.pms.platform.windows.WindowsNamedPipe Creating pipe \\.\pipe\ffmpeghlsvideo_100_1710168890735
net.pms.platform.windows.WindowsNamedPipe Waiting for Windows names pipe connection "\\.\pipe\ffmpeghlsvideo_100_1710168890735"
net.pms.io.ProcessWrapperImpl Starting "C:\Program Files (x86)\Universal Media Server\bin\ffmpeg.exe" -y -loglevel info -t 6.0 -sn -i F:\FILMSE~2\AVATAR~1\AVATAR~1.MKV -sn -map 0:V -map 0:a:0 -dn -copyts -c:v libx264 -keyint_min 25 -preset superfast -profile:v high -level 30 -pix_fmt yuv420p -c:a aac -ac 2 -ab 160000 -f mpegts -skip_estimate_duration_from_pts 1 -use_wallclock_as_timestamps 1 -movflags frag_keyframe \\.\pipe\ffmpeghlsvideo_100_1710168890735

There are issues with the speed test too as they are getting a speed of 2Mb/s on wifi but high bitrate 4K videos will play normally when streaming, and this speed test was forcing everything to be transcoded and unplayable. Even with a wired connection they only get 17mb/s.

@SubJunk
Copy link
Member

SubJunk commented Apr 22, 2024

@SurfaceS any ideas?

@SurfaceS
Copy link
Contributor

fixed in #4647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants