Portál AbcLinuxu, 10. května 2025 05:11
mam USB kamerku, dokazu ji pripojit, podivat se v mplayeru na jeji vystup, ale jen v rosliseni 160x120, pritom by mela umet i vic ... spcaview mi hlasi Available Resolutions width 640 heigth 480 native Available Resolutions width 320 heigth 240 native * Available Resolutions width 160 heigth 120 native (ale zase veci ulozene prez nej se mi neprehraji v mplayeru) Potreboval bych poradit, jak ukladat data v nejakem rozumnem rozliseni --------------- $ spcaview -o pokus.avi Spcaview version: 1.1.5 date: 12:12:2005 (C) mxhaard@magic.fr Initializing SDL. SDL initialized. bpp 3 format 15 Using video device /dev/video0. Initializing v4l. **************** PROBING CAMERA ********************* Camera found: Sonix sn9c10x + Pas106 sensor Bridge found: SN9C102 Bridge find SN9C102 number 11 StreamId: GBRG Camera quality 3 autoexpo 1 Timeframe 0 Bridge find SN9C102 number 11 Available Resolutions width 640 heigth 480 native Available Resolutions width 320 heigth 240 native * Available Resolutions width 160 heigth 120 native ***************************************************** grabbing method default MMAP asked VIDIOCGMBUF size 2457616 frames 2 offets[0]=0 offsets[1]=1228808 VIDIOCGPICT brightnes=32768 hue=32768 color=32768 contrast=32768 whiteness=0 depth=12 palette=15 VIDIOCSPICT brightness=32768 hue=32768 color=32768 contrast=32768 whiteness=0 depth=24 palette=15 Stop asked Used 4446ms for 97 images => 45ms/image 21fps. Quiting SDL. Decoded frames:97 Average decode time: 5.000000 unmapping closing closed close avi Destroy Picture thread ... Quiting.... ----------------------------------------------------- mplayer -tv driver=v4l:width=640:height=480 tv:// MPlayer dev-SVN-r18901-3.4.6 (C) 2000-2006 MPlayer Team CPU: AMD Athlon(tm) processor (Family: 6, Model: 4, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts. Playing tv://. Selected driver: v4l name: Video 4 Linux input author: Alex Beregszaszi comment: under development Selected device: Sonix sn9c10x + Pas106 sensor Capabilites: capture Device type: 1 Supported sizes: 160x120 => 352x288 Inputs: 1 0: SN9C102: (tuner:0, norm:pal) Using input 'SN9C102' Unable to set requested width: 640 Unable to set requested height: 480 Selected input hasn't got a tuner! ========================================================================== Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 160 x 120 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO: [xv] 160x120 => 160x120 Planar YV12 Selected video codec: [rawyv12] vfm: raw (RAW YV12) ========================================================================== Audio: no sound Starting playback... MJP: returning! 0% 0% 0.0% 0 0 Exiting... (Quit)
spcaview -o pokus.avi -s 640x480
$ spcaview -o pokus.avi -s 320x240 Spcaview version: 1.1.5 date: 12:12:2005 (C) mxhaard@magic.fr size width: 320 height: 240 Initializing SDL. SDL initialized. bpp 3 format 15 Using video device /dev/video0. Initializing v4l. **************** PROBING CAMERA ********************* Camera found: Sonix sn9c10x + Pas106 sensor Bridge found: SN9C102 Bridge find SN9C102 number 11 StreamId: GBRG Camera quality 3 autoexpo 1 Timeframe 0 Bridge find SN9C102 number 11 Available Resolutions width 640 heigth 480 native Available Resolutions width 320 heigth 240 native * Available Resolutions width 160 heigth 120 native ***************************************************** grabbing method default MMAP asked VIDIOCGMBUF size 2457616 frames 2 offets[0]=0 offsets[1]=1228808 VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0 depth=12 palette=15 VIDIOCSPICT brightness=32768 hue=0 color=0 contrast=32768 whiteness=0 depth=24 palette=15 Stop asked Used 11233ms for 245 images => 45ms/image 21fps. Quiting SDL. Decoded frames:245 Average decode time: 7.000000 unmapping closing closed close avi Destroy Picture thread ... Quiting.... $ spcaview -i pokus.avi Spcaview version: 1.1.5 date: 12:12:2005 (C) mxhaard@magic.fr Initializing SDL. SDL initialized. Using pokus.avi avifile frame: 235 width: 320 height: 240 framerate : 21.810727 audio rate: 0 audio bits: 0 audio format: 0 codec: MJPG bpp 3 format 21 Frame time 45 ms $ mplayer pokus.avi MPlayer dev-SVN-r18901-3.4.6 (C) 2000-2006 MPlayer Team CPU: AMD Athlon(tm) processor (Family: 6, Model: 4, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx Playing pokus.avi. AVI file format detected. AVI_NI: No audio stream found -> no sound. AVI: No audio stream found -> no sound. VIDEO: [MJPG] 320x240 24bpp 21.811 fps 20100.8 kbps (2453.7 kbyte/s) ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder) ========================================================================== Audio: no sound Starting playback... V: 10.7 235/235 2% 0% 0.0% 0 0 Exiting... (End of file)
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.