[FFmpeg-user] RES: bitrate=N/A at 640x480, no video recorded
Got version 3.3.2 from git, cross compiled it and ran with the same options. ffmpeg version n3.3-2-gda693f8daa Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.9.3 (crosstool-NG crosstool-ng-1.22.0) configuration: --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --extra-ldflags=-static libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat57. 71.100 / 57. 71.100 libavdevice57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 2980.791813, bitrate: 147456 kb/s Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg1video (native)) Press [q] to stop, [?] for help [mpeg @ 0x2c191c0] VBV buffer size not set, using default size of 130KB If you want the mpeg file to be compliant to some specification Like DVD, VCD or others, make sure you set the correct buffer size Output #0, mpeg, to 'out.mpg': Metadata: encoder : Lavf57.71.100 Stream #0:0: Video: mpeg1video, yuv420p, 640x480, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc Metadata: encoder : Lavc57.89.100 mpeg1video Side data: cpb: bitrate max/min/avg: 0/0/20 buffer size: 0 vbv_delay: -1 frame=8 fps=0.7 q=3.1 size= 100kB time=00:00:00.16 bitrate=4914.9kbits/s dup=6 drop=0 speed=0.0147x Now the bitrate shows up, but the recording speed is still very slow. Unfortunately I can't do anything about the confidentiality note =( 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 Lou Enviada em: quinta-feira, 11 de maio de 2017 15:43 Para: ffmpeg-user@ffmpeg.org Assunto: Re: [FFmpeg-user] bitrate=N/A at 640x480, no video recorded On Thu, May 11, 2017, at 10:10 AM, Guilherme de Oliveira Costa wrote: > > The output: > ffmpeg version 2.8.7 Copyright (c) 2000-2016 the FFmpeg developers This is old. First step is to try a recent ffmpeg. If possible, please try to avoid sending confidentiality notices to this public mailing list. ___ 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] bitrate=N/A at 640x480, no video recorded
Hi, I'm trying to record a video at 640x480, but ffmpeg is not working as expected in this case. My command line: ffmpeg -y -s 640x480 -t 00:00:20 -i /dev/video0 out.mpg The output: ffmpeg version 2.8.7 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.9.3 (crosstool-NG crosstool-ng-1.22.0) [...] libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat56. 40.101 / 56. 40.101 libavdevice56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 16205.126331, bitrate: 147456 kb/s Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc [mpeg @ 0x1130970] VBV buffer size not set, using default size of 130KB If you want the mpeg file to be compliant to some specification Like DVD, VCD or others, make sure you set the correct buffer size Output #0, mpeg, to 'out.mpg': Metadata: encoder : Lavf56.40.101 Stream #0:0: Video: mpeg1video, yuv420p, 640x480, q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc Metadata: encoder : Lavc56.60.100 mpeg1video Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg1video (native)) Press [q] to stop, [?] for help frame=1 fps=0.4 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A And then it just stays like this. I've checked with strace and the program is stuck in a loop, trying to dequeue the video buffer ( it loops here: ioctl(3, VIDIOC_DQBUF, {type=V4L2_BUF_TYPE_VIDEO_CAPTURE}) = -1 EAGAIN). Ffmpeg works normally on lower resolutions, though. I've also tested the camera, and it supports this resolution. From what I understand, ffmpeg is not being able to get any data from the video device, thus it can't encode the video. Why? My system specs are: Kernel 3.2.61, 64 MB RAM, 128 MB Storage Space. Regards, --- Guilherme de Oliveira Costa Firmware Engineer - Autotrac Comercio Telecomunicacoes www.autotrac.com.br<http://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] RES: Memory usage growing when using ffmpeg. Is this expected?
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] Memory usage growing when using ffmpeg. Is this expected?
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<http://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".