2011-04-23 00:53 wolfspraul: hi 2011-04-23 00:53 wolfspraul: I saw it in Xiangfu blog, also in openwrt xbusrt for qi, support and related information for a hanvon ebook 2011-04-23 00:54 so i'm curios if were some plans around this technology? 2011-04-23 00:55 if it was at the same time you founded the color digital dictionary? but then comunity just focus on a general porpuse computer pocket computer instead of a ebook? so thats the end of the history?.. 2011-04-23 00:55 morning btw :-) 2011-04-23 01:01 According to goo.gl 33 people clicked on my note today about Milkymist (across identi.ca, twitter and Buzz) 2011-04-23 01:02 kristianpaul: the past tense of "find" is "found", the past tense of "found" as in "foundation" is "founded" :) 2011-04-23 01:03 ouch, sorry :/ 2011-04-23 01:05 wpwrak indeed, a combo ofIngenic SOC and Linux with Propeller chip as "helper" chip would give VGA, also a LOT of i/o it's cheap too. 2011-04-23 01:06 kristianpaul: with an english as good as yours, those little mistakes are actually quite amusing ;) 2011-04-23 01:07 UGH! 2011-04-23 01:07 made internetz work again. 2011-04-23 01:08 rjeffries: dunno if the prop is worth the trouble. i like the concept, but wouldn't, say, a cpld or a small fpga serve us better ? 2011-04-23 01:08 wpwrak an OK way to get ethernet connectivity will be ATusb working on a cheap linux router 2011-04-23 01:08 what-a-ugly-hack ... use the common wifi from the neighbours till we get our own link (and a wired one to them) 2011-04-23 01:08 wpwrak: fpga cames in different LUT sizes, so well..  :_) 2011-04-23 01:08 roh: like this ? http://www.dailymotion.com/video/x7vf8c_it-crowd-the-internet_fun 2011-04-23 01:09 wpwrak the propeller is as you know well a quirky chip... cool but quirky. yes  a smallock. 2011-04-23 01:09 lekernel uses a big (!) fpga I assume. 2011-04-23 01:09 even those iglo fpga vendor, that claim low power and small factor should beat a cpld for sure :-) 2011-04-23 01:09 wpwrak: i am guessing now...  not much bandwith 2011-04-23 01:10 very laggy 2011-04-23 01:10 ha, is funny video :-) 2011-04-23 01:10 lol 2011-04-23 01:10 hrhr.. similar... our boxes are white and labeled asus wl500g 2011-04-23 01:12 rjeffries: the easiest way for Internet connectivity shall be to just plug an atusb into a linux pc :) 2011-04-23 01:13 rjeffries: admittedly one with the right drivers. but we'll get there as well :) 2011-04-23 01:13 yess... and i just found another antennaposition which made it work much better... well.. back to installing wall-sockets 2011-04-23 01:15 rjeffries: somebody should make sure the neccsary tools and drivers for the atusb get into openwrt 2011-04-23 01:15 wpwrak yes a Linux PC will work, of course. but something really cheap and low power consumtion  that runs 24x7 would be nice 2011-04-23 01:15 rjeffries: openwrt-able plastic routers with usb start at something like 25E 2011-04-23 01:16 question: once the tools and drivers are in openwrt, how hard to get them into a distro such as oick one, Arch, Debian... 2011-04-23 01:16 roh that sounds promising about $50 USD in round numbers 2011-04-23 01:17 rjeffries: well.. yes.. but dont forcefully bundle it 2011-04-23 01:17 s/oick/pick 2011-04-23 01:17 rjeffries: openwrt isn't really the main path. for kernel stuff, it's via netdev and then vanilla. trickles back down from there. 2011-04-23 01:17 there are loads of people who already own useable routers 2011-04-23 01:18 rjeffries: openwrt is just 'one' distro.. well.. in that case one optimized mostly for appliances and especially all these plastic routers 2011-04-23 01:18 roh: how could rjeffries forecefully bundle it if tuxbrain is selling the individual components ? :) 2011-04-23 01:19 wpwrak: dunno.. i dont know 'the plans' ;) 2011-04-23 01:20 wpwrak back to propeller-land for a moment one also gets keyboard, VGA video, mouse[ps2] and keyboard[ps2] 2011-04-23 01:21 roh: the plan is for tuxbrain to get the thingies made and to sell them. whatever else happens is another story. quite simple, actually :) 2011-04-23 01:21 I think roh meant to not force the softwrae into distros 2011-04-23 01:21 yup. since it is Easter season, I am hoping for the resurection of Tuxbrain //bad joke, I know 2011-04-23 01:21 rjeffries: _forcing_ software intro distros may be much harder than you'd imagine ;-)) 2011-04-23 01:22 rjeffries: (prop) are you thinking of something like ben+ubb+prop or ben++ ? 2011-04-23 01:22 roh: did you see our latest m1 pictures :-) it's your beautiful case! http://en.qi-hardware.com/wiki/Milkymist_One_pictures 2011-04-23 01:23 a hood thought experiment is what will stimulate demand for ATusb. that will drive unit vosts lower 2011-04-23 01:23 rjeffries: (atusb) yup. it's another thing with high setup cost but better per unit cost afterwards. less so than UBB, but still 2011-04-23 01:24 wpwrak since Ben++ is a hazy future, Ben+ubb+simple Propeller boardwith putpose of adding i/o to Ben might work 2011-04-23 01:24 I winder if we could have an adequate VGA interface that way? 2011-04-23 01:25 rjeffries: (prop) perhaps. don't know how much the prop can do in parallel. e.g., if one peripheral plus communication with the ben already eats up all the cogs, it's not worth the trouble. if it can indeed do a bunch of things, maybe. 2011-04-23 01:25 rjeffries: is there a decent free C compiler for the prop by now ? 2011-04-23 01:26 wpwrak there is a C compiler ay long last not sure of code quality 2011-04-23 01:26 rjeffries: for vga, consider using a cicuit like the prop uses with ubb. i'm not entirely sure if it could work, but it might 2011-04-23 01:27 rjeffries: (c compiler) is it open source ? 2011-04-23 01:27 wpwrak I will check on that C compiler just forund out about it  recently 2011-04-23 01:27 last time i checked propeller didnt even have a compiler running on something else than some dosbox 2011-04-23 01:28 it was supposedly coded in x86 asm 2011-04-23 01:28 roh: who needs compilers anyway ? ;-) 2011-04-23 01:29 wpwrak http://propeller.wikispaces.com/Programming+in+C+-+Catalina 2011-04-23 01:30 rjeffries: okay, that's a decent enough start. afaik, LCC had an anti-commercial license, though. so that would be a problem. 2011-04-23 01:31 s/had/has/ 2011-04-23 01:35 hmm. still no propeller 2. they've been talking about it some 4 years ago. reminds me of those psocs :) 2011-04-23 01:39 lcc looks ok to me, but I am not a freedom taliban eiether http://en.wikipedia.org/wiki/LCC_(compiler) 2011-04-23 01:39 rjeffries: well, the problem with non-commercial licenses is that they conflict even with loss-making endeavors like ours 2011-04-23 01:40 yeah {ropeller 2 has been stalled. I think it is still being developed by one genius but oddball engineer and a smart layout person 2011-04-23 01:40 not sure that is what that licese means I read it that you can not SELL the LCC software 2011-04-23 01:41 rjeffries: (prop 2) two people ? aw ... is parallax that small or have they basically abandoned the architecture ? 2011-04-23 01:41 nope the propller was as I remember a one mad design. prety amazing in my opinion 2011-04-23 01:42 rjeffries: "not sell" probably means that you can't ship it with a ben in any form 2011-04-23 01:42 s/mad/man but a funny typo 2011-04-23 01:42 rjeffries: similar to anything mp3 2011-04-23 01:42 wpwrak mayeb I;ll do some email sleuthing on lcc 2011-04-23 01:42 rjeffries: (one mad) indeed ;-) 2011-04-23 01:43 i meant to write one-man design effort 2011-04-23 01:44 rjeffries: yeah, but some aspects of the thing carry a whiff of madness ;-) and of course, there's genius as well. they sometimes go hand in hand :) 2011-04-23 01:45 (madness) particularly the bit about the own programming language and making the device a self-contained development platform. argh. 2011-04-23 01:47 that's like building a statue to the knights of NIH (Not Invented Here), resting on a tall tower placed upon a great pyramid (carried by four elephants standing on a tortoise, and so on :) 2011-04-23 02:21 yes agree wpwrak. I do hope Propeller 2 sees the light of day however 2011-04-23 02:52 wpwrak yjis Propeller dev board has a loy og available plu-in modules. fairly cheap. 2011-04-23 08:33 anybody around here mind to comment about a hacky openwrt recipie? 2011-04-23 08:33 trying to package a recent mplayer 2011-04-23 08:33 mplayer requires some directories from the ffmpeg source tree.  the part that is is staging_dir/usr/include doesn't suffice 2011-04-23 08:34 now I link part from ffmpeg's build directory directory into mplayer's build directory 2011-04-23 08:34 that's ugly. 2011-04-23 08:35 is there a way to make such a build recipie work reliably?  i.e. can I write dependencies in a way that ffmpeg build directory is always created before compiling mplayer? 2011-04-23 08:36 how can i find out the version number number of the ffmpeg that is build so i know the name of the build dirs? 2011-04-23 08:38 dvdk: maybe create a little script for that? 2011-04-23 08:38 hi kyak 2011-04-23 08:38 a script for which part? 2011-04-23 08:39 here is the ugly shell script code i put into build/configure: 2011-04-23 08:39 mkdir -p $(PKG_BUILD_DIR)/ffmpeg 2011-04-23 08:39 for i in $(PKG_BUILD_DIR)/../ffmpeg-0.5.*/libavutil; do \ 2011-04-23 08:39 ln -s -f -t $(PKG_BUILD_DIR)/ffmpeg $$$$i; \ 2011-04-23 08:39 e.g. when you symlink the ffmpeg dir, first do something like "find $BUILD_DIR -name "ffmpeg*" -depth 1 2011-04-23 08:40 ok, that is similar to the for i in *... loop i use that guarantees i use the latest ffmpeg verison found 2011-04-23 08:40 yeah 2011-04-23 08:40 i agree it looks ugly 2011-04-23 08:40 but should work reliably 2011-04-23 08:40 but as the build system knows which version it builds (and resolves the libffmpeg dependency i gave), can't it give me that knowledge? 2011-04-23 08:41 kyak: only as long as shell sorting also matches version sorting :) 2011-04-23 08:41 going from ffmpeg 5.9 to 5.10 will cause trouble :) 2011-04-23 08:44 Ah, got it, maybe i can get ffmpeg version from the pkgconfig .pc files installed to the staging dir. 2011-04-23 08:44 but then, still, there is no guarantee that the ffmpeg build_dir actually exists. 2011-04-23 08:44 it is only re-generated when ffmpeg package becomes outdated and make rebuilds it, no? 2011-04-23 08:45 the build_dir for ffmpeg should always exist, because mplayer depends on ffmpeg 2011-04-23 08:46 therefor, ffmpeg always builds before mplayer 2011-04-23 08:48 kyak: yeah, but if ffmpeg compilation succeeded, then somebody may cleanup the build dir, and makefile won't regenerate it, since ffmpeg is up to date? 2011-04-23 08:50 now build fails with libavutil/sample_fmt.h missing.  well, maybe ffmpeg 0.5.4 is too outdated, and I need to search for a matching mplayer revision... 2011-04-23 08:51 dvdk: you someone would clean up the build dir via make clean, it would also delete files from staging dir 2011-04-23 08:51 so it would lead to rebuilding of package 2011-04-23 08:51 kyak: rm -rf build_dir :) 2011-04-23 08:51 if someone had removed the build dir manually, he's on his own 2011-04-23 08:51 he knows what he does :) 2011-04-23 08:51 ok, so then i guess the hacky recepie idea is good :) 2011-04-23 08:52 ouch, mplayer r32500 _contains_ a private libavutil directory. 2011-04-23 08:52 dvdk: do you think it might be a good idea to pacakge our own ffmpeg? 2011-04-23 08:52 and to link mplayer statically to it? 2011-04-23 08:52 kyak: not sure.  mplayer is a very special beast. 2011-04-23 08:52 kyak: 2011-04-23 08:53 name it "ffmpeg-for-mplayer" 2011-04-23 08:53 kyak: the cleanest solution would be to roll our own mplayer tarball that *includes* ffmpeg.  everything else is just plain hacky 2011-04-23 08:53 after all the mplayer configure script overwrites configure settings of ffmpeg etc. 2011-04-23 08:53 so we should treat them as one tarball 2011-04-23 08:54 these two pieces of sw are not really factored.  maybe because developers are mostly the same. 2011-04-23 08:54 is it problematic to build the ffmpeg that mplayer pulls from ffmpeg git? 2011-04-23 08:54 kyak: the ffmpeg mplayer pulls is placed under mplayer's build dir, *because* mplayer build process hacks it in various ways. 2011-04-23 08:54 yeah, so what? 2011-04-23 08:55 include files are used that are not even public api includes etc. 2011-04-23 08:55 to mplayer ffmpeg  is not a library, it's a part of its source code with deep connections into every part 2011-04-23 08:55 what i want to say is 2011-04-23 08:55 developers somehow intend to build mplayer like that.. could we just follow it? 2011-04-23 08:56 that's what i want to say.  building ffmpeg and mplayer separately is a headache 2011-04-23 08:56 but there is no proper tarball that includes both. 2011-04-23 08:56 so we'd have to make and host one ourselves 2011-04-23 08:56 doing a non-versioned git pull from ./configure asks for trouble 2011-04-23 08:57 could we patch the configure to not ask for anything, and just pull the ffmpeg? 2011-04-23 08:58 kyak: we could but i'd advise against it.  this breaks many aspects of openwrt build system 2011-04-23 08:58 also without asking for a special git revision, every compile would yield a different result 2011-04-23 08:58 but we can pin the specific git revision 2011-04-23 08:58 we could.  but then we'd pull for every rebuild. 2011-04-23 08:59 openwrt's download rules cache everything in ./dl 2011-04-23 08:59 https://github.com/mxcl/homebrew/pull/4422 2011-04-23 08:59 I'm against pulling once per rebuild. 2011-04-23 09:00 I'd say let us use the openwrt download/caching system. 2011-04-23 09:00 either customize the download rule to add git checkout once, 2011-04-23 09:00 or host our own tarball. 2011-04-23 09:00 ... or put ffmpeg tarball into the mplayer/files directory and unpack on ./configure :) 2011-04-23 09:01 actually, i don't think it a problem to pull ffmpeg on every rebuild 2011-04-23 09:01 not for your internet connection :) 2011-04-23 09:01 ok, makes sense :) 2011-04-23 09:02 ok, it's (a) tarball or (b) new download rule or (c) put ffmpeg to files/ 2011-04-23 09:02 I'd vote for (b) or for (a) if (b) proves  to difficult 2011-04-23 09:03 ok, going to try (b).  already hacked download rules once, shouldn.t be too bad 2011-04-23 09:04 btw hopefully mplayer allows disabling patented codecs when leaving the ffmpeg config&build part to mplayer's build system 2011-04-23 09:05 yeah, that's another thing.. the makefile of openwrt's ffmpeg is tricky 2011-04-23 09:06 let's look at that once mplayer builds :) 2011-04-23 09:06 dvdk: btw, that rc4 release of mplayer is too old/lacks features? 2011-04-23 09:07 i noticed that it doesn't try to pull ffmpeg 2011-04-23 09:07 kyak: dunno, but since there are no future releases, going to svn feels more like being future-proof. 2011-04-23 09:07 with vp6 coming out etc. we'll have to upgrade over and over anyways. 2011-04-23 09:08 s/vp6/webm/ 2011-04-23 09:08 i wonder why major distros are still sticking to rc4 and what they will do in future 2011-04-23 09:08 kyak: yeah suffering the same problems we have, i guess :) 2011-04-23 09:09 hmm. 2011-04-23 09:09 still no decision? 2011-04-23 09:37 kyak: how do i find out a revision to use for pinning ffmpeg? 2011-04-23 09:37 i.e. 2011-04-23 09:37 git checkout $(FFMPEG_REV)) 2011-04-23 09:37 says: 2011-04-23 09:37 fatal: reference is not a tree: 9bf81b49cff3945a76ac776f086a1d1adc120e6d 2011-04-23 09:38 for svn i'd use 'svn info', but what do i do for git? 2011-04-23 09:41 ok, found it: 2011-04-23 09:41 cat .git/refs/heads/master 2011-04-23 09:48 dvdk: is there anything in the gpu optimisations you do that allow to play fine videos encoded at higher video size than the nanonote screen? 2011-04-23 09:48 I don't know if mplayer always decodes the blocks totally... 2011-04-23 09:48 viric: well, it can do downscaling :) 2011-04-23 09:49 if you manage to decode hr video 2011-04-23 09:49 yes, everything totally decoded usually 2011-04-23 09:49 mplayer has options to skip decoding steps for 3low-res decoding 2011-04-23 09:49 libjpeg has faster code for downscaled results, for example 2011-04-23 09:49 I don't understand either 'hr video' or '3low-res' 2011-04-23 09:50 but usually you'd just re-encode the video for your nanonote to save space and optimize for decoding with less power. 2011-04-23 09:50 also, for NN we won't ship patented codecs, so that mostly leaves Theora for modern video 2011-04-23 09:50 or vp8 2011-04-23 09:51 yeah, migrht be to cpu intensive for NN.  also theora performs quite well for low-res. 2011-04-23 09:51 vp8 can be compiled specifically for mips, iirc. 2011-04-23 09:51 still, thechnology-wise theora is much easier on the cpu 2011-04-23 09:51 vp8 you mean webm? 2011-04-23 09:52 hm 2011-04-23 09:52 webm is matroska + vp8 + ogg, isn't it? 2011-04-23 09:52 possibly 2011-04-23 09:52 maroska+vp8+_vorbis_ 2011-04-23 09:52 ok 2011-04-23 09:53 did you see the bbb.ogv demo movie i encoded with theora ptalarbvorm? 2011-04-23 09:53 Yes 2011-04-23 09:53 quality-wise that looks great, especially on the small nn screen 2011-04-23 09:54 what's that: 2011-04-23 09:54 ffmpeg/libavcodec/libavcodec.a(aacsbr.o): In function `sbr_dequant': 2011-04-23 09:54 [..] MPlayer-r33304/ffmpeg/libavcodec/aacsbr.c:1100: undefined reference to `exp2f' 2011-04-23 09:54 hmm. 2011-04-23 09:54 I'm not sure vp8 decoding is cpu intensive. 2011-04-23 09:54 dvdk: -lm 2011-04-23 09:54 there is -lm. 2011-04-23 09:54 maybe wrong order? 2011-04-23 09:54 -ltheora -logg    -ldl -rdynamic  -lm  -ldirectfb -lggi -laa -lvga -lSDL 2011-04-23 09:54 maybe the uclibc in openwrt does not have exp2f 2011-04-23 09:55 I personally use glibc in the nanonote 2011-04-23 09:58 dvdk: remember that the NN does not have a fpu. Are you configuring libavcodec for without-fpu? 2011-04-23 09:58 (maybe it ends up calling floating point operations in any case, I don't know) 2011-04-23 09:58 everything right msoft-float. 2011-04-23 09:58 however, uclibc lack exp2f 2011-04-23 09:58 no no 2011-04-23 09:58 it has expf() and exp2() though 2011-04-23 09:58 -Dexp2f=expf :) 2011-04-23 09:58 :) 2011-04-23 09:58 exp2f looks for c99 2011-04-23 09:59 no exp2f=exp2 2011-04-23 09:59 looks like a c99 2011-04-23 09:59 Ok I leave. Sant Jordi. 2011-04-23 09:59 cu 2011-04-23 10:37 ok, mplayer from svn compiles.  let's see how it works. 2011-04-23 10:40 ok, it now uses fftheora, i.e. ffmpeg's theora reimplementation 2011-04-23 10:41 demuxing works, too. 2011-04-23 10:42 hmm, the vidix driver fails to work. 2011-04-23 10:44 wow, -vo cvidix -geometry is working, cpu load down to 50% :) 2011-04-23 10:48 dvdk: in your mail you mentioned that the scaler can scale anything up to 320x240, can it also scale down? 2011-04-23 10:49 say from a 640x480 theora video down to 320x240 full-screen on Ben 2011-04-23 10:49 yes it can, although image quality might not bee too good 2011-04-23 10:50 there are only a few hundred videos on Wikimedia Commons now, but it still gives sort of an idea over resolutions... http://commons.wikimedia.org/wiki/Category:Videos_by_display_resolution 2011-04-23 10:51 so there is a lot actually right in 320x240 (60 videos), then another cluster at 640x480 (178 videos), 1280x720 (49 videos), and even full HD I guess 1920x1080 (12 videos) 2011-04-23 10:51 well, the best idea would be to transcode for nanonote resolution anyways. 2011-04-23 10:51 the scale can scale from any size to (almost) any size. 2011-04-23 10:51 I am hoping one day we can have a client that can browse, download and display from a repository like Wikimedia Commons 2011-04-23 10:52 transcoding would probably be very painful, if someone watches a video only once 2011-04-23 10:52 (Wikimedia Commons is not a serious video repo now - simply too few videos. Just to get the idea across) 2011-04-23 10:53 well, i could easily write a script that transcode just everything and puts it on qi-hardware.com :) 2011-04-23 10:54 nanonote cpu-power isn't currently strong enough for 640x480, so downscaling on the NN wouldn't be very useful. 2011-04-23 10:54 video aborted with OOM after a few minutes.  are we leaking memory? 2011-04-23 10:55 trying with -vc theora (i.e. official theora decoder) instead 2011-04-23 10:57 wolfspraul: then there is also vodo.net 2011-04-23 10:57 you mean it's not realistic that a 640x480 theora video is scaled down and displayed at 320x240, in real-time? 2011-04-23 10:57 maybe after some tweaking.  currently not.  not without simd optimizations etc. 2011-04-23 10:58 scaling is not the problem.  it's mostly for free 2011-04-23 10:58 but decoding is costly, and we only have a tiny cache, no L2 cache etc. 2011-04-23 11:00 nice link about vodo.net - thanks! didn't know about it 2011-04-23 11:00 you should see pioneer one :) 2011-04-23 11:01 unfortunately non-commercial, but nice project nonetheless 2011-04-23 11:01 was just going to complain about the license :) 2011-04-23 11:01 well it's ok. it seems they are trying to create ways to build a distribution and monetization network/channel for the creators. more power to them. 2011-04-23 11:02 I believe this should be done on 'free first', then 'pay', but it's good that many people try different things in parallel. 2011-04-23 11:02 nothing better than paying for free content, imo 2011-04-23 11:03 voluntarily of course, based on the degree of appreciation for the work :-) 2011-04-23 11:16 ok, we have a demuxer problem.  the ffmpeg ogg demuxer leaks memory (or just needs lots of it) 2011-04-23 11:16 running mplayer -demuxer ogg seems to fixes the leak 2011-04-23 12:49 Maybe we should get the Nanonote listed under Theora Hardware at http://wiki.xiph.org/Theora_Hardware (once everything works stably / is part of official firmware) 2011-04-23 12:51 wolfspraul: h-e-n hostmode for N900 earned some 60EUR donations from 2010-11 til now 2011-04-23 12:52 dvdk: definitely, we should list it 2011-04-23 12:53 60..100¬ total 2011-04-23 12:53 maybe one day we have Theora encoding in Milkymist too, who knows... I see Elphel 333 in that list :-) 2011-04-23 12:53 what is h-e-n hostmode? 2011-04-23 12:53 wolfspraul: looks like a wiki, so only needs  signing up for an account :) 2011-04-23 12:54 let's get it into a OpenWrt or Jlime image first though 2011-04-23 12:54 maybe wait a week or two, until everything stabalized. 2011-04-23 12:54 hostmode-easy-now, my project to put USB hostmode back into N900 2011-04-23 12:54 otherwise it's a bit of vaporware/wishful thinking 2011-04-23 12:54 wolfspraul: sure. 2011-04-23 12:55 wolfspraul: what i coded so far is tested with and packaged for our openwrt image. 2011-04-23 12:55 DocScrutinizer: well that's not too bad, at least some bits... how did you get that (which payment method)? 2011-04-23 12:55 paypal 2011-04-23 12:57 http://talk.maemo.org/showthread.php?t=65232 2011-04-23 13:00 dvdk: i think '-demuxer ogg' option can be added to nanonote-files/script-files/root/.mplayer/config 2011-04-23 13:01 kyak: but can we then still playback mpg, avi etc.? 2011-04-23 13:01 dvdk: you are seeking for disabling patented codecs at all, or leave it depending on PATENTED flag? 2011-04-23 13:02 dvdk: i was referring to "Maybe we can patch mplayer to use that ogg demuxer by default? 2011-04-23 13:02 " 2011-04-23 13:03 kyak: maybe depending on flag, if possible.  else rip out as much as needed. 2011-04-23 13:03 ogg demuxer by default meens the mplayer 'ogg'  demuxer instead of ffmpeg's ogg demuxer 2011-04-23 13:07 [commit] David Kühling: mplayer_jz47xx: upgrade to latest version w/ scaler support and some fixes http://qi-hw.com/p/openwrt-packages/de21404 2011-04-23 13:09 DocScrutinizer: your lucky paypal allow you receive donations, sadl not my case :/ 2011-04-23 13:10 (vodo) looks nice, okay i just installed the firefox extention now.. 2011-04-23 13:13 kristianpaul: believe me, I feel like it's not been worth the effort - and I actually *hate* paypal 2011-04-23 13:15 he :-) 2011-04-23 13:16 well, it came handy for paying some weird stuff for N900 I ordered in HK 2011-04-23 13:16 spare speakers for example 2011-04-23 13:17 yes paying is what all people is allowing to :-) 2011-04-23 13:17 I got my MM1 that way 2011-04-23 13:17 the N900 tends to fry speakers due to the very good class-D amp 2011-04-23 13:17 Maybe I should try to get mplayer working in the nanonote too... 2011-04-23 13:18 viric: then and you dvdk and kyak can do a hackatoon ;) 2011-04-23 13:18 0..30kHz +/-0dB ;-D 2011-04-23 13:18 0? 0_o 2011-04-23 13:18 sure, class-D 2011-04-23 13:19 that's the problem 2011-04-23 13:20 that's why Nokia delayed rollout of N900 - they had to invent xprot speaker protection in PulseAudio 2011-04-23 13:21 kristianpaul: Maybe you mean '-ton', and not '-toon'? :) 2011-04-23 13:23 well, actually INput is decoupled by 100nF/?10kR? 2011-04-23 13:23 Or even '-thon' 2011-04-23 13:23 viric: sure sure  :-) 2011-04-23 13:23 hackytoon 2011-04-23 13:23 hackyphoon 2011-04-23 13:23 hackartoon 2011-04-23 13:23 hackycoon 2011-04-23 13:23 (~tycoon) 2011-04-23 13:23 :-D 2011-04-23 13:34 DocScrutinizer: how do you feel about Nokia/Meego/WinMobile and the future of phones at Nokia? 2011-04-23 13:34 dark sad story 2011-04-23 13:37 what is the state of GSM stacks usability in linux? 2011-04-23 13:38 Isn't there any 'arduino gsm module' around? :) 2011-04-23 13:40 DocScrutinizer: he, come on. That's not the final word :-) The future begins now. 2011-04-23 13:41 even inside Nokia there will be some signs of life once it's becoming more clear that they hit the self-destruct button 2011-04-23 13:41 although I wouldn't count on that or wait for that 2011-04-23 13:41 meego dudes are rather agnostic about special system architecture needs for mobile battery-powered devices... 2011-04-23 13:42 Nokia officially put meego on "strictly educational" status. No further plans for a product line based on it 2011-04-23 13:43 maemo been killed in favour of meego long ago 2011-04-23 13:43 elopcalypse 2011-04-23 13:44 yes ok but what's next... 2011-04-23 13:44 samsung? 2011-04-23 13:44 what's the next to fall? 2011-04-23 13:44 no what's the next best mobile device/smartphone to run free software on 2011-04-23 13:45 DocScrutinizer: any particular mode or line in mind at Samsung? 2011-04-23 13:45 model 2011-04-23 13:46 yes plese tell!!, my 10 year old phone will die soon, i'll need buy a mobilephone soor or later :/ 2011-04-23 13:46 nope, nothing that's matching my taste 2011-04-23 13:46 :( 2011-04-23 13:46 I got 2 pcs N900, considering to get a 3rd one 2011-04-23 13:47 hmm, what GSM chips uses that N900? 2011-04-23 13:47 maemo's still alive 2011-04-23 13:47 BB5 2011-04-23 13:48 kristianpaul: buy the cheapest 20 USD phone and let's continue with NanoNote, Milkymist, etc. if you want to go pro join the osmocom project 2011-04-23 13:48 :-) (I had to give that feedback, no? :-)) 2011-04-23 13:48 wolfspraul: that's what I planned to do :) 2011-04-23 13:48 yeah, i tought that alredy :-) 2011-04-23 13:49 Can someone with arduino pieces make something close to a gsm phone? 2011-04-23 13:49 just somethimes, i miss mobile connectivity, may be i just need a gsm-3g modem dongle.. 2011-04-23 13:50 kristianpaul: sometimes I miss lack of connectivity 2011-04-23 13:51 we'll get to the connectivity 2011-04-23 13:51 ;) 2011-04-23 13:51 at least once we do, there will be something new there 2011-04-23 13:51 for sure 2011-04-23 13:51 is at gome 2011-04-23 13:51 s/gome/home 2011-04-23 13:51 viric: surely you can, but the point is not just buy something thats works byt it self (gms side), in the other hand better get something you can build/hack on :-) 2011-04-23 13:52 arduino and his majority shield market is not that way to go i think.. 2011-04-23 13:52 will buy a 20usd phone with lighting :-) 2011-04-23 13:52 kristianpaul: http://www.gsmrapid.com/showthread.php?t=4957 2011-04-23 13:52 I can't believe how the industry botched the whole Wi-Fi mesh story and potential. greed killed the mesh star. 2011-04-23 13:53 but we need to do better, not complain... 2011-04-23 13:54 Some university teacher here should make their students do a project like "let's make a mobile phone" 2011-04-23 13:55 :) 2011-04-23 13:56 viric: no we are much further than that. specifically, they can join osmocombb or the related bunch of projects there. 2011-04-23 13:56 yeah 2011-04-23 13:56 they can advance the state of KiCad, they can work on essential tools like the initial boom sourcing system Werner did 2011-04-23 13:56 fine. that way then 2011-04-23 13:56 wait, I have some more 2011-04-23 13:57 they can buy some Milkymist One and hack wireless basebands and DSP into it 2011-04-23 13:57 heck they can buy some N900 and help Joerg with usb hostmode, at least it's a device that works today :-) 2011-04-23 13:57 wolfspraul: how to get a wireless baseband? with gnu radio pieces? 2011-04-23 13:57 ah, good point. another project. 2011-04-23 13:57 viric: i think thats is what wolfspraul means, http://bb.osmocom.org/trac/wiki/GsmDevelBoard (even to remennber my self) 2011-04-23 13:57 I think the key is to join existing projects, and incrementally improve those. 2011-04-23 13:58 rather than starting yet another big meta-project that will produce nothing but bloat and distraction after a while. 2011-04-23 13:58 wolfspraul: USB hostmode is pretty much final 2011-04-23 13:58 I've a friend, university teacher, that gives as homework to students to improve wikipedia articles 2011-04-23 13:58 finished* 2011-04-23 13:58 someone on electronics should do something similar :) 2011-04-23 13:58 actually all the pieces are there, they are just combined in horrible ways (well, most pieces are there, some black spots arguably) 2011-04-23 13:58 DocScrutinizer: nice link, no usefull datasheets afaiks ;) 2011-04-23 13:58 viric: yes, perfect! 2011-04-23 13:59 kristianpaul: there are no datasheets for BB5 2011-04-23 13:59 that's exactly what I mean, indeed 2011-04-23 13:59 (combined in horrible ways ) oh yes 2011-04-23 13:59 Is GSM here to stay many years still? 2011-04-23 13:59 hmm, yup 2011-04-23 13:59 world is slow,hardware costs money.. 2011-04-23 13:59 hard to predict 2011-04-23 14:00 hmm 2011-04-23 14:00 but that kind of thinking may mislead you - gsm is here today, join osmocom, n900, etc. and do something today 2011-04-23 14:00 If someone made an easyly hackable GSM device, it would be potentially forbidden to be sold to the public, isn't it? 2011-04-23 14:00 otherwise you think too strategically, always looking for the perfect entry spot, factor in inertia, new development, etc. etc. you will never stop thinking :-) 2011-04-23 14:00 FUD 2011-04-23 14:01 that's total nonsense, really 2011-04-23 14:01 ah ok 2011-04-23 14:01 I remember hearing stories like this. 2011-04-23 14:01 some kids believe in santa claus too, which is not a bad thing necessarily 2011-04-23 14:01 you bet 2011-04-23 14:01 of course 2011-04-23 14:01 the Internet is full of rubbish nowadays, isn't it :-) 2011-04-23 14:01 amazing to see the comment section on many serious news publications nowadays 2011-04-23 14:02 any insanity clinic certainly would have no problem looking for patients there 2011-04-23 14:02 wolfspraul: the standards for 'insanity' have changed along time ;) 2011-04-23 14:03 to keep it real: there is absolutely no worry in my mind that a 100% free phone would not meet regulatory requirements in all important markets 2011-04-23 14:04 in a licensed spectrum, let alone an unlicensed spectrum 2011-04-23 14:04 ok 2011-04-23 14:04 btw 2011-04-23 14:04 as you know chinese production... 2011-04-23 14:04 of course it's all work, many markets, many local jurisdictions, many powerful players who may create this or that entry barrier 2011-04-23 14:04 welcome to the real world 2011-04-23 14:04 I've seen a thread about getting a Loongson3 computer out of china 2011-04-23 14:05 A chinese said: it's available, but not to be sold abroad, due to lack of certifications 2011-04-23 14:05 have a loongsoon computer 2011-04-23 14:05 and people saying "I want one anyway" 2011-04-23 14:05 what is your question? 2011-04-23 14:05 wolfspraul: what is the chance that, nowadays, a product meant for the chinese market, meets european certifications, let's say? 2011-04-23 14:06 if you take a random 'china only' product, and submit it to CE and especially RoHS testing (long story), chances that it will not meet those are 90% at least 2011-04-23 14:06 _but_ the whole story is much longer 2011-04-23 14:06 you should ask insted how by pass that regulations and get that item shippend to your home easilly ;) 2011-04-23 14:07 often it may be only some small blip somewhere in a measurement, or difference in measurement, that will make a device pass CCC test (the Chinese one), but fail the equivalent CE test 2011-04-23 14:07 And a question related... I imagine it's much safer to wait for a product to pass the certifications, than to bypass them. At least, from my ignorance, this is the path I prefer now. 2011-04-23 14:07 and then the problem in a high-volume production is that any change is risky 2011-04-23 14:08 so if the product is already made in high-volume, and now someone wants to make 'a few' changes to pass CE, no matter how irrelevant that failure is, who will take the risk? 2011-04-23 14:08 so unless there is a strong sales partner in the EU, it will not happen 2011-04-23 14:08 RohS is another story, it is typically not checked, and the way RohS is enforced is such that EU agencies 'co-work' with importers and manufacturers 'towards' RoHS 2011-04-23 14:09 Ok 2011-04-23 14:09 because in the end it is just impossible to be sure about every last connector, every cable, the print color on the box, etc. 2011-04-23 14:09 so if the Chinese manufacturer is willing to sign a RohS self-compliance document, good for you 2011-04-23 14:09 the whole free market is optimised to economic benefit, and not to safety... so no wonder. 2011-04-23 14:09 if not, you have to sign it, and be ready to dig through the materials if something comes up one day 2011-04-23 14:10 nah, that's too cynical. 2011-04-23 14:10 Loongson is very political, it's the Chinese (government) answer to Intel. 2011-04-23 14:10 this is as I understood it too 2011-04-23 14:10 so those are all big players, I have zero insights into the strategies that are going on around Loongson right now. 2011-04-23 14:11 but you cannot see it so simple as in 'that's all crap and they will never pass the great EU standards' 2011-04-23 14:11 1) not everything in China is crap 2011-04-23 14:11 well, I have two loongson2f and a NN, so I imagine they passed all the certifications :) 2011-04-23 14:11 2) the EU standards may by far not be as great as some people think they are, and they may not be enforced as diligently as some people think they should be 2011-04-23 14:11 sure sure. 2011-04-23 14:12 in some products we are using Lin Engineering motors, chinese, and I think they are around the best stepper motors around 2011-04-23 14:12 for everything I manufacture, I definitely try to meet all CE, FCC, RohS, WEEE requirements 2011-04-23 14:12 but it's ongoing work, that kind of stuff never stops 2011-04-23 14:12 kristianpaul: there's a 'leaked' schematic of N900, with full detail of BB5, and there's the ISI API specs, and ofono, to learn talk to BB5 chip 2011-04-23 14:12 also actually those standards are moving targets, they are being edited, tightened, etc. 2011-04-23 14:12 clear. 2011-04-23 14:13 kristianpaul: still insufficient to build own equipment based on BB5 chips, not to mention you probably can't buy any 2011-04-23 14:14 There was a time where some software companies started to give out the source code of their games (ID software, Apogee, ...) 2011-04-23 14:14 wolfspraul: you know about zoom-II witch never came to market in the UMTS enabled variant, due to RoHS issues? :-D 2011-04-23 14:14 No phone company is releasing all about their old phones? :) 2011-04-23 14:14 viric: it's very expensieve because of patents law 2011-04-23 14:15 the 3G modules they planned to use was not compliant 2011-04-23 14:15 lawyers should be sure that they open no patented tech's 2011-04-23 14:15 Jay7: how so? Patents are public designs, isn't it? 2011-04-23 14:16 main problem is cross-licensing 2011-04-23 14:16 I mean, the *already patented tech* should be that more easily publicable 2011-04-23 14:17 Jay7: but I'm not understanding anything under 'cross-licensing problem' 2011-04-23 14:17 dvdk: what is the performance comparision between mplayer with your patches or without? 2011-04-23 14:17 viric: company A licensing some technology from company B to make some product 2011-04-23 14:18 Jay7: not-patent-related you mean, rigth? 2011-04-23 14:18 then company A can't publish some things that affected by tech from company B w/o permit from B 2011-04-23 14:18 ok 2011-04-23 14:18 unless they agreed to publish that. 2011-04-23 14:19 and because of total patent's mess nobody can publish anything 2011-04-23 14:19 that could be a good proof about the lack of public benefit from patents 2011-04-23 14:19 (if it is about patents) 2011-04-23 14:23 viric: you have a nanonote: download the package and test yourself :) 2011-04-23 14:23 what do you mean with 'patches'? the hw acceleration part? 2011-04-23 14:24 dvdk: yes 2011-04-23 14:24 dvdk: I don't use openwrt in it... 2011-04-23 14:25 dvdk: the same bbb.ogv video could be played, before your patches, in the nanonote? 2011-04-23 14:25 viric: that get the source and compile it for whatever you use :) 2011-04-23 14:25 viric: yes it could, however software-scaling to fullscreen was too slow. 2011-04-23 14:25 but for a video meant for the nanonote screen size... thinking of no later scaling... 2011-04-23 14:25 not so sure about bbb320.ogv (saw my last mail?), here no scaling is required, only yuv->rgb conversion 2011-04-23 14:25 ok 2011-04-23 14:26 had problems with 320 width video at 30 fps, that's why the scaler. 2011-04-23 14:26 the updated mplayer uses ffmpeg's fftheora for decoding which should be fastre. 2011-04-23 14:26 faster than what? 2011-04-23 14:28 viric: faster than using official libtheora 2011-04-23 14:28 ffmpeg integrates better with mplayer (less copying data around etc.), also i guess that ffmpeg developers produced faster code. 2011-04-23 14:28 ok 2011-04-23 14:29 viric: which os are you using? 2011-04-23 14:29 on nanonote 2011-04-23 14:29 dvdk: "nanonixos" (cough) 2011-04-23 14:29 hu?  you mean your nn is a paperweight :) ? 2011-04-23 14:30 haha 2011-04-23 14:30 it works, boots, has mplayer, rss reader, browser, network, ... :) 2011-04-23 14:31 well, if it has mplayer, it should be trivial to package the accelerated vidix  driver for it. 2011-04-23 14:31 I'll try to. 2011-04-23 14:31 tell me if you need any help with that. 2011-04-23 14:31 sure. 2011-04-23 14:31 what about that 'mplayer2' btw? 2011-04-23 14:31 so the vidix stuff currently consists of (1) the jz47xx_vid.so library (sourceforge), and a tiny patch to mplayer that makes it load the lib. 2011-04-23 14:32 viric: mplayer2 dunno. 2011-04-23 14:32 away for a few minutes 2011-04-23 14:38 back 2011-04-23 14:39 viric: interesting, this nanonixos.  didn't even here of nixos until now. 2011-04-23 14:40 Be welcome in #nixos :) 2011-04-23 14:40 viric: maybe once openwrt works :) 2011-04-23 14:41 you will wait for the distribution to work, before switching to another? That's altruism ;) 2011-04-23 14:41 viric: stubbornness 2011-04-23 14:41 hehe 2011-04-23 14:42 dvdk: I think only me uses nanonixos 2011-04-23 14:43 viric: it looks like you are the inventor of nanonixos :) 2011-04-23 14:43 right :) 2011-04-23 14:43 wrt mplayer acceleration: you need this tiny patch: http://projects.qi-hardware.com/index.php/p/openwrt-packages/source/tree/master/mplayer/patches/010-jz47xx-vidix.patch 2011-04-23 14:43 but it's an easy thing, using nix. 2011-04-23 14:43 which should apply against any mplayer version from the last years 2011-04-23 14:43 ah any? 2011-04-23 14:43 I did not expect something that easy. 2011-04-23 14:44 wait, now comes the second part: 2011-04-23 14:44 you need to compile the jz47xx_vid driver https://sourceforge.net/projects/mplayer-jz47xx/ 2011-04-23 14:44 (latest tarball 0.1.1) 2011-04-23 14:44 standard autoconf/automake, cross-compiles without problems.  install the jz47xx_vid.so to /usr/lib 2011-04-23 14:44 that's all 2011-04-23 14:45 command line for use is -vo cvidix -sreenw 320 -screenh 240 -fs (put it into the config file) 2011-04-23 14:45 s/screenw/screenw 2011-04-23 14:45 s/sreenw/screenw 2011-04-23 14:46 jz47xx_vid is a library, no kernel patches required 2011-04-23 14:47 clear 2011-04-23 14:47 i'm going to try to get jz47xx_vid into mplayer upstream, once it works stably.  until then i'm quite happy about that thing being a separate package, so i don't have to apply monster-patches whenever i rebuild mplayer 2011-04-23 14:48 dvdk: what do you think about http://www.mplayer2.org/comparison.html 2011-04-23 14:51 ...reading... 2011-04-23 14:52 hey, they finally started to rewrite the mess that is named mplayer.  cool. 2011-04-23 14:58 :) 2011-04-23 14:58 and getting vlc on the nanonote? no chance? 2011-04-23 14:58 dvdk: the jz47xx thing builds just fine by nix 2011-04-23 14:59 viric: that.s the power of autoconf/automake :) 2011-04-23 14:59 right 2011-04-23 14:59 viric: vlc is a little too bloated? lots of thread use etc. not good for a tiny cpu. 2011-04-23 14:59 ah ok 2011-04-23 14:59 I did not know 2011-04-23 15:00 just guessing. 2011-04-23 15:00 :D 2011-04-23 15:08 dvdk: I'll be using mplayer-snapshot-20101227. May it work? 2011-04-23 15:08 sure. 2011-04-23 15:09 if the patch applies, you should be fine.  same patch worked for 1.0rc2 and for svn head 2011-04-23 15:09 I don't disable any codecs... :) 2011-04-23 15:12 viric: btw nix is not cross-compiled as far as i see.  so you compile on NN or using qemu-mips? 2011-04-23 15:12 nanonixos is cross compiled 2011-04-23 15:13 by nix 2011-04-23 15:13 nixpkgs allow cross compilation 2011-04-23 15:13 nix-build -A MPlayer   => builds locally 2011-04-23 15:13 nix-build -A MPlayer.hostDrv => cross builds 2011-04-23 15:13 ok, so not a port of standard nixos, but kind of a new flavour 2011-04-23 15:13 ? 2011-04-23 15:13 nixos is not cross-copmiled. 2011-04-23 15:13 understand. 2011-04-23 15:13 using functional language for build specification is extremely nice 2011-04-23 15:13 . 2011-04-23 15:13 but nixpkgs, that nixos and nanoixos use, work not only cross-compiled, but they work locally compiled also in bsd, darwin, cygwin, ... 2011-04-23 15:14 so you can ask for 'vim' on darwin, cygwin, cross-build  to a nanonote, to a sheevaplug... 2011-04-23 15:14 with a single specification, customisable: nixpkgs. 2011-04-23 15:15 nixos is a GNU/Linux distribution not cross build. 2011-04-23 15:15 read about it.  fixes many, many problems that come with openwrt and debian.  (especialy with autoconf doing things it wasn't configured to do, resulting in bad dependency infos etc.) 2011-04-23 15:15 sure sure. I know. :) 2011-04-23 15:15 I don't have to read more about it :) 2011-04-23 15:18 dvdk: http://vicerveza.homeunix.net/~viric/cgi-bin/nanonixos/ci/4f46b15285 2011-04-23 15:18 there are some additional changes... but it should not be that relevant. 2011-04-23 15:19 not sure i can understand that :)  so jz47xx_id is part fo the mplayer package? 2011-04-23 15:20 did you apply the patch 2011-04-23 15:20 also? 2011-04-23 15:20 jz4xxpatch is about the patch 2011-04-23 15:20 jz47xx_vid is the lib 2011-04-23 15:20 I've them apart by now. I'll use LD_LIBRARY_LOAD 2011-04-23 15:20 LD_LIBRARY_PATH I mean 2011-04-23 15:21 ok. 2011-04-23 15:21 that's better.  because the _vid.so can be upgraded often without relation to the mplayer pkg 2011-04-23 15:21 Sure 2011-04-23 15:21 I'll write a mplayer sh wrapper that sets the LD_LIBRARY_PATH. 2011-04-23 15:22 but now my computer will be building for a long time still :) I'm not building a nanonixos since nixpkgs dated months ago 2011-04-23 15:25 dvdk: If the _vid.so has no relationship with mplayer, it would be overcomplicated to make it build inside the mplayer nix expression :) 2011-04-23 15:28 dvdk: for a nixos user, additionally, it is very hard to run an openwrt toolchain, I think. 2011-04-23 15:29 does not understand 2011-04-23 15:29 openwrt supposes some /usr and things like that 2011-04-23 15:29 the patch i saw is that multiple nix expressions, or just one containing all expressions for th efull build? 2011-04-23 15:29 http://vicerveza.homeunix.net/~viric/cgi-bin/nanonixos/ci/4f46b15285 2011-04-23 15:30 dvdk: the patch also adds offrss, my RSS feeds reader 2011-04-23 15:32 viric: now i understand even less.  mplayer? offrss? huh? 2011-04-23 15:32 :) 2011-04-23 15:32 well, I had some things in the checkout I committed alltogether. 2011-04-23 15:32 I thought you could understand what is related to your _vid and what not :) 2011-04-23 15:33 no way to browse the full nanonixos thing at ~viric/cgi-bin 2011-04-23 15:33 ? 2011-04-23 15:33 yes, click on Files 2011-04-23 15:33 (you need to login anonymously) 2011-04-23 15:34 ah, only seoing 'Home Timeline Branches Tags Tickets Wiki Login ' 2011-04-23 15:34 you mean no login, no access to source?  going to register you with bugmenot.com :) 2011-04-23 15:34 the login is to allow full access only to humans, and not to crawlers 2011-04-23 15:34 Click the login. Then "Fill automatically captcha", then Login again. 2011-04-23 15:34 ah, ok. 2011-04-23 15:34 done. 2011-04-23 15:35 dvdk: the root file is default.nix, and the others come cited. 2011-04-23 15:35 5 lines for jz47xx_vid package?  where is the rest? 2011-04-23 15:36 also mplayer package is sooo compact.  is that all? 2011-04-23 15:36 yes 2011-04-23 15:36 what are the options (          x264Support = false; etc.) referring to? 2011-04-23 15:36 dvdk: it requires the upstream nixpkgs. 2011-04-23 15:36 ahh 2011-04-23 15:36 you convinced me, going to migrate to nixos :) 2011-04-23 15:36 http://vicerveza.homeunix.net/~viric/cgi-bin/nanonixos/doc/trunk/doc/usage.wiki :) 2011-04-23 15:37 haha 2011-04-23 15:37 you mean RTFM?  not my strength :) 2011-04-23 15:37 You can use nix+nixpkgs in any GNU/Linux distribution 2011-04-23 15:37 you don't need to switch to start using it 2011-04-23 15:37 ok, very interesting.  thanks.  people have been using build server extensions on debian to track dependencies.  Nix is much cleaner. 2011-04-23 15:38 yeah, don't worry, i cannot migrate yet, as openwrt is not yet working :) 2011-04-23 15:38 don't have enough time on my hands.  still, good to know that makefile and per scripts are not the only options left. 2011-04-23 15:38 But I mean... it should be trivial to install nix, get a copy of nixpkgs, and "nix-env -i MPlayer" for example :) 2011-04-23 15:39 So don't imagine that you need to do a lot of work to start using ig 2011-04-23 15:39 it 2011-04-23 15:39 And it works orthogonal to your linux distribution (all stored in /nix/... paths) 2011-04-23 15:39 ok, it's just starting to climb upward on my todo list. 2011-04-23 15:40 well, keep me posted how the mplayer thing works.  have to leave for some matters in meatspace. 2011-04-23 15:40 sure 2011-04-23 15:40 cu 2011-04-23 17:06 hmm. ingenic specify the 4720 up to 240 MHz 2011-04-23 17:10 if i toggle GPIOs as fast as i can, i get a square wave with a frequency of 6.588 Hz. so that's 13.176 Mchanges/sec 2011-04-23 17:12 316/13.176 = 23.98, so the GPIO update rate seems to be CCLK/24 2011-04-23 17:16 the GPIOs are in the address range 0x10000000-0x10ffffff, so according to 4720pm section 24, they're on APB. APB is supplied by PCLK. 2011-04-23 17:18 dvdk: trying to follow your instructions in "Nanonote video playback update", have no luck -\ 2011-04-23 17:18 kyak: where's the problem? 2011-04-23 17:18 checking the mail, maybe i gave wrong urls? 2011-04-23 17:18 dvdk: i start the "mplayer bbb320.ogv -vo cvidix -screenw 320 -screenh 240 -fs -demuxer ogg", and then there is black screen 2011-04-23 17:18 according to CPCCR (PDIV=2), PCLK = X1/3. X1 is not defined anywhere. we do know though that CCLK=X1. however, this still leaves the possibility that "X1" only has local significance, such as "input of the respective divider" 2011-04-23 17:18 though i hear some noise from speaker 2011-04-23 17:19 dvdk: the urls all worked fine 2011-04-23 17:19 kyak: strange. 2011-04-23 17:20 can you record the stdout/stderr using mplayer ... &> log 2011-04-23 17:21 it we assume that X1 is global, that would make PCLK = 105.333 MHz. the GPIO update rate would thus be PCLK/8. seems sluggish. 2011-04-23 17:21 let's see what else we know about PCLK ... 2011-04-23 17:21 dvdk: http://dpaste.com/535032/ 2011-04-23 17:21 dvdk: i interuppt it myself 2011-04-23 17:22 works here. 2011-04-23 17:22 md5sum /usr/bin/mplayer 2011-04-23 17:22 645ffaa1c871d339d3a2d6d62a9dbb11  /usr/bin/mplayer 2011-04-23 17:22 yep 2011-04-23 17:22 exactly 2011-04-23 17:23 # md5sum /usr/lib/jz47xx_vid.so 2011-04-23 17:23 0deeaad9d69193776fdff3b731778e3f  /usr/lib/jz47xx_vid.so 2011-04-23 17:23 if it matters 2011-04-23 17:24 find / -iname "jz47xx_vid.so" 2011-04-23 17:24 ok. 2011-04-23 17:24 same md5suum.  you notice it sead  0dead ? :) 2011-04-23 17:24 s/sead/sais 2011-04-23 17:24 yeah, noticed, it;s funy :) 2011-04-23 17:25 runing a shell-script with 2011-04-23 17:25 exec mplayer /data/video/bbb320.ogv -vo cvidix -screenw 320 -screenh 240 -fs -demuxer ogg 2011-04-23 17:25 do you have /root/.mplayer/config? 2011-04-23 17:25 i.e. have you changed the default one? 2011-04-23 17:26 dvdk: oh! it plays now! 2011-04-23 17:26 looks like default. 2011-04-23 17:26 kyak: hah. 2011-04-23 17:26 i don't know what happened 2011-04-23 17:26 maybe some race? 2011-04-23 17:26 i left it for several tens of seconds 2011-04-23 17:26 ok. 2011-04-23 17:26 let's see how far it gets :) 2011-04-23 17:26 now if i interrupt and start playing, it starts immediately 2011-04-23 17:27 i guess it's the flash reading being slow or something (nand or sd-card?) 2011-04-23 17:27 dvdk: btw, you should be able to change volume level with Volume keys on ben :) 2011-04-23 17:27 it's in nand, yes 2011-04-23 17:27 in nand for me, too 2011-04-23 17:27 btw the log says video codec 'theora' 2011-04-23 17:27 strange, thought it wouuld use fftheora (i.e. ffmpeg) nowadays. 2011-04-23 17:30 dvdk: when i rewind, there is that squeaky  noise 2011-04-23 17:30 yeah, the demuxer is maybe not too good :) 2011-04-23 17:30 (you should be able to change volume level with Volume keys on ben) oh, realy? since when.. ? 2011-04-23 17:30 ok, I guess the old demuxer keeps the newer ffmpeg 'fftheora' driver from working.  that's a pitty. 2011-04-23 17:30 I need that code for a WIP i have with the ben to control a TV Tunner 2011-04-23 17:30 kristianpaul: since always :) 2011-04-23 17:30 # cat /usr/share/mplayer/input.conf 2011-04-23 17:30 F12 volume -1 2011-04-23 17:30 F11 volume 1 2011-04-23 17:30 without -demuxer ogg it should run faster, but memory overflows probably at some point 2011-04-23 17:30 the UART is also on APB. but is doesn't use PCLK, if the manual can be believed :-( 2011-04-23 17:30 kyak: you mena i can use that keys even on a tty, or is mplayer specific? 2011-04-23 17:30 s/mena/mean 2011-04-23 17:30 kristianpaul: i'm talking about mplayer 2011-04-23 17:30 ah ok 2011-04-23 17:30 kyak: how do you like the video qualtiy? 2011-04-23 17:30 sorry  i misudenrstood ;) 2011-04-23 17:31 dvdk: it's superb :) 2011-04-23 17:31 dvdk: works very fast 2011-04-23 17:31 well, theora-alpha encoder is incredible (used it for dvd ripping recently) 2011-04-23 17:31 i love this map :_) http://www.nhm.ac.uk/research-curation/research/projects/worldmap/diversity/c1.htm 2011-04-23 17:31 ok, comparing fftheora and libtheora, difference in performance is not too string. 2011-04-23 17:32 dvdk: how to get rid of that blinking cursor? 2011-04-23 17:32 kyak: there should not be a cursor.  have you still &> logfile? 2011-04-23 17:32 it sends an ioctl() to /dev/tty to hide the cursor 2011-04-23 17:32 works here 2011-04-23 17:32 (from ash, launched from gmenu2x) 2011-04-23 17:32 ah ok 2011-04-23 17:32 i launch via ssh 2011-04-23 17:32 no, you're right there is a cursor at the bottom .  hmm. 2011-04-23 17:33 ahh, same for me, launched from ssh for testing :) 2011-04-23 17:33 :) 2011-04-23 17:33 let's see what happens if i lower HCLK ... 2011-04-23 17:33 dvdk: btw, have no problems with alsamixer 2011-04-23 17:33 kyak: hmm. 2011-04-23 17:33 maybe the newer mplayer is fixed and unmutes at startup? 2011-04-23 17:33 actually, i don't remember having such problem at all 2011-04-23 17:34 kyak: no mplayer does not unmute. 2011-04-23 17:34 system no longer responds. sigh. not unexpected, though. 2011-04-23 17:34 maybe problem with my gmenu2x config.  gmenu2x config once crashed on me, resetting screen brightness etc. 2011-04-23 17:34 wpwrak: playing with UART-SPI bridge with the atmega? :) 2011-04-23 17:35 kristianpaul: naw, video out 2011-04-23 17:35 dvdk: you are right, there is not cursor when i launch mplayer from tty 2011-04-23 17:35 kristianpaul: we're about 5% too fast for CGA (pixel clock) 2011-04-23 17:36 dvdk: the videos are pretty much unsrollable -\ 2011-04-23 17:36 vide out? in the atmega?? 2011-04-23 17:36 atmel* 2011-04-23 17:36 kristianpaul: no, ben+ubb 2011-04-23 17:36 oh ! 2011-04-23 17:36 cool 2011-04-23 17:36 dvdk: i mean, can't rewind or fast forward 2011-04-23 17:37 wpwrak: why you mentioned UART then ? i dont get it yet or was not related? 2011-04-23 17:38 the ogg demuxer is flakey. 2011-04-23 17:38 try to rewind in larger steps (up/down or pgup/pgdown) 2011-04-23 17:39 without -demuxer ogg you have better rewinding, but memory is going to run out 2011-04-23 17:39 kristianpaul: i'm trying to figure out how the clocks in the ben are really related. the documentation is not very helpful. 2011-04-23 17:40 kristianpaul: in particular, i'm trying to find out if i could make the gpio update rate a little faster. 2011-04-23 17:43 kristianpaul: not sure yet how i'll deal with the clock difference. one possibility would be to tweak the ben's system clock. another would be to insert delay cycles in the video timing. both approaches have their ups and downs. 2011-04-23 17:45 sigh. doesn't like it if i change PCLK either. neither up nor down. 2011-04-23 17:46 of course, i could change it within my evil loop. that one shuts down most of the rest of the system anyway. 2011-04-23 17:47 evil loop :D 2011-04-23 17:49 dvdk: trouble building mplayer. grrr 2011-04-23 17:49 kyak: you're right seeking is pretty broken.  hmm. 2011-04-23 17:49 kristianpaul: well, it disables the lcd controller and interrupts ... :) 2011-04-23 17:49 kyak: worked with earlier mplayer versions i tried, though. 2011-04-23 17:50 mipsel-unknown-linux-gcc -O -DCODECS2HTML -I. -Iffmpeg -o codec-cfg codec-cfg.cc 2011-04-23 17:50 ./codec-cfg etc/codecs.conf > codecs.conf.hh 2011-04-23 17:50 /bin/sh: ./codec-cfg: cannot execute binary file 2011-04-23 17:50 Maybe a newer version fixes that. 2011-04-23 17:51 viric: configure --enable-cross-compile ? 2011-04-23 17:51 nope. no luck. even changing PCLK inside my loop kills the system. 2011-04-23 17:51 let me test 2011-04-23 17:51 I was not using it 2011-04-23 17:52 dvdk: never worked with any mplayer version. btw, it's same broken in jlime 2011-04-23 17:53 works on my desktop, newer ogg skeleton helps with that. 2011-04-23 17:54 maybe we should use mkv container? 2011-04-23 17:54 is it better? 2011-04-23 17:55 mkv is much better than ogg 2011-04-23 17:55 (supported) 2011-04-23 17:55 https://code.google.com/p/chromium/issues/detail?id=32360 2011-04-23 17:59 seeking worked when i tested it yesterday with mplayer 1.0rc2 which had just this other ogg demuxing bug. 2011-04-23 18:00 this seeking bug is not always triggered 2011-04-23 18:00 you have to seek several times in a row 2011-04-23 18:01 i even started to get used to it back then, need to give it 5-6 seconds to settle after i seek 2011-04-23 18:01 then i can seek again 2011-04-23 18:01 i noticed that mplayer now ignores Volume keys -\ 2011-04-23 18:01 does -nocache help? 2011-04-23 18:01 never got softvol working.... 2011-04-23 18:02 dvdk: Checking for VIDIX ... no 2011-04-23 18:02 is this good or bad? 2011-04-23 18:02 ah, ok, you need to enable some otpions.. 2011-04-23 18:03 can you lookup the mplayer/Makefile in openwrt-packages.git on qi-hw? 2011-04-23 18:03 grmbl. It still makes the 'cannot execute binary file' 2011-04-23 18:03 let me see. 2011-04-23 18:03 --enable-vidix \ 2011-04-23 18:03   --disable-vidix-pcidb \ 2011-04-23 18:03   --with-vidix-drivers="no" 2011-04-23 18:03 dvdk: it hits oom with -nocache 2011-04-23 18:04 May I ask... what is 'vidix'? 2011-04-23 18:04 no i mean -nocache -demuxer ogg 2011-04-23 18:05 dvdk: why disable that pcidb? 2011-04-23 18:05 https://secure.wikimedia.org/wikipedia/en/wiki/Vidix 2011-04-23 18:05 no pci bus 2011-04-23 18:05 ah, it's nanonote specific. 2011-04-23 18:05 dvdk: it's better.. kind of.. still this sqeaky noise, but at least it's not stuck at it and i don't have to reboot Ben 2011-04-23 18:06 kyak: as soon as you test, everything stops working.  stop that :) 2011-04-23 18:07 viric: some more config opts:  --target=mips \ 2011-04-23 18:07   --disable-mencoder \ 2011-04-23 18:07   --disable-pthreads \ 2011-04-23 18:07 --disable-x11 \ disable-xv \ disable-vm \ disable-vdpau \ disable-gl \ disable-xf86keysym 2011-04-23 18:08 dvdk: :) 2011-04-23 18:09 ah, cool. if i add memory accesses, i get exactly the right frequency very convenient ;-)) 2011-04-23 18:10 dvdk: codec-cfg$(EXESUF): codec-cfg.c codec-cfg.h help_mp.h $(HOST_CC) -O -DCODECS2HTML -I. -Iffmpeg -o $@ $< 2011-04-23 18:10 it's clearly broken 2011-04-23 18:10 I'll try a newer snapshot. 2011-04-23 18:11 why it works w openwrt? 2011-04-23 18:11 I've no idea. 2011-04-23 18:11 maybe they fixed it. let's see. 2011-04-23 18:13 viric: i thought you'd start with a pre-existing nix package for nanonote, only adding the patch. 2011-04-23 18:14 of course porting from scratch for cross-compiling might become a PITA 2011-04-23 18:14 I'm seeing maybe I never built mplayer before :) 2011-04-23 18:14 but I'll fix it ;) 2011-04-23 18:18 dvdk: will you commit the Makefile? 2011-04-23 18:22 can i? 2011-04-23 18:26 why can't you? :) 2011-04-23 18:37 can ffmpeg have both fftheora and libtheora at once? 2011-04-23 18:37 wpwrak: you can use the rtc clock as timer or something no? 2011-04-23 18:39 kristianpaul: what use do you have in mind ? 2011-04-23 18:40 wpwrak: you need a clock divider right? you can use the..hmm rtc clock have a timer? :P 2011-04-23 18:41 kristianpaul: oh, but i need a fast clock. VGA pixel clock is 25.175 MHz 2011-04-23 18:41 hmm 2011-04-23 18:45 grmbl. having to wait for memory sucks. maybe i can squeeze a prefetch into hsync ... 2011-04-23 18:53 kyak: thought i shouldn't commit until patent codec problems are checked 2011-04-23 18:53 ok, have to go for now. 2011-04-23 18:54 kyak: btw the patch i send on the mailinglist is up-to-date and corresponds to my Makefile. 2011-04-23 18:54 cu 2011-04-23 18:54 blargh. 12 us and i have only 3.77 us :-( 2011-04-23 18:55 wpwrak: what are you doing? 2011-04-23 18:57 viric_: adding VGA output to the ben 2011-04-23 18:58 aah ok 2011-04-23 18:58 through UBB 2011-04-23 19:03 yeah. 31.6 us a line (without hsync) and i have a budget of 34.35 us 2011-04-23 19:03 err no, wait 2011-04-23 19:03 darn. i don't :-( 2011-04-23 19:03 I remember something like 14KHz 2011-04-23 19:03 only 31.77 us 2011-04-23 19:04 and without hsync, only 28 us. grmbl. too slow. 2011-04-23 19:05 it's like raw VGA video at 60fps through SDIO, almost 2011-04-23 19:05 viric_: (14 kHz) sounds like TV ? 2011-04-23 19:06 I think 14kHz is the line frequency 2011-04-23 19:06 way too slow. well, CGA perhaps. 2011-04-23 19:07 320x200 2011-04-23 19:07 VGA has 528 lines (including the invisible ones) 2011-04-23 19:08 not sure if modern monitors accept CGA vertical timing. in any case, the difficult one is horizontal timing. vertical is just more memory ;-) 2011-04-23 19:09 :) 2011-04-23 19:11 good. the memcpy to cache is done in 2.82 us. i have a budget of 3.77 us. 2011-04-23 19:15 ah .. wait ... let's do this a little smarter ... 2011-04-23 19:18 intersting. a mere read takes longer than a memcpy. hmm. probably something not too good with the loop check ... 2011-04-23 19:19 oopsie, killed the system ... 2011-04-23 19:21 still slow :-( 2011-04-23 19:22 ah, we can of course go a little faster ... 2011-04-23 19:25 wpwrak: some fun for you 2011-04-23 19:25 http://research.swtch.com/2011/01/mos-6502-and-best-layout-guy-in-world.html 2011-04-23 19:30 2.8 us. good. and i could probably make it even faster. the 34.6 us in a 31.77 us time slot are still there, though. hmm. 2011-04-23 19:38 doesnt get what all that complexity should be for 2011-04-23 19:38 i mean.. vga out? seriously? what a waste of time 2011-04-23 19:38 hmm ... lbu $5,... followed by andi $5,$5,0xff  that's kinda stupid 2011-04-23 19:44 grmbl. but does't get faster if i hand-optimize it. 2011-04-23 19:57 and if i pre-compute the whole word to store, memory bandwidth makes the prefetching too slow 2011-04-23 20:01 sigh. need to interpolate the pixels then. 2011-04-23 20:53 finally I built mplayer... 2011-04-23 21:19 kyak: were you running mplayer properly before? I don't have much luck... 2011-04-23 21:23 it runs super-slow here. 2011-04-23 22:19 30% of CPU decoding an OGG audio track 2011-04-23 22:19 finally. 2011-04-23 22:23 grmbl. my monitors don't like my beautiful vga signal. bastards. 2011-04-23 22:30 wow, there's more people here than i expected 2011-04-23 22:32 what the difference between usbboot, zbboot, and jzboot? 2011-04-23 22:35 I only use usbboot 2011-04-23 22:35 but I'm a bit outdated on that 2011-04-23 22:35 none of them work with my hardware.. so i need to know which one to try to fix :) 2011-04-23 22:38 what is your hardware? 2011-04-23 22:39 it's a cheap ebook, the cpu is a jz4755 2011-04-23 22:39 ah... 2011-04-23 22:39 i need to take it apart again because i forgot to check what the flash chip was :( 2011-04-23 22:39 I don't think it's generic code..... 2011-04-23 22:40 the windows version of usbboot that ingenics provides can boot it and access the flash, but there doesn't seem to be a firmware for the jz475x in the linux port 2011-04-23 22:41 port/rewrite/etc 2011-04-23 22:46 larsc knows well some jz47xx chips 2011-04-23 23:00 andy753421: hanvon ebook? 2011-04-23 23:02 kristianpaul: no, it's a crazy generic one with no identifiable markings, i found a link on some bulk-purchase site for something similar though, hold on 2011-04-23 23:02 (it was given to me for free) 2011-04-23 23:02 oh 2011-04-23 23:03 $60 :) http://www.alibaba.com/product-gs/439080383/Private_model_7_ebook_with_WIFI.html 2011-04-23 23:03 but i see you take apart in order to indentify cpu was jz4755 2011-04-23 23:04 ah, CPU::  JZ4755 400HZ 2011-04-23 23:04 http://andy753421.ath.cx/temp/ebook-3.jpg 2011-04-23 23:04 it's not with eink? 2011-04-23 23:04 HZ.. ;) 2011-04-23 23:05 400Hz has to be annoying in the ears, if it couples to the internal spekaer :) 2011-04-23 23:05 it's a generic LCD, really not that much use as an e-book, but it should make a good portable movie player 2011-04-23 23:05 (assuming i can update the software to not be horrible ;) 2011-04-23 23:06 It can't play movies now? 2011-04-23 23:07 Va, bona nit a tothom. 2011-04-23 23:07 it can, but the a/v tracking slowly gets skewed somehow, so after about ~10 minutes it starts to get pretty noticeable 2011-04-23 23:07 it can't connect to network shares either at the moment, which i would really like as well 2011-04-23 23:08 andy753421: got indentified serial port already? 2011-04-23 23:09 there's a usb port, which i can connect to with the recover boot-mode 2011-04-23 23:09 (i have to press the `back arrow' and hit reset, then it goes to recover mode,etc) 2011-04-23 23:09 hmm but is that actually give a uboot promtp? 2011-04-23 23:10 usb port emulates a serial port? 2011-04-23 23:10 kristianpaul: oh no, i don't think there's any way to do that, but i can access the flash chip that way 2011-04-23 23:11 i don't think there are any actual serial ports brought out on it, unless there's some trick to doing it with the usb port 2011-04-23 23:11 i cant find 4755 pinout, but if is same as 4725 i think there is 2011-04-23 23:12 kristianpaul: the processor supports it, but i don't think the board is set up for it 2011-04-23 23:12 i dount that but i let the question open 2011-04-23 23:13 at least you find the pads for selecting the boot mode? 2011-04-23 23:13 pin 28 and 33 is UART1 2011-04-23 23:15 i haven't tried to do anything directly, here's the data sheet for the cpu though: http://andy753421.ath.cx/temp/Jz4755_ds.pdf 2011-04-23 23:18 hmm that lined sqaure in the right down corber could be the seria port pad..or.. i cant see very well in the pic 2011-04-23 23:19 in any case you could try solder some wires directly to the soc been carefull not take too long or internal gold wires may die 2011-04-23 23:19 anyway 2011-04-23 23:19 have fun !!! 2011-04-23 23:21 openinkpot project will be gratefull at least if you publish some full res pic for the whole PCB and Display 2011-04-23 23:21 i think 2011-04-23 23:21 also your findings etc.. 2011-04-23 23:29 andy753421: i think dingux uses same chip you have but not sure at all.. 2011-04-23 23:32 kristianpaul: i can try to take some more pictures, but i don't have a very good camera 2011-04-23 23:32 (those are `full res' ;) 2011-04-23 23:33 oh, there's 0, 1, and 2, pictures too if you hadn't noticed: http://andy753421.ath.cx/temp/ebook-2.jpg 2011-04-23 23:33 heh, mystery solved. hsync must keep on running also when there's no line to display. 2011-04-23 23:34 andy753421: yes i asaw it, but no too much res as i want 2011-04-23 23:35 kristianpaul: ah, that's the best resolution i can do, but i'll see if I can get some better light, and i could take some close-ups if you want 2011-04-23 23:36 close up nea the right down corner around the soc is calling my atention :-) 2011-04-23 23:38 i'll see what i can do, i've got to head in to work for a couple hours right now though 2011-04-23 23:40 good. now i get my test pattern on all my three monitors (xenon, samsung, lg). they don't keep sync, though. wish i had an analog monitor :) 2011-04-23 23:44 still having his trusty compaq MV500 monitor 2011-04-23 23:48 trusty or rusty ? ;-) 2011-04-23 23:50 well, it run mm1 patches very well, of course it is not white as in 1995 but it looks resonable good :D