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
#11
2020-03-01, 03:58 AM
I updated the filename in scheduled_recording and now it shows up in the Web UI, so yes it might be an issue in that UI. I will just figure out how to update the database and the xml in my PostProcessing script. I was hoping to avoid that because I very sporadically had issues with the database getting locked and causing problems with the recording service when I did something similar in V4 on windows.

Thanks,
Steve Tyrakowski
vintdiesel
Offline

Member

Posts: 114
Threads: 23
Joined: Jan 2012
#12
2020-03-01, 09:34 PM
Hi Steve,
I've been transcoding from .ts -> .mp4 for many years, and when ported to Linux had similar issues, but I don't have to edit the database.

Have a read through posts:
https://forums.nextpvr.com/showthread.php?tid=59611

Talks about the flag <AutoRemoveMissingRecordings>false</AutoRemoveMissingRecordings> 

and
https://forums.nextpvr.com/showthread.php?tid=59545&pid=526827#pid526827
Win Server: ASRock P67 Pro3 B3, i5 2500K 4.0Ghz, 16GB, Nvidia GT430 HDMI, Win 10 Pro 64bit, Win-TV Quad HD, Win-TV Nova-T USB.
UnRaid NAS Server: Gigabyte i7 2600 3.4Ghz, 16GB, S3 Trio VGA PCI Video, DVB LibreElec for DVB-T tuner drivers, Hauppage Win-TV 2210 Dual DVB-T.
Win Client: Intel NUC i3 Broadwell, 4GB Ram, 128GB SSD, Win 10 Pro 64bit.
Linux Client: Raspberry Pi 3+, OSMC + Kodi
SteveTyrakowski
Offline

Member

Posts: 142
Threads: 26
Joined: Dec 2004
#13
2020-03-04, 09:37 PM
(2020-03-01, 09:34 PM)vintdiesel Wrote: Hi Steve,
I've been transcoding from .ts -> .mp4 for many years, and when ported to Linux had similar issues, but I don't have to edit the database.

Have a read through posts:
https://forums.nextpvr.com/showthread.php?tid=59611

Talks about the flag <AutoRemoveMissingRecordings>false</AutoRemoveMissingRecordings> 

and
https://forums.nextpvr.com/showthread.php?tid=59545&pid=526827#pid526827

I briefly tried the AutoRemoveMissingRecordings setting and rebooted but that didn't seem to solve it.  I didn't spend much time on that because I do seem to have the code working to update the Scheduled_Recording table and the XML file wit the new filename.  I still need to do some more testing to see what happens if my code tries deleting the .ts file while it is being watched before I post my PostProcessing.sh file here for others.

Besides that I do have 2 problems still.  I am getting significantly different compression with HandBrakeCLI on my new linux server than what I get on my old windows server.  The extra strange thing is that in both cases HandBrakeCLI is being run on a Linux box.  In my old system I was copying the .ts file to the linux box where it gets converted to .mp4 and then copied back so that I could offload the transcoding off of the main server.  That's just something I need to work out myself as a tweak.

The bigger problem that I need Sub and/or Martin to help with is playback of the .mp4 file from the Linux v5 server.  None of the mp4s that I created on the new server will play in the web browser UI or using NEWA running on Kodi on an Amazon Firestick 4K.  They do however play fine under Kodi on that same firestick using sub's NextPvr TV add-on.  I even recorded the same show on v4 and v5 and copied the smaller mp4 from my v4 system to replace the one I have questions about to see if it plays there like it does on NEWA on the Firestick against the v4 server.  it has the same problem, so the exact same mp4 file works on NEWA on a v4 server but not the v5 linux server.

NEWA gives a 'player error' when trying to play it on the v5 server.

When I try to play any of the mp4s in the web UI, the total video time briefly flashes on the right-hand side, but quickly changes to aN:aN:aN and just sits there doing nothing.

I guess that I can just use the TV add-on to play them, but it is probably a bug that sub will want to address.

sub,
if you want any log files, let me know what steps to do to get you a short file with just what you need.

Thanks,
Steve Tyrakowski

When playin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,729
Threads: 767
Joined: Nov 2003
#14
2020-03-04, 09:51 PM
As per my official policy since pretty much forever, I only officially support playback of .ts files, since that what the application records. That's not to say other formats definitely wont work, but I don't spend any time testing them.

If you were on Windows, they probably would have worked in nextpvr.exe.

When it comes to the web app, I'm only going to send my time focusing on the type of files NextPVR creates. I'm not going to spend my time on playback of .mp4, .mkv, .avi, mpg, .ogg etc.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,970
Threads: 956
Joined: May 2006
#15
2020-03-04, 09:52 PM (This post was last modified: 2020-03-04, 09:53 PM by mvallevand.)
Do you mean KNEWC and if so KNEWC Web Client? If so I would need to see the logs for that.

My gut says with v4 you had a share set up and it wasn't using the web server for playback.

Martin
SteveTyrakowski
Offline

Member

Posts: 142
Threads: 26
Joined: Dec 2004
#16
2020-03-04, 10:27 PM
(2020-03-04, 09:51 PM)sub Wrote: As per my official policy since pretty much forever, I only officially support playback of .ts files, since that what the application records. That's not to say other formats definitely wont work, but I don't spend any time testing them.

If you were on Windows, they probably would have worked in nextpvr.exe.

When it comes to the web app, I'm only going to send my time focusing on the type of files NextPVR creates. I'm not going to spend my time on playback of .mp4, .mkv, .avi, mpg, .ogg etc.

No problem, just thought it was curious that it worked in your Kodi add-on but not the web UI.

Thanks
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,970
Threads: 956
Joined: May 2006
#17
2020-03-04, 10:47 PM
I added file system playback to the pvr addon so it doesn't just use the web server.

Martin
SteveTyrakowski
Offline

Member

Posts: 142
Threads: 26
Joined: Dec 2004
#18
2020-03-05, 12:15 AM
(2020-03-04, 09:52 PM)mvallevand Wrote: Do you mean KNEWC and if so KNEWC Web Client? If so I would need to see the logs for that.

My gut says with v4 you had a share set up and it wasn't using the web server for playback.

Martin

NextPvr New Client 2.7.4 by emveepee using the web client. Is that KNEWC?. I thought that is what it said in the forums where I got the install info when I set up the firestick, but it does not display that name when running it.

I just updated the client on the one I am testing with v5, I am using 2.5.4 still on my other firesticks with v4, but that did not work with v5 mp4s either.

I am not sure how I would set up to use a share with the firestick and X-Newa. I do sometimes access the v4 server via a share directly under Kodi videos and I could do the same with the linux server, but I don't know how that would be used by your web client in the add-on. I would use that option if available, but I do like the web interface in your add-on at least for scheduling recordings. I will try sub's add-on again too. I have not imported my old existing recordings (~2.8 TB ~7,000 files) into the database yet, so navigating is the big issue I struggle with using the very limited remote. Your shortcut menu to be able to hit the 1-9 buttons for navigation helped tremendously.

If you tell me what logs you need I can try to get them for you.

Thanks,
Steve Tyrakowski
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,970
Threads: 956
Joined: May 2006
#19
2020-03-05, 01:09 AM
Yes that's it. If you have a share mapped for the Video Library in v4 KNEWC will use it automatically and it also converts Windows UNC names to a Kodi format. On Linux there is no UNC naming so you'd need to use advanced settings.xml

Martin
SteveTyrakowski
Offline

Member

Posts: 142
Threads: 26
Joined: Dec 2004
#20
2020-03-05, 04:03 AM
(2020-03-05, 01:09 AM)mvallevand Wrote: Yes that's it. If you have a share mapped for the Video Library in v4 KNEWC will use it automatically and it also converts Windows UNC names to a Kodi format. On Linux there is no UNC naming so you'd need to use advanced settings.xml

Martin

Ok you have me a little confused by the v4 you mention. So here is what I tried:

1. I set the option in /var/opt/nextpvr/config.xml as follows:
<VideoLibrary extensions="^.+\.(mpeg|mpg|m2v|avi|ty|avs|ogm|mp4|mov|m2ts|wm$
<Directory name="Default">/recordings</Directory>
</VideoLibrary>

2. I rebooted the Linux box and then started up KNEWC in Kodi on the firestick and went to the Videos item on the web interface menu and my recordings showed up there but when I tried to play one, it also got 'player error'

3. I went to the recordings item on the menu and tried playing one again with 'player error'

4. I went back out to Kodi and added an entry under Video | files with a samba share for the root directory so that it would get both /recordings which is for new stuff I record as well as /video which is where I copied the 3TB of old files from my v4 server. Each of those are mount points for a couple 4TB drives. Ubuntu is on an SSD.

5. After setting that file path in Kodi I was able to play the videos in KODI, but when I loaded KNEWC, I still get 'player error' when I try to play them.

Thanks,
Steve Tyrakowski
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 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