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 :-)
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 :-)
2019-12-18, 01:53 AM
Sounds like the server is quite old. If you use two backslashes does that work?
Martin
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!
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
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.
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
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
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
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 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' 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
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 |
|