NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) v
« Previous 1 2 3 4 5 … 20 Next »
Using R5000-HD with Network Recorder Plugin

 
  • 0 Vote(s) - 0 Average
Using R5000-HD with Network Recorder Plugin
checkbin99
Offline

Member

Posts: 142
Threads: 1
Joined: Nov 2019
#111
2019-12-18, 01:52 AM
OK, got it recording. Set openname=C:/\mnt/\R5000_Recordings/\$2.ts .  But now the file being recordee is called $2.ts   :-)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,180
Threads: 958
Joined: May 2006
#112
2019-12-18, 01:53 AM
Sounds like the server is quite old. If you use two backslashes does that work?

Martin
checkbin99
Offline

Member

Posts: 142
Threads: 1
Joined: Nov 2019
#113
2019-12-18, 01:56 AM (This post was last modified: 2019-12-18, 02:20 AM by checkbin99.)
The server is Windows 7.  Yes using 2 slashes before the $2.ts works.  In the NextCom app, it says it is saving as "C:/mnt/R5000_Recordings/\R5ooo-HD.ts but it is recording to the NAS share now.  Yaay!
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,180
Threads: 958
Joined: May 2006
#114
2019-12-18, 02:24 AM
I am talking about issues with parsing in the R5000 server. \$2 should be not expand to a variable name

However we see to be spinning in circles because if you go back to https://forums.nextpvr.com/showthread.ph...#pid530866 you are doing what we are doing know and you told me it was recording to the NAS ok.

Martin
checkbin99
Offline

Member

Posts: 142
Threads: 1
Joined: Nov 2019
#115
2019-12-18, 02:27 AM
Yes it was recording to the NAS ok at that point.  And it is recording to it now after adding he extra /.  It is writing a file called R5ooo-HD.ts to the /mnt/R5000_Recordings directory on the NAS now.
checkbin99
Offline

Member

Posts: 142
Threads: 1
Joined: Nov 2019
#116
2019-12-18, 02:35 AM
I am running the command:   /var/opt/nextpvr/scripts/opendct.sh 190 R5ooo-HD

and the R5000 is recording the file R5ooo-HD.ts

The bottom part of the output from this command is:

libavutil      55. 78.100 / 55. 78.100
  libavcodec    57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter    6.107.100 /  6.107.100
  libavresample  3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample  2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[mpegts @ 0x555e80321900] start time for stream 0 is not set in estimate_timings_from_pts
[mpegts @ 0x555e80321900] start time for stream 1 is not set in estimate_timings_from_pts
[mpegts @ 0x555e80321900] Could not find codec parameters for stream 0 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x555e80321900] Could not find codec parameters for stream 1 (Audio: ac3 (AC-3 / 0x332D4341), 0 channels, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from '/mnt/R5000_Recordings/R5ooo-HD.ts':
  Duration: N/A, bitrate: N/A
  Program 1
    Stream #0:0[0x11]: Video: h264 ([27][0][0][0] / 0x001B), none, 90k tbr, 90k tbn, 180k tbc
    Stream #0:1[0x14]: Audio: ac3 (AC-3 / 0x332D4341), 0 channels, fltp
Output #0, mpegts, to '/dev/null':
Output file #0 does not contain any stream
STOP R5ooo-HD
OK

Exit
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,180
Threads: 958
Joined: May 2006
#117
2019-12-18, 02:39 AM (This post was last modified: 2019-12-18, 02:40 AM by mvallevand.)
Ok I missed your second point but I find however you are escaping the string makes no logical sense and I won't document it that way.

Are you sure

openname="C:\\mnt\\R5000_Recordings\\$2.ts" or

openname="C:/mnt/R5000_Recordings/$2.ts"

don't work?

Martin
checkbin99
Offline

Member

Posts: 142
Threads: 1
Joined: Nov 2019
#118
2019-12-18, 03:01 AM
openname="C:\\mnt\\R5000_Recordings\\$2.ts"   (with the quotes which I did not see in any of your previous posts with quotes around it)  Does not work.  It tries for a second to record and then stops

openname=C:\\mnt\\R5000_Recordings\\$2.ts - This also records for a second and then stops


openname="C:/mnt/R5000_Recordings/$2.ts"  - This with the quotes does not work.

openname=C:/mnt/R5000_Recordings/$2.ts - This also goes for a second then stops.

If you were referring to the NAS when you asked about the server, it is a QNAP 251+ with the latest firmware.  This same share works fine with the R5000 and SageTV
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,180
Threads: 958
Joined: May 2006
#119
2019-12-18, 03:30 AM
I am not talking about your NAS I am talking about the r5000 server software that listens to the requests.

I just setup OpenDCT on my Windows box with the K:\ drive mapped as my share

Code:
nextname=/media/recordings/$2.ts
openname=K:\\$2.ts

opendct=/var/opt/nextpvr/scripts/opendct.py
python3 $opendct "STOP" "$2"
python3 $opendct "START" "$2" $1 "$openname"
ffmpeg -re -i "$nextname" -f mpegts -codec copy  -y /dev/null

works as expected and the server receives the expect string

Code:
22:19:40.113 [SageTVRequestHandler-226:Unknown] DEBUG SageTVRequestHandler - SageTV sent: 'START HDHomeRun HDTC-2US Tuner 10528531-1|4.1|0|K:\HDHomeRun HDTC-2US Tuner 10528531-1.ts|Great'
22:19:40.113 [SageTVRequestHandler-226:HDHomeRun HDTC-2US Tuner 10528531-1] DEBUG HDHRNativeCaptureDevice - Capture device is now re-locked.

Are you running a bash shell for testing?

For that ffmpeg error did you add the delay that you needed in Windows before the ffmpeg line?

Martin
checkbin99
Offline

Member

Posts: 142
Threads: 1
Joined: Nov 2019
#120
2020-01-04, 02:50 AM
Happy New Year Martin and all NextPVR users!

I've been off-line for awhile celebrating the holidays with family and friends.  I hope the holidays treated everyone well.  So its time for me to tackle this project again to get NextPVR 5 working with my NextCom R5000-HD. 

Martin I want to say a big thank you to you for your time and patience in working through this with me.  I'm a long time sys admin but not a software developer by any means.  I know just enough shell scripting to be dangerous.  So I really appreciate your patience with me.     :-)

So let me back up a bit and recap where I'm at with this.  The NFS share that I'm using seems to have the proper permissions now.  It is mounted on the NextPVR Linux box at /mnt/R5000_Recordings.  When I run the bash command   /var/opt/nextpvr/scripts/opendct.sh 190 R5000-Test, the Windows server hosting the R5000 device is properly recording the file R5000-Test.ts at C:\mnt\R500_Recordings.  In the NextCom DVR app window, it shows Save As:  /mnt/R5000_Recordings/R5000-Test.ts and the file is viewable on the Linux box and playable via VLC.  However the output of the script shows errors:

*********************************************************************************************************
START R5000-Test2|190|12345678|/mnt/R5000_Recordings/R5000-Test2.ts|Great
OK

Exit
GET_SIZE R5000-Test2
0

Exit
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright © 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec    configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
  libavutil      55. 78.100 / 55. 78.100
  libavcodec    57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter    6.107.100 /  6.107.100
  libavresample  3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample  2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
/mnt/R5000_Recordings/R5000-Test2.ts: Invalid data found when processing input
STOP R5000-Test2
OK

Exit

******************************************************************************************************************


I get this same error both with my original settings for nextname and openname in my opendct.sh script:
nextname=/mnt/R5000_Recordings/$2.ts
openname=/mnt/R5000_Recordings/$2.ts


I then mapped the share as a Windows N Drive" on the R5000 server, as suggested by Martin. with these settings in the opendct.sh script below, but still and get the exact same error:
nextname=/mnt/R5000_Recordings/$2.ts
openname=N:\\$2.ts

Any thoughts on how to proceed next?  Seem to be so close yet still so far.  Thank you.

-Bill
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (26): « Previous 1 … 10 11 12 13 14 … 26 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to configure RemoteRecorder Plugin to use remote NextPVR instance? bm_00 5 3,129 2020-10-06, 12:32 PM
Last Post: mvallevand
  Connecting NVPR to Emby Plugin NVPR Geek 0 1,358 2018-06-10, 12:32 AM
Last Post: NVPR Geek
  YouTube Plugin whurlston 645 188,975 2017-11-25, 07:52 PM
Last Post: ga_mueller
  Newb here: Can someone help with a Plex Plugin issue? wepham 1 3,230 2017-02-07, 07:10 AM
Last Post: petenshari
  System Plugin Confused by New NPVR Naming Scheme Lao Pan 1 2,742 2016-09-25, 08:26 AM
Last Post: imilne
  Movies2 Plugin Problem... Anyone using it? ga_mueller 5 4,482 2016-08-22, 07:02 PM
Last Post: ga_mueller
  Network Recorder with more than 1 NPVR (how to)? SFX Group 9 6,168 2016-03-03, 05:57 PM
Last Post: UncT
  Plex Plugin Nikkie300 4 6,202 2016-01-24, 05:59 PM
Last Post: Nikkie300
  NextPVR Plex plugin, no live TV ajmast 15 9,678 2015-10-29, 03:45 AM
Last Post: ajmast
  Cant restart record service using System plugin on 3.4.8 shaunpatrick77 3 2,839 2015-05-19, 02:20 PM
Last Post: imilne

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

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

Linear Mode
Threaded Mode