NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
1 2 3 4 5 … 34 Next »
Downloaded VOD cannot skip ahead/FF/RW/RESUME

 
  • 0 Vote(s) - 0 Average
Downloaded VOD cannot skip ahead/FF/RW/RESUME
SysAdminZ
Offline

Member

US
Posts: 64
Threads: 3
Joined: Mar 2025
#81
2025-03-24, 12:00 AM
THANK YOU Martin. I am going to have fun running through a few of my existing recordings then I for sure will be looking at what will be needed to add to the post processing script. I prefer the mp4 download even if it takes a bit longer.

Who knows, maybe this feature will be available directly from the webapp of NextPVR one day and skip the transcoding to TS altogether now that you have proven it can be done with NextTool :-)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,834
Threads: 954
Joined: May 2006
#82
2025-03-24, 12:42 AM (This post was last modified: 2025-03-24, 12:43 AM by mvallevand.)
I think sub will be able to fix the broken time issue which is the biggest factor impacting Kodi playback plus the 6000 API limit which we found.  Hopefully he will be able to give a direct download alternative.  However while a ts file can be played in progress with the in-progress chunked reader, I am not sure that applies to mp4 and mkv (and certainly not all of them).    I am glad to see the directly download mp4 file can be played in the browser.

Here is the update with the extra parameter --vod filename.ts --download

The command with the download will be something like.  You can test with sudo -u nextpvr /var/opt/nextpvr/scripts/PostVODProcessing.sh filename.ts (don't forget chmod +x)

Code:
cd /opt/nextpvr/system
/opt/dotnet/dotnet NextTool.dll --vod $1 --download

There are some weaknesses for example any filename with crap like 4K:, HD or UHD that NextPVR strips out from the recording name will mean I can't find the match on the VOD table unless sub enhances the scheduled_recording table.

M3u files can have multiple copies of the same VOD name.

I don't save the filesize for Kodi to avoid confustion when it is incorrect.  I could save the ts file size I guess.

If you do go the mp4 route edit config.xml to make sure that .mp4 files are deleted when a recording is deleted (say before you play it)

Martin
SysAdminZ
Offline

Member

US
Posts: 64
Threads: 3
Joined: Mar 2025
#83
2025-03-24, 01:01 AM (This post was last modified: 2025-03-24, 01:54 AM by SysAdminZ.)
did you attach a new version or will the new parameter work with the last version?

newb question here, but if I wanted to remove the TS file after MP4 download would it be something as simple as this?

Code:
cd /opt/nextpvr/system
/opt/dotnet/dotnet NextTool.dll --vod $1 --download
rm $1


The line in the config.xml to add for MP4 files getting removed if choosing to delete recording in the PVR is this one right?
<DeleteAdditionalExtensions>srt,txt,log,d2a,edl,csv,bat,wme,vprj,logo.txt,dvbsub,sm,xml,map,m3u8,thumbnails,timing</DeleteAdditionalExtensions>
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,834
Threads: 954
Joined: May 2006
#84
2025-03-24, 02:38 AM (This post was last modified: 2025-03-24, 02:44 AM by mvallevand.)
Sorry about that.

Yes and yes.  Deleting it in Linux can even be done will it is in progress.  Be careful though since if sub adds direct download it will get deleted. Also maybe check to make sure the file was downloaded (via the script) since it is possible the original file didn't get transferred. Also the original could be an mkv (the utility doesn't allow a ts download)

Martin


Attached Files
.zip   NextTool-2.6.0.zip (Size: 174.64 KB / Downloads: 2)
SysAdminZ
Offline

Member

US
Posts: 64
Threads: 3
Joined: Mar 2025
#85
2025-03-24, 03:06 AM
Excellent! I may get a bit creative with some IF statements to cover a few scenarios. Much appreciated!
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,834
Threads: 954
Joined: May 2006
#86
2025-03-24, 03:24 AM
You can play with $2 since it gives the name. I hope to expand this for TV shows too but I would like to see sub make a core change on the initial file rather than do it in NextTool, I think there is a logic issue.

Martinl
SysAdminZ
Offline

Member

US
Posts: 64
Threads: 3
Joined: Mar 2025
#87
2025-03-24, 06:53 PM
Do you have any suggestions for handling characters like ( or ) in the title folder and/or name of the movie title folder or ts filename? When manually entering in the path and filename I add quotes to incorporate correctly but when running from 'PostVODProcessing.sh' script it fails because the quotes are not getting pulled into the command correctly.

Log output:
[...startup]
2025-03-24 13:13:15.204 [DEBUG][1] NextTool, Version=2.6.0.0, Culture=neutral, PublicKeyToken=null
2025-03-24 13:13:15.216 [INFO][1] Using remote RecordingService
2025-03-24 13:13:15.216 [DEBUG][1] Database: /var/opt/nextpvr/npvr.db3
2025-03-24 13:13:15.243 [INFO][1] --vod /media/recordings/move title (2002)/movie title (2002).ts --download
2025-03-24 13:13:15.246 [DEBUG][1] Recording not found

what I currently have tested manually and is working when specifying filename and path with quotes:
cd /opt/nextpvr/system
/opt/dotnet/dotnet NextTool.dll --vod $1 --download
wait 3600 & rm $1

(I am going to try and reduce the wait time to 5 seconds and see if it still works.. had it with no wait time and was stopping the mp4 download with removing the ts file immediately)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,834
Threads: 954
Joined: May 2006
#88
2025-03-24, 07:07 PM
The logs would tell if the file was passed correctly, I expect it is something sub has to address when building the call. Normally sub's API allow more flexibility with record ID's this one is not well defined and you might be the first one using it.

Marti
SysAdminZ
Offline

Member

US
Posts: 64
Threads: 3
Joined: Mar 2025
#89
2025-03-24, 09:01 PM (This post was last modified: 2025-03-24, 09:07 PM by SysAdminZ.)
Just adding double quotes around the variable seems to work.  Nexttool fixed the duration, updated metadata and kicked off the mp4 download, completed then removed ts file.

cd /opt/nextpvr/system
/opt/dotnet/dotnet NextTool.dll --vod "$1" --download
wait 5 & rm "$1"
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,834
Threads: 954
Joined: May 2006
#90
2025-03-24, 09:23 PM
There are special meanings to what double quotes do in an script but in general that will be better than single quotes because many titles will have single quotes.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (10): « Previous 1 … 6 7 8 9 10 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Skip ParallelProcessing.sh on all BBC channels TokenVideo22 2 736 2022-12-03, 05:40 PM
Last Post: TokenVideo22

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

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

Linear Mode
Threaded Mode