[FFmpeg-user] Unable to capture video from a cx231xx card on ubuntu 14.04
Mike Makowski
mak66345 at gmail.com
Fri Jul 4 20:56:52 CEST 2014
Rebuilt ffmpeg using instructions at
https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
The problem persists: when camcorder is turned on, video capture appears to
stop after a single frame, frame rate decreases, diagnostics stop updating.
Upon turning off camcorder, capture resumes.
./ffmpeg -loglevel debug -t 7 -y -f v4l2 -i /dev/video1 rawvideo.nut
ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
built on Jul 4 2014 11:02:30 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
configuration: --prefix=/home/user/ffmpeg_build
--extra-cflags=-I/home/user/ffmpeg_build/include
--extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin
--extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libfreetype --enable-libmp3lame --enable-libopus
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-nonfree --enable-x11grab
libavutil 52. 90.101 / 52. 90.101
libavcodec 55. 68.100 / 55. 68.100
libavformat 55. 45.100 / 55. 45.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 10.100 / 4. 10.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-t' ... matched as option 't' (record or transcode
"duration" seconds of audio/video) with argument '7'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with
argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'v4l2'.
Reading option '-i' ... matched as input file with argument '/dev/video1'.
Reading option 'rawvideo.nut' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file /dev/video1.
Applying option t (record or transcode "duration" seconds of audio/video)
with argument 7.
Applying option f (force format) with argument v4l2.
Successfully parsed a group of options.
Opening an input file: /dev/video1.
[video4linux2,v4l2 @ 0x3872b60] fd:3 capabilities:85000011
[video4linux2,v4l2 @ 0x3872b60] Current input_channel: 0, input_name:
Composite1, input_std: ffffff
[video4linux2,v4l2 @ 0x3872b60] Current standard: PAL, id: ff, frameperiod:
1/25
[video4linux2,v4l2 @ 0x3872b60] Querying the device for the current frame
size
[video4linux2,v4l2 @ 0x3872b60] Setting frame size to 720x576
[video4linux2,v4l2 @ 0x3872b60] Trying to set codec:rawvideo pix_fmt:yuv420p
Last message repeated 1 times
[video4linux2,v4l2 @ 0x3872b60] Trying to set codec:rawvideo pix_fmt:yuv422p
[video4linux2,v4l2 @ 0x3872b60] Trying to set codec:rawvideo pix_fmt:yuyv422
[video4linux2,v4l2 @ 0x3872b60] The V4L2 driver is using the interlaced mode
[video4linux2,v4l2 @ 0x3872b60] All info found
Input #0, video4linux2,v4l2, from '/dev/video1':
Duration: N/A, start: 313134.452399, bitrate: 165888 kb/s
Stream #0:0, 1, 1/1000000: Video: rawvideo (YUY2 / 0x32595559),
yuyv422, 720x576, 1/1000000, 165888 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k
tbc
Successfully opened the file.
Parsing a group of options: output file rawvideo.nut.
Successfully parsed a group of options.
Opening an output file: rawvideo.nut.
Successfully opened the file.
detected 8 logical cores
[graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'video_size' to value
'720x576'
[graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'pix_fmt' to value '1'
[graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'time_base' to value
'1/1000000'
[graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'pixel_aspect' to value
'0/1'
[graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'sws_param' to value
'flags=2'
[graph 0 input from stream 0:0 @ 0x3869ce0] Setting 'frame_rate' to value
'25/1'
[graph 0 input from stream 0:0 @ 0x3869ce0] w:720 h:576 pixfmt:yuyv422
tb:1/1000000 fr:25/1 sar:0/1 sws_param:flags=2
[format @ 0x3863720] compat: called with args=[yuv420p]
[format @ 0x3863720] Setting 'pix_fmts' to value 'yuv420p'
[auto-inserted scaler 0 @ 0x3863ec0] Setting 'flags' to value '0x4'
[auto-inserted scaler 0 @ 0x3863ec0] w:iw h:ih flags:'0x4' interl:0
[format @ 0x3863720] auto-inserting filter 'auto-inserted scaler 0' between
the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 0x3861e00] query_formats: 5 queried, 3 merged, 1 already
done, 0 delayed
[auto-inserted scaler 0 @ 0x3863ec0] w:720 h:576 fmt:yuyv422 sar:0/1 ->
w:720 h:576 fmt:yuv420p sar:0/1 flags:0x4
[mpeg4 @ 0x38763a0] intra_quant_bias = 0 inter_quant_bias = -64
[nut @ 0x3874620] Using AVStream.codec.time_base as a timebase hint to the
muxer is deprecated. Set AVStream.time_base instead.
Output #0, nut, to 'rawvideo.nut':
Metadata:
encoder : Lavf55.45.100
Stream #0:0, 0, 1/51200: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p,
720x576, 1/25, q=2-31, 200 kb/s, 25 fps, 51200 tbn, 25 tbc
Metadata:
encoder : Lavc55.68.100 mpeg4
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
[output stream 0:0 @ 0x38632a0] EOF on sink link output stream
0:0:default.its/s
No more output streams to write to, finishing.
frame= 69 fps=9.6 q=1.6 Lsize= 247kB time=00:00:05.36 bitrate=
377.7kbits/s
video:246kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.290503%
Input file #0 (/dev/video1):
Input stream #0:0 (video): 70 packets read (58060800 bytes); 70 frames
decoded;
Total: 70 packets (58060800 bytes) demuxed
Output file #0 (rawvideo.nut):
Output stream #0:0 (video): 69 frames encoded; 69 packets muxed (252321
bytes);
Total: 69 packets (252321 bytes) muxed
70 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x3880e20] Statistics: 0 seeks, 76 writeouts
Any other suggestions
On Wed, Jul 2, 2014 at 10:10 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Mike Makowski <mak66345 <at> gmail.com> writes:
>
> > ffmpeg -f rawvideo -i /dev/video1
>
> This cannot work, the syntax is -f v4l2 -i /dev/video1
>
> > ffmpeg version 1.2.6-7:1.2.6-1~trusty1
>
> Please test current FFmpeg git head before asking for
> support here.
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list