[FFmpeg-trac] #1570(avdevice:closed): libv4l2: error dequeuing buf: Resource temporarily unavailable
FFmpeg
trac at avcodec.org
Tue Mar 19 12:44:20 CET 2013
#1570: libv4l2: error dequeuing buf: Resource temporarily unavailable
-------------------------------------+-------------------------------------
Reporter: llarevo | Owner:
Type: defect | Status: closed
Priority: important | Component: avdevice
Version: git-master | Resolution: fixed
Keywords: v4l2 | Blocked By:
regression | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 1 |
-------------------------------------+-------------------------------------
Comment (by llarevo):
This Bug has been repaired. Detailed result from the ffmpeg testcases
above follow.
== 1. compiled without --enable-libv4l2==
'''1.1 ffmpeg -y -loglevel debug -f v4l2 -s vga -r 25 -i /dev/video0
out.mpg'''
{{{
ffmpeg version N-50974-g7d15cd4 Copyright (c) 2000-2013 the FFmpeg
developers
built on Mar 19 2013 12:36:50 with gcc 4.7.2 (GCC) 20121109 (Red Hat
4.7.2-8)
configuration: --prefix=/usr/local --enable-ffplay
libavutil 52. 19.100 / 52. 19.100
libavcodec 55. 0.100 / 55. 0.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 45.104 / 3. 45.104
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
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.mpg' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
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 @ 0x192f180] fd:3 capabilities:5010015
[video4linux2,v4l2 @ 0x192f180] Selecting input_channel: 0
[video4linux2,v4l2 @ 0x192f180] input_channel: 0, input_name: Television
[video4linux2,v4l2 @ 0x192f180] The V4L2 driver is using the interlaced
mode
[video4linux2,v4l2 @ 0x192f180] Current standard: PAL-BG, id: 7,
frameperiod: 1/25
[video4linux2,v4l2 @ 0x192f180] The driver does not allow to change time
per frame
[video4linux2,v4l2 @ 0x192f180] All info found
[video4linux2,v4l2 @ 0x192f180] Estimating duration from bitrate, this may
be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 1363693144.026008, bitrate: 92160 kb/s
Stream #0:0, 1, 1/1000000: Video: rawvideo (I420 / 0x30323449),
yuv420p, 640x480, 1/1000000, 92160 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k
tbc
Successfully opened the file.
Parsing a group of options: output file out.mpg.
Successfully parsed a group of options.
Opening an output file: out.mpg.
Successfully opened the file.
[buffer @ 0x1919520] Setting entry with key 'video_size' to value
'640x480'
[buffer @ 0x1919520] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 0x1919520] Setting entry with key 'time_base' to value '1/25'
[buffer @ 0x1919520] Setting entry with key 'pixel_aspect' to value '0/1'
[buffer @ 0x1919520] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0x1919520] Setting entry with key 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0x19199a0] 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 @ 0x19199a0] TB:0.040000
FRAME_RATE:25.000000 SAMPLE_RATE:nan
[mpeg1video @ 0x19312c0] detected 4 logical cores
[mpeg1video @ 0x19312c0] intra_quant_bias = 96 inter_quant_bias = 0
[mpeg @ 0x1930d60] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'out.mpg':
Metadata:
encoder : Lavf55.0.100
Stream #0:0, 0, 1/90000: Video: mpeg1video, yuv420p, 640x480, 1/25,
q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> mpeg1video)
Press [q] to stop, [?] for help
[force CFR for input from stream 0:0 @ 0x191a760] N:0 PTS:0 T:0.000000
POS:nan INTERLACED:0 -> PTS:0 T:0.000000
[force CFR for input from stream 0:0 @ 0x191a760] N:1 PTS:40025
T:1601.000000 POS:nan INTERLACED:0 -> PTS:1 T:0.040000
[mpeg @ 0x1930d60] First SCR: 0 First DTS: 45000
[force CFR for input from stream 0:0 @ 0x191a760] N:2 PTS:80003
T:3200.120000 POS:nan INTERLACED:0 -> PTS:2 T:0.080000
[force CFR for input from stream 0:0 @ 0x191a760] N:3 PTS:120005
T:4800.200000 POS:nan INTERLACED:0 -> PTS:3 T:0.120000
[force CFR for input from stream 0:0 @ 0x191a760] N:4 PTS:160003
T:6400.120000 POS:nan INTERLACED:0 -> PTS:4 T:0.160000
[force CFR for input from stream 0:0 @ 0x191a760] N:5 PTS:200026
T:8001.040000 POS:nan INTERLACED:0 -> PTS:5 T:0.200000
[force CFR for input from stream 0:0 @ 0x191a760] N:6 PTS:240028
T:9601.120000 POS:nan INTERLACED:0 -> PTS:6 T:0.240000
[force CFR for input from stream 0:0 @ 0x191a760] N:7 PTS:280028
T:11201.120000 POS:nan INTERLACED:0 -> PTS:7 T:0.280000
[force CFR for input from stream 0:0 @ 0x191a760] N:8 PTS:320029
T:12801.160000 POS:nan INTERLACED:0 -> PTS:8 T:0.320000
[force CFR for input from stream 0:0 @ 0x191a760] N:9 PTS:360030
T:14401.200000 POS:nan INTERLACED:0 -> PTS:9 T:0.360000
[force CFR for input from stream 0:0 @ 0x191a760] N:10 PTS:400029
T:16001.160000 POS:nan INTERLACED:0 -> PTS:10 T:0.400000
[force CFR for input from stream 0:0 @ 0x191a760] N:11 PTS:440029
T:17601.160000 POS:nan INTERLACED:0 -> PTS:11 T:0.440000
[force CFR for input from stream 0:0 @ 0x191a760] N:12 PTS:480031
T:19201.240000 POS:nan INTERLACED:0 -> PTS:12 T:0.480000
N:13 PTS:520031 T:20801.240000 POS:nan INTERLACED:0 -> PTS:13
T:0.520000.7kbits/s
[force CFR for input from stream 0:0 @ 0x191a760] N:14 PTS:560031
T:22401.240000 POS:nan INTERLACED:0 -> PTS:14 T:0.560000
[force CFR for input from stream 0:0 @ 0x191a760] N:15 PTS:600030
T:24001.200000 POS:nan INTERLACED:0 -> PTS:15 T:0.600000
[force CFR for input from stream 0:0 @ 0x191a760] N:16 PTS:640032
T:25601.280000 POS:nan INTERLACED:0 -> PTS:16 T:0.640000
[force CFR for input from stream 0:0 @ 0x191a760] N:17 PTS:680033
T:27201.320000 POS:nan INTERLACED:0 -> PTS:17 T:0.680000
[force CFR for input from stream 0:0 @ 0x191a760] N:18 PTS:720033
T:28801.320000 POS:nan INTERLACED:0 -> PTS:18 T:0.720000
[force CFR for input from stream 0:0 @ 0x191a760] N:19 PTS:760033
T:30401.320000 POS:nan INTERLACED:0 -> PTS:19 T:0.760000
[force CFR for input from stream 0:0 @ 0x191a760] N:20 PTS:800033
T:32001.320000 POS:nan INTERLACED:0 -> PTS:20 T:0.800000
[force CFR for input from stream 0:0 @ 0x191a760] N:21 PTS:840035
T:33601.400000 POS:nan INTERLACED:0 -> PTS:21 T:0.840000
[force CFR for input from stream 0:0 @ 0x191a760] N:22 PTS:880035
T:35201.400000 POS:nan INTERLACED:0 -> PTS:22 T:0.880000
[force CFR for input from stream 0:0 @ 0x191a760] N:23 PTS:920036
T:36801.440000 POS:nan INTERLACED:0 -> PTS:23 T:0.920000
[force CFR for input from stream 0:0 @ 0x191a760] N:24 PTS:960035
T:38401.400000 POS:nan INTERLACED:0 -> PTS:24 T:0.960000
[force CFR for input from stream 0:0 @ 0x191a760] N:25 PTS:1000037
T:40001.480000 POS:nan INTERLACED:0 -> PTS:25 T:1.000000
N:26 PTS:1040037 T:41601.480000 POS:nan INTERLACED:0 -> PTS:26
T:1.0400007kbits/s
[force CFR for input from stream 0:0 @ 0x191a760] N:27 PTS:1080015
T:43200.600000 POS:nan INTERLACED:0 -> PTS:27 T:1.080000
[force CFR for input from stream 0:0 @ 0x191a760] N:28 PTS:1120037
T:44801.480000 POS:nan INTERLACED:0 -> PTS:28 T:1.120000
[force CFR for input from stream 0:0 @ 0x191a760] N:29 PTS:1160038
T:46401.520000 POS:nan INTERLACED:0 -> PTS:29 T:1.160000
[force CFR for input from stream 0:0 @ 0x191a760] N:30 PTS:1200038
T:48001.520000 POS:nan INTERLACED:0 -> PTS:30 T:1.200000
[force CFR for input from stream 0:0 @ 0x191a760] N:31 PTS:1240038
T:49601.520000 POS:nan INTERLACED:0 -> PTS:31 T:1.240000
[force CFR for input from stream 0:0 @ 0x191a760] N:32 PTS:1280039
T:51201.560000 POS:nan INTERLACED:0 -> PTS:32 T:1.280000
[force CFR for input from stream 0:0 @ 0x191a760] N:33 PTS:1320039
T:52801.560000 POS:nan INTERLACED:0 -> PTS:33 T:1.320000
[force CFR for input from stream 0:0 @ 0x191a760] N:34 PTS:1360039
T:54401.560000 POS:nan INTERLACED:0 -> PTS:34 T:1.360000
[force CFR for input from stream 0:0 @ 0x191a760] N:35 PTS:1400040
T:56001.600000 POS:nan INTERLACED:0 -> PTS:35 T:1.400000
[force CFR for input from stream 0:0 @ 0x191a760] N:36 PTS:1440041
T:57601.640000 POS:nan INTERLACED:0 -> PTS:36 T:1.440000
[force CFR for input from stream 0:0 @ 0x191a760] N:37 PTS:1480041
T:59201.640000 POS:nan INTERLACED:0 -> PTS:37 T:1.480000
N:38 PTS:1520041 T:60801.640000 POS:nan INTERLACED:0 -> PTS:38
T:1.5200003kbits/s
[force CFR for input from stream 0:0 @ 0x191a760] N:39 PTS:1560042
T:62401.680000 POS:nan INTERLACED:0 -> PTS:39 T:1.560000
[force CFR for input from stream 0:0 @ 0x191a760] N:40 PTS:1600041
T:64001.640000 POS:nan INTERLACED:0 -> PTS:40 T:1.600000
[force CFR for input from stream 0:0 @ 0x191a760] N:41 PTS:1640021
T:65600.840000 POS:nan INTERLACED:0 -> PTS:41 T:1.640000
[force CFR for input from stream 0:0 @ 0x191a760] N:42 PTS:1680023
T:67200.920000 POS:nan INTERLACED:0 -> PTS:42 T:1.680000
[force CFR for input from stream 0:0 @ 0x191a760] N:43 PTS:1720022
T:68800.880000 POS:nan INTERLACED:0 -> PTS:43 T:1.720000
[force CFR for input from stream 0:0 @ 0x191a760] N:44 PTS:1760045
T:70401.800000 POS:nan INTERLACED:0 -> PTS:44 T:1.760000
[force CFR for input from stream 0:0 @ 0x191a760] N:45 PTS:1800045
T:72001.800000 POS:nan INTERLACED:0 -> PTS:45 T:1.800000
[force CFR for input from stream 0:0 @ 0x191a760] N:46 PTS:1840047
T:73601.880000 POS:nan INTERLACED:0 -> PTS:46 T:1.840000
[force CFR for input from stream 0:0 @ 0x191a760] N:47 PTS:1880045
T:75201.800000 POS:nan INTERLACED:0 -> PTS:47 T:1.880000
[force CFR for input from stream 0:0 @ 0x191a760] N:48 PTS:1920046
T:76801.840000 POS:nan INTERLACED:0 -> PTS:48 T:1.920000
[force CFR for input from stream 0:0 @ 0x191a760] N:49 PTS:1960047
T:78401.880000 POS:nan INTERLACED:0 -> PTS:49 T:1.960000
[force CFR for input from stream 0:0 @ 0x191a760] N:50 PTS:2000024
T:80000.960000 POS:nan INTERLACED:0 -> PTS:50 T:2.000000
N:51 PTS:2040047 T:81601.880000 POS:nan INTERLACED:0 -> PTS:51
T:2.0400002kbits/s
[force CFR for input from stream 0:0 @ 0x191a760] N:52 PTS:2080025
T:83201.000000 POS:nan INTERLACED:0 -> PTS:52 T:2.080000
[force CFR for input from stream 0:0 @ 0x191a760] N:53 PTS:2120049
T:84801.960000 POS:nan INTERLACED:0 -> PTS:53 T:2.120000
[force CFR for input from stream 0:0 @ 0x191a760] N:54 PTS:2160048
T:86401.920000 POS:nan INTERLACED:0 -> PTS:54 T:2.160000
[force CFR for input from stream 0:0 @ 0x191a760] N:55 PTS:2200049
T:88001.960000 POS:nan INTERLACED:0 -> PTS:55 T:2.200000
[force CFR for input from stream 0:0 @ 0x191a760] N:56 PTS:2240049
T:89601.960000 POS:nan INTERLACED:0 -> PTS:56 T:2.240000
[force CFR for input from stream 0:0 @ 0x191a760] N:57 PTS:2280050
T:91202.000000 POS:nan INTERLACED:0 -> PTS:57 T:2.280000
[force CFR for input from stream 0:0 @ 0x191a760] N:58 PTS:2320050
T:92802.000000 POS:nan INTERLACED:0 -> PTS:58 T:2.320000
[force CFR for input from stream 0:0 @ 0x191a760] N:59 PTS:2360049
T:94401.960000 POS:nan INTERLACED:0 -> PTS:59 T:2.360000
[force CFR for input from stream 0:0 @ 0x191a760] N:60 PTS:2400051
T:96002.040000 POS:nan INTERLACED:0 -> PTS:60 T:2.400000
[force CFR for input from stream 0:0 @ 0x191a760] N:61 PTS:2440051
T:97602.040000 POS:nan INTERLACED:0 -> PTS:61 T:2.440000
[force CFR for input from stream 0:0 @ 0x191a760] N:62 PTS:2480051
T:99202.040000 POS:nan INTERLACED:0 -> PTS:62 T:2.480000
[force CFR for input from stream 0:0 @ 0x191a760] N:63 PTS:2520052
T:100802.080000 POS:nan INTERLACED:0 -> PTS:63 T:2.520000
N:64 PTS:2560030 T:102401.200000 POS:nan INTERLACED:0 -> PTS:64
T:2.560000kbits/s
[force CFR for input from stream 0:0 @ 0x191a760] N:65 PTS:2600054
T:104002.160000 POS:nan INTERLACED:0 -> PTS:65 T:2.600000
[force CFR for input from stream 0:0 @ 0x191a760] N:66 PTS:2640054
T:105602.160000 POS:nan INTERLACED:0 -> PTS:66 T:2.640000
[force CFR for input from stream 0:0 @ 0x191a760] N:67 PTS:2680054
T:107202.160000 POS:nan INTERLACED:0 -> PTS:67 T:2.680000
[force CFR for input from stream 0:0 @ 0x191a760] N:68 PTS:2720055
T:108802.200000 POS:nan INTERLACED:0 -> PTS:68 T:2.720000
[force CFR for input from stream 0:0 @ 0x191a760] N:69 PTS:2760055
T:110402.200000 POS:nan INTERLACED:0 -> PTS:69 T:2.760000
[force CFR for input from stream 0:0 @ 0x191a760] N:70 PTS:2800056
T:112002.240000 POS:nan INTERLACED:0 -> PTS:70 T:2.800000
[force CFR for input from stream 0:0 @ 0x191a760] N:71 PTS:2840034
T:113601.360000 POS:nan INTERLACED:0 -> PTS:71 T:2.840000
[force CFR for input from stream 0:0 @ 0x191a760] N:72 PTS:2880056
T:115202.240000 POS:nan INTERLACED:0 -> PTS:72 T:2.880000
[force CFR for input from stream 0:0 @ 0x191a760] N:73 PTS:2920057
T:116802.280000 POS:nan INTERLACED:0 -> PTS:73 T:2.920000
[force CFR for input from stream 0:0 @ 0x191a760] N:74 PTS:2960057
T:118402.280000 POS:nan INTERLACED:0 -> PTS:74 T:2.960000
[force CFR for input from stream 0:0 @ 0x191a760] N:75 PTS:3000060
T:120002.400000 POS:nan INTERLACED:0 -> PTS:75 T:3.000000
[force CFR for input from stream 0:0 @ 0x191a760] N:76 PTS:3040058
T:121602.320000 POS:nan INTERLACED:0 -> PTS:76 T:3.040000
N:77 PTS:3080036 T:123201.440000 POS:nan INTERLACED:0 -> PTS:77
T:3.080000kbits/s
[force CFR for input from stream 0:0 @ 0x191a760] N:78 PTS:3120059
T:124802.360000 POS:nan INTERLACED:0 -> PTS:78 T:3.120000
[force CFR for input from stream 0:0 @ 0x191a760] N:79 PTS:3160059
T:126402.360000 POS:nan INTERLACED:0 -> PTS:79 T:3.160000
[force CFR for input from stream 0:0 @ 0x191a760] N:80 PTS:3200060
T:128002.400000 POS:nan INTERLACED:0 -> PTS:80 T:3.200000
[force CFR for input from stream 0:0 @ 0x191a760] N:81 PTS:3240060
T:129602.400000 POS:nan INTERLACED:0 -> PTS:81 T:3.240000
[force CFR for input from stream 0:0 @ 0x191a760] N:82 PTS:3280060
T:131202.400000 POS:nan INTERLACED:0 -> PTS:82 T:3.280000
[force CFR for input from stream 0:0 @ 0x191a760] N:83 PTS:3320061
T:132802.440000 POS:nan INTERLACED:0 -> PTS:83 T:3.320000
[force CFR for input from stream 0:0 @ 0x191a760] N:84 PTS:3360062
T:134402.480000 POS:nan INTERLACED:0 -> PTS:84 T:3.360000
[force CFR for input from stream 0:0 @ 0x191a760] N:85 PTS:3400062
T:136002.480000 POS:nan INTERLACED:0 -> PTS:85 T:3.400000
[force CFR for input from stream 0:0 @ 0x191a760] N:86 PTS:3440062
T:137602.480000 POS:nan INTERLACED:0 -> PTS:86 T:3.440000
frame= 87 fps= 25 q=30.4 Lsize= 362kB time=00:00:03.44 bitrate=
862.1kbits/s
video:359kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.712646%
}}}
'''1.2 ffmpeg -y -loglevel debug -f v4l2 -s vga -i /dev/video0 out.mpg'''
{{{
ffmpeg version N-50974-g7d15cd4 Copyright (c) 2000-2013 the FFmpeg
developers
built on Mar 19 2013 12:36:50 with gcc 4.7.2 (GCC) 20121109 (Red Hat
4.7.2-8)
configuration: --prefix=/usr/local --enable-ffplay
libavutil 52. 19.100 / 52. 19.100
libavcodec 55. 0.100 / 55. 0.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 45.104 / 3. 45.104
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
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 '-i' ... matched as input file with argument '/dev/video0'.
Reading option 'out.mpg' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
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.
Successfully parsed a group of options.
Opening an input file: /dev/video0.
[video4linux2,v4l2 @ 0x268d0e0] fd:3 capabilities:5010015
[video4linux2,v4l2 @ 0x268d0e0] Selecting input_channel: 0
[video4linux2,v4l2 @ 0x268d0e0] input_channel: 0, input_name: Television
[video4linux2,v4l2 @ 0x268d0e0] The V4L2 driver is using the interlaced
mode
[video4linux2,v4l2 @ 0x268d0e0] Current standard: PAL-BG, id: 7,
frameperiod: 1/25
[video4linux2,v4l2 @ 0x268d0e0] All info found
[video4linux2,v4l2 @ 0x268d0e0] Estimating duration from bitrate, this may
be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 1363693217.386804, bitrate: 92160 kb/s
Stream #0:0, 1, 1/1000000: Video: rawvideo (I420 / 0x30323449),
yuv420p, 640x480, 1/1000000, 92160 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k
tbc
Successfully opened the file.
Parsing a group of options: output file out.mpg.
Successfully parsed a group of options.
Opening an output file: out.mpg.
Successfully opened the file.
[buffer @ 0x26864a0] Setting entry with key 'video_size' to value
'640x480'
[buffer @ 0x26864a0] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 0x26864a0] Setting entry with key 'time_base' to value
'1/1000000'
[buffer @ 0x26864a0] Setting entry with key 'pixel_aspect' to value '0/1'
[buffer @ 0x26864a0] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0x26864a0] Setting entry with key 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0x267e560] w:640 h:480 pixfmt:yuv420p
tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
[mpeg1video @ 0x268ef20] detected 4 logical cores
[mpeg1video @ 0x268ef20] intra_quant_bias = 96 inter_quant_bias = 0
[mpeg @ 0x268e9c0] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'out.mpg':
Metadata:
encoder : Lavf55.0.100
Stream #0:0, 0, 1/90000: Video: mpeg1video, yuv420p, 640x480, 1/25,
q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> mpeg1video)
Press [q] to stop, [?] for help
[mpeg @ 0x268e9c0] First SCR: 0 First DTS: 45000
frame= 216 fps= 25 q=31.0 Lsize= 598kB time=00:00:08.60 bitrate=
569.6kbits/s
video:592kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.973371%
}}}
== 2. compiled with --enable-libv4l2 ==
'''2.1 ffmpeg -y -loglevel debug -f v4l2 -s vga -r 25 -i /dev/video0
out.mpg'''
{{{
ffmpeg version N-50974-g7d15cd4 Copyright (c) 2000-2013 the FFmpeg
developers
built on Mar 16 2013 13:14:09 with gcc 4.7.2 (GCC) 20121109 (Red Hat
4.7.2-8)
configuration: --prefix=/usr/local --enable-ffplay --enable-libv4l2
libavutil 52. 19.100 / 52. 19.100
libavcodec 55. 0.100 / 55. 0.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 45.104 / 3. 45.104
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
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.mpg' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
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 @ 0x25d4180] fd:4 capabilities:5010015
[video4linux2,v4l2 @ 0x25d4180] Selecting input_channel: 0
[video4linux2,v4l2 @ 0x25d4180] input_channel: 0, input_name: Television
[video4linux2,v4l2 @ 0x25d4180] The V4L2 driver is using the interlaced
mode
[video4linux2,v4l2 @ 0x25d4180] Current standard: PAL-BG, id: 7,
frameperiod: 1/25
[video4linux2,v4l2 @ 0x25d4180] The driver does not allow to change time
per frame
[video4linux2,v4l2 @ 0x25d4180] All info found
[video4linux2,v4l2 @ 0x25d4180] Estimating duration from bitrate, this may
be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 1363692612.900232, bitrate: 92160 kb/s
Stream #0:0, 1, 1/1000000: Video: rawvideo (I420 / 0x30323449),
yuv420p, 640x480, 1/1000000, 92160 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k
tbc
Successfully opened the file.
Parsing a group of options: output file out.mpg.
Successfully parsed a group of options.
Opening an output file: out.mpg.
Successfully opened the file.
[buffer @ 0x25be6e0] Setting entry with key 'video_size' to value
'640x480'
[buffer @ 0x25be6e0] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 0x25be6e0] Setting entry with key 'time_base' to value '1/25'
[buffer @ 0x25be6e0] Setting entry with key 'pixel_aspect' to value '0/1'
[buffer @ 0x25be6e0] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0x25be6e0] Setting entry with key 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0x25d4100] 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 @ 0x25d4100] TB:0.040000
FRAME_RATE:25.000000 SAMPLE_RATE:nan
[mpeg1video @ 0x25d9c40] detected 4 logical cores
[mpeg1video @ 0x25d9c40] intra_quant_bias = 96 inter_quant_bias = 0
[mpeg @ 0x25d9700] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'out.mpg':
Metadata:
encoder : Lavf55.0.100
Stream #0:0, 0, 1/90000: Video: mpeg1video, yuv420p, 640x480, 1/25,
q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> mpeg1video)
Press [q] to stop, [?] for help
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:0 PTS:0 T:0.000000
POS:nan INTERLACED:0 -> PTS:0 T:0.000000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:1 PTS:40024
T:1600.960000 POS:nan INTERLACED:0 -> PTS:1 T:0.040000
[mpeg @ 0x25d9700] First SCR: 0 First DTS: 45000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:2 PTS:80023
T:3200.920000 POS:nan INTERLACED:0 -> PTS:2 T:0.080000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:3 PTS:120028
T:4801.120000 POS:nan INTERLACED:0 -> PTS:3 T:0.120000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:4 PTS:160026
T:6401.040000 POS:nan INTERLACED:0 -> PTS:4 T:0.160000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:5 PTS:200027
T:8001.080000 POS:nan INTERLACED:0 -> PTS:5 T:0.200000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:6 PTS:240027
T:9601.080000 POS:nan INTERLACED:0 -> PTS:6 T:0.240000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:7 PTS:280027
T:11201.080000 POS:nan INTERLACED:0 -> PTS:7 T:0.280000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:8 PTS:320006
T:12800.240000 POS:nan INTERLACED:0 -> PTS:8 T:0.320000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:9 PTS:360006
T:14400.240000 POS:nan INTERLACED:0 -> PTS:9 T:0.360000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:10 PTS:400028
T:16001.120000 POS:nan INTERLACED:0 -> PTS:10 T:0.400000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:11 PTS:440029
T:17601.160000 POS:nan INTERLACED:0 -> PTS:11 T:0.440000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:12 PTS:480029
T:19201.160000 POS:nan INTERLACED:0 -> PTS:12 T:0.480000
N:13 PTS:520030 T:20801.200000 POS:nan INTERLACED:0 -> PTS:13
T:0.520000.7kbits/s
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:14 PTS:560030
T:22401.200000 POS:nan INTERLACED:0 -> PTS:14 T:0.560000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:15 PTS:600031
T:24001.240000 POS:nan INTERLACED:0 -> PTS:15 T:0.600000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:16 PTS:640030
T:25601.200000 POS:nan INTERLACED:0 -> PTS:16 T:0.640000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:17 PTS:680010
T:27200.400000 POS:nan INTERLACED:0 -> PTS:17 T:0.680000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:18 PTS:720032
T:28801.280000 POS:nan INTERLACED:0 -> PTS:18 T:0.720000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:19 PTS:760011
T:30400.440000 POS:nan INTERLACED:0 -> PTS:19 T:0.760000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:20 PTS:800032
T:32001.280000 POS:nan INTERLACED:0 -> PTS:20 T:0.800000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:21 PTS:840034
T:33601.360000 POS:nan INTERLACED:0 -> PTS:21 T:0.840000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:22 PTS:880033
T:35201.320000 POS:nan INTERLACED:0 -> PTS:22 T:0.880000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:23 PTS:920034
T:36801.360000 POS:nan INTERLACED:0 -> PTS:23 T:0.920000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:24 PTS:960035
T:38401.400000 POS:nan INTERLACED:0 -> PTS:24 T:0.960000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:25 PTS:1000035
T:40001.400000 POS:nan INTERLACED:0 -> PTS:25 T:1.000000
N:26 PTS:1040036 T:41601.440000 POS:nan INTERLACED:0 -> PTS:26
T:1.0400005kbits/s
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:27 PTS:1080036
T:43201.440000 POS:nan INTERLACED:0 -> PTS:27 T:1.080000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:28 PTS:1120037
T:44801.480000 POS:nan INTERLACED:0 -> PTS:28 T:1.120000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:29 PTS:1160036
T:46401.440000 POS:nan INTERLACED:0 -> PTS:29 T:1.160000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:30 PTS:1200037
T:48001.480000 POS:nan INTERLACED:0 -> PTS:30 T:1.200000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:31 PTS:1240038
T:49601.520000 POS:nan INTERLACED:0 -> PTS:31 T:1.240000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:32 PTS:1280037
T:51201.480000 POS:nan INTERLACED:0 -> PTS:32 T:1.280000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:33 PTS:1320038
T:52801.520000 POS:nan INTERLACED:0 -> PTS:33 T:1.320000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:34 PTS:1360039
T:54401.560000 POS:nan INTERLACED:0 -> PTS:34 T:1.360000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:35 PTS:1400039
T:56001.560000 POS:nan INTERLACED:0 -> PTS:35 T:1.400000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:36 PTS:1440039
T:57601.560000 POS:nan INTERLACED:0 -> PTS:36 T:1.440000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:37 PTS:1480040
T:59201.600000 POS:nan INTERLACED:0 -> PTS:37 T:1.480000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:38 PTS:1520041
T:60801.640000 POS:nan INTERLACED:0 -> PTS:38 T:1.520000
N:39 PTS:1560042 T:62401.680000 POS:nan INTERLACED:0 -> PTS:39
T:1.5600006kbits/s
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:40 PTS:1600042
T:64001.680000 POS:nan INTERLACED:0 -> PTS:40 T:1.600000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:41 PTS:1640042
T:65601.680000 POS:nan INTERLACED:0 -> PTS:41 T:1.640000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:42 PTS:1680024
T:67200.960000 POS:nan INTERLACED:0 -> PTS:42 T:1.680000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:43 PTS:1720042
T:68801.680000 POS:nan INTERLACED:0 -> PTS:43 T:1.720000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:44 PTS:1760042
T:70401.680000 POS:nan INTERLACED:0 -> PTS:44 T:1.760000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:45 PTS:1800044
T:72001.760000 POS:nan INTERLACED:0 -> PTS:45 T:1.800000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:46 PTS:1840044
T:73601.760000 POS:nan INTERLACED:0 -> PTS:46 T:1.840000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:47 PTS:1880044
T:75201.760000 POS:nan INTERLACED:0 -> PTS:47 T:1.880000
[force CFR for input from stream 0:0 @ 0x25bf2a0] N:48 PTS:1920045
T:76801.800000 POS:nan INTERLACED:0 -> PTS:48 T:1.920000
frame= 49 fps= 25 q=10.5 Lsize= 212kB time=00:00:01.92 bitrate=
904.5kbits/s
video:209kB audio:0kB subtitle:0 global headers:0kB muxing overhead
1.456739%
Received signal 2: terminating.
}}}
'''2.2 ffmpeg -y -loglevel debug -f v4l2 -s vga -i /dev/video0 out.mpg'''
{{{
ffmpeg version N-50974-g7d15cd4 Copyright (c) 2000-2013 the FFmpeg
developers
built on Mar 16 2013 13:14:09 with gcc 4.7.2 (GCC) 20121109 (Red Hat
4.7.2-8)
configuration: --prefix=/usr/local --enable-ffplay --enable-libv4l2
libavutil 52. 19.100 / 52. 19.100
libavcodec 55. 0.100 / 55. 0.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 45.104 / 3. 45.104
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
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 '-i' ... matched as input file with argument '/dev/video0'.
Reading option 'out.mpg' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
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.
Successfully parsed a group of options.
Opening an input file: /dev/video0.
[video4linux2,v4l2 @ 0x304e0e0] fd:4 capabilities:5010015
[video4linux2,v4l2 @ 0x304e0e0] Selecting input_channel: 0
[video4linux2,v4l2 @ 0x304e0e0] input_channel: 0, input_name: Television
[video4linux2,v4l2 @ 0x304e0e0] The V4L2 driver is using the interlaced
mode
[video4linux2,v4l2 @ 0x304e0e0] Current standard: PAL-BG, id: 7,
frameperiod: 1/25
[video4linux2,v4l2 @ 0x304e0e0] All info found
[video4linux2,v4l2 @ 0x304e0e0] Estimating duration from bitrate, this may
be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 1363692796.662234, bitrate: 92160 kb/s
Stream #0:0, 1, 1/1000000: Video: rawvideo (I420 / 0x30323449),
yuv420p, 640x480, 1/1000000, 92160 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k
tbc
Successfully opened the file.
Parsing a group of options: output file out.mpg.
Successfully parsed a group of options.
Opening an output file: out.mpg.
Successfully opened the file.
[buffer @ 0x30474a0] Setting entry with key 'video_size' to value
'640x480'
[buffer @ 0x30474a0] Setting entry with key 'pix_fmt' to value '0'
[buffer @ 0x30474a0] Setting entry with key 'time_base' to value
'1/1000000'
[buffer @ 0x30474a0] Setting entry with key 'pixel_aspect' to value '0/1'
[buffer @ 0x30474a0] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0x30474a0] Setting entry with key 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0x303f560] w:640 h:480 pixfmt:yuv420p
tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
[mpeg1video @ 0x3053740] detected 4 logical cores
[mpeg1video @ 0x3053740] intra_quant_bias = 96 inter_quant_bias = 0
[mpeg @ 0x30531e0] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'out.mpg':
Metadata:
encoder : Lavf55.0.100
Stream #0:0, 0, 1/90000: Video: mpeg1video, yuv420p, 640x480, 1/25,
q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> mpeg1video)
Press [q] to stop, [?] for help
[mpeg @ 0x30531e0] First SCR: 0 First DTS: 45000
frame= 166 fps= 25 q=31.0 Lsize= 424kB time=00:00:06.60 bitrate=
526.3kbits/s
video:421kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.685030%
Received signal 2: terminating.
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1570#comment:26>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list