[FFmpeg-user] Can't get TLS to work
Rony Pony
rony1623 at gmail.com
Fri Jul 31 18:47:08 CEST 2015
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 <rony1623 at gmail.com> 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 <rony1623 at gmail.com> 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 <barsnick at gmx.net>
>> 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
>>> ffmpeg-user at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>
>>
>
More information about the ffmpeg-user
mailing list