
Recherche avancée
Autres articles (28)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
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 (4973)
-
RTSP Stream Recording using FFMPEG
9 juillet 2022, par Shanavas K Abdul RahmanI am not in to scripting. It would be really helpful if someone can help with a bash or python script on Raspbian v5 for my below requirement.


I am trying to locally record
Eufy
Cam human detection usingffmpeg
. I have managed to find the command to fetch the stream which isffmpeg -hide_banner -y -loglevel verbose -rtsp_transport tcp -use_wallclock_as_timestamps 1 -i rtsp://192.168.xx.xx/live0 -vcodec copy -acodec copy -f segment -reset_timestamps 1 -segment_time 900 -segment_format mkv -strftime 1 "/media/pi/hdd/cam_name/camname$(date +"%Y-%m-%d-%H-%M-%S").mkv
.

Since these are battery operated cameras I cannot stream continuously. Camera generates stream only when it detects human as per my camera configuration. So when there is no human presence,
ffmpeg
return error "404 Stream Not Found" which is expected result. I wantffmpeg
to reattempt in endless loop if previous attempts returns error404 Stream Not Foun
d.

When human presence is detected, stream is being recorded to the mentioned location which works well. I need ffmpeg to reconnect even after successful stream fetch to seek for next motion recording. Successful stream download ends as follows.


No more output streams to write to, finishing.


:04.26 bitrate=N/A speed=0.559x 
[segment @ 0x2172d60] segment:'/media/pi/hdd/cam_name/camname2022-07-09-11-13-29.mkv' count:0 ended
[AVIOContext @ 0x2143630] Statistics: 16 seeks, 13 writeouts
frame= 31 fps=4.1 q=-1.0 Lsize=N/A time=00:00:04.26 bitrate=N/A speed=0.559x 
video:359kB audio:8kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (rtsp://192.168.100.16/live0):
 Input stream #0:0 (video): 34 packets read (373534 bytes); 
 Input stream #0:1 (audio): 42 packets read (7884 bytes); 
 Total: 76 packets (381418 bytes) demuxed
Output file #0 (/media/pi/Extreme 900/Gate_View/GateView2022-07-09-11-13-29.mkv):
 Output stream #0:0 (video): 31 packets muxed (367940 bytes); 
 Output stream #0:1 (audio): 42 packets muxed (7884 bytes); 
 Total: 73 packets (375824 bytes) muxed



In summary, I am looking for a script with below conditions.


IF terminal returns
404 Stream Not Found" OR "packets muxed
THEN repeat same command in endless loop.

I have several battery operated cameras. Please help with script.


Thanks in advance.


Regards,


Shanavas Abdulrahman


-
build guardianproject's ffmpeg library using android ndk for android on windows
25 juillet 2014, par Abdul QadirI need to encode/decode audio files to mp3 inside my android project using ffmpeg, but I encounter the error
unknown encoder libmp3lame
while doing so. On reading the guidelines on the guardianproject’s ffmpeg github page : https://github.com/guardianproject/android-ffmpeg
I probably need to add--enable-libmp3lame
in theconfigure_ffmpeg.sh
file.I’m using windows. I’ve cloned the github project. I’ve edited the configure_ffmpeg.sh file. According to the guidelines to build, the following command in cmd is not working probably because I’m on windows
github-project-root: path-to-ndk\ndk-build configure_make_everything.sh
I get the following error :
Android NDK: Could not find application project directory
Android NDK: Please define NDK_PROJECT_PATH variable to point to it
path-to-ndk\build/core/build-local.mk:/148: *** Android NDK: Aborting. Stop.I need to enable libmp3lame so I can encode/decode my audio files to mp3 inside my android project. Any help would be appreciated.
-
Ubuntu 16.04 ffmpeg cmake is error [on hold]
15 septembre 2017, par yangI am in ubuntu 16.04 system, the use of apt-get way to install ffmpeg developer library, in the use of cmake build project, the project error.