Re: [FFmpeg-user] test

2017-04-28 Thread Lou
On Fri, Apr 28, 2017, at 10:13 AM, Lou L wrote:
> test

Sorry for the noise–I didn't expect that to actually appear on the ML. I
was attempting to test the "Your message to ffmpeg-user awaits moderator
approval" link that someone claimed wasn't working.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] test

2017-04-28 Thread Lou L
test
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Dimensions of the input video as a variable

2017-04-28 Thread Lou
On Fri, Apr 28, 2017, at 05:27 AM, Wolfgang Hugemann wrote:
> As you see, I supplied the dimensions of the input video (640x480) in 
> the command line. I would like to turn this into a more general script, 
> determining the dimensions of the input video on the fly, but how do I 
> do that?

ffprobe can be used to get width and height for the showwaves size
option.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Problem with ffmpeg command when recording live streams

2017-04-28 Thread Moritz Barsnick
On Fri, Apr 28, 2017 at 15:28:49 +, Yanet Giuse wrote:
> ffmpeg version N-81709-g492259c Copyright (c) 2000-2016 the FFmpeg developers

This is six months old. Please always try laster git master, or at
least something very recent.

>   configuration: --enable-gpl --enable-libx264 --enable-shared 
> --enable-libx265 --enable-nvenc
[...]
> Unknown encoder 'mp3'

Your ffmpeg isn't compiled with libmp3lame or any other mp3 encoder,
please replace "mp3" with "aac" for this test.

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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Dimensions of the input video as a variable

2017-04-28 Thread Moritz Barsnick
On Fri, Apr 28, 2017 at 15:27:27 +0200, Wolfgang Hugemann wrote:
> As you see, I supplied the dimensions of the input video (640x480) in 
> the command line. I would like to turn this into a more general script, 
> determining the dimensions of the input video on the fly, but how do I 
> do that?

showwaves is an audio filter, it has no access to the dimensions of the
video, unfortunately.

Since its output is video though, you could in theory make it very
large and then scale it down, but there's also no way for one video's
filters (such as "scale") to know another video's dimensions. :(

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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Extract xvid stream in mov container

2017-04-28 Thread jacques perconte
Yes, the video file is damaged, this is my weird way of working video.

The file does play on mac with quicktime and perian installed
https://www.perian.org/

ffplay send looping message

[mpeg4 @ 0x7f9421067200] [IMGUTILS @ 0x77d31bc8] Picture size 0x0 is invalid
[mpeg4 @ 0x7f9421067200] video_get_buffer: image parameters invalid
[mpeg4 @ 0x7f9421067200] get_buffer() failed
[mpeg4 @ 0x7f9421067200] thread_get_buffer() failed
[mpeg4 @ 0x7f9421067200] get_buffer() failed (-22 0x0)
[mpeg4 @ 0x7f942281be00] Context scratch buffers could not be
allocated due to unknown size.

Can i set those missing parameters in my stream copy command  ?

thanks :)


On Fri, Apr 28, 2017 at 11:43 AM, Cley Faye  wrote:
> 2017-04-28 8:18 GMT+02:00 jacques perconte :
>
>> [mpeg4 @ 0x7ffc82817800] header damaged
>> [mpeg4 @ 0x7ffc82817800] time_increment_bits 4 is invalid in relation
>> to the current bitstream, this is likely caused by a missing VOL
>> header
>> [mpeg4 @ 0x7ffc82817800] time_increment_bits set to 5 bits, based on
>> bitstream analysis
>> [mpeg4 @ 0x7ffc82817800] looks like this file was encoded with
>> (divx4/(old)xvid/opendivx) -> forcing low_delay flag
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ffc82800400] decoding for stream 0 failed
>> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ffc82800400] Could not find codec
>> parameters for stream 0 (Video: mpeg4 (xvid / 0x64697678),
>> yuv420p(bt709), 10032 kb/s): unspecified size
>>
>> Consider increasing the value for the 'analyzeduration' and 'probesize'
>> options
>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'HYPERS.MOV':
>>
>>   Metadata:
>> major_brand : qt
>> minor_version   : 537199360
>> compatible_brands: qt
>> creation_time   : 2015-03-09T00:01:04.00Z
>> com.apple.quicktime.player.movie.visual.brightness: 0.00
>> com.apple.quicktime.player.movie.visual.color: 1.00
>> com.apple.quicktime.player.movie.visual.tint: 0.00
>> com.apple.quicktime.player.movie.visual.contrast: 1.00
>> com.apple.quicktime.player.version: 7.6.6 (7.6.6)
>> com.apple.quicktime.version: 7.7.3 (2826.24) 0x7738000 (Mac OS X,
>> 10.9.5, 13F34)
>>
>>   Duration: 08:53:49.52, start: 0.00, bitrate: 10033 kb/s
>> Stream #0:0(eng): Video: mpeg4 (xvid / 0x64697678),
>> yuv420p(bt709), 10032 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
>>
>
> From that, I'd say the input file is damaged and ffmpeg can't get the
> video parameters, especially the actual layout and resolution of the video
> stream.
>
> Does the file play fine with ffplay or other players? Usually ffmpeg does a
> good job of recovering some damages, but it vary from codec to codec.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] sendcmd and drawtext - using more than one in the same filtergraph?

2017-04-28 Thread Mark Burton

> On 28 Apr 2017, at 16:28, Paul B Mahol  wrote:
> 
> You need to use Parsed_drawtext_X instead of drawtext, replace X with
> number of filter in filtergraph.
> 
> So if its 3rd filter in filtergraph its number will be 2. Because
> lavfi counts from 0.

Ah perfect. Many thanks Paul, working perfectly now!!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Problem with ffmpeg command when recording live streams

2017-04-28 Thread Yanet Giuse
Thank you for your response,
Ive tried a lot of different parameters.

for the command line:
ffmpeg -i rtsp://admin:admin@192.168.32.228:554/live -c:v copy -movflags 
+faststart -f mp4 /home/equipoprueba/Desktop/outfile.mp4

The result is
ffmpeg version N-81709-g492259c Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
  configuration: --enable-gpl --enable-libx264 --enable-shared --enable-libx265 
--enable-nvenc
  libavutil  55. 30.100 / 55. 30.100
  libavcodec 57. 57.101 / 57. 57.101
  libavformat    57. 50.100 / 57. 50.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter 6. 62.100 /  6. 62.100
  libswscale  4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
[rtsp @ 0x1b90120] UDP timeout, retrying with TCP
[rtsp @ 0x1b90120] method PAUSE failed: 455 Method Not Valid in This State
[rtsp @ 0x1b90120] Could not find codec parameters for stream 0 (Video: h264, 
none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://admin:admin@192.168.32.228:554/live':
  Metadata:
    title   : Media Server
  Duration: N/A, bitrate: 128 kb/s
    Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: pcm_alaw, 16000 Hz, 1 channels, s16, 128 kb/s
File '/home/equipoprueba/Desktop/outfile.mp4' already exists. Overwrite ? [y/N] 
y
[mp4 @ 0x1be41e0] Using AVStream.codec to pass codec parameters to muxers is 
deprecated, use AVStream.codecpar instead.
Output #0, mp4, to '/home/equipoprueba/Desktop/outfile.mp4':
  Metadata:
    title   : Media Server
    encoder : Lavf57.50.100
    Stream #0:0: Audio: aac (LC) ([64][0][0][0] / 0x0040), 16000 Hz, mono, 
fltp, 69 kb/s
    Metadata:
  encoder : Lavc57.57.101 aac
Stream mapping:
  Stream #0:1 -> #0:0 (pcm_alaw (native) -> aac (native))
Press [q] to stop, [?] for help
[rtsp @ 0x1b90120] UDP timeout, retrying with TCP
[rtsp @ 0x1b90120] method PAUSE failed: 455 Method Not Valid in This State
rtsp://admin:admin@192.168.32.228:554/live: Operation not permitted
[mp4 @ 0x1be41e0] Starting second pass: moving the moov atom to the beginning 
of the file
size=   0kB time=00:00:00.00 bitrate=N/A speed=   0x    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
overhead: unknown
[aac @ 0x1be5ae0] Qavg: -nan


for the command line :
ffmpeg -i rtsp://admin:admin@192.168.32.228:554/live -c:v copy -c:a mp3 -b:a 
128k -movflags +faststart -f mp4 /home/equipoprueba/Desktop/outfile.mp4

I got:
ffmpeg version N-81709-g492259c Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
  configuration: --enable-gpl --enable-libx264 --enable-shared --enable-libx265 
--enable-nvenc
  libavutil  55. 30.100 / 55. 30.100
  libavcodec 57. 57.101 / 57. 57.101
  libavformat    57. 50.100 / 57. 50.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter 6. 62.100 /  6. 62.100
  libswscale  4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
[rtsp @ 0x1a981e0] UDP timeout, retrying with TCP
[rtsp @ 0x1a981e0] method PAUSE failed: 455 Method Not Valid in This State
[rtsp @ 0x1a981e0] Could not find codec parameters for stream 0 (Video: h264, 
none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://admin:admin@192.168.32.228:554/live':
  Metadata:
    title   : Media Server
  Duration: N/A, bitrate: 128 kb/s
    Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: pcm_alaw, 16000 Hz, 1 channels, s16, 128 kb/s
Unknown encoder 'mp3'


 

El Viernes, 28 de abril, 2017 11:56:06, DopeLabs  
escribió:
 

 Have you tried a stream copy or only encoding the audio to mp3/aac since the 
video looks like its already in h264?

Stream copy video and re-encode audio

ffmpeg -I rtsp:/ip -c:v copy -c:a mp3 -b:a 128k -movflags +faststart -f mp4 
outfile.mp4



> On Apr 28, 2017, at 6:12 24AM, Yanet Giuse 
>  wrote:
> 
> Hello!I am trying to record a live rtsp stream and save videos locally using 
> ffmpeg, but i cant.This stream is a camera, and Ive tested the video stream 
> in VLC. It works.
> First, the ffplay command (ffplay rtsp://ip ) returns
> [rtsp @ 0x7fa574009280] UDP timeout, retrying with TCP  0B f=0/0  
> [rtsp @ 0x7fa574009280] method PAUSE failed: 455 Method Not Valid in This 
> State
> [rtsp @ 0x7fa574009280] Could not find codec parameters for stream 0 (Video: 
> h264, none): unspecified size
> Consider increasing the value for the 'analyzeduration' and 'probesize' 
> options
> Input #0, rtsp, from 'rtsp://ip':
>  

Re: [FFmpeg-user] sendcmd and drawtext - using more than one in the same filtergraph?

2017-04-28 Thread Paul B Mahol
On 4/28/17, Mark Burton  wrote:
> Using a single sendcmd to read text from an external file and command a
> single drawtext, is working fine:
>
> ffmpeg -i input.mov -c:v dnxhd -b:v 115M -pix_fmt yuv422p -vf
> "sendcmd=filename=commandFile1,drawtext=fontfile=/System/Library/Fonts/Helvetica.dfont:fontsize=20:fontcolor=white:x=10:y=30:text="
> -an output.mov
>
> However I need to have two or more drawtext filters being commanded from
> separate sendcmd files in the same filtergraph.
>
> I believe I need to assign filter instance names to each drawtext command
> and then reference that name for [TARGET] in the sendcmd text file, but
> after reading through the docs and trying a few ideas, I'm no closer.
>
> The basic command (currently not working):
>
> ffmpeg -i input.mov -c:v dnxhd -b:v 115M -pix_fmt yuv422p -vf
> "sendcmd=filename=commandFile1,drawtext=fontfile=/System/Library/Fonts/Helvetica.dfont:fontsize=20:fontcolor=white:x=10:y=30:text=,sendcmd=filename=commandFile2,drawtext=fontfile=/System/Library/Fonts/Helvetica.dfont:fontsize=20:fontcolor=red:x=10:y=60:text="
> -an output.mov
>
> Result:
> drawtext 1 - after 1 frame at each new text entry, text from commandFile2 is
> overriding text from commandFile1.
> drawtext 2 - nothing is being drawn by this filter.
>
> ...contents of the sendcmd files:
>
> commandFile1
> 00:00:00.000-00:00:01.000 [enter] drawtext reinit 'text=Note A';
> 00:00:01.000-00:00:01.958 [enter] drawtext reinit 'text=Note B';
>
> commandFile2
> 00:00:00.000-00:00:01.000 [enter] drawtext reinit 'text=Tag 1';
> 00:00:01.000-00:00:01.958 [enter] drawtext reinit 'text=Tag 2';
>

You need to use Parsed_drawtext_X instead of drawtext, replace X with
number of filter in filtergraph.

So if its 3rd filter in filtergraph its number will be 2. Because
lavfi counts from 0.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] RES: Memory usage growing when using ffmpeg. Is this expected?

2017-04-28 Thread Guilherme de Oliveira Costa
Reindl,

The issue is that the system was dedicated to recording the video. Usually the 
memory consumption baseline is around 8MB. Once there are other applications 
running, such a memory usage is troublesome.

As I said, this is an _embedded_ system. I was presented with these restraints, 
and I need to evaluate if it is possible to record videos within such 
restraints.

Regards,
---
Guilherme de Oliveira Costa
Firmware Engineer - Autotrac Comercio Telecomunicacoes
www.autotrac.com.br
guilherme.oliveira(at)autotrac.com.br
Phone: +55 61 3307 7000 (Extension 2665)

-Mensagem original-
De: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] Em nome de Reindl Harald
Enviada em: sexta-feira, 28 de abril de 2017 11:59
Para: ffmpeg-user@ffmpeg.org
Assunto: Re: [FFmpeg-user] Memory usage growing when using ffmpeg. Is this 
expected?



Am 28.04.2017 um 16:52 schrieb Guilherme de Oliveira Costa:
> I am using ffmpeg record a video from a webcam, but the memory usage is very 
> high, and keeps increasing with video length.

very high is relative

> For example, I use an embedded device with 64 MB of RAM, and when I recorded 
> a 30 minute video, I was left with 2MB of RAM in the last minutes of the 
> recording.

and it did not abort with a out-of-memory on a 64 MB device and so finished - 
what to complain then - memory is there to be used and 64 MB in 2017 i would 
not expect to run anything which does really some work

there are even not much systems booting with 64 MB todays when every clock has 
1 GB or more

> I used valgrind to check for memory leaks, but I only found a 24 byte leak 
> when the program finishes. Is this memory consumption expected for ffmpeg?

if there would be memory leaks you would end with OOM very large on such a 
device ___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".
Esta mensagem e qualquer anexo a ela são documentos confidenciais e 
direcionados exclusivamente ao(s) destinatário(s). Qualquer uso, desvio, 
sonegação, supressão, revelação ou divulgação não autorizada é proibida e 
sujeita às sanções e/ou reparações legais por ato ilícito (Código Penal, 
Artigos 151 e 152). Caso não seja um dos destinatários expressamente indicados, 
por favor entre em contato com o remetente, respondendo este e-mail e destrua 
quaisquer cópias da mensagem original. Qualquer opinião, crítica ou análise 
descrita nesta mensagem é de responsabilidade única do remetente, a menos 
quando estiver explicitamente expresso que seja da empresa remetente.

This message and any attachment are confidential information for the sole use 
of the intended recipients. Any unauthorized use, deviation, withholdment, 
suppression, disclosure or distribution is prohibited and is subjected to legal 
sanctions and/or compensations per illicit act (Penal Code, articles 151 and 
152). If you are not one of the intended recipients, please contact the sender 
by reply e-mail and destroy any copy of the original message. Any view, comment 
or analysis expressed in this message is sole responsibility from the sender, 
except when it’s specifically expressed that it’s the view, comment or analysis 
of the company.

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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] sendcmd and drawtext - using more than one in the same filtergraph?

2017-04-28 Thread Mark Burton
Using a single sendcmd to read text from an external file and command a single 
drawtext, is working fine:

ffmpeg -i input.mov -c:v dnxhd -b:v 115M -pix_fmt yuv422p -vf 
"sendcmd=filename=commandFile1,drawtext=fontfile=/System/Library/Fonts/Helvetica.dfont:fontsize=20:fontcolor=white:x=10:y=30:text="
 -an output.mov

However I need to have two or more drawtext filters being commanded from 
separate sendcmd files in the same filtergraph.

I believe I need to assign filter instance names to each drawtext command and 
then reference that name for [TARGET] in the sendcmd text file, but after 
reading through the docs and trying a few ideas, I’m no closer.

The basic command (currently not working):

ffmpeg -i input.mov -c:v dnxhd -b:v 115M -pix_fmt yuv422p -vf 
"sendcmd=filename=commandFile1,drawtext=fontfile=/System/Library/Fonts/Helvetica.dfont:fontsize=20:fontcolor=white:x=10:y=30:text=,sendcmd=filename=commandFile2,drawtext=fontfile=/System/Library/Fonts/Helvetica.dfont:fontsize=20:fontcolor=red:x=10:y=60:text="
 -an output.mov

Result:
drawtext 1 - after 1 frame at each new text entry, text from commandFile2 is 
overriding text from commandFile1.
drawtext 2 - nothing is being drawn by this filter.

...contents of the sendcmd files:

commandFile1
00:00:00.000-00:00:01.000 [enter] drawtext reinit 'text=Note A';
00:00:01.000-00:00:01.958 [enter] drawtext reinit 'text=Note B';

commandFile2
00:00:00.000-00:00:01.000 [enter] drawtext reinit 'text=Tag 1';
00:00:01.000-00:00:01.958 [enter] drawtext reinit 'text=Tag 2';

… and the output:

ffmpeg version N-85641-gdd49eff-tessus Copyright (c) 2000-2017 the FFmpeg 
developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg 
--extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl 
--enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm 
--enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopus --enable-libschroedinger 
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora 
--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx 
--enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs 
--enable-libxvid --enable-libzmq --enable-libzvbi --enable-version3 
--disable-ffplay --disable-indev=qtkit
  libavutil      55. 61.100 / 55. 61.100
  libavcodec     57. 93.100 / 57. 93.100
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 86.100 /  6. 86.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 
'debug'.
Reading option '-i' ... matched as input url with argument 'input.mov'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 
'dnxhd'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use 
-b:v)) with argument '115M'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) 
with argument 'yuv422p'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with 
argument 
'sendcmd=filename=commandFile1,drawtext=fontfile=/System/Library/Fonts/Helvetica.dfont:fontsize=20:fontcolor=white:x=10:y=30:text=,
sendcmd=filename=commandFile2,drawtext=fontfile=/System/Library/Fonts/Helvetica.dfont:fontsize=20:fontcolor=red:x=10:y=60:text='.
Reading option '-an' ... matched as option 'an' (disable audio) with argument 
'1'.
Reading option 'output.mov' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url input.mov.
Successfully parsed a group of options.
Opening an input file: input.mov.
[file @ 0x7f84705002a0] Setting default whitelist 'file,crypto'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f847100] Format mov,mp4,m4a,3gp,3g2,mj2 
probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f847100] ISO: File Type Major Brand: qt
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f847100] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f847100] Processing st: 0, edit list 0 - 
media time: 0, duration: 48000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f847100] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f847100] Processing st: 1, edit list 0 - 
media time: 0, duration: 96000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f847100] Unknown dref type 0x73696c61 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f847100] Processing st: 2, edit list 0 - 
media time: 0, duration: 48000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f847100] Before avformat_find_stream_info() 
pos: 29676271 bytes read:38355 seeks:1 nb_streams:3
[dnxhd @ 0x7f8471017600] Profile cid 1237.
[dnxhd @ 0x7f8471017600] 1920x1080, 4:2:2 

Re: [FFmpeg-user] Memory usage growing when using ffmpeg. Is this expected?

2017-04-28 Thread Reindl Harald



Am 28.04.2017 um 16:52 schrieb Guilherme de Oliveira Costa:

I am using ffmpeg record a video from a webcam, but the memory usage is very 
high, and keeps increasing with video length.


very high is relative


For example, I use an embedded device with 64 MB of RAM, and when I recorded a 
30 minute video, I was left with 2MB of RAM in the last minutes of the 
recording.


and it did not abort with a out-of-memory on a 64 MB device and so 
finished - what to complain then - memory is there to be used and 64 MB 
in 2017 i would not expect to run anything which does really some work


there are even not much systems booting with 64 MB todays when every 
clock has 1 GB or more



I used valgrind to check for memory leaks, but I only found a 24 byte leak when 
the program finishes. Is this memory consumption expected for ffmpeg?


if there would be memory leaks you would end with OOM very large on such 
a device

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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Problem with ffmpeg command when recording live streams

2017-04-28 Thread DopeLabs
Have you tried a stream copy or only encoding the audio to mp3/aac since the 
video looks like its already in h264?

Stream copy video and re-encode audio

ffmpeg -I rtsp:/ip -c:v copy -c:a mp3 -b:a 128k -movflags +faststart -f mp4 
outfile.mp4



> On Apr 28, 2017, at 6:12 24AM, Yanet Giuse 
>  wrote:
> 
> Hello!I am trying to record a live rtsp stream and save videos locally using 
> ffmpeg, but i cant.This stream is a camera, and Ive tested the video stream 
> in VLC. It works.
> First, the ffplay command (ffplay rtsp://ip ) returns
> [rtsp @ 0x7fa574009280] UDP timeout, retrying with TCP   0B f=0/0   
> [rtsp @ 0x7fa574009280] method PAUSE failed: 455 Method Not Valid in This 
> State
> [rtsp @ 0x7fa574009280] Could not find codec parameters for stream 0 (Video: 
> h264, none): unspecified size
> Consider increasing the value for the 'analyzeduration' and 'probesize' 
> options
> Input #0, rtsp, from 'rtsp://ip':
>   Metadata:
> title   : Media Server
>   Duration: N/A, bitrate: 128 kb/s
> Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
> Stream #0:1: Audio: pcm_alaw, 16000 Hz, 1 channels, s16, 128 kb/s
> [rtsp @ 0x7fa574009280] UDP timeout, retrying with TCP   0B f=0/0   
> [rtsp @ 0x7fa574009280] method PAUSE failed: 455 Method Not Valid in This 
> State
> So, i installed h264 and h265 codecs and re-installed ffmpeg. But the same 
> error happened.Alsp, i tried the ffmpeg command
> ffmpeg -i rtsp://ip -r 15 outvideo.mp4
> the result is:
> [rtsp @ 0x11e30c0] UDP timeout, retrying with TCP
> [rtsp @ 0x11e30c0] method PAUSE failed: 455 Method Not Valid in This State
> [rtsp @ 0x11e30c0] Could not find codec parameters for stream 0 (Video: h264, 
> none): unspecified size
> Consider increasing the value for the 'analyzeduration' and 'probesize' 
> options
> Guessed Channel Layout for Input Stream #0.1 : mono
> Input #0, rtsp, from 'rtsp://ip':
>   Metadata:
> title   : Media Server
>   Duration: N/A, bitrate: 128 kb/s
> Stream #0:0: Video: h264, none, 90k tbr, 90k tbn, 180k tbc
> Stream #0:1: Audio: pcm_alaw, 16000 Hz, 1 channels, s16, 128 kb/s
> [mp4 @ 0x1237260] Using AVStream.codec to pass codec parameters to muxers is 
> deprecated, use AVStream.codecpar instead.
> Output #0, mp4, to 'outvideo.mp4':
>   Metadata:
> title   : Media Server
> encoder : Lavf57.50.100
> Stream #0:0: Audio: aac (LC) ([64][0][0][0] / 0x0040), 16000 Hz, mono, 
> fltp, 69 kb/s
> Metadata:
>   encoder : Lavc57.57.101 aac
> Stream mapping:
>   Stream #0:1 -> #0:0 (pcm_alaw (native) -> aac (native))
> Press [q] to stop, [?] for help
> [rtsp @ 0x11e30c0] UDP timeout, retrying with TCP
> [rtsp @ 0x11e30c0] method PAUSE failed: 455 Method Not Valid in This State
> rtsp://ip: Operation not permitted
> size=   0kB time=00:00:00.00 bitrate=N/A speed=   0x
> video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing 
> overhead: unknown
> [aac @ 0x1238a60] Qavg: -nan
> 
> I tried with several parameters I found on the web. No chances to work.
> 
> I think it is a codec problem, or maybe the reason is that my camera is in 
> 192.168.32. and my computer works in 192.168.31.I am searching for suggests, 
> reasons, commands .. Everything that helps..
> 
> 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Memory usage growing when using ffmpeg. Is this expected?

2017-04-28 Thread Guilherme de Oliveira Costa
Hi,



I am using ffmpeg record a video from a webcam, but the memory usage is very 
high, and keeps increasing with video length.

For example, I use an embedded device with 64 MB of RAM, and when I recorded a 
30 minute video, I was left with 2MB of RAM in the last minutes of the 
recording.

I used valgrind to check for memory leaks, but I only found a 24 byte leak when 
the program finishes. Is this memory consumption expected for ffmpeg?

This is the ffmpeg command I used:

ffmpeg -f video4linux2 -s 320x240 -t 00:00:10 -i /dev/video0 out.mpg

Regards,
---
Guilherme de Oliveira Costa
Firmware Engineer - Autotrac Comercio Telecomunicacoes
www.autotrac.com.br
guilherme.oliveira(at)autotrac.com.br
Phone: +55 61 3307 7000 (Extension 2665)


Esta mensagem e qualquer anexo a ela s?o documentos confidenciais e 
direcionados exclusivamente ao(s) destinat?rio(s). Qualquer uso, desvio, 
sonega??o, supress?o, revela??o ou divulga??o n?o autorizada ? proibida e 
sujeita ?s san??es e/ou repara??es legais por ato il?cito (C?digo Penal, 
Artigos 151 e 152). Caso n?o seja um dos destinat?rios expressamente indicados, 
por favor entre em contato com o remetente, respondendo este e-mail e destrua 
quaisquer c?pias da mensagem original. Qualquer opini?o, cr?tica ou an?lise 
descrita nesta mensagem ? de responsabilidade ?nica do remetente, a menos 
quando estiver explicitamente expresso que seja da empresa remetente.

This message and any attachment are confidential information for the sole use 
of the intended recipients. Any unauthorized use, deviation, withholdment, 
suppression, disclosure or distribution is prohibited and is subjected to legal 
sanctions and/or compensations per illicit act (Penal Code, articles 151 and 
152). If you are not one of the intended recipients, please contact the sender 
by reply e-mail and destroy any copy of the original message. Any view, comment 
or analysis expressed in this message is sole responsibility from the sender, 
except when it's specifically expressed that it's the view, comment or analysis 
of the company.

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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Dimensions of the input video as a variable

2017-04-28 Thread Wolfgang Hugemann
I would like to superimpose the audiograph of the video's audio on the 
video itself using 'blend'. I sucseeded in doing so with the line:


c:\programme\ffmpeg\bin\ffmpeg -y -i test.avi -filter_complex 
"[0:a]showwaves=s=640x480:mode=line[waves];[0:v]setsar=1:1[video];[waves][video]blend=all_mode='lighten'" 
-c:v libxvid -c:a copy ovl.avi


As you see, I supplied the dimensions of the input video (640x480) in 
the command line. I would like to turn this into a more general script, 
determining the dimensions of the input video on the fly, but how do I 
do that?


I tried "s=wxh" and alike, by that doesn't seem to work.

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

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Extract xvid stream in mov container

2017-04-28 Thread Cley Faye
2017-04-28 8:18 GMT+02:00 jacques perconte :

> [mpeg4 @ 0x7ffc82817800] header damaged
> [mpeg4 @ 0x7ffc82817800] time_increment_bits 4 is invalid in relation
> to the current bitstream, this is likely caused by a missing VOL
> header
> [mpeg4 @ 0x7ffc82817800] time_increment_bits set to 5 bits, based on
> bitstream analysis
> [mpeg4 @ 0x7ffc82817800] looks like this file was encoded with
> (divx4/(old)xvid/opendivx) -> forcing low_delay flag
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ffc82800400] decoding for stream 0 failed
> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ffc82800400] Could not find codec
> parameters for stream 0 (Video: mpeg4 (xvid / 0x64697678),
> yuv420p(bt709), 10032 kb/s): unspecified size
>
> Consider increasing the value for the 'analyzeduration' and 'probesize'
> options
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'HYPERS.MOV':
>
>   Metadata:
> major_brand : qt
> minor_version   : 537199360
> compatible_brands: qt
> creation_time   : 2015-03-09T00:01:04.00Z
> com.apple.quicktime.player.movie.visual.brightness: 0.00
> com.apple.quicktime.player.movie.visual.color: 1.00
> com.apple.quicktime.player.movie.visual.tint: 0.00
> com.apple.quicktime.player.movie.visual.contrast: 1.00
> com.apple.quicktime.player.version: 7.6.6 (7.6.6)
> com.apple.quicktime.version: 7.7.3 (2826.24) 0x7738000 (Mac OS X,
> 10.9.5, 13F34)
>
>   Duration: 08:53:49.52, start: 0.00, bitrate: 10033 kb/s
> Stream #0:0(eng): Video: mpeg4 (xvid / 0x64697678),
> yuv420p(bt709), 10032 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
>

​From that, I'd say the input file is damaged and ffmpeg can't get the
video parameters, especially the actual layout and resolution of the video
stream.

Does the file play fine with ffplay or other players? Usually ffmpeg does a
good job of recovering some damages, but it vary from codec to codec.​
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Extract xvid stream in mov container

2017-04-28 Thread jacques perconte
Dear Cley,

here it is

ffmpeg -i HYPERS.MOV -c:v copy -an output.avi

HYPERS.MOV is a mov quicktime with a xvid video stream and no sound
the stream ha no keyframe - it is normal, so i do not want to re encode it.

console :

Retina:M Hypersoleils ZREO$ ffmpeg -i HYPERS.MOV -c:v copy -an output.avi
ffmpeg version N-85343-gd0a3143-tessus Copyright (c) 2000-2017 the
FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg
--extra-version=tessus --enable-avisynth --enable-fontconfig
--enable-gpl --enable-libass --enable-libbluray --enable-libfreetype
--enable-libgsm --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus
--enable-libschroedinger --enable-libsnappy --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libvidstab
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs
--enable-libxvid --enable-libzmq --enable-libzvbi --enable-version3
--disable-ffplay --disable-indev=qtkit

  libavutil  55. 60.100 / 55. 60.100
  libavcodec 57. 92.100 / 57. 92.100
  libavformat57. 72.100 / 57. 72.100
  libavdevice57.  7.100 / 57.  7.100
  libavfilter 6. 84.100 /  6. 84.100
  libswscale  4.  7.100 /  4.  7.100
  libswresample   2.  8.100 /  2.  8.100
  libpostproc54.  6.100 / 54.  6.100

[mpeg4 @ 0x7ffc82817800] header damaged
[mpeg4 @ 0x7ffc82817800] time_increment_bits 4 is invalid in relation
to the current bitstream, this is likely caused by a missing VOL
header
[mpeg4 @ 0x7ffc82817800] time_increment_bits set to 5 bits, based on
bitstream analysis
[mpeg4 @ 0x7ffc82817800] looks like this file was encoded with
(divx4/(old)xvid/opendivx) -> forcing low_delay flag
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ffc82800400] decoding for stream 0 failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ffc82800400] Could not find codec
parameters for stream 0 (Video: mpeg4 (xvid / 0x64697678),
yuv420p(bt709), 10032 kb/s): unspecified size

Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'HYPERS.MOV':

  Metadata:
major_brand : qt
minor_version   : 537199360
compatible_brands: qt
creation_time   : 2015-03-09T00:01:04.00Z
com.apple.quicktime.player.movie.visual.brightness: 0.00
com.apple.quicktime.player.movie.visual.color: 1.00
com.apple.quicktime.player.movie.visual.tint: 0.00
com.apple.quicktime.player.movie.visual.contrast: 1.00
com.apple.quicktime.player.version: 7.6.6 (7.6.6)
com.apple.quicktime.version: 7.7.3 (2826.24) 0x7738000 (Mac OS X,
10.9.5, 13F34)

  Duration: 08:53:49.52, start: 0.00, bitrate: 10033 kb/s
Stream #0:0(eng): Video: mpeg4 (xvid / 0x64697678),
yuv420p(bt709), 10032 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)

Metadata:
  creation_time   : 2015-03-09T00:01:04.00Z
  handler_name: Gestionnaire d?alias Apple

[avi @ 0x7ffc82015800] dimensions not set

Could not write header for output file #0 (incorrect codec parameters
?): Invalid argument

Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Last message repeated 1 times

Retina:M Hypersoleils ZREO$




thank you
jacques
☀︎
Jacques Perconte
+33 660 615 408

http://www.jacquesperconte.com

→ http://timeline.technart.fr / news
→ https://twitter.com/jacquesperconte / voix


On Tue, Apr 25, 2017 at 10:02 AM, Cley Faye  wrote:
> 2017-04-25 9:52 GMT+02:00 jacques perconte :
>
>>
>> ffmpeg -i input.mov -c:v copy -an output.avi
>> ffmpeg -loglevel debug -analyzeduration 6M  -i nput.mov -c copy -s
>> 1920x1080 output.avi
>>
>> it always print
>> "[avi @ 0x7fe9e303ce00] Dimensions not set
>> Could not write header for output file #0 (incorrect codec parameters
>> ?): Invalid argument"
>>
>> any idea ?
>
>
> Provide the full console output of these commands, it might give some
> insight on what's failing.
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".