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 … 16 17 18 19 20 … 26 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
Offline

Posting Freak

Ontario Canada
Posts: 45,309
Threads: 865
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
Offline

Posting Freak

Ontario Canada
Posts: 45,309
Threads: 865
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
Offline

Posting Freak

Ontario Canada
Posts: 45,309
Threads: 865
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
Offline

Posting Freak

Ontario Canada
Posts: 45,309
Threads: 865
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
  Auto delete old recordings eriberg 0 59 2023-03-01, 04:02 AM
Last Post: eriberg
  Failed recording for a particular show spagio 9 313 2023-01-12, 12:46 AM
Last Post: mvallevand
  Current extras tuner process not stopped when recording on another channel is schedul greatwhitenorth 4 179 2022-12-04, 09:37 PM
Last Post: greatwhitenorth
  During recording, time remaining is extremely large thool 8 249 2022-11-19, 07:19 PM
Last Post: thool
  Settings pages not working or display anything nonuoha 1 132 2022-11-16, 04:00 AM
Last Post: mvallevand
  Failed recording Tugdwal 3 250 2022-10-20, 09:18 PM
Last Post: mvallevand
  IPTV channels not working after network changes spagio 11 327 2022-10-19, 05:41 PM
Last Post: sub
  v5.0.5 not recording: failed to start stream rkulagow 40 5,407 2022-08-08, 04:54 PM
Last Post: mvallevand
  Sometimes pi unresponsive, tuner locked, still recording? TheRealRoland 4 375 2022-08-02, 07:19 PM
Last Post: TheRealRoland
  recording trouble gdenton61 16 538 2022-07-14, 09:10 PM
Last Post: gdenton61

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

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

Linear Mode
Threaded Mode