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 … 27 28 29 30 31 … 34 Next »
convert .ts to .mp4

 
  • 0 Vote(s) - 0 Average
convert .ts to .mp4
SteveTyrakowski
Offline

Member

Posts: 142
Threads: 26
Joined: Dec 2004
#1
2020-03-01, 12:03 AM
Hi,

I am trying to set up a new v5 server on Linux after running an old v4 under Windows 7.  The last obstacle I have before going live is to get PostProcessing.sh to handle calling HandbrakeCLI to convert to mp4 to significantly reduce the file size.

I have the script successfully doing the conversion, and deleting the .ts file because in previous posts on the subject I was told that it would automatically handle finding the .mp4 file.  When I deleted the .ts file, the recording disappeared from the list of recordings on the web interface.  If I look at the SQLite database, the record is still in scheduled_recordings with the .ts filename but it doesn't show up.  So maybe NextPvr is hiding files that "don't exist".

In v4, I had a Delphi program that handled this stuff and it updated the database with the new filename even though I was told it wasn't needed.  I'd like to just handle this all in PostProcessing.  I guess I'll have to figure out how to update the database if necessary.  

Would I also need to update the .xml file?

Thanks
Steve Tyrakowski
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#2
2020-03-01, 12:14 AM
If the file name is exactly the same, same directory, same upper/lower case, just varying by file extension, then it should find it automatically.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,977
Threads: 956
Joined: May 2006
#3
2020-03-01, 12:16 AM (This post was last modified: 2020-03-01, 12:18 AM by mvallevand.)
You don't need to convert to ts files to mp4 to save file size. Have you considered using sub's built in recording Auto Transcoding feature on the Setting->Transcoding page? The files will be just as small and will maintain compatibility with all NextPVR clients.

Sub also added VAAPI support so you should be able to get h/w transcoding like handbrake if your card supports it

Martin
SteveTyrakowski
Offline

Member

Posts: 142
Threads: 26
Joined: Dec 2004
#4
2020-03-01, 12:49 AM
Sub,

Yes the file is exactly the same except for extension. Perhaps the only problem is that it does not show up in the recordings in the user interface after deleting the .ts version, so I am unable to see if it would try to use the mp4 when playing.

Martin,

I noticed the transcoding feature and thought that was for on the fly transcoding during playback on devices that didn't handle .ts. I will experiment with it to see if does what I need. Simpler is better.

Thanks for the quick replies

Steve Tyrakowski
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#5
2020-03-01, 01:06 AM
(2020-03-01, 12:49 AM)SteveTyrakowski Wrote: I noticed the transcoding feature and thought that was for on the fly transcoding during playback on devices that didn't handle .ts. 
They still end up a .ts file. It's primary purpose is to convert recordings to H.264 video and AAC audio, so they're more straight forward to stream to clients that need this type of content (like the web browser etc). ie, getting rid of MPEG-2 and AC3, which need on the fly transcoding.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#6
2020-03-01, 01:08 AM
(2020-03-01, 12:49 AM)SteveTyrakowski Wrote: Yes the file is exactly the same except for extension.  Perhaps the only problem is that it does not show up in the recordings in the user interface after deleting the .ts version, so I am unable to see if it would try to use the mp4 when playing.
maybe check your config.xml has <CheckForRenamedRecordings>true</CheckForRenamedRecordings>
SteveTyrakowski
Offline

Member

Posts: 142
Threads: 26
Joined: Dec 2004
#7
2020-03-01, 01:31 AM
Yes that setting is true

Also true is <AutoRemoveMissingRecordings>

I did not change any settings in the config.xml, only the settings changed were via the web interface Settings.

Steve T
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#8
2020-03-01, 01:36 AM
Where are you trying to view the recording list - the web app, or nextpvr.exe?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,977
Threads: 956
Joined: May 2006
#9
2020-03-01, 01:39 AM
The server is Linux.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#10
2020-03-01, 02:03 AM
I have a suspicion that maybe the web app wont trigger this logic by default, because there is a few places it does a 'fast load' of the recording list, which effectively by passes some of these checks.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


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

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

Linear Mode
Threaded Mode