2020-01-10, 02:14 AM
Yes I did chmod on the new opendctsh file and the r5000.py. Also pu IP and port of the R5000 in and the values of openname and nextname. Attached latest logs
2020-01-10, 02:14 AM
Yes I did chmod on the new opendctsh file and the r5000.py. Also pu IP and port of the R5000 in and the values of openname and nextname. Attached latest logs
2020-01-10, 02:24 AM
So if you run
either of these do you see errors? /var/opt/nextpvr/scripts/opendct.sh 190 R5ooo-HD | ffmpeg -i pipe: -codec copy -f mpegts -y /dev/null /var/opt/nextpvr/scripts/r5000.sh 190 R5ooo-HD | ffmpeg -i pipe: -codec copy -f mpegts -y /dev/null Martin
2020-01-10, 02:26 AM
First command:
/var/opt/nextpvr/scripts# /var/opt/nextpvr/scripts/opendct.sh 190 R5ooo-HD | ffmpeg -i pipe: -codec copy -f mpegts -y /dev/null STOP R5ooo-HD OK 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 START R5ooo-HD|190|12345678|/mnt/R5000_Recordings/R5ooo-HD.ts|Great OK Exit GET_SIZE R5ooo-HD 0 GET_SIZE R5ooo-HD 0 GET_SIZE R5ooo-HD 0 GET_SIZE R5ooo-HD 0 GET_SIZE R5ooo-HD 0 GET_SIZE R5ooo-HD 0 GET_SIZE R5ooo-HD 0 GET_SIZE R5ooo-HD 0 GET_SIZE R5ooo-HD 0 GET_SIZE R5ooo-HD 0 GET_SIZE R5ooo-HD 0 Exit STOP R5ooo-HD OK Exit pipe:: Invalid data found when processing input
2020-01-10, 02:27 AM
Second command:
/var/opt/nextpvr/scripts/r5000.sh 190 R5ooo-HD | ffmpeg -i pipe: -codec copy -f mpegts -y /dev/null -su: /var/opt/nextpvr/scripts/r5000.sh: No such file or directory 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
2020-01-10, 02:35 AM
(This post was last modified: 2020-01-10, 02:37 AM by checkbin99.)
Sorry, I had renamed r5000.sh so that output was wrong. Second script output:
/var/opt/nextpvr/scripts/r5000.sh 190 R5ooo-HD | ffmpeg -i pipe: -codec copy -f mpegts -y /dev/null STOP R5ooo-HD 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 timed out Exit START R5ooo-HD|190|12345678|/home/martin/recordings/R5ooo-HD.ts|Great timed out Exit GET_SIZE R5ooo-HD timed out Exit Traceback (most recent call last): File "/var/opt/nextpvr/scripts/r5000.py", line 64, in <module> main(sys.argv) File "/var/opt/nextpvr/scripts/r5000.py", line 34, in main while int(payload) < 500000 and datetime.datetime.now() < start+end: ValueError: invalid literal for int() with base 10: 'timed out' STOP R5ooo-HD
2020-01-10, 02:49 AM
Ok you didn't didn't edit r5000.sh so we can ignore that it should be the same as opendct.py anyway.
The NextCon app seems to respond to the commands from opendct.py but it also reports the file isn't growing for 10 seconds. Do you see the command logged on the Windows server? If so you might have to bump up the end time in opendct.py to seconds=15 or more until data starts flowing. Martin
2020-01-10, 03:15 AM
I just wanted to run a quick sanity check just to make sure my R5000 was still working. So I ran the opendct.sh from the other day as follows:
python3 opendct.py START R5ooo-HD 132 /mnt/R5000_Recordings/todays_test-on-the-r5000 server It is recording on the NextCom app and the file continues to grow. I then ran the same command but using r5000.py and recording does not start: python3 r5000.py START R5ooo-HD 132 /mnt/R5000_Recordings/todays_test-on-the-r5000 server Now I get: START R5ooo-HD timed out Exit
2020-01-10, 03:22 AM
Since you didn't configure it won't work. What we were are trying to see now is the file growing in opendct.sh
Martin
2020-01-10, 03:27 AM
In my previous post I hadn't configured r5000.sh, because I had taken that file you provided and renamed it as the new opendct.sh. Here I am referring to r5000.py, which I have configured with the IP and port of the R5000 (192.168.1.16 and port 6969). Is there something else in the r5000.PY that needs to be changed? Since I changed the Ip and port, shouldn't that command "python3 r5000.py START R5ooo-HD 132 /mnt/R5000_Recordings/todays_test-on-the-r5000 server" start the recording in the same way the call to opendct.py does?
2020-01-10, 03:37 AM
I am assuming the opendct.sh is calling r5000.py so I am not sure what is going on with the the test line.
Martin |
|