
Recherche avancée
Autres articles (76)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Menus personnalisés
14 novembre 2010, parMediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
Menus créés à l’initialisation du site
Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)
Sur d’autres sites (13454)
-
Read h264 stream from an IP camera
13 juillet 2015, par João NevesCurrently, I am trying to use opencv to read a video from my Canon VB-H710F camera.
For this purpose I tried two different solutions :
SOLUTION 1 : Read the stream from rtsp address
VideoCapture cam ("rtsp://root:camera@10.0.4.127/stream/profile1=u");
while(true)
cam >> frame;In this case I am using opencv to directly read from a stream encoded with in H264 (profile1), however this yields the same problem reported here http://answers.opencv.org/question/34012/ip-camera-h264-error-while-decoding/
As suggested in the previous question, I tried to disable FFMPEG support in opencv installation, which solved the h264 decoding errors but raised other problem.
When accessing the stream with opencv, supported by gstreame, there is always a large delay associated.
With this solution I achieve 15 FPS but I have a delay of 5 seconds, which is not acceptable considering that I need a real time application.SOLUTION 2 : Read the frames from http address
while(true)
startTime=System.currentTimeMillis() ;URL url = new URL("h t t p://[IP]/-wvhttp-01-/image.cgi");
URLConnection con = url.openConnection();
BufferedImage image = ImageIO.read(con.getInputStream());
showImage(image);
estimatedTime=System.currentTimeMillis()-startTime;
System.out.println(estimatedTime);
Thread.sleep(5);
}This strategy simply grabs the frame from the url that the camera provides. The code is in Java but the results are the same in C++ with the curl library.
This solution avoids the delay of the first solution however it takes little more than 100 ms to grab each frame, which means that I can only achieve on average 10 FPS.I would like to know how can I read the video using c++ or another library developed in c++ ?
-
Concatenating with ffmpeg - audio out of sync after 2 or 3 files
1er août 2015, par eCronikI have recorded some hour long .flv files I want to glue together. For that, I am using the concat script from https://trac.ffmpeg.org/wiki/Concatenate
(on the page, at the bottom) with the following tweaks :
EXTRA_OPTIONS='-c:v libx264 -preset slow -profile:v main -b:v 2175k -minrate 2175k -maxrate 2175k -bufsize 2175k -g 80 -c:a aac -strict -2 -b:a 192k'
and at the bottom :
ffmpeg -f u16le -acodec pcm_s16le -ac 2 -ar 44100 -re -i $TMP/mcs_a_all \
-f yuv4mpegpipe -vcodec rawvideo -re -i $TMP/mcs_v_all -loop 1 -i /path/to/overlay.png \
-filter_complex "[1:v][2:v]overlay=shortest=1[v]" -map "[v]" -map 0:a $EXTRA_OPTIONS \
-f flv $lastThe first file, when started, is always 100% sync’ed. Files are randomized, so it’s not always the same one. When it reaches the second or third file, the audio (or video ?) gets more and more out of sync. I’ve tried
'-vsync 0' as well as '-vsync 0 -copyts'
but nothing helped so far. The files are all recorded with a sample rate of 44.1kHz - audio bitrate and video bitrate might vary a bit between them, but were always constant. To record them, I have used the following :
-c:v libx264 -preset slow -profile:v main -b:v 2175k -minrate 2175k -maxrate 2175k -bufsize 2175k -r 40 -g 80 -keyint_min 40 -x264opts "keyint=80:min-keyint=80:no-scenecut" -c:a aac -strict -2 -b:a 192k -f flv rtmp://address \-c copy -f flv rtmp://address;
The ’-keyint_min 40 -x264opts "keyint=80:min-keyint=80:no-scenecut"’ was added at a later point - so some files are recorded with it, some others were without.
Does anybody has an idea what else I could try to fix it ? As the first file is always sync’ed, I guess the problem is not that the files were recorded wrong.
Thanks a bunch,
eC -
avconv/ffmpeg http audio streaming from mic
11 juillet 2014, par user3764830I need to establish a audio server that records audio from mic input hw:1,0.
I can able to do it with RTP server
avconv -f alsa -ac 1 -i hw:1,0 -acodec mp2 -b 64k -f rtp rtp://192.168.1.111:1234
But i need it as http server so that i can able to stream this audio in multiple devices with PI (ip+1234)address
Thanking You