[olug] Video Capture Project Update
Joseph Gulizia
joseph.gulizia at gmail.com
Mon Jun 4 21:41:38 UTC 2012
Latest attempt:
joe at joe-SCOLA:~$ mencoder tv:// -tv
driver=v4l2:norm=NTSC:device=/dev/video0:input=0:quality=0:width=720:height=576:brightness=20:saturation=20:alsa:adevice=hw.0,0:input=0:
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2000:vratetol=32000:mbd=2 -oac
mp3lame -lameopts fast -vf crop=636:420:2:2,denoise3d=4:3:6,harddup
\-noskip -noencodedups -skiplimit 0 -endpos 60 $1 -of avi -ofps 30000/1001
-o test5.avi
MEncoder svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
success: format: 9 data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: Pinnacle Dazzle DVC 90/100/101/
Capabilities: video capture audio read/write streaming
supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 =
NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 =
PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 =
SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc;
inputs: 0 = Composite1; 1 = S-Video;
Current input: 0
Current format: YUYV
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
Selected input hasn't got a tuner!
[V] filefmt:9 fourcc:0x32595559 size:720x480 fps:29.970 ftime:=0.0334
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [denoise3d=4:3:6]
Opening video filter: [crop w=636 h=420 x=2 y=2]
Crop: 636 x 420, 2 ; 2
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0xb6b6aa20]using unscaled yuyv422 -> yuv420p special converter
videocodec: libavcodec (636x420 fourcc=34504d46 [FMP4])
[VE_LAVC] High quality encoding selected (non-realtime)!
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Forcing audio preload to 0, max pts correction to 0.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
-----------------------------output truncated------------------------
too bad - dropping audio frame !
Pos: 59.7s 1790f ( 0%) 29.93fps Trem: 0min 0mb A-V:0.000 [2028:0]
too bad - dropping audio frame !
Pos: 59.8s 1792f ( 0%) 29.92fps Trem: 0min 0mb A-V:0.000 [2028:0]
too bad - dropping audio frame !
Pos: 59.9s 1795f ( 0%) 29.93fps Trem: 0min 0mb A-V:0.000 [2028:0]
too bad - dropping audio frame !
Pos: 60.0s 1798f ( 0%) 29.93fps Trem: 0min 0mb A-V:0.000 [2027:0]
too bad - dropping audio frame !
Pos: 60.0s 1799f ( 0%) 29.93fps Trem: 0min 0mb A-V:0.000 [2027:0]
Flushing video frames.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
Video stream: 2027.805 kbit/s (253475 B/s) size: 15215287 bytes 60.027
secs 1799 frames
too bad - dropping audio frame !
v4l2: 1801 frames successfully processed, 0 frames dropped.
On Mon, Jun 4, 2012 at 1:54 PM, Joseph Gulizia <joseph.gulizia at gmail.com>wrote:
> Mencoder output:
>
>
> joe at joe-SCOLA:~$ mencoder tv:// -tv
> driver=v4l2:norm=NTSC:input=0:amode=0:width=640:height=480:device=/dev/video0
> MEncoder svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
>
> Exiting... (No output file specified, please see the -o option.)
> joe at joe-SCOLA:~$ mencoder -o
> MEncoder svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
> Error parsing option on the command line: -o
>
> Exiting... (error parsing command line)
> joe at joe-SCOLA:~$
>
>
> On Mon, Jun 4, 2012 at 1:50 PM, Joseph Gulizia <joseph.gulizia at gmail.com>wrote:
>
>> Output using MPlayer:
>>
>>
>> joe at joe-SCOLA:~$ mplayer tv:// -tv
>> driver=v4l2:norm=NTSC:input=0:amode=0:width=640:height=480:device=/dev/video0
>> MPlayer svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
>> mplayer: could not connect to socket
>> mplayer: No such file or directory
>> Failed to open LIRC support. You will not be able to use your remote
>> control.
>>
>> Playing tv://.
>> TV file format detected.
>> Selected driver: v4l2
>> name: Video 4 Linux 2 input
>> author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
>> comment: first try, more to come ;-)
>> Selected device: Pinnacle Dazzle DVC 90/100/101/
>> Capabilities: video capture audio read/write streaming
>> supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 =
>> NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 =
>> PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 =
>> SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc;
>> inputs: 0 = Composite1; 1 = S-Video;
>> Current input: 0
>> Current format: YUYV
>> v4l2: ioctl set format failed: Invalid argument
>> v4l2: ioctl set format failed: Invalid argument
>> v4l2: ioctl set format failed: Invalid argument
>> Selected input hasn't got a tuner!
>> Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared
>> object file: No such file or directory
>> [vdpau] Error when calling vdp_device_create_x11: 1
>> ==========================================================================
>> Opening video decoder: [raw] RAW Uncompressed Video
>> Movie-Aspect is undefined - no prescaling applied.
>> VO: [xv] 640x480 => 640x480 Packed YUY2
>> Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
>> ==========================================================================
>> Audio: no sound
>> Starting playback...
>> V: 0.0 374/374 ??% ??% ??,?% 0 0
>>
>> v4l2: 376 frames successfully processed, 0 frames dropped.
>>
>> Exiting... (End of file)
>>
>>
>> On Mon, Jun 4, 2012 at 11:07 AM, Joseph Gulizia <joseph.gulizia at gmail.com
>> > wrote:
>>
>>> Trudged through MPlayer documentation.......still can't get audio or
>>> save output....help sought.
>>>
>>> Joe
>>>
>>> On Sat, Jun 2, 2012 at 7:16 AM, Joseph Gulizia <joseph.gulizia at gmail.com
>>> > wrote:
>>>
>>>> An update to video capture project...
>>>>
>>>> Thanks to Jon Larsen and others at the last OLUG meeting I looked at
>>>> Zoneminder which led me Blue-Cherry. Blue-Cherry sells video capture cards
>>>> among other things. Talking with them they said to use MPlayer.
>>>>
>>>> They gave me the following code:
>>>>
>>>> mplayer tv:// -tv
>>>> driver=v4l2:norm=NTSC:input=0:amode=1:width=640:height=480:device=/dev/video0
>>>>
>>>> So now I have decent looking video from either a camcorder (Canon
>>>> ZR-960 Mini-DV) or a DVD player (older Coby) running through the card. I
>>>> also tried the code and camcorder using a Dazzle device and got video.
>>>>
>>>> Next steps:
>>>>
>>>> 1) Being able to save the videos and then find them
>>>> 2) Getting audio to work.
>>>> 3) Building a simple GUI that allows the users to:
>>>> choose video format (PAL, NTSC) and passes parameters that we have
>>>> pre-set (python if I had my choice)
>>>>
>>>> Trudging through the MPlayer docs........somewhat frustrating....lot to
>>>> read.
>>>>
>>>> Using Mencoder I get errors when I put in "-o FileName" at end of
>>>> string below.
>>>>
>>>> mencoder tv:// -tv
>>>> driver=v4l2:norm=NTSC:input=0:amode=1:width=640:height=480:device=/dev/video0-o TestVideo
>>>>
>>>> Also I know a destination path goes somewhere --
>>>> /home/scola/Desktop/(fileName.extention)
>>>>
>>>> Joe
>>>>
>>>
>>>
>>
>
More information about the OLUG
mailing list