Re: [FFmpeg-user] Can't get TLS to work

2015-08-03 Thread 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://:5000

On Fri, Jul 31, 2015 at 9:24 PM, Rony Pony  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
>
>   libavformat56. 25.101 / 56. 25.101
>
>   libavdevice56.  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
>
>   libpostproc53.  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  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
>> ffmpeg-user@ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffmpeg and multiple outputs

2015-08-03 Thread Christian Ebert
* Ricardo Kleemann on Monday, August 03, 2015 at 10:57:01 -0700
> Thanks everyone for the follow-ups. Does anyone know if SDL also works on
> OSX,

yes

> or what would be the equivalent?

For this specific purpose (ffmpeg output device) there is no
equivalent as far as I know. But I haven't looked hard.

-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Extracting video levels on the command line

2015-08-03 Thread Paul B Mahol
Dana 3. 8. 2015. 22:28 osoba "Moritz Barsnick"  napisala
je:
>
> On Mon, Aug 03, 2015 at 21:55:59 +0200, Robert Krüger wrote:
> > Is there any other way than looking at each frame's histogram (using the
> > histogram filter) and counting pixels?
>
> It should probably be easy to write such a filter.
>
> Have you looked at signalstats? It does seem to have the capability to
> identify various statistics on the Y, U, V planes, but reports them
> only in metadata, not in console output (IIUC).
>

ffprobe can output any metadata

> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Extracting video levels on the command line

2015-08-03 Thread Moritz Barsnick
On Mon, Aug 03, 2015 at 21:55:59 +0200, Robert Krüger wrote:
> Is there any other way than looking at each frame's histogram (using the
> histogram filter) and counting pixels?

It should probably be easy to write such a filter.

Have you looked at signalstats? It does seem to have the capability to
identify various statistics on the Y, U, V planes, but reports them
only in metadata, not in console output (IIUC).

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] Extracting video levels on the command line

2015-08-03 Thread Robert Krüger
Hi,

is there an easy way to extract things like min/max of each video component
for a video using the command line? I first thought, there may be a vstats
filter that more or less does what astats does for audio but that does not
seem to be the case.

Is there any other way than looking at each frame's histogram (using the
histogram filter) and counting pixels?

Robert
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Copy-capturing h264 input while force-rewriting the PTS

2015-08-03 Thread Claudiu Rad



On 7/25/2015 2:54 PM, Carl Eugen Hoyos wrote:

Peter Rabbitson  rabbit.us> writes:


I am hoping that ffmpeg can somehow help me with a
workaround.

You can try the input option "-r", unfortunately
it does not work for many use-cases.

FFmpeg is not very good with h264 timestamps...


who is?
just wondering if there are any recommendations in the tool-chain as i 
was also investigating various 'glitches' (not necessary ffmpeg related)..


--
Claudiu

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffmpeg and multiple outputs

2015-08-03 Thread Ricardo Kleemann
Thanks everyone for the follow-ups. Does anyone know if SDL also works on
OSX, or what would be the equivalent?

On Mon, Aug 3, 2015 at 8:11 AM, MrNice  wrote:

>
>
> On 03/08/15 14:35, Christian Ebert wrote:
> > * MrNice on Monday, August 03, 2015 at 12:06:20 +0100
> >> Obviously I don't have SDL output:
> >>
> >> ./ffmpeg -formats | grep SDL
> >
> > ffmpeg -devices
> >
> > narrows it down better for this purpose imho.
> >
>
> Thanks Moritz and Christian
> I installed SDL-devel and recompiled the last snapshot, working fine now
> :-)
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffmpeg and multiple outputs

2015-08-03 Thread MrNice


On 03/08/15 14:35, Christian Ebert wrote:
> * MrNice on Monday, August 03, 2015 at 12:06:20 +0100
>> Obviously I don't have SDL output:
>>
>> ./ffmpeg -formats | grep SDL
> 
> ffmpeg -devices
> 
> narrows it down better for this purpose imho.
> 

Thanks Moritz and Christian
I installed SDL-devel and recompiled the last snapshot, working fine now :-)
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffmpeg and multiple outputs

2015-08-03 Thread Christian Ebert
* MrNice on Monday, August 03, 2015 at 12:06:20 +0100
> Obviously I don't have SDL output:
> 
> ./ffmpeg -formats | grep SDL

ffmpeg -devices

narrows it down better for this purpose imho.

-- 
\black\trash movie   _SAME  TIME  SAME  PLACE_
   New York, in the summer of 2001

--->> http://www.blacktrash.org/underdogma/stsp.php
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffmpeg and multiple outputs

2015-08-03 Thread Moritz Barsnick
On Mon, Aug 03, 2015 at 12:06:20 +0100, MrNice wrote:
> > [NULL @ 0x3142b80] Requested output format 'sdl' is not a suitable output 
> > format
> > SDL output: Invalid argument

This means you don't have the "sdl" output device.

> > SDL is installed. Do I need to compile with a SDL option? or there is
> > another output format?
> What is the compile option?

No special option. You need to have the development libraries for SDL
installed.
On RedHat-type Linux distributions: SDL-devel (in addition to SDL).
On Debian-type distributions such as Ubuntu: libsdl1.2-dev (in addition to 
libsdl1.2).

A nice check: If you had SDL installed correctly, ffplay would have
been built as well. (SDL is the only extra dependency ffplay has.)

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffmpeg and multiple outputs

2015-08-03 Thread MrNice
On 03/08/15 11:49, MrNice wrote:
> 
> 
> On 03/08/15 09:23, Christian Ebert wrote:
>> * Moritz Barsnick on Monday, August 03, 2015 at 09:48:20 +0200
>>> On Sun, Aug 02, 2015 at 17:51:39 -0700, Ricardo Kleemann wrote:
 Good point, how would I display ffmpeg on OS X? I’m not quite sure
 what the output device would be?
>>>
>>> The output device "sdl" is the first that comes to mind.
>>>
>>> $ ffmpeg -i $infile -f sdl "SDL output"
>>> and you can add another output, i.e. to file, after those arguments.
>>>
>>> Moritz
>>>
>>> P.S.: You may have to add "-pix_fmt yuv420p" to get it to work,
>>>  depending on the input format. I believe my sdl didn't like
>>>  another format, and ffmpeg didn't convert automatically.
>>
>> Almost, it needs yuyv422:
>>
>> $ ffmpeg -i $infile -pix_fmt yuyv422 -f sdl "SDL Output"
>>
> 
> This a feature I need as well!
> I tried on my Fedora 22 PC but I get the error:
> 
> ./ffmpeg -debug 1 -f pulse -ar 44100 -ac 2 -channel_layout stereo
> -thread_queue_size 512 -i alsa_input.pci-_00_14.2.analog-stereo -f
> v4l2 -ts mono2abs -channel 1 -video_size 720x576 -pix_fmt yuyv422
> -thread_queue_size 512 -i /dev/video0 -f sdl "SDL output" -c:v libx264
> -preset slower -qp 0 -pix_fmt yuv422p -c:a pcm_s16le
> /Store3/Test/t_`date +%Y%m%d_%H%M`.mkv
> 
> Successfully opened the file.
> Parsing a group of options: output file SDL output.
> Applying option f (force format) with argument sdl.
> Successfully parsed a group of options.
> Opening an output file: SDL output.
> [NULL @ 0x3142b80] Requested output format 'sdl' is not a suitable
> output format
> SDL output: Invalid argument
> 
> SDL is installed. Do I need to compile with a SDL option? or there is
> another output format?
> ___


Obviously I don't have SDL output:

./ffmpeg -formats | grep SDL
ffmpeg version N-73832-g736a386 Copyright (c) 2000-2015 the FFmpeg
developers
  built with gcc 5.1.1 (GCC) 20150618 (Red Hat 5.1.1-4)
  configuration: --enable-libpulse --enable-gpl --enable-libx264
  libavutil  54. 28.100 / 54. 28.100
  libavcodec 56. 49.101 / 56. 49.101
  libavformat56. 40.101 / 56. 40.101
  libavdevice56.  4.100 / 56.  4.100
  libavfilter 5. 25.100 /  5. 25.100
  libswscale  3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc53.  3.100 / 53.  3.100
 DE smjpeg  Loki SDL MJPEG

What is the compile option?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffmpeg and multiple outputs

2015-08-03 Thread MrNice


On 03/08/15 09:23, Christian Ebert wrote:
> * Moritz Barsnick on Monday, August 03, 2015 at 09:48:20 +0200
>> On Sun, Aug 02, 2015 at 17:51:39 -0700, Ricardo Kleemann wrote:
>>> Good point, how would I display ffmpeg on OS X? I’m not quite sure
>>> what the output device would be?
>>
>> The output device "sdl" is the first that comes to mind.
>>
>> $ ffmpeg -i $infile -f sdl "SDL output"
>> and you can add another output, i.e. to file, after those arguments.
>>
>> Moritz
>>
>> P.S.: You may have to add "-pix_fmt yuv420p" to get it to work,
>>  depending on the input format. I believe my sdl didn't like
>>  another format, and ffmpeg didn't convert automatically.
> 
> Almost, it needs yuyv422:
> 
> $ ffmpeg -i $infile -pix_fmt yuyv422 -f sdl "SDL Output"
> 

This a feature I need as well!
I tried on my Fedora 22 PC but I get the error:

./ffmpeg -debug 1 -f pulse -ar 44100 -ac 2 -channel_layout stereo
-thread_queue_size 512 -i alsa_input.pci-_00_14.2.analog-stereo -f
v4l2 -ts mono2abs -channel 1 -video_size 720x576 -pix_fmt yuyv422
-thread_queue_size 512 -i /dev/video0 -f sdl "SDL output" -c:v libx264
-preset slower -qp 0 -pix_fmt yuv422p -c:a pcm_s16le
/Store3/Test/t_`date +%Y%m%d_%H%M`.mkv

Successfully opened the file.
Parsing a group of options: output file SDL output.
Applying option f (force format) with argument sdl.
Successfully parsed a group of options.
Opening an output file: SDL output.
[NULL @ 0x3142b80] Requested output format 'sdl' is not a suitable
output format
SDL output: Invalid argument

SDL is installed. Do I need to compile with a SDL option? or there is
another output format?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffmpeg and multiple outputs

2015-08-03 Thread Christian Ebert
* Moritz Barsnick on Monday, August 03, 2015 at 09:48:20 +0200
> On Sun, Aug 02, 2015 at 17:51:39 -0700, Ricardo Kleemann wrote:
>> Good point, how would I display ffmpeg on OS X? I’m not quite sure
>> what the output device would be?
> 
> The output device "sdl" is the first that comes to mind.
> 
> $ ffmpeg -i $infile -f sdl "SDL output"
> and you can add another output, i.e. to file, after those arguments.
> 
> Moritz
> 
> P.S.: You may have to add "-pix_fmt yuv420p" to get it to work,
>  depending on the input format. I believe my sdl didn't like
>  another format, and ffmpeg didn't convert automatically.

Almost, it needs yuyv422:

$ ffmpeg -i $infile -pix_fmt yuyv422 -f sdl "SDL Output"

-- 
  Was heißt hier Dogma, ich bin Underdogma!
[ What the hell do you mean dogma, I am underdogma. ]
free movies   --->>> http://www.blacktrash.org/underdogma
http://itunes.apple.com/podcast/underdogma-movies/id363423596
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ffmpeg and multiple outputs

2015-08-03 Thread Moritz Barsnick
On Sun, Aug 02, 2015 at 17:51:39 -0700, Ricardo Kleemann wrote:
> Good point, how would I display ffmpeg on OS X? I’m not quite sure
> what the output device would be?

The output device "sdl" is the first that comes to mind.

$ ffmpeg -i $infile -f sdl "SDL output"
and you can add another output, i.e. to file, after those arguments.

Moritz

P.S.: You may have to add "-pix_fmt yuv420p" to get it to work,
  depending on the input format. I believe my sdl didn't like
  another format, and ffmpeg didn't convert automatically.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user