[FFmpeg-user] Encrypted SRT Does Not Work

Tim McClure tjmcclure0501 at gmail.com
Thu Oct 1 17:10:20 EEST 2020


When I stream ffmpeg SRT to Wowza without encryption it works however when I
stream SRT encrypted I get the error listed below.  I can use other software
to stream encrypted SRT to Wowza and it works so I think the issue is on the
ffmpeg side.  Here is the script I am using:

ffmpeg -v verbose -re -i
IndagoLE.ts -map 0:0 -pix_fmt yuv420p -vsync 1 -vf scale=1024:576 -vcodec
libx264 -r 25 -g 100 -sc_threshold 0 -threads 0 -b:v: 2048k -bufsize 2244k
-maxrate 2560k -preset veryfast -profile:v baseline -tune film -f mpegts
srt://192.168.1.118:5090?pbkeylen=16&passphrase=1234567890123456&pkt_size=1316

The error returned is:

ubuntu at 5df3bfb7d42b5:~$ ./srt1.sh
ubuntu at 5df3bfb7d42b5:~$ ffmpeg version N-99339-ge71d73b Copyright (c)
2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --enable-protocol=libsrt --enable-libsrt
--prefix=/home/ubuntu/ffmpeg_build --pkg-config-flags=--static
--extra-cflags=-I/home/ubuntu/ffmpeg_build/include
--extra-ldflags=-L/home/ubuntu/ffmpeg_build/lib --extra-libs='-lpthread -lm'
--bindir=/home/ubuntu/bin --enable-gpl --enable-gnutls --enable-libaom
--enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopus --enable-libsvtav1 --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libx265 --enable-nonfree
libavutil 56. 59.100 / 56. 59.100
libavcodec 58.106.100 / 58.106.100
libavformat 58. 58.100 / 58. 58.100
libavdevice 58. 11.102 / 58. 11.102
libavfilter 7. 87.100 / 7. 87.100
libswscale 5. 8.100 / 5. 8.100
libswresample 3. 8.100 / 3. 8.100
libpostproc 55. 8.100 / 55. 8.100
[mpegts @ 0x55f6073717c0] parser not found for codec klv, packets or times
may be invalid.
[mpegts @ 0x55f6073717c0] parser not found for codec none, packets or times
may be invalid.
[mpegts @ 0x55f6073717c0] parser not found for codec klv, packets or times
may be invalid.
[mpegts @ 0x55f6073717c0] probed stream 2 failed
[mpegts @ 0x55f6073717c0] parser not found for codec none, packets or times
may be invalid.
[h264 @ 0x55f607376ac0] non-existing PPS 0 referenced
Last message repeated 1 times
[h264 @ 0x55f607376ac0] decode_slice_header error
[h264 @ 0x55f607376ac0] no frame!
[h264 @ 0x55f607376ac0] Reinit context to 640x480, pix_fmt: yuv420p
[mpegts @ 0x55f6073717c0] max_analyze_duration 7000000 reached at 7024322
microseconds st:1
[mpegts @ 0x55f6073717c0] PES packet size mismatch
[mpegts @ 0x55f6073717c0] Packet corrupt (stream = 0, dts = 157047322).
[mpegts @ 0x55f6073717c0] Could not find codec parameters for stream 2
(Unknown: none (SLAp / 0x70414C53)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
Input #0, mpegts, from 'IndagoLE.ts':
Duration: 00:14:52.26, start: 852.746311, bitrate: 2366 kb/s
Program 1
Stream #0:0[0x11]: Video: h264 (Baseline), 1 reference frame ([27][0][0][0]
/ 0x001B), yuv420p(tv, progressive, left), 640x480 [SAR 1:1 DAR 4:3], 30
fps, 30 tbr, 90k tbn, 60 tbc
Stream #0:1[0x21]: Data: klv (KLVA / 0x41564C4B)
Stream #0:2[0x22]: Unknown: none (SLAp / 0x70414C53)
10:26:56.146728/SRT:RcvQ:w1!W:SRT.cn: processAsyncConnectRequest: REJECT
reported from HS processing, not processing further.
10:26:56.146844/SRT:RcvQ:w1*E:SRT.cn: RendezvousQueue:
processAsyncConnectRequest FAILED. Setting TTL as EXPIRED.
[srt @ 0x55f6073be680] Connection to srt://192.168.1.118:5090?pbkeylen=16
failed: Input/output error
srt://192.168.1.118:5090?pbkeylen=16: Input/output error
[AVIOContext @ 0x55f60737a640] Statistics: 3002512 bytes read, 3 seeks





--
Sent from: http://www.ffmpeg-archive.org/


More information about the ffmpeg-user mailing list