[FFmpeg-user] FFmpeg TLS : Protocol not found
Yu Ang Tan
yuang86 at gmail.com
Fri Sep 2 16:13:19 EEST 2016
On Fri, Sep 2, 2016 at 6:24 PM, Moritz Barsnick <barsnick at gmx.net> wrote:
> On Fri, Sep 02, 2016 at 01:01:58 +0000, Yu Ang Tan wrote:
> > $ ffmpeg -i out.webm -f format tls://
> > 127.0.0.1:8554?listen&cert=test.crt&key=test.key
> > [1] 46061
> > [2] 46062
>
> This is a sign that your shell is launching two commands in the
> background. You need to protect the '&'s from your shell by quoting
> them, e.g.
>
> $ ffmpeg -i out.webm -f format "tls://127.0.0.1:8554?listen&
> cert=test.crt&key=test.key"
>
> > tls://127.0.0.1:8554: Protocol not found
>
> That means exactly that (as you already noticed in your follow-up):
> Your ffplay is compiled without tls support. Check
> $ ffplay -protocols
>
> Cheers,
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
Thanks Reindl and Moritz!
You were right. I thought tls was included by default. Recompiled with
libssl-dev and now I get this:
Console 1:
$ ffmpeg -re -f lavfi -i aevalsrc="sin(400*2*PI*t)" -ar 8000 -f rtp tls://
127.0.0.1:8554?listen"&"cert=test.crt"&"key=test.key
ffmpeg version N-81392-ga453bbb Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
configuration: --prefix=/home/ytan/Dev/build-x64/
--pkg-config-flags=--static --enable-shared --enable-libvpx
--enable-libvorbis --enable-openssl
libavutil 55. 29.100 / 55. 29.100
libavcodec 57. 54.100 / 57. 54.100
libavformat 57. 47.101 / 57. 47.101
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 52.100 / 6. 52.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
Input #0, lavfi, from 'aevalsrc=sin(400*2*PI*t)':
Duration: N/A, start: 0.000000, bitrate: 2822 kb/s
Stream #0:0: Audio: pcm_f64le, 44100 Hz, mono, dbl, 2822 kb/s
[rtp @ 0x1316560] Using AVStream.codec to pass codec parameters to muxers
is deprecated, use AVStream.codecpar instead.
[rtp @ 0x1316560] Max packet size 0 too low
Output #0, rtp, to 'tls://127.0.0.1:8554?listen&cert=test.crt&key=test.key':
Metadata:
encoder : Lavf57.47.101
Stream #0:0: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
Metadata:
encoder : Lavc57.54.100 pcm_mulaw
Stream mapping:
Stream #0:0 -> #0:0 (pcm_f64le (native) -> pcm_mulaw (native))
Could not write header for output file #0 (incorrect codec parameters ?):
Input/output error
$
Console 2:
ffplay -f rtp tls://127.0.0.1:8554
ffplay version N-81392-ga453bbb Copyright (c) 2003-2016 the FFmpeg
developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
configuration: --prefix=/home/ytan/Dev/build-x64/
--pkg-config-flags=--static --enable-shared --enable-libvpx
--enable-libvorbis --enable-openssl
libavutil 55. 29.100 / 55. 29.100
libavcodec 57. 54.100 / 57. 54.100
libavformat 57. 47.101 / 57. 47.101
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 52.100 / 6. 52.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
[rtp @ 0x7f6494009280] Received too short packetB sq= 0B f=0/0
Last message repeated 1338 times
[rtp @ 0x7f6494009280] Received too short packetB sq= 0B f=0/0
Last message repeated 3074 times
[rtp @ 0x7f6494009280] Received too short packetB sq= 0B f=0/0
Last message repeated 1206 times
[rtp @ 0x7f6494009280] Received too short packetB sq= 0B f=0/0
Last message repeated 457 times
[rtp @ 0x7f6494009280] Received too short packetB sq= 0B f=0/0
Last message repeated 457 times
[rtp @ 0x7f6494009280] Received too short packetB sq= 0B f=0/0
Last message repeated 457 times
(keeps repeating the same messages...)
Is this is due to the lack of SDP file? If so how can I provide it?
More information about the ffmpeg-user
mailing list