softworkz 3325 Posted May 12, 2022 Share Posted May 12, 2022 Thanks. You also mentioned that you did the test with VLC from a different machine. So, that explains why it's not working. You need to allow both (TCP and UDP) for RTSP and both (TCP and UDP) for 5556 - 5559 ports on the Emby Server machine. Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 12, 2022 Author Share Posted May 12, 2022 There's no firewall rule configured on the camera itself. Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 12, 2022 Author Share Posted May 12, 2022 Following rules added to Emby server firewall. No joy so far: 554/tcp ALLOW IN Anywhere 554/udp ALLOW IN Anywhere 5556/tcp ALLOW IN Anywhere 5556/udp ALLOW IN Anywhere 5559/tcp ALLOW IN Anywhere 5559/udp ALLOW IN Anywhere Link to comment Share on other sites More sharing options...
softworkz 3325 Posted May 12, 2022 Share Posted May 12, 2022 5557, 5558 ?? Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 12, 2022 Author Share Posted May 12, 2022 Just added those as well: 554/tcp ALLOW IN Anywhere 554/udp ALLOW IN Anywhere 5556/tcp ALLOW IN Anywhere 5556/udp ALLOW IN Anywhere 5559/tcp ALLOW IN Anywhere 5559/udp ALLOW IN Anywhere 5557/tcp ALLOW IN Anywhere 5557/udp ALLOW IN Anywhere 5558/tcp ALLOW IN Anywhere 5558/udp ALLOW IN Anywhere 1 Link to comment Share on other sites More sharing options...
softworkz 3325 Posted May 12, 2022 Share Posted May 12, 2022 If that doesn't work, you can install WireShark on the machine where you do the test with VLC. With WireShark, you can record all network activity with the camera (filter: ip.v4 == 192.168.1.240) while playing the stream with VLC (start WireShard before starting playback). This will give you a pretty good picture of the ports being actually used. Link to comment Share on other sites More sharing options...
softworkz 3325 Posted May 12, 2022 Share Posted May 12, 2022 PS: Maybe the firewall config change needs a restart of the service (or even better a reboot) Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 12, 2022 Author Share Posted May 12, 2022 I have done reboot (of Emby server) also I have tried disabling firewall all-together. No success so far. Link to comment Share on other sites More sharing options...
softworkz 3325 Posted May 12, 2022 Share Posted May 12, 2022 13 minutes ago, HSEmbyBox said: also I have tried disabling firewall all-together. I would reboot the OS. Rebooting Emby Server does nothing relevant to this. Link to comment Share on other sites More sharing options...
softworkz 3325 Posted May 12, 2022 Share Posted May 12, 2022 (edited) The reason why I'm sure that it's a port communication issue is because, when looking at this: 12:19:35.812 Input #0, rtsp, from 'rtsp://192.168.1.240:554/live1.sdp': 12:19:35.812 Metadata: 12:19:35.812 title : RTSP/RTP stream 1 from DCS-5222L 12:19:35.812 comment : live1.sdp with v2.0 12:19:35.812 Duration: N/A, start: 0.000000, bitrate: N/A 12:19:35.813 Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, Level 31, 25.08 tbr, 90k tbn 12:19:35.813 Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s 12:19:35.818 Stream mapping: 12:19:35.818 Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) 12:19:35.818 Stream #0:1 -> #0:1 (pcm_mulaw (native) -> mp3 (libmp3lame)) 12:19:35.818 Press [q] to stop, [?] for help 12:19:35.831 [libx264 @ 0x1ca0380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 12:19:35.834 [libx264 @ 0x1ca0380] profile High, level 3.1, 4:2:0, 8-bit 12:19:35.834 [libx264 @ 0x1ca0380] 264 - core 163 r3060 5db6aa6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0 me=hex subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=78 keyint_min=40 scenecut=0 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=4000 vbv_bufsize=8000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 12:19:41.874 You can see that ffmpeg gets all the stream information from the SDP. It even shows the camera name (" from DCS-5222L"). After the setup, ffmpeg waits for stream data coming in. But nothing happens. Looking at the last two timestamps, you can see that there's a time of 6 seconds for which it's waiting for stream data to arrive. But no data is arriving actually. Edited May 12, 2022 by softworkz Link to comment Share on other sites More sharing options...
softworkz 3325 Posted May 12, 2022 Share Posted May 12, 2022 One other thing you could try is this: Install the Diagnostics plugin Restart Emby Server On the Diagnostic Options page, there's an ffmpeg find/replace feature Find: -start_at_zero Replace: -start_at_zero -rtsp_transport tcp Retry playback Link to comment Share on other sites More sharing options...
softworkz 3325 Posted May 14, 2022 Share Posted May 14, 2022 @HSEmbyBox - Have you had a chance to try these things? Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 14, 2022 Author Share Posted May 14, 2022 @softworkzThanks for the reminder. I did restart the Emby server (PC) by powering it off. Firewall (ufw) is disabled. It reads Status: inactive I will test with diagnostic plugin and will revert back. 1 Link to comment Share on other sites More sharing options...
softworkz 3325 Posted May 14, 2022 Share Posted May 14, 2022 One more idea: Cross-Test! On the Ubuntu machine (in case you have installed the desktop components) install VLC for Linux and try to access the stream from there. On the machine where you successfully tested the stream with VLC, try running ffmpeg with a similar command as shown in the Emby log Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 14, 2022 Author Share Posted May 14, 2022 19 minutes ago, softworkz said: @HSEmbyBox - Have you had a chance to try these things? Unfortunately no success. Do note software firewall on Embybox is fully off/disabled. Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 14, 2022 Author Share Posted May 14, 2022 14 minutes ago, softworkz said: One more idea: Cross-Test! On the Ubuntu machine (in case you have installed the desktop components) install VLC for Linux and try to access the stream from there. On the machine where you successfully tested the stream with VLC, try running ffmpeg with a similar command as shown in the Emby log 1. My box is headless so no VLC there 2. ORIGINAL COMMAND ON EMBY SERVER: --- ffmpeg -loglevel +timing -y -print_graphs_file "/var/lib/emby/logs/ffmpeg-transcode-163649e0-dfa0-43e2-a349-4749fc828ba5_1graph.txt" -copyts -start_at_zero -rtsp_transport tcp -analyzeduration 3000000 -f rtsp -stream_loop -1 -c:v:0 h264 -i "rtsp://192.168.1.240:5000/live1.sdp" -map 0:0 -map 0:1 -sn -c:v:0 libx264 -g:v:0 78 -maxrate:v:0 4000000 -bufsize:v:0 8000000 -sc_threshold:v:0 0 -keyint_min:v:0 78 -r:v:0 25.08333396911621 -pix_fmt:v:0 yuv420p -preset:v:0 veryfast -profile:v:0 high -level:v:0 3.1 -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:partitions=none" -crf:v:0 23 -c:a:0 libmp3lame -ab:a:0 64000 -ac:a:0 1 -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "/var/lib/emby/transcoding-temp/F5EA95/F5EA95.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_list_entry_prefix hls/F5EA95/ -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "/var/lib/emby/transcoding-temp/F5EA95/F5EA95_%d.ts" Ok, on option two i was presented with number of issues: Invalid loglevel "timing". Possible levels are numbers or: "quiet" "panic" "fatal" "error" "warning" "info" "verbose" "debug" "trace" So I changed it to "info" Unrecognized option 'print_graphs_file'. Error splitting the argument list: Option not found So I removed that argument Unrecognized option 'print_graphs_file'. Error splitting the argument list: Option not found So I removed that argument Finally ran the command: $ ffmpeg -loglevel +info -y -copyts -start_at_zero -rtsp_transport tcp -analyzeduration 3000000 -f rtsp -stream_loop -1 -c:v:0 h264 -i "rtsp://192.168.1.240:5000/live1.sdp" -map 0:0 -map 0:1 -sn -c:v:0 libx264 -g:v:0 78 -maxrate:v:0 4000000 -bufsize:v:0 8000000 -sc_threshold:v:0 0 -keyint_min:v:0 78 -r:v:0 25.08333396911621 -pix_fmt:v:0 yuv420p -preset:v:0 veryfast -profile:v:0 high -level:v:0 3.1 -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:partitions=none" -crf:v:0 23 -c:a:0 libmp3lame -ab:a:0 64000 -ac:a:0 1 -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "/var/lib/emby/transcoding-temp/F5EA95/F5EA95.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_list_entry_prefix hls/F5EA95/ -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 "/var/lib/emby/transcoding-temp/F5EA95/F5EA95_%d.ts" ffmpeg version n5.0 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11.2.0 (GCC) configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-shared --enable-version3 libavutil 57. 17.100 / 57. 17.100 libavcodec 59. 18.100 / 59. 18.100 libavformat 59. 16.100 / 59. 16.100 libavdevice 59. 4.100 / 59. 4.100 libavfilter 8. 24.100 / 8. 24.100 libswscale 6. 4.100 / 6. 4.100 libswresample 4. 3.100 / 4. 3.100 libpostproc 56. 3.100 / 56. 3.100 Guessed Channel Layout for Input Stream #0.1 : mono Input #0, rtsp, from 'rtsp://192.168.1.240:5000/live1.sdp': Metadata: title : RTSP/RTP stream 1 from DCS-5222L comment : live1.sdp with v2.0 Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, 25.08 tbr, 90k tbn Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (pcm_mulaw (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help [libx264 @ 0x562c2260a240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x562c2260a240] profile High, level 3.1, 4:2:0, 8-bit [libx264 @ 0x562c2260a240] 264 - core 164 r3081 19856cc - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0 me=hex subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=78 keyint_min=40 scenecut=0 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=4000 vbv_bufsize=8000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 Finishing stream 0:1 without any data written to it. Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory Error initializing output stream 0:1 -- [libx264 @ 0x562c2260a240] frame I:106 Avg QP:16.03 size: 57259 [libx264 @ 0x562c2260a240] frame P:2810 Avg QP:20.04 size: 5495 [libx264 @ 0x562c2260a240] frame B:5329 Avg QP:22.49 size: 387 [libx264 @ 0x562c2260a240] consecutive B-frames: 6.2% 16.2% 19.9% 57.7% [libx264 @ 0x562c2260a240] mb I I16..4: 18.9% 39.1% 42.0% [libx264 @ 0x562c2260a240] mb P I16..4: 5.0% 0.0% 0.0% P16..4: 28.6% 0.0% 0.0% 0.0% 0.0% skip:66.4% [libx264 @ 0x562c2260a240] mb B I16..4: 0.1% 0.0% 0.0% B16..8: 2.0% 0.0% 0.0% direct: 2.6% skip:95.4% L0:46.0% L1:50.3% BI: 3.7% [libx264 @ 0x562c2260a240] 8x8 transform intra:16.4% inter:17.6% [libx264 @ 0x562c2260a240] coded y,uvDC,uvAC intra: 41.5% 33.2% 10.6% inter: 2.8% 6.2% 0.1% [libx264 @ 0x562c2260a240] i16 v,h,dc,p: 28% 20% 20% 33% [libx264 @ 0x562c2260a240] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 19% 14% 8% 6% 7% 8% 7% 9% [libx264 @ 0x562c2260a240] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 20% 10% 7% 7% 7% 9% 7% 8% [libx264 @ 0x562c2260a240] i8c dc,h,v,p: 48% 19% 23% 11% [libx264 @ 0x562c2260a240] Weighted P-Frames: Y:0.5% UV:0.1% [libx264 @ 0x562c2260a240] kb/s:573.65 Exiting normally, received signal 2. Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 14, 2022 Author Share Posted May 14, 2022 On 5/12/2022 at 11:30 PM, softworkz said: I would reboot the OS. Rebooting Emby Server does nothing relevant to this. Yup that's what I have been doing, rebooting (power cycling) the OS or the bare metal. Link to comment Share on other sites More sharing options...
softworkz 3325 Posted May 14, 2022 Share Posted May 14, 2022 Your test goes at least a bit further than in the Emby log. The modifications you did to the command line are all correct! What's missing now is to specify an existing output directory. (as /var/lib/emby/transcoding-temp/F5EA95/F5EA95_%d.ts) most likely doesn't exist. (you need to replace it with a valid path twice) Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 14, 2022 Author Share Posted May 14, 2022 Is this OK? ffmpeg -loglevel +info -y -copyts -start_at_zero -rtsp_transport tcp -analyzeduration 3000000 -f rt sp -stream_loop -1 -c:v:0 h264 -i "rtsp://192.168.1.240:5000/live1.sdp" -map 0:0 -map 0:1 -sn -c:v:0 libx264 -g:v:0 78 -maxrate :v:0 4000000 -bufsize:v:0 8000000 -sc_threshold:v:0 0 -keyint_min:v:0 78 -r:v:0 25.08333396911621 -pix_fmt:v:0 yuv420p -preset: v:0 veryfast -profile:v:0 high -level:v:0 3.1 -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:partitions=none" -crf:v:0 23 -c :a:0 libmp3lame -ab:a:0 64000 -ac:a:0 1 -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map _metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "/tmp/F5EA95.m3u8" -segment_list_type m3u8 -segment_time 00: 00:03.000 -segment_list_entry_prefix hls/F5EA95/ -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 "/tmp/F5EA95_%d.ts" Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 14, 2022 Author Share Posted May 14, 2022 and got this. Had to break it with Ctrl + C [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18377940 pts_time:204.199 dts:18370764 dts_time:204.12 -> pts:18 377940 pts_time:204.199 dts:18370764 dts_time:204.12 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18374352 pts_time:204.159 dts:18374352 dts_time:204.159 -> pts:1 8374352 pts_time:204.159 dts:18374352 dts_time:204.159 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18381528 pts_time:204.239 dts:18377940 dts_time:204.199 -> pts:1 8381528 pts_time:204.239 dts:18377940 dts_time:204.199 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18399468 pts_time:204.439 dts:18381528 dts_time:204.239 -> pts:1 8399468 pts_time:204.439 dts:18381528 dts_time:204.239 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18392292 pts_time:204.359 dts:18385116 dts_time:204.279 -> pts:1 8392292 pts_time:204.359 dts:18385116 dts_time:204.279 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18388704 pts_time:204.319 dts:18388704 dts_time:204.319 -> pts:1 8388704 pts_time:204.319 dts:18388704 dts_time:204.319 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18395880 pts_time:204.399 dts:18392292 dts_time:204.359 -> pts:1 8395880 pts_time:204.399 dts:18392292 dts_time:204.359 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18410233 pts_time:204.558 dts:18395880 dts_time:204.399 -> pts:1 8410233 pts_time:204.558 dts:18395880 dts_time:204.399 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18403056 pts_time:204.478 dts:18399468 dts_time:204.439 -> pts:1 8403056 pts_time:204.478 dts:18399468 dts_time:204.439 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18406645 pts_time:204.518 dts:18403056 dts_time:204.478 -> pts:1 8406645 pts_time:204.518 dts:18403056 dts_time:204.478 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18420997 pts_time:204.678 dts:18406645 dts_time:204.518 -> pts:1 8420997 pts_time:204.678 dts:18406645 dts_time:204.518 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18413821 pts_time:204.598 dts:18410233 dts_time:204.558 -> pts:1 8413821 pts_time:204.598 dts:18410233 dts_time:204.558 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18417409 pts_time:204.638 dts:18413821 dts_time:204.598 -> pts:1 8417409 pts_time:204.638 dts:18413821 dts_time:204.598 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18431761 pts_time:204.797 dts:18417409 dts_time:204.638 -> pts:1 8431761 pts_time:204.797 dts:18417409 dts_time:204.638 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18424585 pts_time:204.718 dts:18420997 dts_time:204.678 -> pts:1 8424585 pts_time:204.718 dts:18420997 dts_time:204.678 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18428173 pts_time:204.757 dts:18424585 dts_time:204.718 -> pts:1 8428173 pts_time:204.757 dts:18424585 dts_time:204.718 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18442525 pts_time:204.917 dts:18428173 dts_time:204.757 -> pts:1 8442525 pts_time:204.917 dts:18428173 dts_time:204.757 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18435349 pts_time:204.837 dts:18431761 dts_time:204.797 -> pts:1 8435349 pts_time:204.837 dts:18431761 dts_time:204.797 [segment @ 0x55c2e3206a80] stream:0 start_pts_time:202.126 pts:18438937 pts_time:204.877 dts:18435349 dts_time:204.837 -> pts:1 8438937 pts_time:204.877 dts:18435349 dts_time:204.837 [segment @ 0x55c2e3206a80] Opening '/tmp/F5EA95.m3u8.tmp' for writing [file @ 0x55c2e31b5400] Setting default whitelist 'file,crypto,data' [segment @ 0x55c2e3206a80] EXT-X-MEDIA-SEQUENCE:0 [AVIOContext @ 0x55c2e32265c0] Statistics: 2873 bytes written, 0 seeks, 1 writeouts [segment @ 0x55c2e3206a80] segment:'/tmp/F5EA95_65.ts' count:65 ended [AVIOContext @ 0x55c2e49ee040] Statistics: 209432 bytes written, 0 seeks, 1 writeouts frame= 5141 fps= 25 q=-1.0 Lsize=N/A time=-00:03:24.83 bitrate=N/A dup=3 drop=0 speed=N/A video:12447kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (rtsp://192.168.1.240:5000/live1.sdp): Input stream #0:0 (video): 5142 packets read (17121504 bytes); 5139 frames decoded; Input stream #0:1 (audio): 0 packets read (0 bytes); 0 frames decoded (0 samples); Total: 5142 packets (17121504 bytes) demuxed Output file #0 (/tmp/F5EA95_%d.ts): Output stream #0:0 (video): 5141 frames encoded; 5141 packets muxed (12746106 bytes); Output stream #0:1 (audio): 0 frames encoded (0 samples); 0 packets muxed (0 bytes); Total: 5141 packets (12746106 bytes) muxed 5139 frames successfully decoded, 0 decoding errors [libx264 @ 0x55c2e3145bc0] frame I:66 Avg QP:15.30 size: 55533 [libx264 @ 0x55c2e3145bc0] frame P:1507 Avg QP:19.92 size: 5237 [libx264 @ 0x55c2e3145bc0] frame B:3568 Avg QP:21.91 size: 333 [libx264 @ 0x55c2e3145bc0] consecutive B-frames: 1.7% 8.7% 26.0% 63.6% [libx264 @ 0x55c2e3145bc0] mb I I16..4: 25.1% 34.0% 40.9% [libx264 @ 0x55c2e3145bc0] mb P I16..4: 4.8% 0.0% 0.0% P16..4: 27.9% 0.0% 0.0% 0.0% 0.0% skip:67.3% [libx264 @ 0x55c2e3145bc0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 1.5% 0.0% 0.0% direct: 2.9% skip:95.6% L0:43.1% L1:54 .8% BI: 2.2% [libx264 @ 0x55c2e3145bc0] 8x8 transform intra:16.1% inter:15.3% [libx264 @ 0x55c2e3145bc0] coded y,uvDC,uvAC intra: 48.6% 31.5% 10.1% inter: 2.3% 6.3% 0.1% [libx264 @ 0x55c2e3145bc0] i16 v,h,dc,p: 38% 18% 20% 24% [libx264 @ 0x55c2e3145bc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 19% 14% 11% 6% 5% 8% 9% 9% [libx264 @ 0x55c2e3145bc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 20% 10% 8% 7% 6% 7% 7% 9% [libx264 @ 0x55c2e3145bc0] i8c dc,h,v,p: 51% 19% 20% 10% [libx264 @ 0x55c2e3145bc0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x55c2e3145bc0] kb/s:497.48 Exiting normally, received signal 2. Link to comment Share on other sites More sharing options...
softworkz 3325 Posted May 14, 2022 Share Posted May 14, 2022 You can try with and without -rtsp_transport tcp Other things you can try is to remove -f rt sp -stream_loop -1 Link to comment Share on other sites More sharing options...
softworkz 3325 Posted May 14, 2022 Share Posted May 14, 2022 OK, that means that it works. Now, let's try the same on the Emby machine. Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 14, 2022 Author Share Posted May 14, 2022 No success. I just get page full of these scrolling by (increasing verbosity): [segment @ 0x5649cb614b80] stream:0 start_pts_time:71.5216 pts:6519468 pts_time:72.4385 dts:6512292 dts_time:72.3588 -> pts:651 9468 pts_time:72.4385 dts:6512292 dts_time:72.3588 [segment @ 0x5649cb614b80] stream:0 start_pts_time:71.5216 pts:6523056 pts_time:72.4784 dts:6515880 dts_time:72.3987 -> pts:652 3056 pts_time:72.4784 dts:6515880 dts_time:72.3987 [segment @ 0x5649cb614b80] stream:0 start_pts_time:71.5216 pts:6530233 pts_time:72.5581 dts:6519468 dts_time:72.4385 -> pts:653 0233 pts_time:72.5581 dts:6519468 dts_time:72.4385 [segment @ 0x5649cb614b80] stream:0 start_pts_time:71.5216 pts:6526645 pts_time:72.5183 dts:6523056 dts_time:72.4784 -> pts:652 6645 pts_time:72.5183 dts:6523056 dts_time:72.4784 [segment @ 0x5649cb614b80] stream:0 start_pts_time:71.5216 pts:6533821 pts_time:72.598 dts:6526645 dts_time:72.5183 -> pts:6533 821 pts_time:72.598 dts:6526645 dts_time:72.5183 [segment @ 0x5649cb614b80] stream:0 start_pts_time:71.5216 pts:6540997 pts_time:72.6777 dts:6530233 dts_time:72.5581 -> pts:654 0997 pts_time:72.6777 dts:6530233 dts_time:72.5581 [segment @ 0x5649cb614b80] stream:0 start_pts_time:71.5216 pts:6537409 pts_time:72.6379 dts:6533821 dts_time:72.598 -> pts:6537 409 pts_time:72.6379 dts:6533821 dts_time:72.598 [segment @ 0x5649cb614b80] stream:0 start_pts_time:71.5216 pts:6555349 pts_time:72.8372 dts:6537409 dts_time:72.6379 -> pts:655 5349 pts_time:72.8372 dts:6537409 dts_time:72.6379 [segment @ 0x5649cb614b80] stream:0 start_pts_time:71.5216 pts:6548173 pts_time:72.7575 dts:6540997 dts_time:72.6777 -> pts:654 8173 pts_time:72.7575 dts:6540997 dts_time:72.6777 [segment @ 0x5649cb614b80] stream:0 start_pts_time:71.5216 pts:6544585 pts_time:72.7176 dts:6544585 dts_time:72.7176 -> pts:654 4585 pts_time:72.7176 dts:6544585 dts_time:72.7176 [segment @ 0x5649cb614b80] stream:0 start_pts_time:71.5216 pts:6551761 pts_time:72.7973 dts:6548173 dts_time:72.7575 -> pts:655 1761 pts_time:72.7973 dts:6548173 dts_time:72.7575 Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 15, 2022 Author Share Posted May 15, 2022 16 hours ago, softworkz said: OK, that means that it works. Now, let's try the same on the Emby machine. Here's what I get when I run it on Emby box: ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr /include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable- avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca - -enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-l ibgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable -libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enab le-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --ena ble-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv 2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec 61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared WARNING: library configuration mismatch avcodec configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu - -incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resamp le --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enab le-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribid i --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopen mpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-li bsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable- libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --e nable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disa ble-doc --disable-programs --enable-libaribb24 --enable-liblensfun --enable-libopencore_amrnb --enable-libopencore_amrwb --enab le-libtesseract --enable-libvo_amrwbenc libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Guessed Channel Layout for Input Stream #0.1 : mono Input #0, rtsp, from 'rtsp://192.168.1.240:5000/live1.sdp': Metadata: title : RTSP/RTP stream 1 from DCS-5222L comment : live1.sdp with v2.0 Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 1280x720, 25.08 tbr, 90k tbn, 180k tbc Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (pcm_mulaw (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help [libx264 @ 0x556e4e969f40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 0x556e4e969f40] profile High, level 3.1 [libx264 @ 0x556e4e969f40] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org /x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0 me=hex subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 ch roma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads= 0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=78 keyint_min=40 scenecut=0 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpm in=0 qpmax=69 qpstep=4 vbv_maxrate=4000 vbv_bufsize=8000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 [rtsp @ 0x556e4e904f80] max delay reached. need to consume packetN/A speed=N/A [rtsp @ 0x556e4e904f80] RTP: missed 36 packets [h264 @ 0x556e4ea00240] negative number of zero coeffs at 66 20 [h264 @ 0x556e4ea00240] error while decoding MB 66 20 [h264 @ 0x556e4ea00240] concealing 1983 DC, 1983 AC, 1983 MV errors in P frame rtsp://192.168.1.240:5000/live1.sdp: corrupt decoded frame in stream 0 Too many packets buffered for output stream 0:0.32:22.77 bitrate=N/A dup=1 drop=0 speed=N/A [libx264 @ 0x556e4e969f40] frame I:2 Avg QP:16.66 size: 49920 [libx264 @ 0x556e4e969f40] frame P:39 Avg QP:20.66 size: 9383 [libx264 @ 0x556e4e969f40] frame B:88 Avg QP:24.56 size: 1375 [libx264 @ 0x556e4e969f40] consecutive B-frames: 5.4% 7.7% 6.9% 80.0% [libx264 @ 0x556e4e969f40] mb I I16..4: 30.7% 28.0% 41.3% [libx264 @ 0x556e4e969f40] mb P I16..4: 7.4% 0.0% 0.0% P16..4: 30.6% 0.0% 0.0% 0.0% 0.0% skip:62.0% [libx264 @ 0x556e4e969f40] mb B I16..4: 0.3% 0.0% 0.0% B16..8: 5.6% 0.0% 0.0% direct: 2.2% skip:92.0% L0:38.7% L1:43 .1% BI:18.2% [libx264 @ 0x556e4e969f40] 8x8 transform intra:10.9% inter:20.3% [libx264 @ 0x556e4e969f40] coded y,uvDC,uvAC intra: 27.0% 30.3% 12.6% inter: 4.1% 4.0% 0.1% [libx264 @ 0x556e4e969f40] i16 v,h,dc,p: 39% 22% 16% 23% [libx264 @ 0x556e4e969f40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 16% 11% 9% 5% 8% 7% 9% 8% [libx264 @ 0x556e4e969f40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 18% 11% 8% 7% 6% 9% 8% 7% [libx264 @ 0x556e4e969f40] i8c dc,h,v,p: 54% 16% 20% 10% [libx264 @ 0x556e4e969f40] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x556e4e969f40] kb/s:912.79 Conversion failed! Link to comment Share on other sites More sharing options...
FlatScreen 15 Posted May 15, 2022 Author Share Posted May 15, 2022 Past duration 0.930656 too large Past duration 0.927330 too large Past duration 0.923988 too large Past duration 0.920662 too large Past duration 0.917320 too large Past duration 0.913994 too large Past duration 0.910652 too large Past duration 0.907326 too large Past duration 0.903999 too large Past duration 0.900658 too large Past duration 0.922401 too large Past duration 0.919075 too large Past duration 0.915749 too large Past duration 0.912407 too large Past duration 0.909081 too large Past duration 0.905739 too large Past duration 0.902412 too large [rtsp @ 0x55ed75c16f80] max delay reached. need to consume packet [rtsp @ 0x55ed75c16f80] RTP: missed 3 packets Past duration 0.899071 too large Past duration 0.895744 too large [h264 @ 0x55ed75c7bb80] Increasing reorder buffer to 1 Past duration 0.892403 too large Too many packets buffered for output stream 0:0.32:22.77 bitrate=N/A speed=N/A [libx264 @ 0x55ed75c78b80] frame I:2 Avg QP:15.99 size: 45360 [libx264 @ 0x55ed75c78b80] frame P:33 Avg QP:19.63 size: 7647 [libx264 @ 0x55ed75c78b80] frame B:94 Avg QP:22.36 size: 726 [libx264 @ 0x55ed75c78b80] consecutive B-frames: 2.3% 0.0% 2.3% 95.4% [libx264 @ 0x55ed75c78b80] mb I I16..4: 32.4% 26.6% 41.1% [libx264 @ 0x55ed75c78b80] mb P I16..4: 8.6% 0.0% 0.0% P16..4: 29.3% 0.0% 0.0% 0.0% 0.0% skip:62.2% [libx264 @ 0x55ed75c78b80] mb B I16..4: 0.2% 0.0% 0.0% B16..8: 3.2% 0.0% 0.0% direct: 2.1% skip:94.5% L0:44.2% L1:42 .6% BI:13.2% [libx264 @ 0x55ed75c78b80] 8x8 transform intra:10.6% inter:20.9% [libx264 @ 0x55ed75c78b80] coded y,uvDC,uvAC intra: 22.8% 26.5% 11.2% inter: 2.8% 4.0% 0.1% [libx264 @ 0x55ed75c78b80] i16 v,h,dc,p: 49% 20% 12% 19% [libx264 @ 0x55ed75c78b80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 17% 10% 8% 5% 8% 6% 7% 8% [libx264 @ 0x55ed75c78b80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 19% 10% 8% 7% 6% 9% 7% 7% [libx264 @ 0x55ed75c78b80] i8c dc,h,v,p: 57% 15% 19% 9% [libx264 @ 0x55ed75c78b80] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x55ed75c78b80] kb/s:639.84 Conversion failed! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now