Prev: Permission Denied On USB Hard Drive
Next: The Linux experience - ugly, bad, and good - Re: Random Hesitations: The new threat to windummy productivity in the office
From: Davey on 2 May 2010 13:47 On Sat, 01 May 2010 14:02:48 +0100 Andy Furniss <spam(a)andyfurniss.entadsl.com> wrote: > Davey wrote: > > > Now this is getting better! > > Successfully recorded a 30 second file, plays back with good sound, > > too. The problem is still the massive flickering of the picture, as > > though its trying to play the next frame before it has finished > > displaying the last one. > > Looks like there is some confusion about framerates - I don't really > know why. > > > > fourcc:0x32595559 size:720x480 fps:29.97 ftime:=0.0334 > > 29.97 here > > > VDec: using Packed YUY2 as output csp (no 0) > > Movie-Aspect is undefined - no prescaling applied. > > SwScaler: reducing / aligning filtersize 1 -> 4 > > SwScaler: reducing / aligning filtersize 1 -> 4 > > SwScaler: reducing / aligning filtersize 1 -> 1 > > SwScaler: reducing / aligning filtersize 9 -> 8 > > [swscaler @ 0x883d3d0]SwScaler: BICUBIC scaler, from yuyv422 to > > yuv420p using MMX2 [swscaler @ 0x883d3d0]SwScaler: using 4-tap MMX > > scaler for horizontal luminance scaling [swscaler @ > > 0x883d3d0]SwScaler: using 4-tap MMX scaler for horizontal > > chrominance scaling [swscaler @ 0x883d3d0]SwScaler: using 1-tap MMX > > "scaler" for vertical scaling (YV12 like) [swscaler @ > > 0x883d3d0]SwScaler: 720x480 -> 720x480 videocodec: libavcodec > > (720x480 fourcc=47504a4d [MJPG]) Selected video codec: [rawyuy2] > > vfm: raw (RAW YUY2) > > Looks like the yv12 request isn't working/supported as it's still > outputting yuy2 which mencoder is converting for you. > > If the material is interlaced you should tell it, as there will be > subtle colour errors otherwise. So instead of -vf harddup use > > -vf scale=-1:-1:1,harddup > > > > Here is a portion, showing duplicates and skips: > > > > Pos: 5.4s 164f ( 0%) 24.37fps Trem: 0min 0mb A-V:0.000 > > [9200:1536] Skipping frame! > > Pos: 5.4s 166f ( 0%) 24.45fps Trem: 0min 0mb A-V:0.000 > > [9211:1536] 1 duplicate frame(s)! > > Pos: 5.5s 168f ( 0%) 24.33fps Trem: 0min 0mb A-V:0.000 > > [9212:1536] 1 duplicate frame(s)! > > This I don't get - It looks like the Dazzle is outputting 25fps and > since mencoder thinks the fps should be 29.97 it is adding frames to > correct it. > > Why would NTSC be 25 fps though. > > Is it possible that the input to the Dazzle is not using NTSC ? > > Maybe if top shows you have run out of CPU that could be it - but it > would be a bit too much of a co-incidence to get this output (it's > normal for mencoder to show a bit below 25 especially early on in a > run). > > You could try in you mencoder command using fps=25 instead of > 30000/1001 alternately you could add to the tv:// part of the command > line :fps=30000/1001: and leave the fps=30000/1001 as it is is the > mencoder part. > More confusion. Today, I started with the old working command, and got a 45 sec. file as before, with lots of flickering. I stopped it using Cntl-C. But when I tried to run it again, it failed. david(a)david-laptop:~$ mencoder -vf harddup -of lavf -oac pcm -ovc lavc -lavcopts vcodec=mjpeg -ofps 30000/1001 -o testfile3.avi tv:// -tv driver=v4l2:norm=NTSC:device=/dev/video0:width=720:height=480:outfmt=yv12:audiorate=48000:immediatemode=0:forceaudio:adevice=/dev/dsp1:volume=2000 MEncoder 2:1.0~rc2-0ubuntu19 (C) 2000-2007 MPlayer Team CPU: Mobile Intel(R) Pentium(R) 4 CPU 3.06GHz (Family: 15, Model: 2, Stepping: 9) CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. success: format: 9 data: 0x0 - 0x0 TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski <olschewski(a)zpr.uni-koeln.de> comment: first try, more to come ;-) Selected device: Pinnacle Dazzle DVC 90/DVC 100 Capabilites: 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: No such device v4l2: ioctl set mute failed: No such device v4l2: 0 frames successfully processed, 0 frames dropped. ============ Sorry, this file format is not recognized/supported ============= === If this file is an AVI, ASF or MPEG stream, please contact the author! === Cannot open demuxer. Exiting... --------------------------------------------------------------------------------- I also took a look at the message log from after the most recent re-boot, which may be a help: May 2 13:25:59 david-laptop kernel: [ 39.591647] Registered led device: b43legacy-phy0:radio May 2 13:25:59 david-laptop kernel: [ 39.602377] ADDRCONF(NETDEV_UP): wlan0: link is not ready May 2 13:26:37 david-laptop pulseaudio[4968]: alsa-util.c: Cannot find fallback mixer control "Mic" or mixer control is no combination of switch/volume. May 2 13:26:58 david-laptop kernel: [ 97.900073] Clocksource tsc unstable (delta = -68619544 ns) May 2 13:32:03 david-laptop kernel: [ 403.070244] usb 1-4: USB disconnect, address 3 May 2 13:32:04 david-laptop kernel: [ 403.101027] em28xx #0: disconnecting em28xx #0 video May 2 13:32:04 david-laptop kernel: [ 403.101034] em28xx #0: device /dev/video0 is open! Deregistration and memory deallocation are deferred on close. May 2 13:32:04 david-laptop kernel: [ 403.101066] failed! May 2 13:32:04 david-laptop kernel: [ 403.377034] usb 1-4: new high speed USB device using ehci_hcd and address 4 May 2 13:32:04 david-laptop kernel: [ 403.517535] usb 1-4: configuration #1 chosen from 1 choice May 2 13:32:04 david-laptop kernel: [ 403.517722] em28xx Has usb audio class May 2 13:32:04 david-laptop kernel: [ 403.517724] em28xx #1: Alternate settings: 8 May 2 13:32:04 david-laptop kernel: [ 403.517727] em28xx #1: Alternate setting 0, max size= 0 May 2 13:32:04 david-laptop kernel: [ 403.517729] em28xx #1: Alternate setting 1, max size= 1024 May 2 13:32:04 david-laptop kernel: [ 403.517731] em28xx #1: Alternate setting 2, max size= 1448 May 2 13:32:04 david-laptop kernel: [ 403.517733] em28xx #1: Alternate setting 3, max size= 2048 May 2 13:32:04 david-laptop kernel: [ 403.517736] em28xx #1: Alternate setting 4, max size= 2304 May 2 13:32:04 david-laptop kernel: [ 403.517738] em28xx #1: Alternate setting 5, max size= 2580 May 2 13:32:04 david-laptop kernel: [ 403.517740] em28xx #1: Alternate setting 6, max size= 2892 May 2 13:32:04 david-laptop kernel: [ 403.517742] em28xx #1: Alternate setting 7, max size= 3072 May 2 13:32:04 david-laptop kernel: [ 403.518162] em28xx #1: em28xx chip ID = 18 May 2 13:32:04 david-laptop kernel: [ 404.216616] saa7115' 2-0025: saa7113 found (1f7113d0e100000) @ 0x4a (em28xx #1) May 2 13:32:05 david-laptop kernel: [ 405.090034] em28xx #1: i2c eeprom 00: 1a eb 67 95 04 23 1a 02 12 00 11 03 98 10 6a 2e May 2 13:32:05 david-laptop kernel: [ 405.090048] em28xx #1: i2c eeprom 10: 00 00 06 57 4e 00 00 00 60 00 00 00 02 00 00 00 May 2 13:32:05 david-laptop kernel: [ 405.090056] em28xx #1: i2c eeprom 20: 02 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 May 2 13:32:05 david-laptop kernel: [ 405.090063] em28xx #1: i2c eeprom 30: 00 00 20 40 20 80 02 20 10 01 00 00 00 00 00 00 May 2 13:32:05 david-laptop kernel: [ 405.090071] em28xx #1: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 May 2 13:32:05 david-laptop kernel: [ 405.090079] em28xx #1: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 May 2 13:32:05 david-laptop kernel: [ 405.090087] em28xx #1: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 2e 03 50 00 69 00 May 2 13:32:05 david-laptop kernel: [ 405.090094] em28xx #1: i2c eeprom 70: 6e 00 6e 00 61 00 63 00 6c 00 65 00 20 00 53 00 May 2 13:32:05 david-laptop kernel: [ 405.090102] em28xx #1: i2c eeprom 80: 79 00 73 00 74 00 65 00 6d 00 73 00 20 00 47 00 May 2 13:32:05 david-laptop kernel: [ 405.090110] em28xx #1: i2c eeprom 90: 6d 00 62 00 48 00 00 00 10 03 44 00 56 00 43 00 May 2 13:32:05 david-laptop kernel: [ 405.090118] em28xx #1: i2c eeprom a0: 31 00 30 00 30 00 00 00 32 00 30 00 33 00 35 00 May 2 13:32:05 david-laptop kernel: [ 405.090126] em28xx #1: i2c eeprom b0: 36 00 30 00 37 00 35 00 31 00 33 00 34 00 31 00 May 2 13:32:05 david-laptop kernel: [ 405.090134] em28xx #1: i2c eeprom c0: 30 00 32 00 30 00 30 00 30 00 31 00 00 00 32 00 May 2 13:32:05 david-laptop kernel: [ 405.090142] em28xx #1: i2c eeprom d0: 33 00 31 00 32 00 33 00 00 00 00 00 00 00 00 00 May 2 13:32:05 david-laptop kernel: [ 405.090149] em28xx #1: i2c eeprom e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 May 2 13:32:05 david-laptop kernel: [ 405.090157] em28xx #1: i2c eeprom f0: 00 00 00 00 00 00 00 00 a1 4d dd 04 ad 62 5d 0e May 2 13:32:05 david-laptop kernel: [ 405.090167] EEPROM ID= 0x9567eb1a, hash = 0xeef4a784 May 2 13:32:05 david-laptop kernel: [ 405.090169] Vendor/Product ID= 2304:021a May 2 13:32:05 david-laptop kernel: [ 405.090170] AC97 audio (5 sample rates) May 2 13:32:05 david-laptop kernel: [ 405.090172] 300mA max power May 2 13:32:05 david-laptop kernel: [ 405.090174] Table at 0x06, strings=0x1098, 0x2e6a, 0x0000 May 2 13:32:06 david-laptop kernel: [ 406.015271] em28xx #1: V4L2 device registered as /dev/video1 and /dev/vbi1 May 2 13:32:06 david-laptop kernel: [ 406.015279] em28xx #1: Found Pinnacle Dazzle DVC 90/DVC 100 May 2 13:32:08 david-laptop pulseaudio[4968]: alsa-util.c: Cannot find fallback mixer control "Mic" or mixer control is no combination of switch/volume. May 2 13:32:40 david-laptop kernel: [ 440.322605] ACPI: EC: GPE storm detected, transactions will use polling mode -------------------------------------------------------------------------- Again, lots of that is beyond me, but there are some interesting references in there. Thanks again, anybody who can help.-- Davey.
From: Davey on 2 May 2010 14:09 On Sun, 2 May 2010 13:47:22 -0400 Davey <davey(a)example.invalid> wrote: > On Sat, 01 May 2010 14:02:48 +0100 > Andy Furniss <spam(a)andyfurniss.entadsl.com> wrote: > > > Davey wrote: > > > > > Now this is getting better! > > > Successfully recorded a 30 second file, plays back with good > > > sound, too. The problem is still the massive flickering of the > > > picture, as though its trying to play the next frame before it > > > has finished displaying the last one. > > > > Looks like there is some confusion about framerates - I don't > > really know why. > > > > > > > fourcc:0x32595559 size:720x480 fps:29.97 ftime:=0.0334 > > > > 29.97 here > > > > > VDec: using Packed YUY2 as output csp (no 0) > > > Movie-Aspect is undefined - no prescaling applied. > > > SwScaler: reducing / aligning filtersize 1 -> 4 > > > SwScaler: reducing / aligning filtersize 1 -> 4 > > > SwScaler: reducing / aligning filtersize 1 -> 1 > > > SwScaler: reducing / aligning filtersize 9 -> 8 > > > [swscaler @ 0x883d3d0]SwScaler: BICUBIC scaler, from yuyv422 to > > > yuv420p using MMX2 [swscaler @ 0x883d3d0]SwScaler: using 4-tap MMX > > > scaler for horizontal luminance scaling [swscaler @ > > > 0x883d3d0]SwScaler: using 4-tap MMX scaler for horizontal > > > chrominance scaling [swscaler @ 0x883d3d0]SwScaler: using 1-tap > > > MMX "scaler" for vertical scaling (YV12 like) [swscaler @ > > > 0x883d3d0]SwScaler: 720x480 -> 720x480 videocodec: libavcodec > > > (720x480 fourcc=47504a4d [MJPG]) Selected video codec: [rawyuy2] > > > vfm: raw (RAW YUY2) > > > > Looks like the yv12 request isn't working/supported as it's still > > outputting yuy2 which mencoder is converting for you. > > > > If the material is interlaced you should tell it, as there will be > > subtle colour errors otherwise. So instead of -vf harddup use > > > > -vf scale=-1:-1:1,harddup > > > > > > > Here is a portion, showing duplicates and skips: > > > > > > Pos: 5.4s 164f ( 0%) 24.37fps Trem: 0min 0mb A-V:0.000 > > > [9200:1536] Skipping frame! > > > Pos: 5.4s 166f ( 0%) 24.45fps Trem: 0min 0mb A-V:0.000 > > > [9211:1536] 1 duplicate frame(s)! > > > Pos: 5.5s 168f ( 0%) 24.33fps Trem: 0min 0mb A-V:0.000 > > > [9212:1536] 1 duplicate frame(s)! > > > > This I don't get - It looks like the Dazzle is outputting 25fps and > > since mencoder thinks the fps should be 29.97 it is adding frames > > to correct it. > > > > Why would NTSC be 25 fps though. > > > > Is it possible that the input to the Dazzle is not using NTSC ? > > > > Maybe if top shows you have run out of CPU that could be it - but > > it would be a bit too much of a co-incidence to get this output > > (it's normal for mencoder to show a bit below 25 especially early > > on in a run). > > > > You could try in you mencoder command using fps=25 instead of > > 30000/1001 alternately you could add to the tv:// part of the > > command line :fps=30000/1001: and leave the fps=30000/1001 as it is > > is the mencoder part. > > > > More confusion. > Today, I started with the old working command, and got a 45 sec. file > as before, with lots of flickering. I stopped it using Cntl-C. > But when I tried to run it again, it failed. > > david(a)david-laptop:~$ mencoder -vf harddup -of lavf -oac pcm -ovc lavc > -lavcopts vcodec=mjpeg -ofps 30000/1001 -o testfile3.avi tv:// -tv > driver=v4l2:norm=NTSC:device=/dev/video0:width=720:height=480:outfmt=yv12:audiorate=48000:immediatemode=0:forceaudio:adevice=/dev/dsp1:volume=2000 > MEncoder 2:1.0~rc2-0ubuntu19 (C) 2000-2007 MPlayer Team CPU: Mobile > Intel(R) Pentium(R) 4 CPU 3.06GHz (Family: 15, Model: 2, Stepping: > 9) CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 > Compiled with runtime CPU detection. success: format: 9 data: 0x0 - > 0x0 TV file format detected. Selected driver: v4l2 > name: Video 4 Linux 2 input > author: Martin Olschewski <olschewski(a)zpr.uni-koeln.de> > comment: first try, more to come ;-) > Selected device: Pinnacle Dazzle DVC 90/DVC 100 > Capabilites: 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: No such device > v4l2: ioctl set mute failed: No such device v4l2: 0 frames > successfully processed, 0 frames dropped. ============ Sorry, this > file format is not recognized/supported ============= === If this > file is an AVI, ASF or MPEG stream, please contact the author! === > Cannot open demuxer. > > Exiting... > --------------------------------------------------------------------------------- > I also took a look at the message log from after the most recent > re-boot, which may be a help: > > May 2 13:25:59 david-laptop kernel: [ 39.591647] Registered led > device: b43legacy-phy0:radio > May 2 13:25:59 david-laptop kernel: > [ 39.602377] ADDRCONF(NETDEV_UP): wlan0: link is not ready > May 2 13:26:37 david-laptop pulseaudio[4968]: alsa-util.c: Cannot > find fallback mixer control "Mic" or mixer control is no combination > of switch/volume. > May 2 13:26:58 david-laptop kernel: [ 97.900073] > Clocksource tsc unstable (delta = -68619544 ns) > May 2 13:32:03 > david-laptop kernel: [ 403.070244] usb 1-4: USB disconnect, address 3 > May 2 13:32:04 david-laptop kernel: [ 403.101027] em28xx #0: > disconnecting em28xx #0 video > May 2 13:32:04 david-laptop kernel: > [ 403.101034] em28xx #0: device /dev/video0 is open! Deregistration > and memory deallocation are deferred on close. > May 2 13:32:04 > david-laptop kernel: [ 403.101066] failed! > May 2 13:32:04 > david-laptop kernel: [ 403.377034] usb 1-4: new high speed USB device > using ehci_hcd and address 4 > May 2 13:32:04 david-laptop kernel: > [ 403.517535] usb 1-4: configuration #1 chosen from 1 choice > May 2 > 13:32:04 david-laptop kernel: [ 403.517722] em28xx Has usb audio > class May 2 13:32:04 david-laptop kernel: [ 403.517724] em28xx #1: > Alternate settings: 8 > May 2 13:32:04 david-laptop kernel: > [ 403.517727] em28xx #1: Alternate setting 0, max size= 0 > May 2 > 13:32:04 david-laptop kernel: [ 403.517729] em28xx #1: Alternate > setting 1, max size= 1024 May 2 13:32:04 david-laptop kernel: > [ 403.517731] em28xx #1: Alternate setting 2, max size= 1448 > May 2 > 13:32:04 david-laptop kernel: [ 403.517733] em28xx #1: Alternate > setting 3, max size= 2048 > May 2 13:32:04 david-laptop kernel: > [ 403.517736] em28xx #1: Alternate setting 4, max size= 2304 > May 2 > 13:32:04 david-laptop kernel: [ 403.517738] em28xx #1: Alternate > setting 5, max size= 2580 > May 2 13:32:04 david-laptop kernel: > [ 403.517740] em28xx #1: Alternate setting 6, max size= 2892 > May 2 > 13:32:04 david-laptop kernel: [ 403.517742] em28xx #1: Alternate > setting 7, max size= 3072 > May 2 13:32:04 david-laptop kernel: > [ 403.518162] em28xx #1: em28xx chip ID = 18 > May 2 13:32:04 > david-laptop kernel: [ 404.216616] saa7115' 2-0025: saa7113 found > (1f7113d0e100000) @ 0x4a (em28xx #1) > May 2 13:32:05 david-laptop > kernel: [ 405.090034] em28xx #1: i2c eeprom 00: 1a eb 67 95 04 23 1a > 02 12 00 11 03 98 10 6a 2e > May 2 13:32:05 david-laptop kernel: > [ 405.090048] em28xx #1: i2c eeprom 10: 00 00 06 57 4e 00 00 00 60 00 > 00 00 02 00 00 00 > May 2 13:32:05 david-laptop kernel: [ 405.090056] > em28xx #1: i2c eeprom 20: 02 00 01 00 00 00 00 00 00 00 00 00 00 00 00 > 00 May 2 13:32:05 david-laptop kernel: [ 405.090063] em28xx #1: i2c > eeprom 30: 00 00 20 40 20 80 02 20 10 01 00 00 00 00 00 00 May 2 > 13:32:05 david-laptop kernel: [ 405.090071] em28xx #1: i2c eeprom 40: > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > May 2 13:32:05 > david-laptop kernel: [ 405.090079] em28xx #1: i2c eeprom 50: 00 00 00 > 00 00 00 00 00 00 00 00 00 00 00 00 00 > May 2 13:32:05 david-laptop > kernel: [ 405.090087] em28xx #1: i2c eeprom 60: 00 00 00 00 00 00 00 > 00 00 00 2e 03 50 00 69 00 > May 2 13:32:05 david-laptop kernel: > [ 405.090094] em28xx #1: i2c eeprom 70: 6e 00 6e 00 61 00 63 00 6c 00 > 65 00 20 00 53 00 > May 2 13:32:05 david-laptop kernel: [ 405.090102] > em28xx #1: i2c eeprom 80: 79 00 73 00 74 00 65 00 6d 00 73 00 20 00 47 > 00 > May 2 13:32:05 david-laptop kernel: [ 405.090110] em28xx #1: i2c > eeprom 90: 6d 00 62 00 48 00 00 00 10 03 44 00 56 00 43 00 > May 2 > 13:32:05 david-laptop kernel: [ 405.090118] em28xx #1: i2c eeprom a0: > 31 00 30 00 30 00 00 00 32 00 30 00 33 00 35 00 > May 2 13:32:05 > david-laptop kernel: [ 405.090126] em28xx #1: i2c eeprom b0: 36 00 30 > 00 37 00 35 00 31 00 33 00 34 00 31 00 > May 2 13:32:05 david-laptop > kernel: [ 405.090134] em28xx #1: i2c eeprom c0: 30 00 32 00 30 00 30 > 00 30 00 31 00 00 00 32 00 > May 2 13:32:05 david-laptop kernel: > [ 405.090142] em28xx #1: i2c eeprom d0: 33 00 31 00 32 00 33 00 00 00 > 00 00 00 00 00 00 > May 2 13:32:05 david-laptop kernel: [ 405.090149] > em28xx #1: i2c eeprom e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 00 > May 2 13:32:05 david-laptop kernel: [ 405.090157] em28xx #1: i2c > eeprom f0: 00 00 00 00 00 00 00 00 a1 4d dd 04 ad 62 5d 0e > May 2 > 13:32:05 david-laptop kernel: [ 405.090167] EEPROM ID= 0x9567eb1a, > hash = 0xeef4a784 > May 2 13:32:05 david-laptop kernel: [ 405.090169] > Vendor/Product ID= 2304:021a > May 2 13:32:05 david-laptop kernel: > [ 405.090170] AC97 audio (5 sample rates) > May 2 13:32:05 david-laptop > kernel: [ 405.090172] 300mA max power > May 2 13:32:05 david-laptop > kernel: [ 405.090174] Table at 0x06, strings=0x1098, 0x2e6a, 0x0000 > May 2 13:32:06 david-laptop kernel: [ 406.015271] em28xx #1: V4L2 > device registered as /dev/video1 and /dev/vbi1 > May 2 13:32:06 > david-laptop kernel: [ 406.015279] em28xx #1: Found Pinnacle Dazzle > DVC 90/DVC 100 > May 2 13:32:08 david-laptop pulseaudio[4968]: > alsa-util.c: Cannot find fallback mixer control "Mic" or mixer control > is no combination of switch/volume. > May 2 13:32:40 david-laptop > kernel: [ 440.322605] ACPI: EC: GPE storm detected, transactions will > use polling mode > > -------------------------------------------------------------------------- > Again, lots of that is beyond me, but there are some interesting > references in there. > > Thanks again, anybody who can help.-- > Davey. OK. On the retry, if I replace the /video0 with /video1, it works. So far, so good. It ran for a while, and then filled up the video buffer: Pos: 10.9s 331f ( 0%) 15.33fps Trem: 0min 0mb A-V:0.000 [11535:1536] 1 duplicate frame(s)! Pos: 11.0s 332f ( 0%) 15.29fps Trem: 0min 0mb A-V:0.000 [11540:1536] 1 duplicate frame(s)! Pos: 11.2s 339f ( 0%) 15.24fps Trem: 0min 0mb A-V:0.000 [11616:1536] video buffer full - dropping frame video buffer full - dropping frame video buffer full - dropping frame Pos: 11.3s 340f ( 0%) 15.22fps Trem: 0min 0mb A-V:0.000 [11619:1536] video buffer full - dropping frame Pos: 11.3s 342f ( 0%) 15.23fps Trem: 0min 0mb A-V:0.000 [11645:1536] and finished with: video buffer full - dropping frame Video stream: 11561.506 kbit/s (1445188 B/s) size: 18420465 bytes 12.746 secs 382 frames Audio stream: 1536.000 kbit/s (192000 B/s) size: 2496000 bytes 13.000 secs video buffer full - dropping frame video buffer full - dropping frame video buffer full - dropping frame video buffer full - dropping frame video buffer full - dropping frame v4l2: 786 frames successfully processed, -3 frames dropped. Command used for this now: david(a)david-laptop:~$ mencoder -vf scale=-1:-1:1,harddup -of lavf -oac pcm -ovc lavc -lavcopts vcodec=mjpeg -ofps 30000/1001 -o testfile3.avi tv:// -tv driver=v4l2:norm=NTSC:device=/dev/video1:width=720:height=480:outfmt=yv12:audiorate=48000:immediatemode=0:forceaudio:adevice=/dev/dsp1:volume=2000 Changing the 30000/1001 to fps=25 didn't work, it insisted on the xxxxx/xxxx format. Adding the fps=25 in the tv: command was allowed, and again it ran until the video buffr filled up, but the flickering is still bad. It might be a bit better, but not significantly. Whew! -- Davey.
From: Andy Furniss on 2 May 2010 14:53 Davey wrote: > OK. On the retry, if I replace the /video0 with /video1, it works. So > far, so good. I am not sure why that is happening. > It ran for a while, and then filled up the video buffer: > > Pos: 10.9s 331f ( 0%) 15.33fps Trem: 0min 0mb A-V:0.000 > [11535:1536] 1 duplicate frame(s)! Hmm, only showing 15fps this time - maybe you are after all running out of CPU. What does running top -b | grep Cpu show while testing? > Changing the 30000/1001 to fps=25 didn't work, it insisted on the > xxxxx/xxxx format. Oops, my mistake I should have said -ofps 25 If you are running out of CPU then it's not going to help anyway :-(
From: Andy Furniss on 2 May 2010 15:03 Andy Furniss wrote: > If you are running out of CPU then it's not going to help anyway :-( If you are running out of CPU then you could try using a lower res eg. :width=352:height=480:
From: Davey on 2 May 2010 15:31
On Sun, 02 May 2010 19:53:53 +0100 Andy Furniss <spam(a)andyfurniss.entadsl.com> wrote: > Davey wrote: > > > OK. On the retry, if I replace the /video0 with /video1, it works. > > So far, so good. > > I am not sure why that is happening. > > > It ran for a while, and then filled up the video buffer: > > > > Pos: 10.9s 331f ( 0%) 15.33fps Trem: 0min 0mb A-V:0.000 > > [11535:1536] 1 duplicate frame(s)! > > Hmm, only showing 15fps this time - maybe you are after all running > out of CPU. > > What does running top -b | grep Cpu show while testing? > Starting before running again, and then continuing after: david(a)david-laptop:~$ top -b | grep Cpu Cpu(s): 85.0%us, 10.4%sy, 0.1%ni, 3.0%id, 0.9%wa, 0.5%hi, 0.0%si, 0.0%st Cpu(s): 87.7%us, 11.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.7%hi, 0.0%si, 0.0%st Cpu(s): 88.1%us, 11.9%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 86.4%us, 13.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 89.4%us, 10.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 84.4%us, 15.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.3%hi, 0.0%si, 0.0%st Cpu(s): 70.2%us, 15.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 14.2%hi, 0.0%si, 0.0%st Cpu(s): 73.3%us, 14.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 12.3%hi, 0.0%si, 0.0%st Cpu(s): 71.9%us, 13.9%sy, 0.0%ni, 0.0%id, 0.0%wa, 13.9%hi, 0.3%si, 0.0%st Cpu(s): 75.3%us, 10.9%sy, 0.0%ni, 0.0%id, 0.0%wa, 13.5%hi, 0.3%si, 0.0%st Cpu(s): 72.1%us, 16.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 11.0%hi, 0.3%si, 0.0%st Cpu(s): 77.1%us, 17.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 5.6%hi, 0.0%si, 0.0%st Cpu(s): 89.1%us, 10.9%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 89.4%us, 10.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 89.7%us, 10.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu(s): 89.4%us, 10.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Note that the rise to 89% is after it has stopped! Command now: david(a)david-laptop:~$ mencoder -vf scale=-1:-1:1,harddup -of lavf -oac pcm -ovc lavc -lavcopts vcodec=mjpeg -ofps 25 -o testfile3.avi tv:// -tv driver=v4l2:norm=NTSC:device=/dev/video1:width=720:height=480:outfmt=yv12:audiorate=48000:immediatemode=0:forceaudio:adevice=/dev/dsp1:volume=2000:fps=3000/1001 > > > Changing the 30000/1001 to fps=25 didn't work, it insisted on the > > xxxxx/xxxx format. > > Oops, my mistake I should have said -ofps 25 > > If you are running out of CPU then it's not going to help anyway :-( Next attempt, with the better ofps setting: Pos: 13.6s 413f ( 0%) 16.67fps Trem: 0min 0mb A-V:0.000 [12432:1536] video buffer full - dropping frame Pos: 13.7s 414f ( 0%) 16.64fps Trem: 0min 0mb A-V:0.000 [12426:1536] video buffer full - dropping frame video buffer full - dropping frame Pos: 13.7s 415f ( 0%) 16.62fps Trem: 0min 0mb A-V:0.000 [12414:1536] video buffer full - dropping frame video buffer full - dropping frame video buffer full - dropping frame video buffer full - dropping frame Pos: 13.8s 416f ( 0%) 16.55fps Trem: 0min 0mb A-V:0.000 [12417:1536] video buffer full - dropping frame but the CPU usage was always at about 75% until after program was terminated, when it again rose to about 90% Weird. Command now: david(a)david-laptop:~$ mencoder -vf scale=-1:-1:1,harddup -of lavf -oac pcm -ovc lavc -lavcopts vcodec=mjpeg -ofps 25 -o testfile3.avi tv:// -tv driver=v4l2:norm=NTSC:device=/dev/video1:width=720:height=480:outfmt=yv12:audiorate=48000:immediatemode=0:forceaudio:adevice=/dev/dsp1:volume=2000:fps=3000/1001 -- Davey. |