2011-04-29 01:14 [commit] Werner Almesberger: ubb-vga2: new option -m to select the display mode (resolution, timing) http://qi-hw.com/p/ben-blinkenlights/71c9c7d 2011-04-29 04:51 Hi guys,I'm a software engineer,I'm very interesting hardware development and MIPS Architecture. 2011-04-29 04:56 zhicheng: great. 2011-04-29 04:58 zhicheng: you want learn hardware design? or you want write some software(take part in u-boot kernel develop)? on MIPS arch? 2011-04-29 04:59 zhicheng: do you have one nanonote? are you in China? (since your name is like Chinese name :) 2011-04-29 05:00 yeah 2011-04-29 05:01 I'm an iOS App Developer :-) 2011-04-29 05:01 but I'm very interesting hardward design. 2011-04-29 05:01 and I'm check out some MIPS architecture design,It's really really cool! 2011-04-29 05:02 I want buy an SGI Workstation,But It's not available anymore.and very expensive. 2011-04-29 05:02 zhicheng: http://projects.qi-hardware.com/index.php/p/board-qi-avt2/source/tree/master/ 2011-04-29 05:03 xiangfu: Wow, You work at Qi Hardware. 2011-04-29 05:03 cool. 2011-04-29 05:04 is the 'really really cool' design open? :) 2011-04-29 05:05 I mean,the MIPS arch. 2011-04-29 05:05 and open source ,too. 2011-04-29 05:05 :- 2011-04-29 05:05 :-D 2011-04-29 05:05 zhicheng: ok. I though it's a device. 2011-04-29 05:06 zhicheng: compare to SGI Workstation, ben nanonote is cheaper :D 2011-04-29 05:06 and also MIPS 2011-04-29 05:06 xiangfu: yeah! 2011-04-29 05:06 xiangfu: do you live in Beijing? 2011-04-29 07:58 [commit] Xiangfu Liu: fmit fix typo http://qi-hw.com/p/openwrt-packages/1ca9a60 2011-04-29 07:58 [commit] Xiangfu Liu: nanonote-files: config.full_system, add 4th, using upstream triggerhappy http://qi-hw.com/p/openwrt-packages/7df1890 2011-04-29 07:58 [commit] Xiangfu Liu: new package: move kmod-ks7010 from openwrt to here http://qi-hw.com/p/openwrt-packages/159a677 2011-04-29 07:58 [commit] Xiangfu Liu: ascii-paint: using nanoote branch http://qi-hw.com/p/openwrt-packages/d895199 2011-04-29 09:01 [commit] Mirko Vogt: add http://qi-hw.com/p/openwrt-xburst/d3d6c3c 2011-04-29 09:01 [commit] Xiangfu Liu: gitignore vim temporary files (*~) http://qi-hw.com/p/openwrt-xburst/996641d 2011-04-29 09:01 [commit] Xiangfu Liu: optimize for ben nanonote http://qi-hw.com/p/openwrt-xburst/00b6865 2011-04-29 09:01 [commit] Xiangfu Liu: [xburst] Improve mounttime http://qi-hw.com/p/openwrt-xburst/4006bc6 2011-04-29 09:01 commit very little work on rebase trunk 2011-04-29 09:15 [commit] Xiangfu Liu: nanonote optimize http://qi-hw.com/p/openwrt-xburst/9454528 2011-04-29 09:15 [commit] Xiangfu Liu:  Add-gfortran-compiler-support-to-the-toolchain http://qi-hw.com/p/openwrt-xburst/02a7dc8 2011-04-29 17:08 [commit] Werner Almesberger: ubb-vga2: non-contiguous allocation of frame buffer memory http://qi-hw.com/p/ben-blinkenlights/623f3cc 2011-04-29 17:08 [commit] Werner Almesberger: ubb-vga2.c (line, frame): start line timer outside the "line" function http://qi-hw.com/p/ben-blinkenlights/a63579e 2011-04-29 17:08 [commit] Werner Almesberger: ubb-vga2.c (main): fixed check for unknown resolution and call it "mode" http://qi-hw.com/p/ben-blinkenlights/f608e56 2011-04-29 17:08 [commit] Werner Almesberger: tstimg.c (grill): avoid fencepost errors (pixel at xres/yres) http://qi-hw.com/p/ben-blinkenlights/2cee702 2011-04-29 17:08 [commit] Werner Almesberger: physmem.c: align memory to word and page size http://qi-hw.com/p/ben-blinkenlights/debe9cc 2011-04-29 17:08 [commit] Werner Almesberger: renamed ubb-vga.c to ubb-vga-old.c, ubb-vga2.c to ubb-vga.c; updated Makefile http://qi-hw.com/p/ben-blinkenlights/3a8e062 2011-04-29 17:49 wpwrak: just saw your physmem.c commit.  how does this give you physical memory?  doesn't it just give you logical pages without any knowledge of phys. addresses? 2011-04-29 17:53 dvdk: latest mplayer works very nice! it consumes only around 50 % CPU, soo good :) 2011-04-29 17:54 kyak: cool isn't it :) 2011-04-29 17:54 kyak: with proper 44100khz sample rate, audio quality is also very nice. 2011-04-29 17:55 kyak: 50% for which video material? 2011-04-29 17:55 dvdk: yeah, audio is good! but i'm running into issues with a/v desync 2011-04-29 17:55 kyak: encoding problem? 2011-04-29 17:55 kyak: ffmpeg2theora has some problems there 2011-04-29 17:55 dvdk: trying to figure out.. my ffmpeg2theora is pretty old 2011-04-29 17:55 kyak: depending on input video material.  latest ffmpeg2theora does sync correction by default. 2011-04-29 17:55 i'm thinking to build ffmpeg2thoera and libtheora from source 2011-04-29 17:55 however, fails on mpeg transport streams for me (i.e. raw dvb-t recording) 2011-04-29 17:56 kyak: did the same.  try to use libtheora 1.2 2011-04-29 17:56 Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s 2011-04-29 17:56 that's the input video 2011-04-29 17:56 what.s the container? mpeg? 2011-04-29 17:56 (latest south park episode, btw) 2011-04-29 17:56 avi 2011-04-29 17:56 kyak: avi shouldn't have any problems with desync, since avi comes without timestamps. 2011-04-29 17:57 hmm.  if you do mplayer -noquiet and look at the output (i.e. ssh) does it show a a-v desync?  at 50% cpu it should be around0. 2011-04-29 17:57 dvdk: oh.. when i'm running this output ogv file on my PC (totem), there's no desync 2011-04-29 17:57 kyak: ok, did you test with -demuxer ogg on you pc, too? 2011-04-29 17:57 kyak: also check cpu load.  some scenes need more cpu power, causing desync. 2011-04-29 17:58 dvdk: may i upload the output ogv file to you? it's aroudn 34 Mb 2011-04-29 17:58 kyak: yes, no problem.  how do we do the uploading? 2011-04-29 17:59 http://rghost.ru/5393232/private/4c6a9f0abbb1dfbac6d3bb1e87778d98 2011-04-29 17:59 dvdk: here :) 2011-04-29 18:00 ok, downloading at 120k 2011-04-29 18:02 dvdk: desync starts at around 1 minute, i'm just running mplayer ..ogv without arguments, and i don't use scrolling 2011-04-29 18:02 kyak: btw OSS audio was pretty weird, are you already running the version that does alsa exclusively? 2011-04-29 18:02 yep 2011-04-29 18:02 hmm. 2011-04-29 18:02 ok, uploaded, testing now 2011-04-29 18:02 version "3 in period" :) 2011-04-29 18:03 dvdk: hm, when i start scrolling, the sync seems to be restored 2011-04-29 18:05 ok, desync is displayed in mplayer output (-noquiet): A-V: -0.374 2011-04-29 18:05 so maybe cpu problem 2011-04-29 18:05 lets check 2011-04-29 18:06 no, cpu load is at 40 % 2011-04-29 18:06 strange 2011-04-29 18:06 dvdk: when i run mplayer -demuxer ogg, it get's desynced on PC, too! 2011-04-29 18:06 maybe the alsa patch is the culprit (changing buffer/fragment size, but was neccessary for audio to be continuous) 2011-04-29 18:06 wpwrak awaiting 3D in millions of color as video out on Ben NN. "Dream no little dreams." 2011-04-29 18:07 trying with -autosync 30 2011-04-29 18:07 dvdk: strangely, it only happens in the beginning of the video (around first minute) 2011-04-29 18:08 maybe a ogg framing pecularity 2011-04-29 18:08 -autosync doesn't help :( 2011-04-29 18:10 it's pretty hard to determine if there is a desync on your bbv video, cause there is no speech.. But i'll try encoding with latest ffmpeg2theora and see if this goes away 2011-04-29 18:10 dvdk: (physmem) did you see the comment saying that it's still a dummy ? :-) 2011-04-29 18:11 kyak: maybe an ogg paging problem causes that.  mplayer can buffer audio, but it cannot really buffer video.  so there are some rules about video vs. audio interleaving, maybe it fails there. 2011-04-29 18:11 dvdk: btw, here's a nicer mechanism for mapping virt->phys: http://www.mjmwired.net/kernel/Documentation/vm/pagemap.txt 2011-04-29 18:11 wprwrak: absolutely cool.  didn't know that. 2011-04-29 18:12 wpwrak: should use that to clean up jz47xx_vid 2011-04-29 18:12 yeah. those "search memory" heuristics are all a little evil. even though they work ... 2011-04-29 18:12 kyak: i did some encodes with ffmpeg2theora (50 minute video, 25 fps) and didn't notice any desyncs.  so maybe really ogg paging problem.  trying oggz-sort may help. 2011-04-29 18:14 oggz-sort seems to not help here :( 2011-04-29 18:16 kyak: waht to have a look at the file i tested with?  http://mosquito.dyndns.tv/david/nanonote/1nn.ogv 2011-04-29 18:16 (tell me if you download don't want to leave such stuff online for long) 2011-04-29 18:16 wpwrak: just a little slow :) 2011-04-29 18:16 (the searching) 2011-04-29 18:17 dvdk: there it's an advantage to have so little memory ;-)) 2011-04-29 18:17 dvdk: downloading now 2011-04-29 18:17 dvdk: "trying oggz-sort may help" - sorry, i don't understand 2011-04-29 18:18 kyak: oggz-tools contains a tool oggz-sort which does some simple ogg remuxing, sorting pages in the stream. 2011-04-29 18:18 dvdk: is it also better to build oggz-tools from source? 2011-04-29 18:18 kyak: i guess your problem is that the scene at 0:01:00 has almost no motion, so you get many video frames in one ogg page.  guess mplayer has a problem with that, since it sees the video frames too late 2011-04-29 18:19 kyak: don't think so, pretty old and reliable stuff, just use ubuntu or whatever packages 2011-04-29 18:19 kyak: but oggz-sort doesn't help anyway 2011-04-29 18:19 heh :) 2011-04-29 18:19 a new ffmpeg2theora *might* do the job.  or we'd have to fix the mplayer demuxer (yuck) 2011-04-29 18:20 ok.. i'm about to try to build ffmpeg2theora from source 2011-04-29 18:20 kyak: how's the download? 2011-04-29 18:20 13% done 2011-04-29 18:20 uuups. 2011-04-29 18:21 tell me when it's done, taking it offline then.  how many people are leaching here ? :) 2011-04-29 18:21 sure, i'll tell you :) 2011-04-29 18:21 btw, there is a binary of ffmpeg2theora 2011-04-29 18:22 i think i'll start with that.. guess libtheora is linked in statically 2011-04-29 18:24 ok, encoding with the latest ffmpeg2theora now 2011-04-29 18:28 dvdk: seems i will finished encoding faster than downloading from you :) 2011-04-29 18:28 kyak: you're getting almost all my bandwidth :r 2011-04-29 18:28 :) 2011-04-29 18:30 dvdk: your internet connection doesn't look very good :) 2011-04-29 18:33 dvdk: nope, it's still desynced at around 1:00 -\ I'm glad it is reproduced on PC 2011-04-29 18:34 dvdk: 53% :) 2011-04-29 18:37 dvdk: "A-V:" reaches up to 5 seconds on PC 2011-04-29 18:38 dvdk: i wonder why scrolling makes it go away? and why won't mplayer autocompensate? 2011-04-29 18:39 kyak: i guess demuxer problem. 2011-04-29 18:39 sorry have to go now.  maybe again tomorrow. 2011-04-29 18:39 cu 2011-04-29 18:39 bb 2011-04-29 18:39 (leaving download up, until apache bandwidth goes down) 2011-04-29 18:39 eta is 6 minutes 2011-04-29 19:09 grmbl. the bloody dma doesn't want to start. it seems that it did for the first 2-3 tries, but now nothing :-( 2011-04-29 19:09 mirko: ping 2011-04-29 19:13 mirko: when you have some time, could you have a look at https://dev.openwrt.org/ticket/9332, seems there is some issue with the latest qt4 changeset 2011-04-29 19:15 gone 2011-04-29 21:26 wpwrak: hey 2011-04-29 21:27 remember I was talking about crappy bluetooth headset? 2011-04-29 21:27 I've played 4000 Hz through it. in normal mode, the recorded audio has peak at 4004 2011-04-29 21:27 and in fucked up mode the peak is at 4047 Hz 2011-04-29 21:27 ~1% is _very_ detectible by ear. 2011-04-29 21:28 ah yes, the worst part is that it's sliding 2011-04-29 22:04 whitequark: (1%) interesting. have you also tried with another headset ? 2011-04-29 22:08 wpwrak: I only have one 2011-04-29 22:08 I'll soon write something that would be a blog post if only I had a blog 2011-04-29 22:08 with images! 2011-04-29 22:11 wpwrak: ah no, I was wrong 2011-04-29 22:11 that's not 1% 2011-04-29 22:12 it is sliding fast from one frequency to other 2011-04-29 22:12 ah, that's why you hear it 2011-04-29 22:17 probably 2011-04-29 22:17 that's _very_ weird and unpleasant sense 2011-04-29 22:18 it somehow makes you think about smashing headsets with a hammer :) 2011-04-29 22:37 whitequark: have you used the headset with other sound sources ? maybe it's not the headset but the source 2011-04-29 22:40 wpwrak: what can possibly go wrong with just a simple and stupid bluetooth dongle? 2011-04-29 22:41 what can possibly go wrong with just a simple and stupid bluetooth headset ? :-) 2011-04-29 22:43 wpwrak: check my article:

For the curious ones, here is the raw data (in 2011-04-29 22:43 Audacity format): raw.tbz2 2011-04-29 22:43 (33M compressed,around 110M unpacked)

2011-04-29 22:43 oh 2011-04-29 22:43 wrong paste :/ 2011-04-29 22:43 here's the right one: http://whitequark.org/bluecrap/ 2011-04-29 23:29 whitequark: well, your sample size is one. a bit small for such sweeping conclusions ;-) 2011-04-29 23:54 curses the voodooness of DMA 2011-04-29 23:55 ;-) 2011-04-29 23:55 wpwrak: still getting ramdom DMA response? 2011-04-29 23:55 the response if quite predictable now: i simply doesn't even start 2011-04-29 23:56 :( 2011-04-29 23:56 the odd thing is that the MMC controller sometimes throws a timeout, and that depends on the weirdest circumstances 2011-04-29 23:56 humm 2011-04-29 23:57 may be try to check if you are  a SD-lile compliance device ;-) 2011-04-29 23:59 oh, it's much more subtle than this: if i disable DMA in the MMC controller and don't even start the DMA controller, and the right set of voodoo is applied, i get the timeout