lundi 10 février 2014

Java et la console de sécurité

Bon diou, je viens de trouver.

Alors rapidement mon pb: impossible de démarrer une applet Java malgré l'installation d'une JRE récente dans /opt/jre<version>

Sous FireFox j'autorise pourtant le lancement de Java et lorsque je démarre une applet j'ai un message de sécurité puis une erreur.

Pour modifier le niveau de sécurité Java il m'a fallut démarrer le "ControlPanel":

/opt/jre<version>/bin/ControlPanel

et modifier le niveau de sécurité ou inclure le site en question dans les exceptions.

dimanche 9 février 2014

WireShark

Filtres WireShark

Pour filtrer entre deux machines:
host <ip1> and <ip2>

OpenEmbedded/Yocto

OpenEmbedded / YOCTO

Eviter trop de traces:

Ajout dans le fichier <build>/conf/local.conf

INHERIT += "rm_work" 

Pour ajouter à une image des libs:

exemple: libstdc++ et libpcap


Ajout dans le fichier <build>/conf/local.conf
IMAGE_INSTALL_append = " libstdc++"
IMAGE_INSTALL_append = " libpcap"


Pour générer le SDK:

$> bitbake meta-toolchain

Très important pour ajouter les ".h" à l'environnement de dév

$> bitbake <your-image> -c populate_sdk

Utiliser le SDK:

Poser l'environnement, dans une console par exemple:
. /opt/poky/1.5+snapshot/environment-setup-armv6-vfp-poky-linux-gnueabi 

Pour générer avec "configure":  ./configure --host=arm

samedi 8 février 2014

Serveur vidéo

Bon, ça fait un moment que je n'ai pas publié un peu sur ce blog.
Mes activités en ce moments:
- OpenEmbedded/Yocto sur Raspberry Pi
- Serveur Vidéo RTP/RTSP/RTCP

Lien intéressant pour openembedded/yocto:


Merci Monsieur Ficheux, d'ailleurs merci pour votre très intéressante formation de fin janvier.

Côté Serveur Vidéo:

Live555

Outils très intéressants pour créer son propre serveur vidéo.
Objectif: l'installer sur un Raspberry Pi.

Point intéressant pour traiter un flux:
http://www.live555.com/liveMedia/faq.html#liveInput

The "test*Streamer" test programs read from a file. Can I modify them so that they take input from a H.264 or MPEG encoder instead, so I can stream live (rather than prerecorded) video and/or audio?

Yes. The easiest way to do this is to change the appropriate "test*Streamer.cpp" file to read from "stdin" (instead of "test.*"), and then pipe the output of your encoder to (your modified) "test*Streamer" application. (Even simpler, if your operating system represents the encoder device as a file, then you can just use the name of this file (instead of "test.*").) Alternatively, if your encoder presents you with a sequence of frames (or 'NAL units'), rather than a sequence of bytes, then a more efficient solution would be to write your own "FramedSource" subclass that encapsulates your encoder, and delivers audio or video frames directly to the appropriate "*RTPSink" object. This avoids the need for an intermediate 'framer' filter that parses the input byte stream. (If, however, you are streaming H.264, or MPEG-4 (or MPEG-2 video with "B" frames), then you should insert the appropriate "*DiscreteFramer" filter between your source object and your "*RTPSink" object.)
For a model of how to do that, see "liveMedia/DeviceSource.cpp" (and "liveMedia/include/DeviceSource.hh"). You will need to fill in parts of this code to do the actual reading from your encoder.