NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 4 5 6 7 8 … 159 Next »
Using dshow or ffmpeg as an input to NPVR?

 
  • 0 Vote(s) - 0 Average
Using dshow or ffmpeg as an input to NPVR?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,159
Threads: 958
Joined: May 2006
#21
2020-01-30, 08:06 PM (This post was last modified: 2020-02-05, 02:12 PM by mvallevand.)
What I meant is there are cheap HDMI encoders that you could probably buy with the money that you get selling such a sophisticated card that does all the work for you.

Assuming you have a command line you like, it can be adjusted easily enough just by changing the batch file

In C:\Users\Public\NPVR-data create a file extras-ProCapture.xml with this content

Code:
<channel name={"channel-name"}>
    <command>cmd</command>
    <args>/c C:\Users\Public\NPVR-data\scripts\ProCapture.bat {channel}</args>
</channel>

In C:\Users\Public\NPVR-data\scripts create a file ProCapture.bat with this content

Code:
rem insert blasting code here
"C:\Program Files\NPVR\Other\ffmpeg" -f dshow -i video="Video (00 Pro Capture HDMI 4K+)":audio="Audio (00 Pro Capture HDMI 4K+)" -vcodec h264  -acodec aac  -s 1920x1080 -framerate 50 -f mpegts -

In NextPVR go to setting device, find the Extras device, rescan if necessary. choose your source Schedules Direct or XMLTV file and then disable the stations your don't want.

Martin
gdogg371
Offline

Member

Posts: 149
Threads: 23
Joined: May 2018
#22
2020-02-02, 05:12 PM
Hi...sorry for the slow reply. Here are my exact steps taken:

Have created an extras XML file as so (I don't have 'NPVR-data/scripts', I have 'NPV/Scripts' instead):

<channel name="channel-name">
<command>cmd</command>
<args>/c C:\Users\Public\NPVR\Scripts\ProCapture.bat {channel}</args>
</channel>

Then as I am using VLC and this is on a different drive to your example one, I have used the following in my batch file (rem line removed for now altogether):

"G:\VLC" vlc --ffmpeg-hw --avcodec-hw=any dshow:// :dshow-vdev="Video (00 Pro Capture HDMI 4K+)" :dshow-adev="Audio (2- 00 Pro Capture HDMI 4K+)" :dshow-threads=8 :dshow-aspect-ratio=16\:9 :dshow-size="3840x2160" :dshow-pixel_format=cuda :dshow-tune=film :dshow-preset=lossless :dshow-profile=main10 show-vcodec=hevc_nvenc :dshow-chroma=RV32 :dshow-fps=50 :dshow-crf=0 :dshow-acodec=mp4a :dshow-stereo-mode=5 :dshow-force-surround-sound=0 :dshow-ab=128 :dshow-samplerate=44100 :no-dshow-config :live-caching=100

However, I get no extra device appearing in NPVR, even after relaunching the program. Do I have to reference the blaster code to get this to work, or have I done something else wrong?

Thanks
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,159
Threads: 958
Joined: May 2006
#23
2020-02-02, 05:28 PM
You have done lots of things wrong some of it could be forum formatting.

- you changed the NextPVR V5 data folder for no valid reason, you actually have to do extra work to do that.
- you may not even have a working v5 setup
- not sure if your really meant NPV/scripts or not
- the xml file needs to be in the data folder
- you are using VLC so you are on your own, but you will need something like dst=std{access=file,mux=ts,dst=-} on your command line that is as far as I go

Martin
gdogg371
Offline

Member

Posts: 149
Threads: 23
Joined: May 2018
#24
2020-02-02, 06:34 PM
(2020-02-02, 05:28 PM)mvallevand Wrote: You have done lots of things wrong some of it could be forum formatting.

- you changed the NextPVR V5 data folder for no valid reason, you actually have to do extra work to do that.
- you may not even have a working v5 setup
- not sure if your really meant NPV/scripts or not
- the xml file needs to be in the data folder
- you are using VLC so you are on your own, but you will need something like dst=std{access=file,mux=ts,dst=-} on your command line that is as far as I go

Martin

...sorry, I was still using v4. Let me try again now and come back to you...
gdogg371
Offline

Member

Posts: 149
Threads: 23
Joined: May 2018
#25
2020-02-02, 07:03 PM
(2020-02-02, 05:28 PM)mvallevand Wrote: You have done lots of things wrong some of it could be forum formatting.

- you changed the NextPVR V5 data folder for no valid reason, you actually have to do extra work to do that.
- you may not even have a working v5 setup
- not sure if your really meant NPV/scripts or not
- the xml file needs to be in the data folder
- you are using VLC so you are on your own, but you will need something like dst=std{access=file,mux=ts,dst=-} on your command line that is as far as I go

Martin

Ok, I now have NPVR v5 set up. It is now recognising the extra device, but not finding any channels when I scan for them. I have reverted back to ffmpeg temporarily and now have the following:

The .xml file:

Code:
<channel name="Test1">
    <command>cmd</command>
    <args>/c C:\Users\Public\NPVR-data\scripts\ProCapture.bat {channel}</args>
</channel>

The .bat file:

Code:
"G:\NPVR\Other\ffmpeg" -f dshow -i video="Video (00 Pro Capture HDMI 4K+)":audio="Audio (00 Pro Capture HDMI 4K+)" -vcodec h264  -acodec aac  -s 1920x1080 -framerate 50 -f mpegts -

Once I have a working picture on a single channel I will look at switching to VLC, but for now I am stuck on the channel mapping in the server. Any ideas?

Thanks
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,159
Threads: 958
Joined: May 2006
#26
2020-02-02, 07:07 PM (This post was last modified: 2020-02-02, 07:08 PM by mvallevand.)
You need to have Schedules Direct or an XMLTV file with your station list as input for the scan and leave the name="channel-name" like I posted

Martin
gdogg371
Offline

Member

Posts: 149
Threads: 23
Joined: May 2018
#27
2020-02-02, 07:50 PM
(2020-02-02, 07:07 PM)mvallevand Wrote: You need to have Schedules Direct or an XMLTV file with your station list as input for the scan and leave the  name="channel-name" like I posted

Martin

Ok, I'll look at doing this bit tomorrow. Thanks.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,159
Threads: 958
Joined: May 2006
#28
2020-02-02, 08:07 PM
Ok probably best to delete that bad Extras entry in Settings->Devices and reimport it with the correct format. Hold the Control key and you get a delete option.

Martin
gdogg371
Offline

Member

Posts: 149
Threads: 23
Joined: May 2018
#29
2020-02-04, 03:41 PM
Ok, am back. Where do I put my XMLTV file so that NPVR can detect it?
gdogg371
Offline

Member

Posts: 149
Threads: 23
Joined: May 2018
#30
2020-02-04, 03:43 PM
...I don't have an import button for my extras device btw...only scan and that returns nothing...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (9): « Previous 1 2 3 4 5 … 9 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Merging video with web radio (ffmpeg) NumberFive 1 1,177 2021-05-04, 01:01 PM
Last Post: mvallevand
  NPVR 5 Logs gdogg371 2 2,104 2020-06-02, 08:54 PM
Last Post: gdogg371
  Fun with ffmpeg mvallevand 5 2,663 2020-05-15, 03:01 PM
Last Post: mvallevand
  NPVR Channel Numbers in Kodi... gdogg371 5 3,459 2020-02-24, 02:22 AM
Last Post: mvallevand
  remote NPVR setup suggestions p37307 3 2,491 2020-02-17, 11:54 AM
Last Post: Graham
  Playstation Vue with NPVR Ex Bee MC 14 8,608 2019-03-26, 09:55 AM
Last Post: 2leftfeet
  Thanks NPVR! alannerd614 7 4,541 2018-03-24, 04:14 AM
Last Post: joeijm
  What does NPVR remove when naming recordings p37307 0 1,744 2016-12-24, 10:55 AM
Last Post: p37307
  Little NPVR praise p37307 2 2,486 2016-10-25, 08:07 PM
Last Post: p37307
  Windows 10 Anniversary NPVR fullscreen flicker and freeze fix p37307 1 3,226 2016-08-11, 02:59 AM
Last Post: sub

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

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

Linear Mode
Threaded Mode