NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 24 25 26 27 28 … 34 Next »
Can't get VAAPI working for recording auto transcode

 
  • 0 Vote(s) - 0 Average
Can't get VAAPI working for recording auto transcode
patstr
Offline

Junior Member

USA
Posts: 4
Threads: 1
Joined: Jul 2020
#1
2020-07-19, 04:36 PM
I've got NPVR v5 set up on a Debian buster virtual machine. I followed the instructions here: https://github.com/sub3/NextPVR/wiki/Install-Linux. Everything seems to be working fine, except fort the recording auto transcode. I have VAAPI set up, and it works properly when I'm watching a channel from the web browser. VAAPI also works fine for transcoding in Jellyfin. It doesn't work for the NPVR recording auto transcode though. CPU encoding works, but my CPU isn't fast enough to keep up with multiple simultaneous recordings, so I'd really prefer to use VAAPI. If anyone could help me out with this, I'd really appreciate it. I've uploaded my zipped logs. Thanks for the help.


Attached Files
.zip   logs-20200719-1235.zip (Size: 487.16 KB / Downloads: 2)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,994
Threads: 956
Joined: May 2006
#2
2020-07-19, 05:20 PM (This post was last modified: 2020-07-19, 05:21 PM by mvallevand.)
Did you pick a resolution for auto transcode? It looks like the w=##:h:## value is not being sent to ffmpeg.

If you are planning to use the auto transcoded file with jellyfin this might not be good option. IMO this is a custom mode primarily meant for users who want to play recordings in the NextPVR web browser. It would be better to create a post processing batch file to leave it in ts format.

Martin
patstr
Offline

Junior Member

USA
Posts: 4
Threads: 1
Joined: Jul 2020
#3
2020-07-19, 05:25 PM (This post was last modified: 2020-07-19, 05:26 PM by patstr.)
In the transcoding section of the settings, I have the preferred streaming profile set to default, video encoder to VAAPI and recording auto transcode set to 1080p. I'm currently using NPVR to handle live TV and recordings and Jellyfin for ripped or downloaded TV shows and movies, with Kodi as a front end. For now at least, a custom NPVR format isn't a problem. I'm interested in auto transcoding to keep the file size of the recordings smaller.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,994
Threads: 956
Joined: May 2006
#4
2020-07-19, 05:34 PM (This post was last modified: 2020-07-19, 05:39 PM by mvallevand.)
Ok actually I was wrong I thought that it creates a temp file but if this works maybe the temp file gets renamed and the original is deleted.

For disk space a new hard disk makes for more sense especially if you ever want AC3. Using VAAPI doesn't magically eliminate CPU. You still might use a lot of CPU creating the creating the new file.

Martin
patstr
Offline

Junior Member

USA
Posts: 4
Threads: 1
Joined: Jul 2020
#5
2020-07-19, 05:46 PM
Auto transcoding works when the CPU is selected but not when VAAPI is selected. That's really my issue. My hypervisor tells me that when the CPU is used for auto transcoding of recordings, all 12 virtual CPUs assigned to the VM are being used at 100%. When a couple shows are being processed at the same time, it takes multiple hours to process them all. I can throw more cores at it, but I need some for the other VMs I run. I'd be open to getting a post-processing script set up if you could tell me how I might go about doing that.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,994
Threads: 956
Joined: May 2006
#6
2020-07-19, 05:51 PM
Like I posted sub missed passing the scale parameters once he fixes that it will work with vaapi If you try this you will see how it should work.

Code:
ffmpeg -y -vaapi_device /dev/dri/renderD128 -i "/home/jellyfin/recordings/The Amazing World of Gumball/Season 05/The Amazing World of Gumball.S05E35.The Petals.ts" -ignore_unknown -sn -fflags +genpts -codec:v h264_vaapi -vf "format=nv12,hwupload,scale_vaapi=w=1920:h=1080:format=nv12" -codec:a aac -strict experimental -ac 2 -ab 128k -hls_list_size 0 -hls_time 4 -hls_flags single_file "/home/jellyfin/recordings/The Amazing World of Gumball/Season 05/The Amazing World of Gumball.S05E35.The Petals.temp.m3u8"

Martin
patstr
Offline

Junior Member

USA
Posts: 4
Threads: 1
Joined: Jul 2020
#7
2020-07-19, 06:05 PM
That works, but it's very slow. It takes 20 seconds to encode 10 seconds of video. The GPU is an RX480. Do you think I'd have better luck using Handbrake with the AMD VCE encoder instead? And if I wanted to set up a post-processing script, how do I have NPVR call it when it's finished recording?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,994
Threads: 956
Joined: May 2006
#8
2020-07-19, 06:22 PM
I am out of the transcoding discussion drives are too cheap and h/w transcoding has a cost too no matter what the speed.

If you create an executable PostProcessing.sh file in the scripts folder it will run at the end. Be sure to read the wiki before posting it can be your friend https://github.com/sub3/NextPVR/wiki/scripts

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Hauppauge-HVR-850 not working Rooh2os 3 149 2025-06-08, 04:21 PM
Last Post: mvallevand
  Recording Plyback Timeline Issue JeffH 11 809 2025-01-17, 03:20 PM
Last Post: mvallevand
  Wake on suspend for recording flyingsubs 15 4,629 2024-12-03, 01:07 PM
Last Post: mvallevand
  NextPVR i.mjh.nz [Failed: Recording interrupted] Nzbaxterman 6 821 2024-10-29, 11:44 PM
Last Post: sub
Wink recording rules - nextpvr kfmf 4 796 2024-07-20, 08:50 AM
Last Post: kfmf
  Extra - {channel} argument not working? blitz2kx 2 607 2024-06-11, 03:54 PM
Last Post: blitz2kx
  Live stream not working while recording pciber 6 993 2024-06-10, 07:48 AM
Last Post: pciber
  Time scheduled radio recording? WagMan 8 1,179 2024-01-13, 05:34 PM
Last Post: mvallevand
  HDHomerun channel scan not working WagMan 2 775 2023-12-06, 02:38 PM
Last Post: mvallevand
  Recording length error VCR58 20 2,276 2023-11-12, 11:46 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode