Encrypted SRT Does Not Work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Encrypted SRT Does Not Work

Tim McClure
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@5df3bfb7d42b5:~$ ./srt1.sh
ubuntu@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/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Encrypted SRT Does Not Work

Karim SLIMANI-2
Le jeu. 1 oct. 2020 à 16:10, Tim McClure <[hidden email]> a écrit :

> 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:
> 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
>
>
Hello Tim,

In the error message
*" [srt @ 0x55f6073be680] Connection to
srt://192.168.1.118:5090?pbkeylen=16
<http://192.168.1.118:5090?pbkeylen=16> failed: Input/output error"* the
server url seems troncated.

I may be wrong, but try to put double quote on server url in your script
file.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Encrypted SRT Does Not Work

andrei ka
>
> > I may be wrong, but try to put double quote on server url in your script
> file.
>

+  i may be wrong aslo, but it may be easier to manage line drops (which
may always happen) if
you encode w/ ffmpeg to multicast and next read that multicast and srt send
it with srt-live-transmit (and do the opposite on receiver side),
these srt scripts do automatic reconnects, afaik ffmpeg just exits...

&rei
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".