sicelo | 1:02 < DocScrutinizer05> alias n900cam='gst-launch-1.0 udpsrc port=10010 caps=application/x-rtp,clock-rate=90000 ! rtpjitterbuffer ! etc .... what does it do? i'm curious, but don't have a pc at hand to test | 00:07 |
---|---|---|
DocScrutinizer05 | sicelo: it starts a video source on N900 from main camera to WLAN, RTP jpeg format/protocol. And same time it starts a viewer on the interactive side (here: my PC) | 00:17 |
DocScrutinizer05 | prerequisite: nothing blocking UDP data on destination port 10010 | 00:18 |
DocScrutinizer05 | sicelo: I just fire a `n900cam` in a shell of my PC | 00:20 |
DocScrutinizer05 | (could use a desktop icon or a startmenu entry as well) | 00:20 |
sicelo | how is the latency? does the n900 cope? | 00:22 |
DocScrutinizer05 | latency ~0.5s | 00:42 |
DocScrutinizer05 | though it's ABR and sort of "hibernates" when long time no change in input scene | 00:44 |
*** dafox has quit IRC | 00:46 | |
DocScrutinizer05 | when it does (may take up to a minute it seems) then bandwidth of stream goes down from ~2Mb/s to 500kb/s and a "framerate" like 1/s and it takes like 3s to ramp up to narmal operation again. Free motion detection, simply watch bandwidth \o/ ;-D | 00:49 |
DocScrutinizer05 | sicelo: ^^^ | 00:49 |
DocScrutinizer05 | cope? | 00:50 |
DocScrutinizer05 | works fine | 00:51 |
DocScrutinizer05 | prolly you could reduce latency further by tweaking (or omitting) rtpjitterbiffer | 00:54 |
DocScrutinizer05 | for my purposes it's absplutely fine | 00:54 |
DocScrutinizer05 | absolutely, even | 00:55 |
DocScrutinizer05 | gotta consider how to deal with maemo-camera though | 00:56 |
DocScrutinizer05 | prolly needs some tweaking of dbus stuff, or maybe simply not starting camera during system boot may do the trick | 00:59 |
DocScrutinizer05 | then OTOH I vaguely recall that without camera getting started at least once since boot, the videa had abysmal (or no) white balance done | 01:00 |
DocScrutinizer05 | also on N900 the gstreamer process doesn't get killed on teardown of connection - gotta come up with some smart(er) job management | 01:16 |
sicelo | thanks for the explanation. | 01:21 |
DocScrutinizer05 | yw :-) thanks for your interest | 01:36 |
sicelo | ;) | 01:37 |
DocScrutinizer05 | did I share that nice deep-insight "[bash] how to handle signals" stuff? | 01:54 |
DocScrutinizer05 | bottom line: when your script catches a signal that would normally make it abort, you MUST make the script terminate itself by sending that very signal to $self, to let outer shell wrappers know whether to continue or to abort | 01:56 |
DocScrutinizer05 | I.E do NOT use a simple `exit` | 01:57 |
*** Venemo has joined #maemo | 02:02 | |
*** florian has quit IRC | 02:04 | |
DocScrutinizer05 | How the shell handles ^C (SIGINT) and why: http://www.cons.org/cracauer/sigint.html | 02:23 |
DocScrutinizer05 | TL;DR: trap 'rm -f $TMP ; trap 2 ; kill -2 $$' 1 2 3 13 15 | 02:24 |
*** jon_y has quit IRC | 02:33 | |
*** Kilroo has joined #maemo | 03:00 | |
*** DocScrutinizer05 has quit IRC | 03:05 | |
*** DocScrutinizer05 has joined #maemo | 03:05 | |
*** DocScrutinizer05 has quit IRC | 03:51 | |
*** DocScrutinizer05 has joined #maemo | 03:51 | |
*** keithzg has joined #maemo | 04:05 | |
*** pagurus has quit IRC | 04:33 | |
*** tm has quit IRC | 04:43 | |
*** tm has joined #maemo | 04:47 | |
*** povbot has joined #maemo | 07:34 | |
*** chainsawbike has quit IRC | 08:08 | |
*** chainsawbike has joined #maemo | 08:09 | |
*** Kilroo has quit IRC | 08:17 | |
*** dafox has joined #maemo | 09:25 | |
*** hurrian has joined #maemo | 09:36 | |
*** dafox has quit IRC | 09:54 | |
luke-jr | DocScrutinizer05: if only the boolean result matters, exit 1 works; if you need the exact correct result, then sending signal 2 won't be right for any of the other signals | 10:04 |
*** florian_kc is now known as florian | 10:29 | |
*** jskarvad has joined #maemo | 11:34 | |
*** eMHa has joined #maemo | 11:35 | |
*** eMHa_ has joined #maemo | 11:37 | |
*** eMHa has quit IRC | 11:37 | |
*** richrboo_ has joined #maemo | 12:13 | |
*** jon_y has joined #maemo | 12:20 | |
*** dderby has quit IRC | 13:21 | |
*** povbot has joined #maemo | 13:29 | |
*** povbot has joined #maemo | 13:30 | |
*** Oksana has quit IRC | 14:50 | |
*** hurrian has quit IRC | 15:10 | |
*** richrboo_ has quit IRC | 15:24 | |
*** Kabouik has joined #maemo | 17:46 | |
*** dderby has joined #maemo | 18:15 | |
DocScrutinizer05 | no, the return code does NOT matter, see the article I linked | 18:25 |
DocScrutinizer05 | you may go fancy and set up a separate interrupt handler (trap) for every signal you catch, end send that very signal to $$ (self) after you did clanup | 18:27 |
DocScrutinizer05 | usually this is not necessary though | 18:27 |
* DocScrutinizer05 idly wonders if there is, or bash could learn to provide, a $SIGNAL env that contains an array of numeric IDs of signals the process received | 18:30 | |
brolin_empey | DocScrutinizer05: Somewhat like ${PIPESTATUS} in bash? | 18:41 |
*** Pali has joined #maemo | 18:44 | |
DocScrutinizer05 | sort of | 18:46 |
DocScrutinizer05 | of course you can do trap 'cleanup INT' INT; trap 'cleanup ABRT' ABRT; ... | 18:47 |
DocScrutinizer05 | and have cleanup() deal with the signame parameter | 18:48 |
DocScrutinizer05 | or for (i=1; i<=32; i++); do trap "cleanup $i" -$i; done; #? | 18:52 |
*** dafox has joined #maemo | 18:57 | |
DocScrutinizer05 | I'm not sure what the latter will do | 19:02 |
DocScrutinizer05 | not even allowed according to POSIX which only allows names for signal/condition, no integers | 19:03 |
*** florian has quit IRC | 19:38 | |
*** dafox has quit IRC | 19:39 | |
*** spiiroin has quit IRC | 20:09 | |
*** florian has joined #maemo | 20:28 | |
*** florian has quit IRC | 20:33 | |
*** florian has joined #maemo | 20:59 | |
*** how900 has quit IRC | 21:01 | |
*** how900 has joined #maemo | 21:01 | |
*** how900 has joined #maemo | 21:01 | |
*** jskarvad has quit IRC | 21:25 | |
*** pagurus has joined #maemo | 21:48 | |
*** Oksana has joined #maemo | 21:50 | |
*** Gizmokid2005 has quit IRC | 22:26 | |
*** Gizmokid2005 has joined #maemo | 22:26 | |
*** troulouliou_div2 has joined #maemo | 22:39 | |
*** spiiroin has joined #maemo | 22:40 | |
*** troulouliou_div2 has joined #maemo | 23:05 | |
*** troulouliou_div2 has quit IRC | 23:27 | |
*** eMHa_ has quit IRC | 23:44 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!