[FFmpeg-user] ffmpeg stream copy fail when video size 1280x720
Soho Soho123
soho123.2012 at gmail.com
Tue Feb 19 14:58:18 CET 2013
---------- Forwarded message ----------
From: Soho Soho123 <soho123.2012 at gmail.com>
Date: 2013/2/19
Subject: ffmpeg stream copy fail when video size 1280x720
To: ffserver-user at ffmpeg.org
hi all,
I have install v4l2-ctl in my target system,
the output of v4l2-ctl --list-formats-ext is :
==================================
# v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUV 4:2:2 (YUYV)
Size: Discrete 1280x720
Interval: Discrete 0.100 s (10.000 fps)
Size: Discrete 160x120
Interval: Discrete 0.033 s (30.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033 s (30.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.033 s (30.000 fps)
Size: Discrete 1280x800
Interval: Discrete 0.100 s (10.000 fps)
Index : 1
Type : Video Capture
Pixel Format: 'MJPG' (compressed)
Name : MJPEG
Size: Discrete 1280x720
Interval: Discrete 0.033 s (30.000 fps)
Interval: Discrete 0.040 s (25.000 fps)
Interval: Discrete 0.050 s (20.000 fps)
Interval: Discrete 0.067 s (15.000 fps)
Size: Discrete 160x120
Interval: Discrete 0.033 s (30.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033 s (30.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.033 s (30.000 fps)
Size: Discrete 1280x800
Interval: Discrete 0.033 s (30.000 fps)
Interval: Discrete 0.040 s (25.000 fps)
Interval: Discrete 0.050 s (20.000 fps)
Interval: Discrete 0.067 s (15.000 fps)
=================================
The webcam can support 1280x720, 30fps.
but the ffmpeg command can not work, since it will cause out-of-memory
ffmpeg -f video4linux2 -r 30 -s 1280x720 -input_format mjpeg -i
/dev/video0 -c copy http://localhost:8090/feed1.ffm
Does anyone use 1280x720 by ffmpeg?
Does anyone have idea about out-of-memory when 1280x720?
More information about the ffmpeg-user
mailing list