koush / nvr.scrypted.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AAC recordings export issue

zubenco opened this issue · comments

Exported recordings seems do not have audio tracks. There's no sound.

add log from camera while exporting please

and include camera native codec information

I need info on camera codecs or I will need to close this. @zubenco

linux x64 #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022
server version: 0.7.53
plugin version: @scrypted/rtsp 0.0.53
full
[Rebroadcast Plugin]: sending prebuffer 6000
[Rebroadcast Plugin]: Found sync frame in rtsp prebuffer.
[Rebroadcast Plugin]: Selected stream Stream 2
[Rebroadcast Plugin]: sending prebuffer 2000
[Adaptive Streaming]: rtsp/tcp h264
[Adaptive Streaming]: a/v copy copy found h264 aac
[Adaptive Streaming]: rtsp/tcp aac
[Rebroadcast Plugin]: Stream 2 active rebroadcast clients: 3
[Rebroadcast Plugin]: Found sync frame in rtsp prebuffer.
[Adaptive Streaming]: bypassing ffmpeg, perfect codecs
[Scrypted NVR]: Recording stream request {
[Scrypted NVR]: video: { codec: 'h264', width: 393, height: 852 },
[Scrypted NVR]: audio: { codec: 'opus' },
[Scrypted NVR]: adaptive: true,
[Scrypted NVR]: destination: 'remote',
[Scrypted NVR]: destinationId: '178.168.111.166',
[Scrypted NVR]: tool: 'scrypted',
[Scrypted NVR]: startTime: 1681127960000,
[Scrypted NVR]: loop: false,
[Scrypted NVR]: playbackRate: 1,
[Scrypted NVR]: container: 'rtsp'
[Scrypted NVR]: }
[RTC Connection Bridge]: Client Stream Profile {
[RTC Connection Bridge]: transcodeBaseline: false,
[RTC Connection Bridge]: sessionSupportsH264High: true,
[RTC Connection Bridge]: maximumCompatibilityMode: false,
[RTC Connection Bridge]: userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Mobile/15E148 Safari/604.1 InstalledApp',
[RTC Connection Bridge]: capabilities: {
[RTC Connection Bridge]: audio: { codecs: [Array], headerExtensions: [Array] },
[RTC Connection Bridge]: video: { codecs: [Array], headerExtensions: [Array] }
[RTC Connection Bridge]: },
[RTC Connection Bridge]: screen: { devicePixelRatio: 3, width: 393, height: 852 }
[RTC Connection Bridge]: }
[RTC Connection Bridge]: rtsp/tcp h264
[RTC Connection Bridge]: a/v h264 opus found h264 undefined
[RTC Connection Bridge]: rtsp/tcp aac
[RTC Connection Bridge]: -hide_banner -i rtsp:[REDACTED] -acodec libopus -flags +global_header -ar 48k -b:a 40k -bufsize 96k -ac 2 -application lowdelay -dn -sn -vn -f rtp rtp://127.0.0.1:38749? -sdp_file pipe:4
[RTC Connection Bridge]: first video packet 314
[RTC Connection Bridge]: [rtsp @ 0x76fb980] method SETUP failed: 461 Unsupported Transport
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Rebroadcast Plugin]: Stream 2 active rebroadcast clients: 2
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Requested stream could not be served low-resolution remote

Seems the recording used the opus codec, but camera use AAC.

@koush did you have any progress here?

share an exported mp4 please. and include a screenshot of the detected codecs from from your Local stream.

trim.2C822D1A-B8AC-40BE-BD01-55FAE3D5F89B.MOV

image

Thanks, this should export fine without any transcoding necessary. I added more logging to a recent NVR plugin build:

Can you clear the camera log, and then export again? The export process will be captured now.

[Scrypted NVR]: Recording stream request { startTime: 1683223043584, duration: 139916 }
[Scrypted NVR]: -hide_banner -y -reorder_queue_size 0 -analyzeduration 0 -probesize 100k -rtsp_transport tcp -i rtsp:[REDACTED] -vcodec copy -acodec aac -movflags frag_keyframe+empty_moov+default_base_moof+skip_sidx+skip_trailer -f mp4 pipe:3
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: [rtsp @ 0x72f79c0] Error parsing AU headers
[Scrypted NVR]: [rtsp @ 0x72f79c0] Stream #0: not enough frames to estimate rate; consider increasing probesize
[Scrypted NVR]: Input #0, rtsp, from 'rtsp://127.0.0.1:42689/09a723576b1e20c0':
[Scrypted NVR]: Duration: N/A, bitrate: N/A
[Scrypted NVR]: Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 12 tbr, 90k tbn
[Scrypted NVR]: Stream #0:1: Audio: aac, 16000 Hz, mono, fltp
[Scrypted NVR]: Stream mapping:
[Scrypted NVR]: Stream #0:0 -> #0:0 (copy)
[Scrypted NVR]: Stream #0:1 -> #0:1 (aac (native) -> aac (native))
[Scrypted NVR]: Press [q] to stop, [?] for help
[Scrypted NVR]: [rtsp @ 0x72f79c0] Error parsing AU headers
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR]: Last message repeated 2231 times
[Scrypted NVR]: Output #0, mp4, to 'pipe:3':
[Scrypted NVR]: Metadata:
[Scrypted NVR]: encoder : Lavf59.16.100
[Scrypted NVR]: Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, q=2-31, 12 tbr, 90k tbn
[Scrypted NVR]: Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 69 kb/s
[Scrypted NVR]: Metadata:
[Scrypted NVR]: encoder : Lavc59.18.100 aac
[Scrypted NVR]: [mp4 @ 0x7325ac0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[Scrypted NVR]: frame= 1714 fps=0.0 q=-1.0 size= 18820kB time=00:02:22.82 bitrate=1079.4kbits/s speed= 216x
[Scrypted NVR]: frame= 1714 fps=0.0 q=-1.0 Lsize= 20863kB time=00:02:22.82 bitrate=1196.6kbits/s speed= 201x
[Scrypted NVR]: video:20845kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.085222%
[Scrypted NVR]: [aac @ 0x7322b80] Qavg: nan
[Scrypted NVR]: ffmpeg exited

this was fixed, can you confirm

No, seems the same.

linux x64 #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022
server version: 0.7.97
plugin version: @scrypted/rtsp 0.0.53
full
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 41
[Scrypted NVR Object Detection]: Reconfirming motion.
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 41
[Scrypted NVR Object Detection]: Reconfirming motion.
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 44
[Scrypted NVR Object Detection]: Reconfirming motion.
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 56
[Scrypted NVR Object Detection]: Reconfirming motion.
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 57
[Scrypted NVR Object Detection]: Reconfirming motion.
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 72
[Scrypted NVR Object Detection]: Reconfirming motion.
[Video Analysis Plugin]: [10.7s] Detected: motion
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 81
[Scrypted NVR Object Detection]: Reconfirming motion.
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 93
[Scrypted NVR Object Detection]: Reconfirming motion.
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 130
[Scrypted NVR Object Detection]: Reconfirming motion.
[Rebroadcast Plugin]: sending prebuffer 6000
[Rebroadcast Plugin]: Found sync frame in rtsp prebuffer.
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 175
[Scrypted NVR Object Detection]: Reconfirming motion.
[Rebroadcast Plugin]: Selected stream Stream 2
[Rebroadcast Plugin]: sending prebuffer 2000
[Adaptive Streaming]: rtsp/tcp h264
[Adaptive Streaming]: a/v copy copy found h264 aac
[Adaptive Streaming]: rtsp/tcp aac
[Rebroadcast Plugin]: Stream 2 active rebroadcast clients: 2
[Rebroadcast Plugin]: Found sync frame in rtsp prebuffer.
[Adaptive Streaming]: bypassing ffmpeg, perfect codecs
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 229
[Scrypted NVR Object Detection]: Reconfirming motion.
[Rebroadcast Plugin]: Stream 1 active rebroadcast clients: 1
[Video Analysis Plugin]: video analysis, 1 camera(s), dps: 17.8 (337/19)
[Scrypted NVR]: Recording stream request {
[Scrypted NVR]: video: { codec: 'h264', width: 393, height: 852 },
[Scrypted NVR]: audio: { codec: 'opus' },
[Scrypted NVR]: adaptive: true,
[Scrypted NVR]: destination: 'remote',
[Scrypted NVR]: destinationId: '178.168.111.227',
[Scrypted NVR]: tool: 'scrypted',
[Scrypted NVR]: startTime: 1683985407500,
[Scrypted NVR]: loop: false,
[Scrypted NVR]: playbackRate: 1,
[Scrypted NVR]: container: 'rtsp'
[Scrypted NVR]: }
[RTC Connection Bridge]: Client Stream Profile {
[RTC Connection Bridge]: transcodeBaseline: false,
[RTC Connection Bridge]: sessionSupportsH264High: true,
[RTC Connection Bridge]: maximumCompatibilityMode: false,
[RTC Connection Bridge]: userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Mobile/15E148 Safari/604.1 InstalledApp',
[RTC Connection Bridge]: capabilities: {
[RTC Connection Bridge]: audio: { codecs: [Array], headerExtensions: [Array] },
[RTC Connection Bridge]: video: { codecs: [Array], headerExtensions: [Array] }
[RTC Connection Bridge]: },
[RTC Connection Bridge]: screen: { devicePixelRatio: 3, width: 393, height: 852 }
[RTC Connection Bridge]: }
[Rebroadcast Plugin]: Stream 2 active rebroadcast clients: 1
[RTC Connection Bridge]: rtsp/tcp h264
[RTC Connection Bridge]: a/v h264 opus found h264 undefined
[RTC Connection Bridge]: rtsp/tcp aac
[RTC Connection Bridge]: -hide_banner -i rtsp:[REDACTED] -acodec libopus -flags +global_header -ar 48k -b:a 40k -bufsize 96k -ac 2 -application lowdelay -dn -sn -vn -f rtp rtp://127.0.0.1:43176? -sdp_file pipe:4
[RTC Connection Bridge]: first video packet 325
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: [rtsp @ 0x6bbf980] method SETUP failed: 461 Unsupported Transport
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: -hide_banner -f aac -i pipe:[REDACTED] -acodec libopus -flags +global_header -ar 48k -b:a 40k -bufsize 96k -ac 2 -application lowdelay -dn -sn -vn -f rtp rtp://127.0.0.1:43176?
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Rebroadcast Plugin]: Selected stream Stream 2
[Rebroadcast Plugin]: sending prebuffer 2506
[Rebroadcast Plugin]: Stream 2 active rebroadcast clients: 2
[Rebroadcast Plugin]: Found sync frame in rtsp prebuffer.
[RTC Connection Bridge]: Input #0, aac, from 'pipe:3':
[RTC Connection Bridge]: Duration: N/A, bitrate: 53 kb/s
[RTC Connection Bridge]: Stream #0:0: Audio: aac (LC), 16000 Hz, stereo, fltp, 53 kb/s
[RTC Connection Bridge]: Stream mapping:
[RTC Connection Bridge]: Stream #0:0 -> #0:0 (aac (native) -> opus (libopus))
[RTC Connection Bridge]: Output #0, rtp, to 'rtp://127.0.0.1:43176?':
[RTC Connection Bridge]: Metadata:
[RTC Connection Bridge]: encoder : Lavf59.16.100
[RTC Connection Bridge]: Stream #0:0: Audio: opus, 48000 Hz, stereo, flt, 40 kb/s
[RTC Connection Bridge]: Metadata:
[RTC Connection Bridge]: encoder : Lavc59.18.100 libopus
[RTC Connection Bridge]: size= 0kB time=00:00:00.05 bitrate= 69.3kbits/s speed=5.75e+04x
[RTC Connection Bridge]: video/audio detected, discarding further input
[RTC Connection Bridge]: SDP:
[RTC Connection Bridge]: v=0
[RTC Connection Bridge]: o=- 0 0 IN IP4 127.0.0.1
[RTC Connection Bridge]: s=No Name
[RTC Connection Bridge]: c=IN IP4 127.0.0.1
[RTC Connection Bridge]: t=0 0
[RTC Connection Bridge]: a=tool:libavformat 59.16.100
[RTC Connection Bridge]: m=audio 43176 RTP/AVP 97
[RTC Connection Bridge]: b=AS:40
[RTC Connection Bridge]: a=rtpmap:97 opus/48000/2
[RTC Connection Bridge]: a=fmtp:97 sprop-stereo=1
[Rebroadcast Plugin]: Stream 2 active rebroadcast clients: 1
[Video Analysis Plugin]: Suspending motion processing during active motion timeout.
[Rebroadcast Plugin]: sending prebuffer 6000
[Rebroadcast Plugin]: Found sync frame in rtsp prebuffer.
[Rebroadcast Plugin]: sending prebuffer 6000
[Rebroadcast Plugin]: Found sync frame in rtsp prebuffer.
[Rebroadcast Plugin]: Selected stream Stream 2
[Rebroadcast Plugin]: sending prebuffer 2506.3333333333335
[Rebroadcast Plugin]: Stream 2 active rebroadcast clients: 2
[Rebroadcast Plugin]: Found sync frame in rtsp prebuffer.
[Rebroadcast Plugin]: sending prebuffer 6000
[Rebroadcast Plugin]: Found sync frame in rtsp prebuffer.
[Rebroadcast Plugin]: sending prebuffer 1000
[Video Analysis Plugin]: Gstreamer + Scrypted NVR Object Detection
[Rebroadcast Plugin]: Stream 2 active rebroadcast clients: 1
[Video Analysis Plugin]: Suspending motion processing during active motion timeout.
[Rebroadcast Plugin]: Selected stream Stream 1
[Rebroadcast Plugin]: sending prebuffer 2502.6666666666665
[Rebroadcast Plugin]: Unable to find sync frame in rtsp prebuffer.
[Scrypted NVR]: Recording stream request { startTime: 1683984303582, duration: 218168 }
[Scrypted NVR]: -hide_banner -y -reorder_queue_size 0 -analyzeduration 0 -probesize 100k -rtsp_transport tcp -i rtsp:[REDACTED] -vcodec copy -acodec copy -movflags frag_keyframe+empty_moov+default_base_moof+skip_sidx+skip_trailer -f mp4 pipe:3
[Scrypted NVR]: [rtsp @ 0x5dcf9c0] Error parsing AU headers
[Scrypted NVR]: [rtsp @ 0x5dcf9c0] Stream #0: not enough frames to estimate rate; consider increasing probesize
[Scrypted NVR]: Input #0, rtsp, from 'rtsp://127.0.0.1:42863/16fba813fcbf1dff':
[Scrypted NVR]: Duration: N/A, bitrate: N/A
[Scrypted NVR]: Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 24 tbr, 90k tbn
[Scrypted NVR]: Stream #0:1: Audio: aac, 16000 Hz, mono, fltp
[Scrypted NVR]: [mp4 @ 0x5dfdac0] track 1: codec frame size is not set
[Scrypted NVR]: Output #0, mp4, to 'pipe:3':
[Scrypted NVR]: Metadata:
[Scrypted NVR]: encoder : Lavf59.16.100
[Scrypted NVR]: Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, q=2-31, 24 tbr, 90k tbn
[Scrypted NVR]: Stream #0:1: Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, fltp
[Scrypted NVR]: Stream mapping:
[Scrypted NVR]: Stream #0:0 -> #0:0 (copy)
[Scrypted NVR]: Stream #0:1 -> #0:1 (copy)
[Scrypted NVR]: Press [q] to stop, [?] for help
[Scrypted NVR]: [mp4 @ 0x5dfdac0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[Scrypted NVR]: frame= 1 fps=0.0 q=-1.0 size= 1kB time=00:00:00.00 bitrate=878545.5kbits/s speed=N/A
[rtsp @ 0x5dcf9c0] Error parsing AU headers
[Scrypted NVR]: Recording stream request {
[Scrypted NVR]: video: { codec: 'h264', width: 393, height: 852 },
[Scrypted NVR]: audio: { codec: 'opus' },
[Scrypted NVR]: adaptive: true,
[Scrypted NVR]: destination: 'remote',
[Scrypted NVR]: destinationId: '178.168.111.227',
[Scrypted NVR]: tool: 'scrypted',
[Scrypted NVR]: startTime: 1683984303582,
[Scrypted NVR]: loop: false,
[Scrypted NVR]: playbackRate: 1,
[Scrypted NVR]: container: 'rtsp'
[Scrypted NVR]: }
[Scrypted NVR Object Detection]: detector: OpenVINO Object Detection
[Scrypted NVR Object Detection]: Confirming motion.
[Rebroadcast Plugin]: Stream 1 active rebroadcast clients: 2
[Rebroadcast Plugin]: Found sync frame in rtsp prebuffer.
[RTC Connection Bridge]: Client Stream Profile {
[RTC Connection Bridge]: transcodeBaseline: false,
[RTC Connection Bridge]: sessionSupportsH264High: true,
[RTC Connection Bridge]: maximumCompatibilityMode: false,
[RTC Connection Bridge]: userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Mobile/15E148 Safari/604.1 InstalledApp',
[RTC Connection Bridge]: capabilities: {
[RTC Connection Bridge]: audio: { codecs: [Array], headerExtensions: [Array] },
[RTC Connection Bridge]: video: { codecs: [Array], headerExtensions: [Array] }
[RTC Connection Bridge]: },
[RTC Connection Bridge]: screen: { devicePixelRatio: 3, width: 393, height: 852 }
[RTC Connection Bridge]: }
[RTC Connection Bridge]: rtsp/tcp h264
[RTC Connection Bridge]: a/v h264 opus found h264 undefined
[Scrypted NVR]: Last message repeated 820 times
[Scrypted NVR]: frame= 1263 fps=0.0 q=-1.0 size= 11382kB time=00:00:52.57 bitrate=1773.5kbits/s speed= 104x
[rtsp @ 0x5dcf9c0] Error parsing AU headers
[RTC Connection Bridge]: rtsp/tcp aac
[RTC Connection Bridge]: -hide_banner -i rtsp:[REDACTED] -acodec libopus -flags +global_header -ar 48k -b:a 40k -bufsize 96k -ac 2 -application lowdelay -dn -sn -vn -f rtp rtp://127.0.0.1:42007? -sdp_file pipe:4
[Video Analysis Plugin]: [1s] Detected: [no detections]
[RTC Connection Bridge]: first video packet 709
[RTC Connection Bridge]: -hide_banner -f aac -i pipe:[REDACTED] -acodec libopus -flags +global_header -ar 48k -b:a 40k -bufsize 96k -ac 2 -application lowdelay -dn -sn -vn -f rtp rtp://127.0.0.1:42007?
[RTC Connection Bridge]: [rtsp @ 0x608b980] method SETUP failed: 461 Unsupported Transport
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 2
[RTC Connection Bridge]: jitter buffer skipped packets: 5
[Scrypted NVR Object Detection]: Reconfirming motion.
[Scrypted NVR]: Last message repeated 664 times
[Scrypted NVR]: frame= 2283 fps=2233 q=-1.0 size= 27884kB time=00:01:35.11 bitrate=2401.7kbits/s speed= 93x
[rtsp @ 0x5dcf9c0] Error parsing AU headers
[Scrypted NVR]: Last message repeated 899 times
[Scrypted NVR]: frame= 3663 fps=2376 q=-1.0 size= 46009kB time=00:02:32.68 bitrate=2468.6kbits/s speed= 99x
[Scrypted NVR]: [rtsp @ 0x5dcf9c0] Error parsing AU headers
[Scrypted NVR]: Last message repeated 1067 times
[Scrypted NVR]: frame= 5300 fps=2594 q=-1.0 Lsize= 74324kB time=00:03:41.08 bitrate=2754.0kbits/s speed= 108x
[Scrypted NVR]: video:74272kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.070445%
[Scrypted NVR]: ffmpeg exited
[Scrypted NVR Object Detection]: Confirmed motion. Frames skipped: 41
[Scrypted NVR Object Detection]: Reconfirming motion.
[RTC Connection Bridge]: Input #0, aac, from 'pipe:3':
[RTC Connection Bridge]: Duration: N/A, bitrate: 53 kb/s
[RTC Connection Bridge]: Stream #0:0: Audio: aac (LC), 16000 Hz, stereo, fltp, 53 kb/s
[RTC Connection Bridge]:
[RTC Connection Bridge]: Stream mapping:
[RTC Connection Bridge]: Stream #0:0 -> #0:0 (aac (native) -> opus (libopus))
[RTC Connection Bridge]: Output #0, rtp, to 'rtp://127.0.0.1:42007?':
[RTC Connection Bridge]: Metadata:
[RTC Connection Bridge]: encoder : Lavf59.16.100
[RTC Connection Bridge]: Stream #0:0: Audio: opus, 48000 Hz, stereo, flt, 40 kb/s
[RTC Connection Bridge]: Metadata:
[RTC Connection Bridge]: encoder : Lavc59.18.100 libopus
[RTC Connection Bridge]: SDP:
[RTC Connection Bridge]: v=0
[RTC Connection Bridge]: o=- 0 0 IN IP4 127.0.0.1
[RTC Connection Bridge]: s=No Name
[RTC Connection Bridge]: c=IN IP4 127.0.0.1
[RTC Connection Bridge]: t=0 0
[RTC Connection Bridge]: a=tool:libavformat 59.16.100
[RTC Connection Bridge]: m=audio 42007 RTP/AVP 97
[RTC Connection Bridge]: b=AS:40
[RTC Connection Bridge]: a=rtpmap:97 opus/48000/2
[RTC Connection Bridge]: a=fmtp:97 sprop-stereo=1
[RTC Connection Bridge]: size= 0kB time=00:00:00.05 bitrate= 68.5kbits/s speed=5.75e+04x
[RTC Connection Bridge]: video/audio detected, discarding further input.

Ok, can you set your audio to PCMUlaw/g711mulaw instead? That is the recommended codec for Scrypted anyways.

@koush sure. Already done. But when I'm using this codec, I have a sound flicker issue in the live/playback.

trim.7A5BAE85-16D9-403B-ADFA-5FF778981CD6.MOV

Did you have a chance to investigate this issue?

@koush any news here?

@koush any news here?

need new logs