Portál AbcLinuxu, 10. května 2025 05:11

Dotaz: mplayer, kamerka, ukladani a rozliseni

Gilhad avatar 28.11.2006 15:07 Gilhad | skóre: 20 | blog: gilhadoviny
mplayer, kamerka, ukladani a rozliseni
Přečteno: 244×
Odpovědět | Admin
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)
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

Josef Kufner avatar 28.11.2006 22:22 Josef Kufner | skóre: 70
Rozbalit Rozbalit vše Re: mplayer, kamerka, ukladani a rozliseni
Odpovědět | | Sbalit | Link | Blokovat | Admin
Zkus:
spcaview -o pokus.avi -s 640x480
Hello world ! Segmentation fault (core dumped)
Gilhad avatar 29.11.2006 12:48 Gilhad | skóre: 20 | blog: gilhadoviny
Rozbalit Rozbalit vše Re: mplayer, kamerka, ukladani a rozliseni
S rozlisenim 640x480 spcaview udela okno s cimsi zelenym v horni casti (teda ony to jsou asi tak dve obrazy vedle sebe s dolni casti zmrsenou), pricemz pise mraky "cmcapture: Invalid argument"

S rozlisenim 320x240 to uz ukazuje dobre, ale ulozeny soubor neprehraje (cerne okno po prislusnou dobu) a mplayer to okno ani neotevre, i kdyz prislusnou dobu dole pocita framy .... prikladam zaznam jedne takove session ...
$ 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)

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.