Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2013-02-10 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  important|Component:  avdevice
  Version:  git-master   |   Resolution:
 Keywords:  v4l2 |   Blocked By:
  regression |  Reproduced by developer:  1
 Blocking:   |
Analyzed by developer:  1|
-+-

Comment (by llarevo):

 All requested testcases were broken with the current git, except the
 ffplay commands without -r 25. In other words: ffmpeg doesn't work neither
 with or without -r 25, while ffplay does work only without -r 25.

 In Detail:

 == 1. compiled without --enable-libv4l2 ==
 '''1.1 ffmpeg -loglevel debug -f v4l2 -s vga -r 25 -i /dev/video0 out-vga-
 2M-5min.mpg: BROKEN'''
 {{{
 ffmpeg version N-49795-g478fc7f Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Feb 10 2013 19:25:16 with gcc 4.7.2 (GCC) 20121109 (Red Hat
 4.7.2-8)
   configuration: --prefix=/usr/local
   libavutil  52. 17.101 / 52. 17.101
   libavcodec 54. 91.102 / 54. 91.102
   libavformat54. 62.100 / 54. 62.100
   libavdevice54.  3.103 / 54.  3.103
   libavfilter 3. 37.101 /  3. 37.101
   libswscale  2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
 Splitting the commandline.
 Reading option '-loglevel' ... matched as option 'loglevel' (set libav*
 logging level) with argument 'debug'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'v4l2'.
 Reading option '-s' ... matched as option 's' (set frame size (WxH or
 abbreviation)) with argument 'vga'.
 Reading option '-r' ... matched as option 'r' (set frame rate (Hz value,
 fraction or abbreviation)) with argument '25'.
 Reading option '-i' ... matched as input file with argument '/dev/video0'.
 Reading option 'out-vga-2M-5min.mpg' ... matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option loglevel (set libav* logging level) with argument debug.
 Successfully parsed a group of options.
 Parsing a group of options: input file /dev/video0.
 Applying option f (force format) with argument v4l2.
 Applying option s (set frame size (WxH or abbreviation)) with argument
 vga.
 Applying option r (set frame rate (Hz value, fraction or abbreviation))
 with argument 25.
 Successfully parsed a group of options.
 Opening an input file: /dev/video0.
 [video4linux2,v4l2 @ 0x2b101c0] fd:3 capabilities:5010015
 [video4linux2,v4l2 @ 0x2b101c0] Selecting input_channel: 0
 [video4linux2,v4l2 @ 0x2b101c0] input_channel: 0, input_name: Television
 [video4linux2,v4l2 @ 0x2b101c0] The V4L2 driver is using the interlaced
 mode
 [video4linux2,v4l2 @ 0x2b101c0] Current standard: PAL, id: 255,
 frameperiod: 1/25
 [video4linux2,v4l2 @ 0x2b101c0] The driver does not allow to change time
 per frame
 ^Cinterrupted
 rfps: 1.00 0.006400
 rfps: 1.08 0.007511
 Last message repeated 1 times
 rfps: 1.17 0.008711
 Last message repeated 1 times
 rfps: 1.25 0.01
 =>(several dozends of lines like this)<=
 rfps: 51.58 0.016063
 rfps: 51.67 0.017798
 rfps: 51.75 0.019619
 rfps: 23.976024 0.006705
 Last message repeated 1 times
 [video4linux2,v4l2 @ 0x2b101c0] Estimating duration from bitrate, this may
 be inaccurate
 Input #0, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, start: 1360520755.820252, bitrate: 92160 kb/s
 Stream #0:0, 8, 1/100: Video: rawvideo (I420 / 0x30323449),
 yuv420p, 640x480, 1/100, 92160 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k
 tbc
 Successfully opened the file.
 Parsing a group of options: output file out-vga-2M-5min.mpg.
 Successfully parsed a group of options.
 Opening an output file: out-vga-2M-5min.mpg.
 Successfully opened the file.
 [buffer @ 0x2b16040] Setting entry with key 'video_size' to value
 '640x480'
 [buffer @ 0x2b16040] Setting entry with key 'pix_fmt' to value '0'
 [buffer @ 0x2b16040] Setting entry with key 'time_base' to value '1/25'
 [buffer @ 0x2b16040] Setting entry with key 'pixel_aspect' to value '0/1'
 [buffer @ 0x2b16040] Setting entry with key 'sws_param' to value 'flags=2'
 [buffer @ 0x2b16040] Setting entry with key 'frame_rate' to value '25/1'
 [graph 0 input from stream 0:0 @ 0x2b10c80] w:640 h:480 pixfmt:yuv420p
 tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
 [graph 0 input from stream 0:0 @ 0x2b10c80] TB:0.04
 FRAME_RATE:25.00 SAMPLE_RATE:nan
 [mpeg1video @ 0x2b11b80] detected 4 logical cores
 [mpeg1video @ 0x2b11b80] intra_quant_bias = 96 inter_quant_bias = 0
 [mpeg @ 0x2b11400] VBV buffer size not set, muxing may fail
 Output #0, mpeg, to 'out-vga-2M-5min.m

Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2013-02-08 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  important|Component:  avdevice
  Version:  git-master   |   Resolution:
 Keywords:  v4l2 |   Blocked By:
  regression |  Reproduced by developer:  1
 Blocking:   |
Analyzed by developer:  1|
-+-
Changes (by holden):

 * analyzed:  0 => 1
 * reproduced:  0 => 1


Comment:

 To llarevo: thanks for testing, I believe I know what causes this bug and
 I have just posted a patch on ffmpeg-devel mailing list for discussion. As
 Carl suggested, please do not use "-t 300". Also using "-r 25" or not will
 not make any difference since you are capturing from a TV card using the
 PAL standard for which the framerate is fixed at 25fps and cannot be
 changed (you will only get a warning).

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2013-02-01 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  important|Component:  avdevice
  Version:  git-master   |   Resolution:
 Keywords:  v4l2 |   Blocked By:
  regression |  Reproduced by developer:  0
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by cehoyos):

 Replying to [comment:13 llarevo]:
 > ffmpeg -loglevel debug -t 300 -f v4l2 -s vga -r 25 -i /dev/video0 out-
 vga-2M-5min.mpg

 Does it work without "-r 25"?
 Does ffplay work with "-r 25"?

 Please (re)move -t 300 - it (unfortunately) does not do what you (and I)
 hope.

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2013-02-01 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  important|Component:  avdevice
  Version:  git-master   |   Resolution:
 Keywords:  v4l2 |   Blocked By:
  regression |  Reproduced by developer:  0
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by llarevo):

 ffplay -loglevel debug -f video4linux2 -probesize 32 /dev/video0 works
 very good. Its playing the channel previously tuned on the device with a
 perfec image.
 {{{
 ffplay -loglevel debug -f video4linux2 -probesize 32 /dev/video0
 ffplay version N-49520-gb868275 Copyright (c) 2003-2013 the FFmpeg
 developers
   built on Feb  1 2013 18:50:36 with gcc 4.7.2 (GCC) 20120921 (Red Hat
 4.7.2-2)
   configuration: --prefix=/usr/local/
   libavutil  52. 17.100 / 52. 17.100
   libavcodec 54. 91.100 / 54. 91.100
   libavformat54. 61.104 / 54. 61.104
   libavdevice54.  3.103 / 54.  3.103
   libavfilter 3. 35.100 /  3. 35.100
   libswscale  2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
 [video4linux2,v4l2 @ 0x7fcce8c0] fd:5 capabilities:5010015
 [video4linux2,v4l2 @ 0x7fcce8c0] Selecting input_channel: 0
 [video4linux2,v4l2 @ 0x7fcce8c0] input_channel: 0, input_name:
 Television
 [video4linux2,v4l2 @ 0x7fcce8c0] Querying the device for the current
 frame size
 [video4linux2,v4l2 @ 0x7fcce8c0] Setting frame size to 720x576
 [video4linux2,v4l2 @ 0x7fcce8c0] The V4L2 driver is using the
 interlaced mode
 [video4linux2,v4l2 @ 0x7fcce8c0] Current standard: PAL-BG, id: 7,
 frameperiod: 1/25
 [video4linux2,v4l2 @ 0x7fcce8c0] Probe buffer size limit of 32 bytes
 reached
 [video4linux2,v4l2 @ 0x7fcce8c0] Stream #0: not enough frames to
 estimate rate; consider increasing probesize
 [video4linux2,v4l2 @ 0x7fcce8c0] Estimating duration from bitrate,
 this may be inaccurate
 Input #0, video4linux2,v4l2, from '/dev/video0':
   Duration: N/A, start: 1359741406.842020, bitrate: 124416 kb/s
 Stream #0:0, 1, 1/100: Video: rawvideo (I420 / 0x30323449),
 yuv420p, 720x576, 1/100, 124416 kb/s, 25 fps, 1000k tbr, 1000k tbn,
 1000k tbc
 Frame changed from size:0x0 to size:720x576
 [buffer @ 0x7fccd8000e40] Setting entry with key 'video_size' to value
 '720x576'
 [buffer @ 0x7fccd8000e40] Setting entry with key 'pix_fmt' to value '0'
 [buffer @ 0x7fccd8000e40] Setting entry with key 'time_base' to value
 '1/100'
 [buffer @ 0x7fccd8000e40] Setting entry with key 'pixel_aspect' to value
 '0/1'
 [ffplay_buffer @ 0x7fccd8000d20] w:720 h:576 pixfmt:yuv420p tb:1/100
 fr:0/1 sar:0/1 sws_param:
 [crop @ 0x7fccd8002000] Setting 'w' to value 'floor(in_w/2)*2'
 [crop @ 0x7fccd8002000] Setting 'h' to value 'floor(in_h/2)*2'
 [ffplay_crop @ 0x7fccd8001ee0] w:720 h:576 sar:0/1 -> w:720 h:576 sar:0/1
 1359741423.22 A-V:  0.000 fd=   0 aq=0KB vq= 2430KB sq=0B f=0/0
 B f=0/0
 }}}
 ffmpeg -loglevel debug -t 300 -f v4l2 -s vga -r 25 -i /dev/video0 out-vga-
 2M-5min.mpg gives now different errors than reported previously:
 {{{
 ffmpeg -loglevel debug -t 300 -f v4l2 -s vga -r 25 -i /dev/video0 out-vga-
 2M-5min.mpg
 ffmpeg version N-49520-gb868275 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Feb  1 2013 18:50:36 with gcc 4.7.2 (GCC) 20120921 (Red Hat
 4.7.2-2)
   configuration: --prefix=/usr/local/
   libavutil  52. 17.100 / 52. 17.100
   libavcodec 54. 91.100 / 54. 91.100
   libavformat54. 61.104 / 54. 61.104
   libavdevice54.  3.103 / 54.  3.103
   libavfilter 3. 35.100 /  3. 35.100
   libswscale  2.  2.100 /  2.  2.100
   libswresample   0. 17.102 /  0. 17.102
 Splitting the commandline.
 Reading option '-loglevel' ... matched as option 'loglevel' (set libav*
 logging level) with argument 'debug'.
 Reading option '-t' ... matched as option 't' (record or transcode
 "duration" seconds of audio/video) with argument '300'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'v4l2'.
 Reading option '-s' ... matched as option 's' (set frame size (WxH or
 abbreviation)) with argument 'vga'.
 Reading option '-r' ... matched as option 'r' (set frame rate (Hz value,
 fraction or abbreviation)) with argument '25'.
 Reading option '-i' ... matched as input file with argument '/dev/video0'.
 Reading option 'out-vga-2M-5min.mpg' ... matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option loglevel (set libav* logging level) with argument debug.
 Successfully parsed a group of options.
 Parsing a group of options: input file

Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2013-01-25 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  important|Component:  avdevice
  Version:  git-master   |   Resolution:
 Keywords:  v4l2 |   Blocked By:
  regression |  Reproduced by developer:  0
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by holden):

 Hello,

 could you please try the following command with latest git version and
 report back? Thanks

 {{{
 ffplay -loglevel debug -f video4linux2 -probesize 32 /dev/video0
 }}}

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2012-10-09 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  important|Component:  avdevice
  Version:  git-master   |   Resolution:
 Keywords:  v4l2 |   Blocked By:
  regression |  Reproduced by developer:  0
 Blocking:   |
Analyzed by developer:  0|
-+-
Changes (by cehoyos):

 * keywords:  video4linux, video4linux2, v4l2.c, regression, capture,
 analog, tv => v4l2 regression
 * priority:  normal => important
 * version:  unspecified => git-master


-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2012-08-09 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  normal   |Component:  avdevice
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
  video4linux, video4linux2, |  Reproduced by developer:  0
  v4l2.c, regression, capture,   |
  analog, tv |
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by llarevo):

 I forgot to mention here, that I made a short test with Ubuntu 10.04 LTS.
 This is shipped with ffmpeg 0.5.x and working fine ootb. When I download
 the 0.11.1-ffmpeg and build it as described above, I get the same error as
 in Fedora f17.

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2012-08-08 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  normal   |Component:  avdevice
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
  video4linux, video4linux2, |  Reproduced by developer:  0
  v4l2.c, regression, capture,   |
  analog, tv |
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by llarevo):

 > That makes me wonder if one of your parameter isn't wrong: you specify
 -r 25 which might be not supported by your card. Can you make some tests
 with something simple such as:
 >
 > {{{
 > ./ffplay -f v4l2 -i /dev/video0
 > }}}
 >
 > to see if it doesn't show anything? (for old version you might need to
 change v4l2 into video4linux2)

 ffplay doesn't show anything and has to be killed by strg+c:
 {{{
 /usr/local/bin/ffplay -f v4l2 -i /dev/video0
 ffplay version 0.11.1 Copyright (c) 2003-2012 the FFmpeg developers
   built on Jul 29 2012 15:57:16 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5)
   configuration: --prefix=/usr/local --libdir=/usr/local/lib64
 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-gpl --enable-libfaac
 --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libxvid
 --disable-asm --disable-crystalhd
   libavutil  51. 54.100 / 51. 54.100
   libavcodec 54. 23.100 / 54. 23.100
   libavformat54.  6.100 / 54.  6.100
   libavdevice54.  0.100 / 54.  0.100
   libavfilter 2. 77.100 /  2. 77.100
   libswscale  2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc52.  0.100 / 52.  0.100
 ^C
 }}}

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2012-08-05 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  normal   |Component:  avdevice
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
  video4linux, video4linux2, |  Reproduced by developer:  0
  v4l2.c, regression, capture,   |
  analog, tv |
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by ubitux):

 Replying to [comment:7 llarevo]:
 > The output of the unpatched 0.11.1 with -debug 1 is
 > {{{
 > /usr/local/bin/ffmpeg -debug 1 -t 300 -f video4linux2 -s vga -r 25 -b
 2000k -i /dev/video0 out-vga-2M-5min.mpg
 > ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
 >   built on Jul 29 2012 15:53:10 with gcc 4.7.0 20120507 (Red Hat
 4.7.0-5)
 >   configuration: --prefix=/usr/local --libdir=/usr/local/lib64
 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-gpl --enable-libfaac
 --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libxvid
 --disable-asm --disable-crystalhd
 >   libavutil  51. 54.100 / 51. 54.100
 >   libavcodec 54. 23.100 / 54. 23.100
 >   libavformat54.  6.100 / 54.  6.100
 >   libavdevice54.  0.100 / 54.  0.100
 >   libavfilter 2. 77.100 /  2. 77.100
 >   libswscale  2.  1.100 /  2.  1.100
 >   libswresample   0. 15.100 /  0. 15.100
 >   libpostproc52.  0.100 / 52.  0.100
 > Please use -b:a or -b:v, -b is ambiguous
 > [video4linux2,v4l2 @ 0x2ecd1e0] [3]Capabilities: 5010015
 > [video4linux2,v4l2 @ 0x2ecd1e0] The V4L2 driver using the interlaced
 modeThe V4L2 driver set input_id: 0, input: Television
 > [video4linux2,v4l2 @ 0x2ecd1e0] Setting time per frame to 1/25
 > [video4linux2,v4l2 @ 0x2ecd1e0] ioctl set time per frame(1/25) failed
 > /dev/video0: Input/output error
 > }}}

 That makes me wonder if one of your parameter isn't wrong: you specify -r
 25 which might be not supported by your card. Can you make some tests with
 something simple such as:

 {{{
 ./ffplay -f v4l2 -i /dev/video0
 }}}

 to see if it doesn't show anything? (for old version you might need to
 change v4l2 into video4linux2)

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2012-07-29 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  normal   |Component:  avdevice
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
  video4linux, video4linux2, |  Reproduced by developer:  0
  v4l2.c, regression, capture,   |
  analog, tv |
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by llarevo):

 The output of the unpatched 0.11.1 with -debug 1 is
 {{{
 /usr/local/bin/ffmpeg -debug 1 -t 300 -f video4linux2 -s vga -r 25 -b
 2000k -i /dev/video0 out-vga-2M-5min.mpg
 ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
   built on Jul 29 2012 15:53:10 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5)
   configuration: --prefix=/usr/local --libdir=/usr/local/lib64
 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-gpl --enable-libfaac
 --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libxvid
 --disable-asm --disable-crystalhd
   libavutil  51. 54.100 / 51. 54.100
   libavcodec 54. 23.100 / 54. 23.100
   libavformat54.  6.100 / 54.  6.100
   libavdevice54.  0.100 / 54.  0.100
   libavfilter 2. 77.100 /  2. 77.100
   libswscale  2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc52.  0.100 / 52.  0.100
 Please use -b:a or -b:v, -b is ambiguous
 [video4linux2,v4l2 @ 0x2ecd1e0] [3]Capabilities: 5010015
 [video4linux2,v4l2 @ 0x2ecd1e0] The V4L2 driver using the interlaced
 modeThe V4L2 driver set input_id: 0, input: Television
 [video4linux2,v4l2 @ 0x2ecd1e0] Setting time per frame to 1/25
 [video4linux2,v4l2 @ 0x2ecd1e0] ioctl set time per frame(1/25) failed
 /dev/video0: Input/output error
 }}}
 The output of the patched 0.11.1 with -debug 1 is
 {{{
 /usr/local/bin/ffmpeg -debug 1 -t 300 -f video4linux2 -s vga -r 25 -b
 2000k -i /dev/video0 out-vga-2M-5min.mpg
 ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
   built on Jul 29 2012 15:57:16 with gcc 4.7.0 20120507 (Red Hat 4.7.0-5)
   configuration: --prefix=/usr/local --libdir=/usr/local/lib64
 --shlibdir=/usr/local/lib64 --enable-nonfree --enable-gpl --enable-libfaac
 --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libxvid
 --disable-asm --disable-crystalhd
   libavutil  51. 54.100 / 51. 54.100
   libavcodec 54. 23.100 / 54. 23.100
   libavformat54.  6.100 / 54.  6.100
   libavdevice54.  0.100 / 54.  0.100
   libavfilter 2. 77.100 /  2. 77.100
   libswscale  2.  1.100 /  2.  1.100
   libswresample   0. 15.100 /  0. 15.100
   libpostproc52.  0.100 / 52.  0.100
 Please use -b:a or -b:v, -b is ambiguous
 [video4linux2,v4l2 @ 0x21311e0] [3]Capabilities: 5010015
 [video4linux2,v4l2 @ 0x21311e0] The V4L2 driver using the interlaced
 modeThe V4L2 driver set input_id: 0, input: Television
 ^Cinterrupted
 rfps: 1.00 0.006400
 Last message repeated 1 times
 rfps: 1.08 0.007511
 Last message repeated 1 times
 rfps: 1.17 0.008711
 Last message repeated 1 times
 rfps: 1.25 0.01
 Last message repeated 1 times
 rfps: 1.33 0.011378
 Last message repeated 1 times
 rfps: 1.416667 0.012844
 Last message repeated 1 times
 rfps: 1.50 0.014400
 Last message repeated 1 times
 rfps: 1.58 0.016044
 Last message repeated 1 times
 rfps: 1.83 -4096.00
 Last message repeated 1 times
 rfps: 1.916667 -2048.00
 Last message repeated 1 times
 rfps: 2.08 -2048.00
 Last message repeated 1 times
 rfps: 2.17 0.00
 Last message repeated 1 times
 rfps: 2.33 -4096.00
 Last message repeated 1 times
 rfps: 2.416667 -12288.00
 Last message repeated 1 times
 rfps: 2.50 -4096.00
 Last message repeated 1 times
 rfps: 2.58 0.00
 Last message repeated 1 times
 rfps: 2.67 -4096.00
 Last message repeated 1 times
 rfps: 3.00 0.00
 Last message repeated 1 times
 rfps: 3.08 0.00
 Last message repeated 1 times
 rfps: 3.17 0.00
 Last message repeated 1 times
 rfps: 3.25 -4096.00
 Last message repeated 1 times
 rfps: 3.416667 -4096.00
 Last message repeated 1 times
 rfps: 3.50 0.00
 Last message repeated 1 times
 rfps: 3.58 -4096.00
 Last message repeated 1 times
 rfps: 3.75 -4096.00
 Last message repeated 1 times
 rfps: 3.916667 0.00
 Last message repeated 1 times
 rfps: 4.00 -6144.00
 Last message repeated 1 times
 rfps: 4.08 -4096.00
 Last message repeated 1 times
 rfps: 4.17 0.0

Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2012-07-29 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  normal   |Component:  avdevice
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
  video4linux, video4linux2, |  Reproduced by developer:  0
  v4l2.c, regression, capture,   |
  analog, tv |
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by llarevo):

 I tried
 {{{
 git tag
 }}}
 which gave me
 {{{
 N
 ffmpeg-0.6.3
 n0.10
 n0.10.1
 n0.10.2
 n0.10.3
 n0.10.4
 n0.11
 n0.11.1
 n0.5.10
 n0.5.5
 n0.5.6
 n0.5.7
 n0.5.8
 n0.5.9
 n0.6.4
 n0.6.5
 n0.6.6
 n0.7.1
 n0.7.10
 n0.7.11
 n0.7.12
 n0.7.13
 n0.7.2
 n0.7.3
 n0.7.4
 n0.7.5
 n0.7.6
 n0.7.7
 n0.7.8
 n0.7.9
 n0.8
 n0.8.1
 n0.8.10
 n0.8.11
 n0.8.12
 n0.8.2
 n0.8.3
 n0.8.4
 n0.8.5
 n0.8.6
 n0.8.7
 n0.8.8
 n0.8.9
 n0.9
 n0.9.1
 n0.9.2
 v0.5
 v0.5.1
 v0.5.2
 v0.5.3
 v0.6
 v0.6.1
 }}}
 Then I tried
 {{{
 git checkout n0.11.1
 }}}
 and
 {{{
 patch -p1
 diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
 index 2808e13..0acd3da 100644
 --- a/libavdevice/v4l2.c
 +++ b/libavdevice/v4l2.c
 @@ -694,7 +694,7 @@ static int v4l2_set_parameters(AVFormatContext *s1)
  }
  }

 -if (framerate_q.num && framerate_q.den) {
 +if (0 && framerate_q.num && framerate_q.den) {
  av_log(s1, AV_LOG_DEBUG, "Setting time per frame to %d/%d\n",
 framerate_q.den, framerate_q.num);
  tpf->numerator   = framerate_q.den;
 }}}
 I get
 {{{
 patching file libavdevice/v4l2.c
 Hunk #1 FAILED at 694.
 1 out of 1 hunk FAILED -- saving rejects to file libavdevice/v4l2.c.rej
 }}}

 I took a look into libavdevice/v4l2.c. This file was obviously not updated
 by the checkout command.

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2012-07-29 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  normal   |Component:  avdevice
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
  video4linux, video4linux2, |  Reproduced by developer:  0
  v4l2.c, regression, capture,   |
  analog, tv |
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by llarevo):

 Thanks. I've two more questions.

 1. What version shall I checkout prior to apply the patch?

 2. Shall I then compile with "--enable-libv4l2" or without?

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2012-07-28 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  normal   |Component:  avdevice
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
  video4linux, video4linux2, |  Reproduced by developer:  0
  v4l2.c, regression, capture,   |
  analog, tv |
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by cehoyos):

 Type "patch -p1" (and enter), then paste above code (from "diff" to
 ".den;" including the line break), and press Ctrl-D (twice), or save the
 code in a file and do patch -p1https://ffmpeg.org/trac/ffmpeg/ticket/1570#comment:4>
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2012-07-28 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  normal   |Component:  avdevice
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
  video4linux, video4linux2, |  Reproduced by developer:  0
  v4l2.c, regression, capture,   |
  analog, tv |
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by llarevo):

 I don't know how to do this. I tried:
 {{{
 cd ffmpeg
 git checkout 70f7736
 gedit hack.patch
 }}}
 I copied your hack above and saved it in the file "hack.patch". After
 that, I did
 {{{
 patch -p0 < hack.patch
 can't find file to patch at input line 5
 Perhaps you used the wrong -p or --strip option?
 The text leading up to this was:
 --
 |diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
 |index 2808e13..0acd3da 100644
 |--- a/libavdevice/v4l2.c
 |+++ b/libavdevice/v4l2.c
 --
 File to patch: ^C
 }}}
 Then I tried
 {{{
 patch -p1 < hack.patch
 patching file libavdevice/v4l2.c
 Hunk #1 FAILED at 694.
 1 out of 1 hunk FAILED -- saving rejects to file libavdevice/v4l2.c.rej
 }}}


 Sorry - I have not really a clue what I'm doing there. I don't find the
 line
 {{{
 if (framerate_q.num && framerate_q.den) {
 }}}
 in the file "libavdevice/v4l2.c"

 Can you give me a short advice how to "try this hack with an upstream
 FFmpeg"? What means upstream? Shall I try the hack with the most recent
 version? How can I get it with the git checkout command? If so, shall I
 configure with "--enable-libv4l2" or without?

 Sorry, but this is the first time I deal with source code, so any advice
 is very appreciated.

 Thanks a lot.
 --
 Felix

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2012-07-26 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  normal   |Component:  avdevice
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
  video4linux, video4linux2, |  Reproduced by developer:  0
  v4l2.c, regression, capture,   |
  analog, tv |
 Blocking:   |
Analyzed by developer:  0|
-+-

Comment (by ubitux):

 Just to make sure, can you try this hack with an upstream FFmpeg?

 {{{
 diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
 index 2808e13..0acd3da 100644
 --- a/libavdevice/v4l2.c
 +++ b/libavdevice/v4l2.c
 @@ -694,7 +694,7 @@ static int v4l2_set_parameters(AVFormatContext *s1)
  }
  }

 -if (framerate_q.num && framerate_q.den) {
 +if (0 && framerate_q.num && framerate_q.den) {
  av_log(s1, AV_LOG_DEBUG, "Setting time per frame to %d/%d\n",
 framerate_q.den, framerate_q.num);
  tpf->numerator   = framerate_q.den;
 }}}

 (Since according to your report 70f7736 looks faulty).

 Also, could you post a complete command line and output with -debug 1
 (with an up-to-date tree but without the hack above) so we can have more
 information on the issue?

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac


Re: [FFmpeg-trac] #1570(avdevice:open): libv4l2: error dequeuing buf: Resource temporarily unavailable

2012-07-24 Thread FFmpeg
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-+-
 Reporter:  llarevo  |Owner:
 Type:  defect   |   Status:  open
 Priority:  normal   |Component:  avdevice
  Version:  unspecified  |   Resolution:
 Keywords:   |   Blocked By:
  video4linux, video4linux2, |  Reproduced by developer:  0
  v4l2.c, regression, capture,   |
  analog, tv |
 Blocking:   |
Analyzed by developer:  0|
-+-
Changes (by llarevo):

 * status:  new => open


Comment:

 Typo: The regression was not introduced in 2009 but in 2010.

 Needless to say, that I can perform additional tests on request.

-- 
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
http://avcodec.org/mailman/listinfo/ffmpeg-trac