NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
1 2 3 4 5 … 92 Next »
Loading Local Video Files

 
  • 0 Vote(s) - 0 Average
Loading Local Video Files
Syler
Offline

Junior Member

UK
Posts: 20
Threads: 2
Joined: Dec 2020
#1
2020-12-26, 05:49 PM
I have been wanting to create a UI in the browser, with Apache, for all my video files which are in various formats. I have tried loading various video files in the browser but support for different formats is limited.

I have seen a suggestion to transcode(I know very little about transcoding) the files on the fly to a format that the browser can play. That got me wondering if I would be able to use the NextPVR transcoder/player to load these video files? Is there an entry point that I can pass vid.avi to?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 97,276
Threads: 681
Joined: Nov 2003
#2
2020-12-26, 06:10 PM
This a relatively complicated aspect when it comes to browsers. Generally browsers can only play mp4 files, and with some extra javascript components m3u8/hls. Some browsers can play mkv files, but most cannot.

NextPVR does have logic to transcode it's recordings on the fly to m3u8 streams, so they can be played in the browser. Unfortunately it's not so straight forward to use from a developers perspective. They need to be in NextPVR's database as a recording, and you have to be calling it from a logged in session etc. ie, you can't just pass in a filename and it'll transcode it.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 37,345
Threads: 744
Joined: May 2006
#3
2020-12-26, 06:11 PM
If you want to play them via NextPVR you could import avi files as recordings if that is what you want to do. My import utility does that.

NextPVR uses generic transcoding so if this is something you don a lot of using jellyfin, Emby or Plex makes a lot more sense.

Martin
Syler
Offline

Junior Member

UK
Posts: 20
Threads: 2
Joined: Dec 2020
#4
2020-12-26, 06:19 PM
Thanks. I didn't think it would be that easy. I think I will have to look at seeing if I can do something with FFmpeg.wasm,which seems to be able to do what I want?

https://blog.scottlogic.com/2020/11/23/f...embly.html
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 37,345
Threads: 744
Joined: May 2006
#5
2020-12-26, 06:25 PM
That won't help with NextPVR. NextPVR behind the scenes is already using ffmpeg or more specifically the libraries it uses are pretty much standard for all applications doing transcoding.

If you pre-transcode transcode them to h264/aac you should be able to play them via File Open if that is what you want.

Martin
Syler
Offline

Junior Member

UK
Posts: 20
Threads: 2
Joined: Dec 2020
#6
2020-12-26, 06:27 PM
I just tried to import a recording but it doesn't seem to have worked, it is not showing in the recording section?
Syler
Offline

Junior Member

UK
Posts: 20
Threads: 2
Joined: Dec 2020
#7
2020-12-26, 06:35 PM (This post was last modified: 2020-12-26, 06:36 PM by Syler.)
I doesn't need to be done with NextPVR, I just thought there might be a way of using it to do it more easily and not have to use a second local server.

All I want is to be able to create a UI in the browser that lists all my video files and can open them in a video player in the browser. It would be good if this could be in the same interface as NextPVR just so that it is all in one place. I have figured out how to add to the NextPVR browser UI I just can't get them to load.
Syler
Offline

Junior Member

UK
Posts: 20
Threads: 2
Joined: Dec 2020
#8
2020-12-26, 07:04 PM
I have got the recording import to work now and it seems fine for my purpose. Now I just need a way to automate the creation of the xml file and to create a UI to organise them.
Syler
Offline

Junior Member

UK
Posts: 20
Threads: 2
Joined: Dec 2020
#9
2020-12-29, 02:42 PM (This post was last modified: 2020-12-29, 02:44 PM by Syler.)
I now have basic automation for the xml import file but I am having a problem with files with spaces in the name.

<filename>/home/syler/test/cat 2.mp4</filename>
From the log:
- not adding non-existant file:"/home/syler/test/cat 2.mp4"

I tried quoting the path and replacing spaces with %20 but it does not work. How can I get it to work?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 37,345
Threads: 744
Joined: May 2006
#10
2020-12-29, 02:54 PM
Did you try the linux escape of a slash(\) before the space?

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Extras device - using hardware video encoder gdogg371 6 361 2021-03-09, 12:18 AM
Last Post: gdogg371
  Resuming a video imilne 28 10,104 2016-10-30, 09:27 PM
Last Post: mvallevand
  How to tell when video playback has finished in web client? cncb 6 2,715 2015-09-29, 08:07 PM
Last Post: cncb
  VIdeo playback from plugin mvallevand 5 2,100 2015-08-06, 10:43 PM
Last Post: sub
  Trouble loading .NET System assemblies bgowland 3 1,345 2013-10-31, 02:37 AM
Last Post: bgowland
  Inset Video - Stop mvallevand 2 1,049 2013-08-07, 09:57 PM
Last Post: mvallevand
  sabnzbd plugin to show processed files Wakalaka 1 1,058 2013-03-12, 06:48 AM
Last Post: psycik
  Video Library Fanart Transparency tieke 7 2,272 2013-01-09, 08:23 AM
Last Post: tieke
  NMT Video Playback - does it receive start/stop events psycik 8 1,702 2012-07-15, 10:01 PM
Last Post: mvallevand
  Building a list of files in media folders (npvr Music and Videos) bgowland 2 912 2012-02-05, 10:29 AM
Last Post: bgowland

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

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

Linear Mode
Threaded Mode