Can't get TLS to work

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't get TLS to work

Rony Pony
Hello,

I want to stream from a server an encrypted video to be received and
displayed in an app.

I found documentation that seems to indicate ffmpeg supports TLS:
https://www.ffmpeg.org/ffmpeg-protocols.html#tls

First when running a local server and client via tcp as follows, all works
fine:

Terminal 1:
ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts tcp://
0.0.0.0:5000?listen

Terminal 2:
ffplay tcp:/0.0.0.0:5000

When running a similar command trying to use tls as indicated in the
documentation, the server side doesn't seem quite right, though no error,
and the client just fails with a "Protocol not found" error.

Here are the commands:

Terminal 1:
ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts tls://
0.0.0.0:5000?listen&cert=server.crt&key=server.key

Terminal 2:
ffplay tls:/0.0.0.0:5000

What am I doing wrong? is tls really supported? Or is the doc a little bit
ahead of itself?

Thanks!
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TLS to work

Moritz Barsnick
On Thu, Jul 30, 2015 at 14:46:30 -0700, Rony Pony wrote:
> What am I doing wrong?

You're not showing us the complete, uncut console output from your
commands.

If I try to reproduce the, the server seems fine, and the client shows
h264 errors, but certainly not an unknown protocol.

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TLS to work

Rony Pony
Thanks for having a look and happy to find out there should be a way to
make this work!

Here are the console outputs.

ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts tcp://
0.0.0.0:5000?listen

ffmpeg version 2.6.3 Copyright (c) 2000-2015 the FFmpeg developers

  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)

  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.3 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
--enable-ffplay --enable-vda

  libavutil      54. 20.100 / 54. 20.100

  libavcodec     56. 26.100 / 56. 26.100

  libavformat    56. 25.101 / 56. 25.101

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 11.102 /  5. 11.102

  libavresample   2.  1.  0 /  2.  1.  0

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  1.100 /  1.  1.100

  libpostproc    53.  3.100 / 53.  3.100

Input #0, matroska,webm, from 'bikerace.mkv':

  Metadata:

    COMPATIBLE_BRANDS: isommp42

    MAJOR_BRAND     : mp42

    MINOR_VERSION   : 0

    ENCODER         : Lavf56.25.101

  Duration: 00:03:02.16, start: 0.000000, bitrate: 859 kb/s

    Stream #0:0(und): Video: h264 (High), yuv420p, 640x360 [SAR 1:1 DAR
16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)

    Metadata:

      LANGUAGE        : und

      HANDLER_NAME    : VideoHandler

      ENCODER         : Lavc56.26.100 libx264

    Stream #0:1(eng): Audio: ac3, 44100 Hz, stereo, fltp, 192 kb/s (default)

    Metadata:

      CREATION_TIME   : 2015-07-16 06:44:12

      LANGUAGE        : eng

      HANDLER_NAME    : IsoMedia File Produced by Google, 5-11-2011

      ENCODER         : Lavc56.26.100 ac3



ffplay tls:/0.0.0.0:5000

ffplay version 2.6.3 Copyright (c) 2003-2015 the FFmpeg developers

  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)

  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.3 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
--enable-ffplay --enable-vda

  libavutil      54. 20.100 / 54. 20.100

  libavcodec     56. 26.100 / 56. 26.100

  libavformat    56. 25.101 / 56. 25.101

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 11.102 /  5. 11.102

  libavresample   2.  1.  0 /  2.  1.  0

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  1.100 /  1.  1.100

  libpostproc    53.  3.100 / 53.  3.100

tls:/0.0.0.0:5000: Protocol not found

On Fri, Jul 31, 2015 at 12:24 AM, Moritz Barsnick <[hidden email]> wrote:

> On Thu, Jul 30, 2015 at 14:46:30 -0700, Rony Pony wrote:
> > What am I doing wrong?
>
> You're not showing us the complete, uncut console output from your
> commands.
>
> If I try to reproduce the, the server seems fine, and the client shows
> h264 errors, but certainly not an unknown protocol.
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TLS to work

Rony Pony
ffplay command used was ffplay tls://0.0.0.0:5000, not ffplay tls:/
0.0.0.0:5000

On Fri, Jul 31, 2015 at 9:40 AM, Rony Pony <[hidden email]> wrote:

> Thanks for having a look and happy to find out there should be a way to
> make this work!
>
> Here are the console outputs.
>
> ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts tcp://
> 0.0.0.0:5000?listen
>
> ffmpeg version 2.6.3 Copyright (c) 2000-2015 the FFmpeg developers
>
>   built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
>
>   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.3 --enable-shared
> --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
> --enable-avresample --cc=clang --host-cflags= --host-ldflags=
> --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
> --enable-ffplay --enable-vda
>
>   libavutil      54. 20.100 / 54. 20.100
>
>   libavcodec     56. 26.100 / 56. 26.100
>
>   libavformat    56. 25.101 / 56. 25.101
>
>   libavdevice    56.  4.100 / 56.  4.100
>
>   libavfilter     5. 11.102 /  5. 11.102
>
>   libavresample   2.  1.  0 /  2.  1.  0
>
>   libswscale      3.  1.101 /  3.  1.101
>
>   libswresample   1.  1.100 /  1.  1.100
>
>   libpostproc    53.  3.100 / 53.  3.100
>
> Input #0, matroska,webm, from 'bikerace.mkv':
>
>   Metadata:
>
>     COMPATIBLE_BRANDS: isommp42
>
>     MAJOR_BRAND     : mp42
>
>     MINOR_VERSION   : 0
>
>     ENCODER         : Lavf56.25.101
>
>   Duration: 00:03:02.16, start: 0.000000, bitrate: 859 kb/s
>
>     Stream #0:0(und): Video: h264 (High), yuv420p, 640x360 [SAR 1:1 DAR
> 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
>
>     Metadata:
>
>       LANGUAGE        : und
>
>       HANDLER_NAME    : VideoHandler
>
>       ENCODER         : Lavc56.26.100 libx264
>
>     Stream #0:1(eng): Audio: ac3, 44100 Hz, stereo, fltp, 192 kb/s
> (default)
>
>     Metadata:
>
>       CREATION_TIME   : 2015-07-16 06:44:12
>
>       LANGUAGE        : eng
>
>       HANDLER_NAME    : IsoMedia File Produced by Google, 5-11-2011
>
>       ENCODER         : Lavc56.26.100 ac3
>
>
>
> ffplay tls:/0.0.0.0:5000
>
> ffplay version 2.6.3 Copyright (c) 2003-2015 the FFmpeg developers
>
>   built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
>
>   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.3 --enable-shared
> --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
> --enable-avresample --cc=clang --host-cflags= --host-ldflags=
> --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
> --enable-ffplay --enable-vda
>
>   libavutil      54. 20.100 / 54. 20.100
>
>   libavcodec     56. 26.100 / 56. 26.100
>
>   libavformat    56. 25.101 / 56. 25.101
>
>   libavdevice    56.  4.100 / 56.  4.100
>
>   libavfilter     5. 11.102 /  5. 11.102
>
>   libavresample   2.  1.  0 /  2.  1.  0
>
>   libswscale      3.  1.101 /  3.  1.101
>
>   libswresample   1.  1.100 /  1.  1.100
>
>   libpostproc    53.  3.100 / 53.  3.100
>
> tls:/0.0.0.0:5000: Protocol not found
>
> On Fri, Jul 31, 2015 at 12:24 AM, Moritz Barsnick <[hidden email]>
> wrote:
>
>> On Thu, Jul 30, 2015 at 14:46:30 -0700, Rony Pony wrote:
>> > What am I doing wrong?
>>
>> You're not showing us the complete, uncut console output from your
>> commands.
>>
>> If I try to reproduce the, the server seems fine, and the client shows
>> h264 errors, but certainly not an unknown protocol.
>>
>> Moritz
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TLS to work

Rony Pony
So sorry am majorly getting things messed up as I gave output of tcp
command not tls...

Let's do this again...

TLS SERVER

ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts tls://
0.0.0.0:5000?listen&cert=server.crt&key=server.key

[8] 594

[9] 595

Christophes-MBP:13 Video encryption CJ$ ffmpeg version 2.6.3 Copyright (c)
2000-2015 the FFmpeg developers

  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)

  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.3 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
--enable-ffplay --enable-vda

  libavutil      54. 20.100 / 54. 20.100

  libavcodec     56. 26.100 / 56. 26.100

  libavformat    56. 25.101 / 56. 25.101

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 11.102 /  5. 11.102

  libavresample   2.  1.  0 /  2.  1.  0

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  1.100 /  1.  1.100

  libpostproc    53.  3.100 / 53.  3.100


TLS CLIENT

ffplay tls:/0.0.0.0:5000

ffplay version 2.6.3 Copyright (c) 2003-2015 the FFmpeg developers

  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)

  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.3 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
--enable-ffplay --enable-vda

  libavutil      54. 20.100 / 54. 20.100

  libavcodec     56. 26.100 / 56. 26.100

  libavformat    56. 25.101 / 56. 25.101

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 11.102 /  5. 11.102

  libavresample   2.  1.  0 /  2.  1.  0

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  1.100 /  1.  1.100

  libpostproc    53.  3.100 / 53.  3.100



On Fri, Jul 31, 2015 at 9:42 AM, Rony Pony <[hidden email]> wrote:

> ffplay command used was ffplay tls://0.0.0.0:5000, not ffplay tls:/
> 0.0.0.0:5000
>
> On Fri, Jul 31, 2015 at 9:40 AM, Rony Pony <[hidden email]> wrote:
>
>> Thanks for having a look and happy to find out there should be a way to
>> make this work!
>>
>> Here are the console outputs.
>>
>> ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts tcp://
>> 0.0.0.0:5000?listen
>>
>> ffmpeg version 2.6.3 Copyright (c) 2000-2015 the FFmpeg developers
>>
>>   built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM
>> 3.5svn)
>>
>>   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.3 --enable-shared
>> --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
>> --enable-avresample --cc=clang --host-cflags= --host-ldflags=
>> --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
>> --enable-ffplay --enable-vda
>>
>>   libavutil      54. 20.100 / 54. 20.100
>>
>>   libavcodec     56. 26.100 / 56. 26.100
>>
>>   libavformat    56. 25.101 / 56. 25.101
>>
>>   libavdevice    56.  4.100 / 56.  4.100
>>
>>   libavfilter     5. 11.102 /  5. 11.102
>>
>>   libavresample   2.  1.  0 /  2.  1.  0
>>
>>   libswscale      3.  1.101 /  3.  1.101
>>
>>   libswresample   1.  1.100 /  1.  1.100
>>
>>   libpostproc    53.  3.100 / 53.  3.100
>>
>> Input #0, matroska,webm, from 'bikerace.mkv':
>>
>>   Metadata:
>>
>>     COMPATIBLE_BRANDS: isommp42
>>
>>     MAJOR_BRAND     : mp42
>>
>>     MINOR_VERSION   : 0
>>
>>     ENCODER         : Lavf56.25.101
>>
>>   Duration: 00:03:02.16, start: 0.000000, bitrate: 859 kb/s
>>
>>     Stream #0:0(und): Video: h264 (High), yuv420p, 640x360 [SAR 1:1 DAR
>> 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
>>
>>     Metadata:
>>
>>       LANGUAGE        : und
>>
>>       HANDLER_NAME    : VideoHandler
>>
>>       ENCODER         : Lavc56.26.100 libx264
>>
>>     Stream #0:1(eng): Audio: ac3, 44100 Hz, stereo, fltp, 192 kb/s
>> (default)
>>
>>     Metadata:
>>
>>       CREATION_TIME   : 2015-07-16 06:44:12
>>
>>       LANGUAGE        : eng
>>
>>       HANDLER_NAME    : IsoMedia File Produced by Google, 5-11-2011
>>
>>       ENCODER         : Lavc56.26.100 ac3
>>
>>
>>
>> ffplay tls:/0.0.0.0:5000
>>
>> ffplay version 2.6.3 Copyright (c) 2003-2015 the FFmpeg developers
>>
>>   built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM
>> 3.5svn)
>>
>>   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.3 --enable-shared
>> --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
>> --enable-avresample --cc=clang --host-cflags= --host-ldflags=
>> --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
>> --enable-ffplay --enable-vda
>>
>>   libavutil      54. 20.100 / 54. 20.100
>>
>>   libavcodec     56. 26.100 / 56. 26.100
>>
>>   libavformat    56. 25.101 / 56. 25.101
>>
>>   libavdevice    56.  4.100 / 56.  4.100
>>
>>   libavfilter     5. 11.102 /  5. 11.102
>>
>>   libavresample   2.  1.  0 /  2.  1.  0
>>
>>   libswscale      3.  1.101 /  3.  1.101
>>
>>   libswresample   1.  1.100 /  1.  1.100
>>
>>   libpostproc    53.  3.100 / 53.  3.100
>>
>> tls:/0.0.0.0:5000: Protocol not found
>>
>> On Fri, Jul 31, 2015 at 12:24 AM, Moritz Barsnick <[hidden email]>
>> wrote:
>>
>>> On Thu, Jul 30, 2015 at 14:46:30 -0700, Rony Pony wrote:
>>> > What am I doing wrong?
>>>
>>> You're not showing us the complete, uncut console output from your
>>> commands.
>>>
>>> If I try to reproduce the, the server seems fine, and the client shows
>>> h264 errors, but certainly not an unknown protocol.
>>>
>>> Moritz
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> [hidden email]
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>
>>
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TLS to work

Moritz Barsnick
On Fri, Jul 31, 2015 at 09:47:08 -0700, Rony Pony wrote:
> ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts tls://0.0.0.0:5000?listen&cert=server.crt&key=server.key
> [8] 594
> [9] 595

You need to protect the '&' from the shell, by quoting or escaping.

$ ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts "tls://0.0.0.0:5000?listen&cert=server.crt&key=server.key"

Your ffmpeg has access to those server.crt and server.key?

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TLS to work

Rony Pony
Yes the server.crt and server.key files are in the directory from where
ffmpeg is called.

Quotes do get things a little further, but they result in the protocol not
found error on the server side (see below).

Any other ideas? Have you found a way to use tls with ffmpeg/ffplay? Please
let me know thanks!

---

ffmpeg -re -i bikeraceshort.h264 -vcodec libx264 -f mpegts "tls://
10.4.4.189:5000?listen&cert=server.crt&key=server.key"

ffmpeg version 2.6.3 Copyright (c) 2000-2015 the FFmpeg developers

  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)

  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.3 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
--enable-ffplay --enable-vda

  libavutil      54. 20.100 / 54. 20.100

  libavcodec     56. 26.100 / 56. 26.100

  libavformat    56. 25.101 / 56. 25.101

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 11.102 /  5. 11.102

  libavresample   2.  1.  0 /  2.  1.  0

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  1.100 /  1.  1.100

  libpostproc    53.  3.100 / 53.  3.100

Input #0, h264, from 'bikeraceshort.h264':

  Duration: N/A, bitrate: N/A

    Stream #0:0: Video: h264 (High), yuv420p, 640x360 [SAR 1:1 DAR 16:9],
25 fps, 25 tbr, 1200k tbn, 50 tbc

tls://10.4.4.189:5000?listen&cert=server.crt&key=server.key: Protocol not
found


On Fri, Jul 31, 2015 at 4:30 PM, Moritz Barsnick <[hidden email]> wrote:

> On Fri, Jul 31, 2015 at 09:47:08 -0700, Rony Pony wrote:
> > ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts tls://
> 0.0.0.0:5000?listen&cert=server.crt&key=server.key
> > [8] 594
> > [9] 595
>
> You need to protect the '&' from the shell, by quoting or escaping.
>
> $ ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts "tls://
> 0.0.0.0:5000?listen&cert=server.crt&key=server.key"
>
> Your ffmpeg has access to those server.crt and server.key?
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TLS to work

Rony Pony
Ok so finally figured things out. Protocol not found indeed was happening
because TLS was not supported in the ffmpeg version I was using (2.6.3).
Once I updated to the latest snapshot, it then worked good (except video
goes slow for a few seconds, and then all starts going well as expected).

Here are the commands to use.

On server:
ffmpeg -re -i video.api -vcodec libx264 -f mpegts "tls://
0.0.0.0:5000?listen&cert=server.crt&key=server.key"

On client:
ffplay tls://<server IP>:5000

On Fri, Jul 31, 2015 at 9:24 PM, Rony Pony <[hidden email]> wrote:

> Yes the server.crt and server.key files are in the directory from where
> ffmpeg is called.
>
> Quotes do get things a little further, but they result in the protocol not
> found error on the server side (see below).
>
> Any other ideas? Have you found a way to use tls with ffmpeg/ffplay?
> Please let me know thanks!
>
> ---
>
> ffmpeg -re -i bikeraceshort.h264 -vcodec libx264 -f mpegts "tls://
> 10.4.4.189:5000?listen&cert=server.crt&key=server.key"
>
> ffmpeg version 2.6.3 Copyright (c) 2000-2015 the FFmpeg developers
>
>   built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
>
>   configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.3 --enable-shared
> --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
> --enable-avresample --cc=clang --host-cflags= --host-ldflags=
> --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
> --enable-ffplay --enable-vda
>
>   libavutil      54. 20.100 / 54. 20.100
>
>   libavcodec     56. 26.100 / 56. 26.100
>
>   libavformat    56. 25.101 / 56. 25.101
>
>   libavdevice    56.  4.100 / 56.  4.100
>
>   libavfilter     5. 11.102 /  5. 11.102
>
>   libavresample   2.  1.  0 /  2.  1.  0
>
>   libswscale      3.  1.101 /  3.  1.101
>
>   libswresample   1.  1.100 /  1.  1.100
>
>   libpostproc    53.  3.100 / 53.  3.100
>
> Input #0, h264, from 'bikeraceshort.h264':
>
>   Duration: N/A, bitrate: N/A
>
>     Stream #0:0: Video: h264 (High), yuv420p, 640x360 [SAR 1:1 DAR 16:9],
> 25 fps, 25 tbr, 1200k tbn, 50 tbc
>
> tls://10.4.4.189:5000?listen&cert=server.crt&key=server.key: Protocol not
> found
>
>
> On Fri, Jul 31, 2015 at 4:30 PM, Moritz Barsnick <[hidden email]> wrote:
>
>> On Fri, Jul 31, 2015 at 09:47:08 -0700, Rony Pony wrote:
>> > ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts tls://
>> 0.0.0.0:5000?listen&cert=server.crt&key=server.key
>> > [8] 594
>> > [9] 595
>>
>> You need to protect the '&' from the shell, by quoting or escaping.
>>
>> $ ffmpeg -re -i bikerace.mkv -vcodec libx264 -f mpegts "tls://
>> 0.0.0.0:5000?listen&cert=server.crt&key=server.key"
>>
>> Your ffmpeg has access to those server.crt and server.key?
>>
>> Moritz
>> _______________________________________________
>> ffmpeg-user mailing list
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TLS to work

mohamed
hello, I using the same method and I've generated the .crt and .key file using openssl but it's not working, could you tell me how generated these files please
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TLS to work

Reindl Harald


Am 19.07.2016 um 14:40 schrieb mohamed:
> hello, I using the same method and I've generated the .crt and .key file
> using openssl but it's not working, could you tell me how generated these
> files please

nobody has a clue what you are talking about
what about provide input and uncutted output of what you are doing


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

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

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TLS to work

Moritz Barsnick
In reply to this post by mohamed
On Tue, Jul 19, 2016 at 05:40:59 -0700, mohamed wrote:
> hello, I using the same method and I've generated the .crt and .key file
> using openssl but it's not working,

"It's not working" gets the reply "it works for me".

What did you try? What were you expecting to happen? What happened? For
the ffmpeg part: Please show us your full command line, and the
complete, uncut console output.

> could you tell me how generated these files please

Let me google that for you:
https://www.google.com/search?q=openssl+generate+server.crt+server.key&ie=utf-8&oe=utf-8

This instruction works fine for me, out of the box (copy-pasting all
commands described):
https://devcenter.heroku.com/articles/ssl-certificate-self

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://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: Can't get TLS to work

mohamed
I am sorry about that, but I've already generated these files using openssl
  here is my ffmpeg cmd :
$ ffmpeg -r 24 -s 800x600 -f video4linux2 -i /dev/video0 -c:v libx264 -f
flv "tls://192.168.1.11:1234?listen&cert=server.crt&key=server.key" -tune
zerolatency
It generates this error:
"tls://192.168.1.11:1234?listen&cert=server.crt&key=server.key: Cannot
assign requested address"
It works only with localhost.

another question please, are there any way to use tls/ssl with ffserver ?
(google wasn't helpful)

regards

On 19 July 2016 at 14:51, Moritz Barsnick <[hidden email]> wrote:

> On Tue, Jul 19, 2016 at 05:40:59 -0700, mohamed wrote:
> > hello, I using the same method and I've generated the .crt and .key file
> > using openssl but it's not working,
>
> "It's not working" gets the reply "it works for me".
>
> What did you try? What were you expecting to happen? What happened? For
> the ffmpeg part: Please show us your full command line, and the
> complete, uncut console output.
>
> > could you tell me how generated these files please
>
> Let me google that for you:
>
> https://www.google.com/search?q=openssl+generate+server.crt+server.key&ie=utf-8&oe=utf-8
>
> This instruction works fine for me, out of the box (copy-pasting all
> commands described):
> https://devcenter.heroku.com/articles/ssl-certificate-self
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
>



--
Mohamed HNEZLI
Computing Sciences Engineering Student
<ENSI>-Tunisia
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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