bitrate=N/A at 640x480, no video recorded

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

bitrate=N/A at 640x480, no video recorded

Guilherme de Oliveira Costa
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
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  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
[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: bitrate=N/A at 640x480, no video recorded

Lou-2
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
[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
|

RES: bitrate=N/A at 640x480, no video recorded

Guilherme de Oliveira Costa
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
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  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/200000 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:[hidden email]] Em nome de Lou
Enviada em: quinta-feira, 11 de maio de 2017 15:43
Para: [hidden email]
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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] 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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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