SageTV Community  

Go Back   SageTV Community > Hardware Support > Hardware Support

Notices

Hardware Support Discussions related to using various hardware setups with SageTV products. Anything relating to capture cards, remotes, infrared receivers/transmitters, system compatibility or other hardware related problems or suggestions should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 01-14-2017, 08:35 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,217
Quote:
Originally Posted by technazz View Post
@Fuzzy

Can you help me format the executable with ffmpeg?

Im using windows and im not that familiar with using the PIPE

My IP Camera is rtsp://192.168.0.25:554/live that works in VLC

Its 264 - MPEG-4 AVC (part 10) (h264)

I have "ffmpeg -i rtsp://192.168.0.25:554/live ???????"
@Chris - when you get this working can you post all of the steps that you did so that others can learn from your experience?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #22  
Old 01-14-2017, 08:38 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,217
Would it be possible to pipe a VNC or RDP 'feed' into OpenDCT so that you could stream the video from a PC into SageTV? You could probably do this by broadcasting the feed from VLC on the 'server', but would it be possible without VLC?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #23  
Old 01-14-2017, 11:42 PM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 474
Error

I get an error when I set below. I think its formatting issue?

sagetv.device.2060898.streaming_executable=C:\comskip\ffmpeg.exe -i rtsp//:192.168.0.25:554/live -c :v copy -f mpegts pipe:1

It doesn't find ffmpeg

I changed it to this and then i get errors but it seems to fine ffmpeg.

sagetv.device.2060898.streaming_executable="C\:\\comskip\\ffmpeg.exe" -i rtsp//\:192.168.0.25\:554/live -c \:v copy -f mpegts pipe\:1


Snippet of the log

Code:
00:40:27.024 [SageTVRequestHandler-92:Unknown] DEBUG SageTVRequestHandler - SageTV sent: 'START CAM1 HDMI|1572073547|1|2968917653968|M:\M Recordings\1897023882_1_0115_0040-0.ts|Great-H.264'
00:40:27.024 [SageTVRequestHandler-92:CAM1] DEBUG GenericPipeCaptureDevice - Capture device is now re-locked.
00:40:27.024 [SageTVRequestHandler-92:CAM1] DEBUG SageTVRequestHandler - Starting network encoder via upload ID '1572073547' to file name 'M:\M Recordings\1897023882_1_0115_0040-0.ts'.
00:40:27.024 [SageTVRequestHandler-92:CAM1] DEBUG BasicCaptureDevice - Consumer is was not in progress.
00:40:27.025 [SageTVRequestHandler-92:CAM1] DEBUG DynamicConsumerImpl - Using default consumer 'opendct.consumer.FFmpegTransSageTVConsumerImpl' for channel '1'
00:40:27.029 [SageTVRequestHandler-92:CAM1] INFO  GenericPipeCaptureDevice - Starting the encoding for the channel '1' from the device 'CAM1' to the file 'M:\M Recordings\1897023882_1_0115_0040-0.ts'...
00:40:27.029 [SageTVRequestHandler-92:CAM1] DEBUG GenericPipeCaptureDevice - Executing: '"C:\comskip\ffmpeg.exe" -i rtsp//:192.168.0.25:554/live -c :v copy -f mpegts pipe:1 1'
00:40:27.034 [SageTVRequestHandler-92:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV producer...
00:40:27.034 [SageTVRequestHandler-92:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV consumer...
00:40:27.044 [SageTVRequestHandler-92:CAM1] DEBUG BasicCaptureDevice - Consumer is was not in progress.
00:40:27.046 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegTransSageTVConsumerImpl - FFmpeg Transcoder consumer thread is now running.
00:40:27.046 [FFmpegTransSageTVConsumerImpl-99:CAM1] DEBUG FFmpegTransSageTVConsumerImpl - Thread priority is 8.
00:40:27.046 [FFmpegTransSageTVConsumerImpl-99:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err: ffmpeg version N-83034-gf48b6b8 Copyright (c) 2000-2017 the FFmpeg developers
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   built with gcc 5.4.0 (GCC)
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libavutil      55. 43.100 / 55. 43.100
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libavcodec     57. 71.100 / 57. 71.100
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libavformat    57. 62.100 / 57. 62.100
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libavdevice    57.  2.100 / 57.  2.100
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libavfilter     6. 68.100 /  6. 68.100
00:40:27.057 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libswscale      4.  3.101 /  4.  3.101
00:40:27.057 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libswresample   2.  4.100 /  2.  4.100
00:40:27.057 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libpostproc    54.  2.100 / 54.  2.100
00:40:27.057 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err: rtsp//:192.168.0.25:554/live: Invalid argument
00:40:27.057 [InputStreamProducerImpl-97:CAM1] DEBUG InputStreamProducerImpl - Stream ended.
00:40:27.546 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:28.046 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:28.320 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:28.546 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:28.546 [FFmpegTransSageTVConsumerImpl-99:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
00:40:28.546 [FFmpegTransSageTVConsumerImpl-99:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
00:40:29.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:29.547 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:30.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:30.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
00:40:32.321 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:36.321 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:40.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
00:40:40.321 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:40.547 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:41.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:41.547 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:41.547 [FFmpegTransSageTVConsumerImpl-99:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
00:40:41.547 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegTransSageTVConsumerImpl - Unable to detect any video.
00:40:41.547 [AsyncWriter-98:1897023882_1_0115_0040-0.ts] INFO  FFmpegTransSageTVConsumerImpl - Closing the file 'M:\M Recordings\1897023882_1_0115_0040-0.ts'
00:40:42.029 [SageTVRequestHandler-100:Unknown] DEBUG SageTVRequestHandler - SageTV sent: 'START CAM1 HDMI|1572073547|1|2968917653968|M:\M Recordings\1897023882_1_0115_0040-0.ts|Great-H.264'
00:40:42.029 [SageTVRequestHandler-100:CAM1] INFO  GenericPipeCaptureDevice - Capture device is was already locked.
00:40:42.029 [SageTVRequestHandler-100:CAM1] DEBUG SageTVRequestHandler - Starting network encoder via upload ID '1572073547' to file name 'M:\M Recordings\1897023882_1_0115_0040-0.ts'.
00:40:42.046 [SageTVRequestHandler-92:CAM1] DEBUG SageTVRequestHandler - Replied: 'OK'
00:40:42.046 [SageTVRequestHandler-100:CAM1] INFO  GenericPipeCaptureDevice - Re-tune came back too fast. Skipping.
00:40:42.046 [SageTVRequestHandler-100:CAM1] DEBUG SageTVRequestHandler - Replied: 'OK'
00:40:42.046 [SageTVRequestHandler-92:CAM1] DEBUG SageTVRequestHandler - An unhandled exception was created => java.net.SocketException: Software caused connection abort: recv failed
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(Unknown Source)
	at java.net.SocketInputStream.read(Unknown Source)
	at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
	at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
	at sun.nio.cs.StreamDecoder.read(Unknown Source)
	at java.io.InputStreamReader.read(Unknown Source)
	at java.io.BufferedReader.fill(Unknown Source)
	at java.io.BufferedReader.readLine(Unknown Source)
	at java.io.BufferedReader.readLine(Unknown Source)
	at opendct.sagetv.SageTVRequestHandler.run(SageTVRequestHandler.java:127)
	at java.lang.Thread.run(Unknown Source)

00:40:42.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegTransSageTVConsumerImpl - FFmpeg Transcoder consumer thread stopped.
00:40:44.321 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:44.321 [UPnPDiscovery-38] DEBUG UpnpManager - Stopping broadcast.
00:40:44.321 [UPnPDiscovery-38] WARN  DiscoveryRegistryListener - Before UPnP shutdown, the registry did not contain any devices.
00:40:44.322 [UPnPDiscovery-38] DEBUG DiscoveryRegistryListener - Shutdown of UPnP registry complete.
00:40:44.373 [SageTVTuningMonitor-50] INFO  SageTVTuningMonitor - 'IPTV2' produced first 48807724 packets.
00:40:44.373 [SageTVTuningMonitor-50] INFO  SageTVTuningMonitor - 'IPTV2' recorded first 44352020 bytes.
00:40:50.356 [UPnPDiscovery-38] DEBUG UpnpManager - Broadcast requested.
00:40:50.403 [UPnPDiscovery-38] INFO  DCTDefaultUpnpServiceConfiguration - Using the interface 'eth3' with IP address 192.168.0.99 for UPnP discovery.
00:40:54.404 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:58.404 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:41:02.404 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:41:06.405 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:41:10.405 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:41:14.405 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:41:18.375 [SageTVTuningMonitor-50] DEBUG SageTVTuningMonitor - The consumer appears to be stuck at 0, file system length 0, file name 'M:\M Recordings\1897023882_1_0115_0040-0.ts', copy protection NONE.
00:41:18.375 [SageTVTuningMonitor-50] DEBUG SageTVTuningMonitor - The producer appears to be stuck at 0.
00:41:18.376 [Retune-105:CAM1] INFO  SageTVTuningMonitor - Current copy protection NONE.
00:41:18.376 [Retune-105:CAM1] DEBUG InputStreamCaptureDeviceServices - Stopping producer thread...
00:41:18.376 [Retune-105:CAM1] DEBUG InputStreamCaptureDeviceServices - Waiting for producer thread to stop...
00:41:18.376 [Retune-105:CAM1] INFO  GenericPipeCaptureDevice - Retuning the encoding for the channel '1' from the device 'CAM1' to the file 'M:\M Recordings\1897023882_1_0115_0040-0.ts'...
00:41:18.376 [Retune-105:CAM1] DEBUG GenericPipeCaptureDevice - Executing: '"C:\comskip\ffmpeg.exe" -i rtsp//:192.168.0.25:554/live -c :v copy -f mpegts pipe:1 1'
00:41:18.378 [Retune-105:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV producer...
00:41:18.378 [Retune-105:CAM1] INFO  GenericPipeCaptureDevice - Consumer is already running; this is a re-tune and it does not need to restart.
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err: ffmpeg version N-83034-gf48b6b8 Copyright (c) 2000-2017 the FFmpeg developers
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   built with gcc 5.4.0 (GCC)
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libavutil      55. 43.100 / 55. 43.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libavcodec     57. 71.100 / 57. 71.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libavformat    57. 62.100 / 57. 62.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libavdevice    57.  2.100 / 57.  2.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libavfilter     6. 68.100 /  6. 68.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libswscale      4.  3.101 /  4.  3.101
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libswresample   2.  4.100 /  2.  4.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libpostproc    54.  2.100 / 54.  2.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err: rtsp//:192.168.0.25:554/live: Invalid argument
00:41:18.393 [InputStreamProducerImpl-107:CAM1] DEBUG InputStreamProducerImpl - Stream ended.
00:41:18.405 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices..
__________________
SageTV V9.xx 2 x HD300's, 2 x Nvidia Shields Running Mini Client
Reply With Quote
  #24  
Old 01-15-2017, 07:33 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,654
Quote:
Originally Posted by technazz View Post
I get an error when I set below. I think its formatting issue?

sagetv.device.2060898.streaming_executable=C:\comskip\ffmpeg.exe -i rtsp//:192.168.0.25:554/live -c :v copy -f mpegts pipe:1

It doesn't find ffmpeg

I changed it to this and then i get errors but it seems to fine ffmpeg.

sagetv.device.2060898.streaming_executable="C\:\\comskip\\ffmpeg.exe" -i rtsp//\:192.168.0.25\:554/live -c \:v copy -f mpegts pipe\:1


Snippet of the log

Code:
00:40:27.024 [SageTVRequestHandler-92:Unknown] DEBUG SageTVRequestHandler - SageTV sent: 'START CAM1 HDMI|1572073547|1|2968917653968|M:\M Recordings\1897023882_1_0115_0040-0.ts|Great-H.264'
00:40:27.024 [SageTVRequestHandler-92:CAM1] DEBUG GenericPipeCaptureDevice - Capture device is now re-locked.
00:40:27.024 [SageTVRequestHandler-92:CAM1] DEBUG SageTVRequestHandler - Starting network encoder via upload ID '1572073547' to file name 'M:\M Recordings\1897023882_1_0115_0040-0.ts'.
00:40:27.024 [SageTVRequestHandler-92:CAM1] DEBUG BasicCaptureDevice - Consumer is was not in progress.
00:40:27.025 [SageTVRequestHandler-92:CAM1] DEBUG DynamicConsumerImpl - Using default consumer 'opendct.consumer.FFmpegTransSageTVConsumerImpl' for channel '1'
00:40:27.029 [SageTVRequestHandler-92:CAM1] INFO  GenericPipeCaptureDevice - Starting the encoding for the channel '1' from the device 'CAM1' to the file 'M:\M Recordings\1897023882_1_0115_0040-0.ts'...
00:40:27.029 [SageTVRequestHandler-92:CAM1] DEBUG GenericPipeCaptureDevice - Executing: '"C:\comskip\ffmpeg.exe" -i rtsp//:192.168.0.25:554/live -c :v copy -f mpegts pipe:1 1'
00:40:27.034 [SageTVRequestHandler-92:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV producer...
00:40:27.034 [SageTVRequestHandler-92:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV consumer...
00:40:27.044 [SageTVRequestHandler-92:CAM1] DEBUG BasicCaptureDevice - Consumer is was not in progress.
00:40:27.046 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegTransSageTVConsumerImpl - FFmpeg Transcoder consumer thread is now running.
00:40:27.046 [FFmpegTransSageTVConsumerImpl-99:CAM1] DEBUG FFmpegTransSageTVConsumerImpl - Thread priority is 8.
00:40:27.046 [FFmpegTransSageTVConsumerImpl-99:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err: ffmpeg version N-83034-gf48b6b8 Copyright (c) 2000-2017 the FFmpeg developers
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   built with gcc 5.4.0 (GCC)
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libavutil      55. 43.100 / 55. 43.100
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libavcodec     57. 71.100 / 57. 71.100
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libavformat    57. 62.100 / 57. 62.100
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libavdevice    57.  2.100 / 57.  2.100
00:40:27.056 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libavfilter     6. 68.100 /  6. 68.100
00:40:27.057 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libswscale      4.  3.101 /  4.  3.101
00:40:27.057 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libswresample   2.  4.100 /  2.  4.100
00:40:27.057 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err:   libpostproc    54.  2.100 / 54.  2.100
00:40:27.057 [StreamLogger-96] DEBUG GenericPipeCaptureDevice - err: rtsp//:192.168.0.25:554/live: Invalid argument
00:40:27.057 [InputStreamProducerImpl-97:CAM1] DEBUG InputStreamProducerImpl - Stream ended.
00:40:27.546 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:28.046 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:28.320 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:28.546 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:28.546 [FFmpegTransSageTVConsumerImpl-99:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
00:40:28.546 [FFmpegTransSageTVConsumerImpl-99:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
00:40:29.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:29.547 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:30.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:30.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
00:40:32.321 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:36.321 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:40.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
00:40:40.321 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:40.547 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:41.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:41.547 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
00:40:41.547 [FFmpegTransSageTVConsumerImpl-99:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
00:40:41.547 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegTransSageTVConsumerImpl - Unable to detect any video.
00:40:41.547 [AsyncWriter-98:1897023882_1_0115_0040-0.ts] INFO  FFmpegTransSageTVConsumerImpl - Closing the file 'M:\M Recordings\1897023882_1_0115_0040-0.ts'
00:40:42.029 [SageTVRequestHandler-100:Unknown] DEBUG SageTVRequestHandler - SageTV sent: 'START CAM1 HDMI|1572073547|1|2968917653968|M:\M Recordings\1897023882_1_0115_0040-0.ts|Great-H.264'
00:40:42.029 [SageTVRequestHandler-100:CAM1] INFO  GenericPipeCaptureDevice - Capture device is was already locked.
00:40:42.029 [SageTVRequestHandler-100:CAM1] DEBUG SageTVRequestHandler - Starting network encoder via upload ID '1572073547' to file name 'M:\M Recordings\1897023882_1_0115_0040-0.ts'.
00:40:42.046 [SageTVRequestHandler-92:CAM1] DEBUG SageTVRequestHandler - Replied: 'OK'
00:40:42.046 [SageTVRequestHandler-100:CAM1] INFO  GenericPipeCaptureDevice - Re-tune came back too fast. Skipping.
00:40:42.046 [SageTVRequestHandler-100:CAM1] DEBUG SageTVRequestHandler - Replied: 'OK'
00:40:42.046 [SageTVRequestHandler-92:CAM1] DEBUG SageTVRequestHandler - An unhandled exception was created => java.net.SocketException: Software caused connection abort: recv failed
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(Unknown Source)
	at java.net.SocketInputStream.read(Unknown Source)
	at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
	at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
	at sun.nio.cs.StreamDecoder.read(Unknown Source)
	at java.io.InputStreamReader.read(Unknown Source)
	at java.io.BufferedReader.fill(Unknown Source)
	at java.io.BufferedReader.readLine(Unknown Source)
	at java.io.BufferedReader.readLine(Unknown Source)
	at opendct.sagetv.SageTVRequestHandler.run(SageTVRequestHandler.java:127)
	at java.lang.Thread.run(Unknown Source)

00:40:42.047 [FFmpegTransSageTVConsumerImpl-99:CAM1] INFO  FFmpegTransSageTVConsumerImpl - FFmpeg Transcoder consumer thread stopped.
00:40:44.321 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:44.321 [UPnPDiscovery-38] DEBUG UpnpManager - Stopping broadcast.
00:40:44.321 [UPnPDiscovery-38] WARN  DiscoveryRegistryListener - Before UPnP shutdown, the registry did not contain any devices.
00:40:44.322 [UPnPDiscovery-38] DEBUG DiscoveryRegistryListener - Shutdown of UPnP registry complete.
00:40:44.373 [SageTVTuningMonitor-50] INFO  SageTVTuningMonitor - 'IPTV2' produced first 48807724 packets.
00:40:44.373 [SageTVTuningMonitor-50] INFO  SageTVTuningMonitor - 'IPTV2' recorded first 44352020 bytes.
00:40:50.356 [UPnPDiscovery-38] DEBUG UpnpManager - Broadcast requested.
00:40:50.403 [UPnPDiscovery-38] INFO  DCTDefaultUpnpServiceConfiguration - Using the interface 'eth3' with IP address 192.168.0.99 for UPnP discovery.
00:40:54.404 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:40:58.404 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:41:02.404 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:41:06.405 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:41:10.405 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:41:14.405 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
00:41:18.375 [SageTVTuningMonitor-50] DEBUG SageTVTuningMonitor - The consumer appears to be stuck at 0, file system length 0, file name 'M:\M Recordings\1897023882_1_0115_0040-0.ts', copy protection NONE.
00:41:18.375 [SageTVTuningMonitor-50] DEBUG SageTVTuningMonitor - The producer appears to be stuck at 0.
00:41:18.376 [Retune-105:CAM1] INFO  SageTVTuningMonitor - Current copy protection NONE.
00:41:18.376 [Retune-105:CAM1] DEBUG InputStreamCaptureDeviceServices - Stopping producer thread...
00:41:18.376 [Retune-105:CAM1] DEBUG InputStreamCaptureDeviceServices - Waiting for producer thread to stop...
00:41:18.376 [Retune-105:CAM1] INFO  GenericPipeCaptureDevice - Retuning the encoding for the channel '1' from the device 'CAM1' to the file 'M:\M Recordings\1897023882_1_0115_0040-0.ts'...
00:41:18.376 [Retune-105:CAM1] DEBUG GenericPipeCaptureDevice - Executing: '"C:\comskip\ffmpeg.exe" -i rtsp//:192.168.0.25:554/live -c :v copy -f mpegts pipe:1 1'
00:41:18.378 [Retune-105:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV producer...
00:41:18.378 [Retune-105:CAM1] INFO  GenericPipeCaptureDevice - Consumer is already running; this is a re-tune and it does not need to restart.
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err: ffmpeg version N-83034-gf48b6b8 Copyright (c) 2000-2017 the FFmpeg developers
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   built with gcc 5.4.0 (GCC)
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libavutil      55. 43.100 / 55. 43.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libavcodec     57. 71.100 / 57. 71.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libavformat    57. 62.100 / 57. 62.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libavdevice    57.  2.100 / 57.  2.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libavfilter     6. 68.100 /  6. 68.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libswscale      4.  3.101 /  4.  3.101
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libswresample   2.  4.100 /  2.  4.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err:   libpostproc    54.  2.100 / 54.  2.100
00:41:18.392 [StreamLogger-106] DEBUG GenericPipeCaptureDevice - err: rtsp//:192.168.0.25:554/live: Invalid argument
00:41:18.393 [InputStreamProducerImpl-107:CAM1] DEBUG InputStreamProducerImpl - Stream ended.
00:41:18.405 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices..
You are correct about escaping the backslashes (\ to \\). It might be easier to test this on a normal command line initially. The only change you would need to make is change pipe\:1 to a file name. e.g.

Code:
C:\comskip\ffmpeg.exe -i rtsp://192.168.0.25:554/live -c :v copy -f mpegts test.ts
It looks like you have rtsp//: and it should be rtsp://. I missed that in all of the times the command was being improved.

Edit: I looked back and it looks like we did give you the right order.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG

Last edited by EnterNoEscape; 01-15-2017 at 07:39 AM.
Reply With Quote
  #25  
Old 01-15-2017, 07:59 AM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 474
Quote:
Originally Posted by EnterNoEscape View Post
You are correct about escaping the backslashes (\ to \\). It might be easier to test this on a normal command line initially. The only change you would need to make is change pipe\:1 to a file name. e.g.

Code:
C:\comskip\ffmpeg.exe -i rtsp://192.168.0.25:554/live -c :v copy -f mpegts test.ts
It looks like you have rtsp//: and it should be rtsp://. I missed that in all of the times the command was being improved.

Edit: I looked back and it looks like we did give you the right order.

Here is the command line output looks like a format issue with the copy switch?. I had to add login and password to the adress this may be another issue with OPENDTC?


Chris

Code:
C:\Users\pvr>C:\comskip\ffmpeg.exe -i rtsp://admin:password@192.168.0.25:554
/live -c :v copy -f mpegts test.ts
ffmpeg version N-83034-gf48b6b8 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx -
-enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei
0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-li
bbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --en
able-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-li
bopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --e
nable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable
-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --e
nable-lzma --enable-decklink --enable-zlib
  libavutil      55. 43.100 / 55. 43.100
  libavcodec     57. 71.100 / 57. 71.100
  libavformat    57. 62.100 / 57. 62.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 68.100 /  6. 68.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[udp @ 00000000003db520] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[udp @ 000000000043b160] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[rtsp @ 000000000042a500] max delay reached. need to consume packet
[rtsp @ 000000000042a500] RTP: missed 6 packets
[rtsp @ 000000000042a500] max delay reached. need to consume packet
[rtsp @ 000000000042a500] RTP: missed 8 packets
[rtsp @ 000000000042a500] max delay reached. need to consume packet
[rtsp @ 000000000042a500] RTP: missed 13 packets
[rtsp @ 000000000042a500] max delay reached. need to consume packet
[rtsp @ 000000000042a500] RTP: missed 6 packets
[h264 @ 00000000003daf40] cabac decode of qscale diff failed at 32 7
[h264 @ 00000000003daf40] error while decoding MB 32 7, bytestream 418396
[h264 @ 00000000003daf40] concealing 7337 DC, 7337 AC, 7337 MV errors in I frame

[rtsp @ 000000000042a500] max delay reached. need to consume packet
[rtsp @ 000000000042a500] RTP: missed 12 packets
Input #0, rtsp, from 'rtsp://admin:password@192.168.0.25:554/live':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.291511, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1920x1080,
 20 fps, 20 tbr, 90k tbn, 40 tbc
[NULL @ 000000000349f020] Unable to find a suitable output format for 'copy'
copy: Invalid argument
__________________
SageTV V9.xx 2 x HD300's, 2 x Nvidia Shields Running Mini Client
Reply With Quote
  #26  
Old 01-15-2017, 09:46 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
No space in the -c:v option.
Code:
C:\comskip\ffmpeg.exe -i rtsp://192.168.0.25:554/live -c:v copy -f mpegts test.ts
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #27  
Old 01-15-2017, 11:59 AM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 474
Ok I got it working outside OpenDCT it writes the video to the file.

Thanks for the help with my 'punctuation'

Now I have another issue OPENDCT seems to appending a 1 to the command and causing an error. I tried to remove the 1 after pipe\:1

sagetv.device.2060898.streaming_executable=C:\\\comskip\\ffmpeg.exe -i

rtsp://adminassword@192.168.0.25:554\/live -c\:v copy -f mpegts pipe\:1

Code:
12:52:15.293 [SageTVRequestHandler-90:Unknown] DEBUG SageTVRequestHandler - SageTV sent: 'START CAM1 HDMI|45832315|1|2969005470496|M:\M Recordings\1897023882_1_0115_1252-0.ts|Great-H.264'
12:52:15.294 [SageTVRequestHandler-90:CAM1] DEBUG GenericPipeCaptureDevice - Capture device is now re-locked.
12:52:15.294 [SageTVRequestHandler-90:CAM1] DEBUG SageTVRequestHandler - Starting network encoder via upload ID '45832315' to file name 'M:\M Recordings\1897023882_1_0115_1252-0.ts'.
12:52:15.294 [SageTVRequestHandler-90:CAM1] DEBUG BasicCaptureDevice - Consumer is was not in progress.
12:52:15.295 [SageTVRequestHandler-90:CAM1] DEBUG DynamicConsumerImpl - Using default consumer 'opendct.consumer.FFmpegTransSageTVConsumerImpl' for channel '1'
12:52:15.298 [SageTVRequestHandler-90:CAM1] INFO  GenericPipeCaptureDevice - Starting the encoding for the channel '1' from the device 'CAM1' to the file 'M:\M Recordings\1897023882_1_0115_1252-0.ts'...
12:52:15.298 [SageTVRequestHandler-90:CAM1] DEBUG GenericPipeCaptureDevice - Executing: 'C:\comskip\ffmpeg.exe -i rtsp://admin:password@192.168.0.25:554/live -c:v copy -f mpegts pipe:1 1'
12:52:15.301 [SageTVRequestHandler-90:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV producer...
12:52:15.301 [SageTVRequestHandler-90:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV consumer...
12:52:15.303 [SageTVRequestHandler-90:CAM1] DEBUG BasicCaptureDevice - Consumer is was not in progress.
12:52:15.304 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegTransSageTVConsumerImpl - FFmpeg Transcoder consumer thread is now running.
12:52:15.304 [FFmpegTransSageTVConsumerImpl-94:CAM1] DEBUG FFmpegTransSageTVConsumerImpl - Thread priority is 8.
12:52:15.315 [FFmpegTransSageTVConsumerImpl-94:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: ffmpeg version N-83034-gf48b6b8 Copyright (c) 2000-2017 the FFmpeg developers
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   built with gcc 5.4.0 (GCC)
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libavutil      55. 43.100 / 55. 43.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libavcodec     57. 71.100 / 57. 71.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libavformat    57. 62.100 / 57. 62.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libavdevice    57.  2.100 / 57.  2.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libavfilter     6. 68.100 /  6. 68.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libswscale      4.  3.101 /  4.  3.101
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libswresample   2.  4.100 /  2.  4.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libpostproc    54.  2.100 / 54.  2.100
12:52:15.372 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [udp @ 000000000056b620] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
12:52:15.372 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [udp @ 000000000048b180] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
12:52:15.816 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:15.955 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] max delay reached. need to consume packet
12:52:15.955 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] RTP: missed 51 packets
12:52:15.955 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] max delay reached. need to consume packet
12:52:15.956 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] RTP: missed 11 packets
12:52:15.964 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] max delay reached. need to consume packet
12:52:15.964 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] RTP: missed 7 packets
12:52:16.071 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [h264 @ 000000000056b040] left block unavailable for requested intra mode
12:52:16.071 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [h264 @ 000000000056b040] error while decoding MB 0 9, bytestream 367329
12:52:16.071 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [h264 @ 000000000056b040] concealing 7129 DC, 7129 AC, 7129 MV errors in I frame
12:52:16.255 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] max delay reached. need to consume packet
12:52:16.255 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] RTP: missed 18 packets
12:52:16.255 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] max delay reached. need to consume packet
12:52:16.255 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] RTP: missed 4 packets
12:52:16.318 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:16.819 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:16.819 [FFmpegTransSageTVConsumerImpl-94:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
12:52:16.819 [FFmpegTransSageTVConsumerImpl-94:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
12:52:16.827 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: Input #0, rtsp, from 'rtsp://admin:password@192.168.0.25:554/live':
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   Metadata:
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:     title           : Media Presentation
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   Duration: N/A, start: 0.309978, bitrate: N/A
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:     Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1920x1080, 20 fps, 20 tbr, 90k tbn, 40 tbc
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [NULL @ 00000000022e6060] Unable to find a suitable output format for '1'
12:52:16.988 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: 1: Invalid argument
12:52:16.989 [InputStreamProducerImpl-92:CAM1] DEBUG InputStreamProducerImpl - Stream ended.
12:52:17.319 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:17.819 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:18.319 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:18.319 [FFmpegTransSageTVConsumerImpl-94:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
12:52:20.827 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
12:52:24.827 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
12:52:28.320 [FFmpegTransSageTVConsumerImpl-94:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
12:52:28.820 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:28.828 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
12:52:29.320 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:29.820 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:29.820 [FFmpegTransSageTVConsumerImpl-94:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
12:52:29.820 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegTransSageTVConsumerImpl - Unable to detect any video.
12:52:29.820 [AsyncWriter-93:1897023882_1_0115_1252-0.ts] INFO  FFmpegTransSageTVConsumerImpl - Closing the file 'M:\M Recordings\1897023882_1_0115_1252-0.ts'
12:52:30.304 [SageTVRequestHandler-90:CAM1] DEBUG SageTVRequestHandler - Replied: 'OK'
12:52:30.304 [SageTVRequestHandler-90:CAM1] DEBUG SageTVRequestHandler - An unhandled exception was created => java.net.SocketException: Software caused connection abort: recv failed
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(Unknown Source)
	at java.net.SocketInputStream.read(Unknown Source)
	at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
	at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
	at sun.nio.cs.StreamDecoder.read(Unknown Source)
	at java.io.InputStreamReader.read(Unknown Source)
	at java.io.BufferedReader.fill(Unknown Source)
	at java.io.BufferedReader.readLine(Unknown Source)
	at java.io.BufferedReader.readLine(Unknown Source)
	at opendct.sagetv.SageTVRequestHandler.run(SageTVRequestHandler.java:127)
	at java.lang.Thread.run(Unknown Source)

12:52:30.320 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegTransSageTVConsumerImpl - FFmpeg Transcoder consumer thread stopped.
__________________
SageTV V9.xx 2 x HD300's, 2 x Nvidia Shields Running Mini Client
Reply With Quote
  #28  
Old 01-15-2017, 12:26 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,654
Quote:
Originally Posted by technazz View Post
Ok I got it working outside OpenDCT it writes the video to the file.

Thanks for the help with my 'punctuation'

Now I have another issue OPENDCT seems to appending a 1 to the command and causing an error. I tried to remove the 1 after pipe\:1

sagetv.device.2060898.streaming_executable=C:\\\comskip\\ffmpeg.exe -i

rtsp://adminassword@192.168.0.25:554\/live -c\:v copy -f mpegts pipe\:1

Code:
12:52:15.293 [SageTVRequestHandler-90:Unknown] DEBUG SageTVRequestHandler - SageTV sent: 'START CAM1 HDMI|45832315|1|2969005470496|M:\M Recordings\1897023882_1_0115_1252-0.ts|Great-H.264'
12:52:15.294 [SageTVRequestHandler-90:CAM1] DEBUG GenericPipeCaptureDevice - Capture device is now re-locked.
12:52:15.294 [SageTVRequestHandler-90:CAM1] DEBUG SageTVRequestHandler - Starting network encoder via upload ID '45832315' to file name 'M:\M Recordings\1897023882_1_0115_1252-0.ts'.
12:52:15.294 [SageTVRequestHandler-90:CAM1] DEBUG BasicCaptureDevice - Consumer is was not in progress.
12:52:15.295 [SageTVRequestHandler-90:CAM1] DEBUG DynamicConsumerImpl - Using default consumer 'opendct.consumer.FFmpegTransSageTVConsumerImpl' for channel '1'
12:52:15.298 [SageTVRequestHandler-90:CAM1] INFO  GenericPipeCaptureDevice - Starting the encoding for the channel '1' from the device 'CAM1' to the file 'M:\M Recordings\1897023882_1_0115_1252-0.ts'...
12:52:15.298 [SageTVRequestHandler-90:CAM1] DEBUG GenericPipeCaptureDevice - Executing: 'C:\comskip\ffmpeg.exe -i rtsp://admin:password@192.168.0.25:554/live -c:v copy -f mpegts pipe:1 1'
12:52:15.301 [SageTVRequestHandler-90:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV producer...
12:52:15.301 [SageTVRequestHandler-90:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV consumer...
12:52:15.303 [SageTVRequestHandler-90:CAM1] DEBUG BasicCaptureDevice - Consumer is was not in progress.
12:52:15.304 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegTransSageTVConsumerImpl - FFmpeg Transcoder consumer thread is now running.
12:52:15.304 [FFmpegTransSageTVConsumerImpl-94:CAM1] DEBUG FFmpegTransSageTVConsumerImpl - Thread priority is 8.
12:52:15.315 [FFmpegTransSageTVConsumerImpl-94:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: ffmpeg version N-83034-gf48b6b8 Copyright (c) 2000-2017 the FFmpeg developers
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   built with gcc 5.4.0 (GCC)
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libavutil      55. 43.100 / 55. 43.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libavcodec     57. 71.100 / 57. 71.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libavformat    57. 62.100 / 57. 62.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libavdevice    57.  2.100 / 57.  2.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libavfilter     6. 68.100 /  6. 68.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libswscale      4.  3.101 /  4.  3.101
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libswresample   2.  4.100 /  2.  4.100
12:52:15.325 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   libpostproc    54.  2.100 / 54.  2.100
12:52:15.372 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [udp @ 000000000056b620] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
12:52:15.372 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [udp @ 000000000048b180] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
12:52:15.816 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:15.955 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] max delay reached. need to consume packet
12:52:15.955 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] RTP: missed 51 packets
12:52:15.955 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] max delay reached. need to consume packet
12:52:15.956 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] RTP: missed 11 packets
12:52:15.964 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] max delay reached. need to consume packet
12:52:15.964 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] RTP: missed 7 packets
12:52:16.071 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [h264 @ 000000000056b040] left block unavailable for requested intra mode
12:52:16.071 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [h264 @ 000000000056b040] error while decoding MB 0 9, bytestream 367329
12:52:16.071 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [h264 @ 000000000056b040] concealing 7129 DC, 7129 AC, 7129 MV errors in I frame
12:52:16.255 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] max delay reached. need to consume packet
12:52:16.255 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] RTP: missed 18 packets
12:52:16.255 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] max delay reached. need to consume packet
12:52:16.255 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000047a600] RTP: missed 4 packets
12:52:16.318 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:16.819 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:16.819 [FFmpegTransSageTVConsumerImpl-94:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
12:52:16.819 [FFmpegTransSageTVConsumerImpl-94:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
12:52:16.827 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: Input #0, rtsp, from 'rtsp://admin:password@192.168.0.25:554/live':
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   Metadata:
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:     title           : Media Presentation
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:   Duration: N/A, start: 0.309978, bitrate: N/A
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err:     Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1920x1080, 20 fps, 20 tbr, 90k tbn, 40 tbc
12:52:16.987 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: [NULL @ 00000000022e6060] Unable to find a suitable output format for '1'
12:52:16.988 [StreamLogger-91] DEBUG GenericPipeCaptureDevice - err: 1: Invalid argument
12:52:16.989 [InputStreamProducerImpl-92:CAM1] DEBUG InputStreamProducerImpl - Stream ended.
12:52:17.319 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:17.819 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:18.319 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:18.319 [FFmpegTransSageTVConsumerImpl-94:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
12:52:20.827 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
12:52:24.827 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
12:52:28.320 [FFmpegTransSageTVConsumerImpl-94:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
12:52:28.820 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:28.828 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
12:52:29.320 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:29.820 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
12:52:29.820 [FFmpegTransSageTVConsumerImpl-94:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
12:52:29.820 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegTransSageTVConsumerImpl - Unable to detect any video.
12:52:29.820 [AsyncWriter-93:1897023882_1_0115_1252-0.ts] INFO  FFmpegTransSageTVConsumerImpl - Closing the file 'M:\M Recordings\1897023882_1_0115_1252-0.ts'
12:52:30.304 [SageTVRequestHandler-90:CAM1] DEBUG SageTVRequestHandler - Replied: 'OK'
12:52:30.304 [SageTVRequestHandler-90:CAM1] DEBUG SageTVRequestHandler - An unhandled exception was created => java.net.SocketException: Software caused connection abort: recv failed
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(Unknown Source)
	at java.net.SocketInputStream.read(Unknown Source)
	at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
	at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
	at sun.nio.cs.StreamDecoder.read(Unknown Source)
	at java.io.InputStreamReader.read(Unknown Source)
	at java.io.BufferedReader.fill(Unknown Source)
	at java.io.BufferedReader.readLine(Unknown Source)
	at java.io.BufferedReader.readLine(Unknown Source)
	at opendct.sagetv.SageTVRequestHandler.run(SageTVRequestHandler.java:127)
	at java.lang.Thread.run(Unknown Source)

12:52:30.320 [FFmpegTransSageTVConsumerImpl-94:CAM1] INFO  FFmpegTransSageTVConsumerImpl - FFmpeg Transcoder consumer thread stopped.
You need to be running 0.5.21 or greater to get rid of that. It was a bad idea and I fixed it.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #29  
Old 01-15-2017, 01:45 PM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 474
Quote:
Originally Posted by EnterNoEscape View Post
You need to be running 0.5.21 or greater to get rid of that. It was a bad idea and I fixed it.
Ok Upgraded.. getting closer. Now I get an no audio error

Code:
4:37:04.706 [SageTVRequestHandler-92:Unknown] DEBUG SageTVRequestHandler - SageTV sent: 'START CAM1 HDMI|1205242640|1|2969018049370|M:\M Recordings\1897023882_1_0115_1437-0.ts|Great-H.264'
14:37:04.706 [SageTVRequestHandler-92:CAM1] DEBUG GenericPipeCaptureDevice - Capture device is now re-locked.
14:37:04.706 [SageTVRequestHandler-92:CAM1] DEBUG SageTVRequestHandler - Starting network encoder via upload ID '1205242640' to file name 'M:\M Recordings\1897023882_1_0115_1437-0.ts'.
14:37:04.706 [SageTVRequestHandler-92:CAM1] DEBUG BasicCaptureDevice - Consumer is was not in progress.
14:37:04.706 [SageTVRequestHandler-92:CAM1] DEBUG DynamicConsumerImpl - Using default consumer 'opendct.consumer.FFmpegTransSageTVConsumerImpl' for channel '1'
14:37:04.710 [SageTVRequestHandler-92:CAM1] INFO  GenericPipeCaptureDevice - Starting the encoding for the channel '1' from the device 'CAM1' to the file 'M:\M Recordings\1897023882_1_0115_1437-0.ts'...
14:37:04.710 [SageTVRequestHandler-92:CAM1] DEBUG GenericPipeCaptureDevice - Executing: 'C:\comskip\ffmpeg.exe -i rtsp://admin:password@192.168.0.25:554/live -c:v copy -f mpegts pipe:1'
14:37:04.713 [SageTVRequestHandler-92:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV producer...
14:37:04.713 [SageTVRequestHandler-92:CAM1] INFO  GenericPipeCaptureDevice - Configuring and starting the new SageTV consumer...
14:37:04.716 [SageTVRequestHandler-92:CAM1] DEBUG BasicCaptureDevice - Consumer is was not in progress.
14:37:04.716 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegTransSageTVConsumerImpl - FFmpeg Transcoder consumer thread is now running.
14:37:04.716 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegTransSageTVConsumerImpl - Thread priority is 8.
14:37:04.729 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: ffmpeg version N-83034-gf48b6b8 Copyright (c) 2000-2017 the FFmpeg developers
14:37:04.729 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   built with gcc 5.4.0 (GCC)
14:37:04.729 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
14:37:04.729 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   libavutil      55. 43.100 / 55. 43.100
14:37:04.729 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   libavcodec     57. 71.100 / 57. 71.100
14:37:04.729 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   libavformat    57. 62.100 / 57. 62.100
14:37:04.729 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   libavdevice    57.  2.100 / 57.  2.100
14:37:04.729 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   libavfilter     6. 68.100 /  6. 68.100
14:37:04.729 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   libswscale      4.  3.101 /  4.  3.101
14:37:04.729 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   libswresample   2.  4.100 /  2.  4.100
14:37:04.729 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   libpostproc    54.  2.100 / 54.  2.100
14:37:04.732 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
14:37:04.747 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [udp @ 000000000059b5a0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
14:37:04.747 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [udp @ 000000000049b160] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
14:37:05.232 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
14:37:05.339 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000048a480] max delay reached. need to consume packet
14:37:05.339 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000048a480] RTP: missed 89 packets
14:37:05.339 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000048a480] max delay reached. need to consume packet
14:37:05.339 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000048a480] RTP: missed 3 packets
14:37:05.352 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [h264 @ 000000000059afc0] concealing 6704 DC, 6704 AC, 6704 MV errors in I frame
14:37:05.526 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000048a480] max delay reached. need to consume packet
14:37:05.526 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000048a480] RTP: missed 5 packets
14:37:05.610 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000048a480] max delay reached. need to consume packet
14:37:05.610 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [rtsp @ 000000000048a480] RTP: missed 7 packets
14:37:05.733 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
14:37:06.070 [UPnPDiscovery-38] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
14:37:06.233 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegContext - Returning AVERROR_EOF in readCallback.call()
14:37:06.233 [FFmpegTransSageTVConsumerImpl-96:CAM1] ERROR FFmpegContext - initTsStream: avformat_open_input returned error code -1094995529
14:37:06.233 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
14:37:06.314 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: Input #0, rtsp, from 'rtsp://admin:password@192.168.0.25:554/live':
14:37:06.314 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   Metadata:
14:37:06.314 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:     title           : Media Presentation
14:37:06.315 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   Duration: N/A, start: 0.269733, bitrate: N/A
14:37:06.315 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:     Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1920x1080, 20 fps, 20 tbr, 90k tbn, 40 tbc
14:37:06.315 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: Output #0, mpegts, to 'pipe:1':
14:37:06.315 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   Metadata:
14:37:06.315 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:     title           : Media Presentation
14:37:06.315 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:     encoder         : Lavf57.62.100
14:37:06.315 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:     Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1920x1080, q=2-31, 20 fps, 20 tbr, 90k tbn, 90k tbc
14:37:06.315 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: Stream mapping:
14:37:06.315 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err:   Stream #0:0 -> #0:0 (copy)
14:37:06.315 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: Press [q] to stop, [?] for help
14:37:06.316 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [mpegts @ 0000000002709740] Non-monotonous DTS in output stream 0:0; previous: 0, current: -18108; changing to 1. This may result in incorrect timestamps in the output file.
14:37:06.317 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [mpegts @ 0000000002709740] Non-monotonous DTS in output stream 0:0; previous: 1, current: -14338; changing to 2. This may result in incorrect timestamps in the output file.
14:37:06.318 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [mpegts @ 0000000002709740] Non-monotonous DTS in output stream 0:0; previous: 2, current: -3268; changing to 3. This may result in incorrect timestamps in the output file.
14:37:06.318 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [mpegts @ 0000000002709740] Non-monotonous DTS in output stream 0:0; previous: 3, current: -1696; changing to 4. This may result in incorrect timestamps in the output file.
14:37:06.318 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: [mpegts @ 0000000002709740] Non-monotonous DTS in output stream 0:0; previous: 4, current: -204; changing to 5. This may result in incorrect timestamps in the output file.
14:37:06.337 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Before avformat_find_stream_info() pos=262144 bytes_read=262144 seek_count=0. probesize: 165628 analyzeduration: 2000000.
14:37:06.406 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  mpegts - [3aedf880] decoding for stream 0 failed
14:37:06.407 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 786432
14:37:06.407 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 786432, returnValue = 1299833
14:37:06.407 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 786432
14:37:06.407 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 786432, returnValue = 1299833
14:37:06.407 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 1049833, readIndex = 786432
14:37:06.407 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 1049833, readIndex = 1049833, returnValue = 1049833
14:37:06.782 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1561976
14:37:06.782 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1561976, returnValue = 1922301
14:37:06.782 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 1561976
14:37:06.782 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
14:37:06.782 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0
14:37:06.782 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0, returnValue = 1922301
14:37:06.782 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - After avformat_find_stream_info() pos=0 bytes_read=1298575 seek_count=2. probesize: 165628 analyzeduration: 2000000.
14:37:06.782 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - current container duration = 1.379667 seconds
14:37:06.786 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Primary program has been detected: 1.
14:37:06.790 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Could not find an audio stream. Trying again with an extended probe.
14:37:06.790 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
14:37:06.792 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Before avformat_find_stream_info() pos=262144 bytes_read=262144 seek_count=0. probesize: 1922488 analyzeduration: 2379667.
14:37:06.866 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  h264 - [41070920] concealing 6704 DC, 6704 AC, 6704 MV errors in I frame
14:37:06.887 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: frame=   40 fps=0.0 q=-1.0 size=    1924kB time=00:00:01.65 bitrate=9495.9kbits/s speed=3.26x    
14:37:06.992 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720
14:37:06.992 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720, returnValue = 1990545
14:37:06.992 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720
14:37:06.992 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720, returnValue = 1990545
14:37:06.992 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 1740545, readIndex = 1310720
14:37:06.992 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 1740545, readIndex = 1740545, returnValue = 1740545
14:37:07.399 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: frame=   50 fps= 49 q=-1.0 size=    2042kB time=00:00:02.15 bitrate=7747.1kbits/s speed=2.12x    
14:37:07.743 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 2182868
14:37:07.743 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 2182868, returnValue = 2182869
14:37:07.743 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 2182868
14:37:07.743 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
14:37:07.743 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0
14:37:07.743 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0, returnValue = 2182869
14:37:07.743 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - After avformat_find_stream_info() pos=0 bytes_read=1753043 seek_count=2. probesize: 1922488 analyzeduration: 2379667.
14:37:07.744 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - current container duration = 2.509622 seconds
14:37:07.744 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Could not find an audio stream. Trying again with an extended probe.
14:37:07.744 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
14:37:07.745 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Before avformat_find_stream_info() pos=262144 bytes_read=262144 seek_count=0. probesize: 2183056 analyzeduration: 3509622.
14:37:07.830 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  h264 - [411a5020] concealing 6704 DC, 6704 AC, 6704 MV errors in I frame
14:37:07.936 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: frame=   61 fps= 39 q=-1.0 size=    2180kB time=00:00:02.71 bitrate=6567.3kbits/s speed=1.72x    
14:37:07.949 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720
14:37:07.950 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720, returnValue = 2232501
14:37:07.950 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720
14:37:07.950 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720, returnValue = 2232501
14:37:07.950 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 1982501, readIndex = 1310720
14:37:07.950 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 1982501, readIndex = 1982501, returnValue = 1982501
14:37:08.250 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 2315220
14:37:08.250 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 2315220, returnValue = 2315221
14:37:08.250 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 2315220
14:37:08.250 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
14:37:08.250 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0
14:37:08.250 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0, returnValue = 2315221
14:37:08.250 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - After avformat_find_stream_info() pos=0 bytes_read=1643439 seek_count=2. probesize: 2183056 analyzeduration: 3509622.
14:37:08.250 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - current container duration = 2.909533 seconds
14:37:08.250 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Could not find an audio stream. Trying again with an extended probe.
14:37:08.251 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
14:37:08.251 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Before avformat_find_stream_info() pos=262144 bytes_read=262144 seek_count=0. probesize: 2315408 analyzeduration: 3909533.
14:37:08.444 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720
14:37:08.445 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720, returnValue = 2364665
14:37:08.445 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720
14:37:08.445 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720, returnValue = 2364665
14:37:08.445 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 2114665, readIndex = 1310720
14:37:08.445 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 2114665, readIndex = 2114665, returnValue = 2114665
14:37:08.490 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: frame=   72 fps= 34 q=-1.0 size=    2318kB time=00:00:03.25 bitrate=5826.2kbits/s speed=1.54x    
14:37:08.695 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 2432344
14:37:08.695 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 2432344, returnValue = 2432345
14:37:08.695 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 2432344
14:37:08.695 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
14:37:08.695 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0
14:37:08.695 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0, returnValue = 2432345
14:37:08.696 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - After avformat_find_stream_info() pos=0 bytes_read=1628399 seek_count=2. probesize: 2315408 analyzeduration: 3909533.
14:37:08.696 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - current container duration = 3.409578 seconds
14:37:08.696 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Could not find an audio stream. Trying again with an extended probe.
14:37:08.696 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
14:37:08.697 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Before avformat_find_stream_info() pos=262144 bytes_read=262144 seek_count=0. probesize: 2432532 analyzeduration: 4409578.
14:37:08.906 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720
14:37:08.907 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720, returnValue = 2484609
14:37:08.907 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720
14:37:08.907 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 1310720, returnValue = 2484609
14:37:08.907 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 2234609, readIndex = 1310720
14:37:08.907 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 2234609, readIndex = 2234609, returnValue = 2234609
14:37:09.094 [StreamLogger-93] DEBUG GenericPipeCaptureDevice - err: frame=   83 fps= 31 q=-1.0 size=    2463kB time=00:00:03.81 bitrate=5283.1kbits/s speed=1.43x    
14:37:09.308 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 2746752
14:37:09.308 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 2746752, returnValue = 3083953
14:37:09.308 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 2746752
14:37:09.308 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 0, offset = 0, readIndex = 0, returnValue = 0
14:37:09.308 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0
14:37:09.308 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegCircularBufferNIO - Seek: wence = 65536, offset = 0, readIndex = 0, returnValue = 3083953
14:37:09.309 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - After avformat_find_stream_info() pos=0 bytes_read=1822863 seek_count=2. probesize: 2432532 analyzeduration: 4409578.
14:37:09.309 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - current container duration = 3.869556 seconds
14:37:09.309 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Could not find an audio stream. Trying again with an extended probe.
14:37:09.309 [FFmpegTransSageTVConsumerImpl-96:CAM1] DEBUG FFmpegStreamDetection - Calling avformat_open_input
14:37:09.310 [FFmpegTransSageTVConsumerImpl-96:CAM1] INFO  FFmpegStreamDetection - Before avformat_find_stream_info() pos=262144 bytes_read=262144 seek_count=0. probesize: 3084140 analyzeduration: 4869556.
__________________
SageTV V9.xx 2 x HD300's, 2 x Nvidia Shields Running Mini Client
Reply With Quote
  #30  
Old 01-15-2017, 01:47 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Yeah, you will probably have do add the null audio settings I posted up above.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #31  
Old 01-15-2017, 02:06 PM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 474
Quote:
Originally Posted by Fuzzy View Post
Yeah, you will probably have do add the null audio settings I posted up above.
Ok When I try below in the command line I get an error

\ffmpeg.exe -i rtsp://adminassword@192.168.0.25:554/live -c:v copy -i anullsrc=cl=1 -shortest -c:a aac -f mpegts test.ts

Code:
C:\Users\pvr>C:\comskip\ffmpeg.exe -i rtsp://admin:password@192.168.0.25:554
/live -c:v copy -i anullsrc=cl=1 -shortest -c:a aac-f mpegts test.ts
ffmpeg version N-83034-gf48b6b8 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx -
-enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei
0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-li
bbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --en
able-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-li
bopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --e
nable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable
-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --e
nable-lzma --enable-decklink --enable-zlib
  libavutil      55. 43.100 / 55. 43.100
  libavcodec     57. 71.100 / 57. 71.100
  libavformat    57. 62.100 / 57. 62.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 68.100 /  6. 68.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[udp @ 000000000052b720] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[udp @ 000000000043b1a0] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[rtsp @ 0000000000527fe0] max delay reached. need to consume packet
[rtsp @ 0000000000527fe0] RTP: missed 39 packets
[rtsp @ 0000000000527fe0] max delay reached. need to consume packet
[rtsp @ 0000000000527fe0] RTP: missed 1 packets
[rtsp @ 0000000000527fe0] max delay reached. need to consume packet
[rtsp @ 0000000000527fe0] RTP: missed 24 packets
[h264 @ 000000000052b140] concealing 6932 DC, 6932 AC, 6932 MV errors in I frame

[rtsp @ 0000000000527fe0] max delay reached. need to consume packet
[rtsp @ 0000000000527fe0] RTP: missed 11 packets
Input #0, rtsp, from 'rtsp://admin:password@192.168.0.25:554/live':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.272956, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1920x1080,
 20 fps, 20 tbr, 90k tbn, 40 tbc
Unknown decoder 'copy'
__________________
SageTV V9.xx 2 x HD300's, 2 x Nvidia Shields Running Mini Client
Reply With Quote
  #32  
Old 01-15-2017, 02:06 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,654
Quote:
Originally Posted by Fuzzy View Post
Yeah, you will probably have do add the null audio settings I posted up above.
That will speed things up on the SageTV side of things too.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #33  
Old 01-15-2017, 06:03 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by technazz View Post
Ok When I try below in the command line I get an error

\ffmpeg.exe -i rtsp://adminassword@192.168.0.25:554/live -c:v copy -i anullsrc=cl=1 -shortest -c:a aac -f mpegts test.ts

Code:
C:\Users\pvr>C:\comskip\ffmpeg.exe -i rtsp://admin:password@192.168.0.25:554
/live -c:v copy -i anullsrc=cl=1 -shortest -c:a aac-f mpegts test.ts
ffmpeg version N-83034-gf48b6b8 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx -
-enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei
0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-li
bbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --en
able-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-li
bopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --e
nable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable
-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --e
nable-lzma --enable-decklink --enable-zlib
  libavutil      55. 43.100 / 55. 43.100
  libavcodec     57. 71.100 / 57. 71.100
  libavformat    57. 62.100 / 57. 62.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 68.100 /  6. 68.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[udp @ 000000000052b720] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[udp @ 000000000043b1a0] 'circular_buffer_size' option was set but it is not sup
ported on this build (pthread support is required)
[rtsp @ 0000000000527fe0] max delay reached. need to consume packet
[rtsp @ 0000000000527fe0] RTP: missed 39 packets
[rtsp @ 0000000000527fe0] max delay reached. need to consume packet
[rtsp @ 0000000000527fe0] RTP: missed 1 packets
[rtsp @ 0000000000527fe0] max delay reached. need to consume packet
[rtsp @ 0000000000527fe0] RTP: missed 24 packets
[h264 @ 000000000052b140] concealing 6932 DC, 6932 AC, 6932 MV errors in I frame

[rtsp @ 0000000000527fe0] max delay reached. need to consume packet
[rtsp @ 0000000000527fe0] RTP: missed 11 packets
Input #0, rtsp, from 'rtsp://admin:password@192.168.0.25:554/live':
  Metadata:
    title           : Media Presentation
  Duration: N/A, start: 0.272956, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1920x1080,
 20 fps, 20 tbr, 90k tbn, 40 tbc
Unknown decoder 'copy'
Okay, because it's looking for a 'decoder' named copy, I'm thinking this has to do with the order involved. Try moving the -i (input) parameters before the codec parameters.
Code:
C:\comskip\ffmpeg.exe -i rtsp://admin:password@192.168.0.25:554
/live -i anullsrc=cl=1 -shortest -c:v copy -c:a aac -f mpegts test.ts
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #34  
Old 01-15-2017, 09:53 PM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 474
Quote:
Originally Posted by Fuzzy View Post
Okay, because it's looking for a 'decoder' named copy, I'm thinking this has to do with the order involved. Try moving the -i (input) parameters before the codec parameters.
Code:
C:\comskip\ffmpeg.exe -i rtsp://admin:password@192.168.0.25:554
/live -i anullsrc=cl=1 -shortest -c:v copy -c:a aac -f mpegts test.ts
Ok finally got it working. Nice to have full resolution instead of MJPEG I was using for the last 3 year in from Webfeed Encoder.

Order is important. I looked up some samples and they had some -f lavi switch before the input. Also the audio before the video.



Code:
sagetv.device.2060898.streaming_executable=C:\\\ffmpeg\\ffmpeg.exe -f lavfi -i anullsrc -i 

rtsp://login:password@192.168.0.25:554\/live -shortest -c:a aac -c\:v copy -f mpegts pipe\:1
Thanks

Now I just add my 3 other Cameras!

Chris
__________________
SageTV V9.xx 2 x HD300's, 2 x Nvidia Shields Running Mini Client

Last edited by technazz; 01-15-2017 at 09:56 PM.
Reply With Quote
  #35  
Old 01-18-2017, 09:16 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Glad you got this working.

Ordering is important in an ffmpeg command line, and in a lot of cases, the same switch willbe used multiple times, but do different things depending on the order. In the case of your commandline:
Code:
C:\ffmpeg\ffmpeg.exe -f lavfi -i anullsrc -i rtsp://login:password@192.168.0.25:554/live -shortest -c:a aac -c:v copy -f mpegts pipe:1
-f lavfi -i anullsrc Sets the expected format to lavfi (which is the libavfilter virtual input format) and get that data from anullsrc (the null audio source filter).
-i rtsp://login:password@ip/live adds an additional input from the camera's live stream. It is not being told an explicit format, so ffmpeg will have to autodetect it. Technically, an additional -f rtsp option could be inserted before the -i rtsp: to tell ffmpeg what format that intput would be, but ffmpeg already assumes that format when the input is an rtsp source.
-shortest tells ffmpeg to stop the encoding whenever the shortest input stream ends. This is usually used when using the anullsrc input to add to an additional source, because anullsrc will run forever if given the chance, so this stops it when the other input is done. It doesn't really have any use here, because the camera's feed will also run forever, so ffmpeg will always run forever with these sources, unless the process is killed.
-c:a aac -c:v copy -f mpegts pipe:1 Now all these options are describing what to output. -c sets the codecs to use. aac for audio, copy for video. -f, just like at the beginning, is setting the container format, in this case, mpegts, for the output. pipe:1 is the output, and ffmpeg knows it's an output because it has no - option preceding it.

ffmpeg can do a lot just from a single command line. You could, for instance, use video filters to draw a text overlay on your video (if you were encoding it and not just using copy), resize the image, adjust brightness/contrast, reduce framerate, etc. Instead of that null audio source, you could tap it to a sound card mic input to add audio to a security camera that doesn't have a microphone.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room

Last edited by Fuzzy; 01-18-2017 at 09:32 AM.
Reply With Quote
  #36  
Old 01-18-2017, 09:45 AM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 1,982
So, with the security camera example above, do you need to do anything special to stop recording?
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #37  
Old 01-18-2017, 09:53 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
You could work up a command that would 'kill' the ffmpeg process and have opendct execute that command on receiving a STOP from sage, or if you do nothing, OpenDCT will kill the process on it's own 15 seconds after receiving the STOP.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #38  
Old 01-19-2017, 08:04 AM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 474
Quote:
Originally Posted by Fuzzy View Post
Glad you got this working.

Ordering is important in an ffmpeg command line, and in a lot of cases, the same switch willbe used multiple times, but do different things depending on the order. In the case of your commandline:
Code:
C:\ffmpeg\ffmpeg.exe -f lavfi -i anullsrc -i rtsp://login:password@192.168.0.25:554/live -shortest -c:a aac -c:v copy -f mpegts pipe:1
-f lavfi -i anullsrc Sets the expected format to lavfi (which is the libavfilter virtual input format) and get that data from anullsrc (the null audio source filter).
-i rtsp://loginassword@ip/live adds an additional input from the camera's live stream. It is not being told an explicit format, so ffmpeg will have to autodetect it. Technically, an additional -f rtsp option could be inserted before the -i rtsp: to tell ffmpeg what format that intput would be, but ffmpeg already assumes that format when the input is an rtsp source.
-shortest tells ffmpeg to stop the encoding whenever the shortest input stream ends. This is usually used when using the anullsrc input to add to an additional source, because anullsrc will run forever if given the chance, so this stops it when the other input is done. It doesn't really have any use here, because the camera's feed will also run forever, so ffmpeg will always run forever with these sources, unless the process is killed.
-c:a aac -c:v copy -f mpegts pipe:1 Now all these options are describing what to output. -c sets the codecs to use. aac for audio, copy for video. -f, just like at the beginning, is setting the container format, in this case, mpegts, for the output. pipe:1 is the output, and ffmpeg knows it's an output because it has no - option preceding it.

ffmpeg can do a lot just from a single command line. You could, for instance, use video filters to draw a text overlay on your video (if you were encoding it and not just using copy), resize the image, adjust brightness/contrast, reduce framerate, etc. Instead of that null audio source, you could tap it to a sound card mic input to add audio to a security camera that doesn't have a microphone.

Thanks for breaking it down. I'be been travelling for work and havent had time to update.

Just another note. The RTSP path is different on other cameras. You will have to check with your camera manufacturer. I have a few FOSCAM that use /videoMain instead of /live

I used https://www.ispyconnect.com/sources.aspx to check the address.


-i rtsp://loginassword@ip/live
__________________
SageTV V9.xx 2 x HD300's, 2 x Nvidia Shields Running Mini Client
Reply With Quote
  #39  
Old 01-30-2017, 03:00 PM
Jabroni's Avatar
Jabroni Jabroni is offline
Sage Aficionado
 
Join Date: Mar 2006
Posts: 251
Finally had a chance to try a Perl script that connects to Slingbox and outputs its video content and interfaced it with OpenDCT w/ the Pipe Capture.. I must stay it worked GREAT I love that now on show change there is no video lag (tuner retunning) since my previous approach re-launches the script on every new program from the progrma guide.

The only thing I would like to know if there is a way to filter out the stderr to not write it to log, or at least just after X secs, since the script outputs stream stats to it and the log will get full of those entries

ie
Code:
12:53:42.322 [StreamLogger-152] DEBUG GenericPipeCaptureDevice - err:   Stream #0:1 -> #0:1 (aac (native) -> ac3 (native))
12:53:42.322 [RawSageTVConsumerImpl-154:SlingIzzi] DEBUG VideoUtil - PAT packet found at index 3836.
12:53:42.322 [RawSageTVConsumerImpl-154:SlingIzzi] DEBUG VideoUtil - PAT packet found at index 11732.
12:53:42.322 [RawSageTVConsumerImpl-154:SlingIzzi] INFO  RawSageTVConsumerImpl - Raw consumer is now streaming...
12:53:42.853 [StreamLogger-152] DEBUG GenericPipeCaptureDevice - err: frame=  168 fps=0.0 q=-1.0 size=    2073kB time=00:00:05.65 bitrate=3001.9kbits/s    
12:53:43.414 [StreamLogger-152] DEBUG GenericPipeCaptureDevice - err: frame=  185 fps=169 q=-1.0 size=    2407kB time=00:00:06.23 bitrate=3164.1kbits/s    
12:53:44.007 [StreamLogger-152] DEBUG GenericPipeCaptureDevice - err: frame=  198 fps=118 q=-1.0 size=    2622kB time=00:00:06.66 bitrate=3222.9kbits/s    
12:53:44.303 [UPnPDiscovery-40] DEBUG UpnpManager - Sending a SecureContainer search message for 'schemas-cetoncorp-com' devices...
12:53:44.662 [StreamLogger-152] DEBUG GenericPipeCaptureDevice - err: frame=  217 fps= 93 q=-1.0 size=    2835kB time=00:00:07.28 bitrate=3187.1kbits/s    
12:53:45.208 [StreamLogger-152] DEBUG GenericPipeCaptureDevice - err: frame=  236 fps= 82 q=-1.0 size=    3048kB time=00:00:07.96 bitrate=3137.0kbits/s    
12:53:45.707 [StreamLogger-152] DEBUG GenericPipeCaptureDevice - err: frame=  252 fps= 74 q=-1.0 size=    3225kB time=00:00:08.48 bitrate=3112.7kbits/s
Its no way the quality of the IPTV Network Encoders (since those are HDMI) but it makes some cheap way to add a IRD to Sage (if you can find some nice deals of SlingBox M1). The good thing is that it even handles the channel change via the built in Slingbox infrared (IRD must be supported by slingbox)
__________________
SageTV 7.1.9 / Phoenix
Captures: 1x Genpix Skywalker DVB4Sage / 1x 7500 Prof DVBS2 Tunner DVB4Sage / 1x HD HomeRun / 1x Slingbox M1 / 1x Colossus HD
Extender: 2x HD200 / 1x HD300

Reply With Quote
  #40  
Old 01-30-2017, 04:18 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,217
Interesting so this is kind of an alternative to an HD-PVR, is it?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
Reply

Tags
executable, script, streaming


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Capture Device? Skybolt Hardware Support 5 05-07-2013 07:00 PM
HVR-1600 Capture Device? m0ng00se30 Hardware Support 10 04-28-2007 10:24 AM
Using Motorola Tuner device for capture device cyberfreak Hardware Support 4 02-22-2007 02:47 PM
No AV Capture Device jaelanicu SageTV Recorder Software 5 08-03-2006 02:02 AM
Video Capture Device - Not Available crashdude Hardware Support 2 03-15-2004 12:14 PM


All times are GMT -6. The time now is 05:10 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.