
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (67)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)
Sur d’autres sites (2103)
-
How to Extract frames and set frames per seconds with .sh file
20 août 2022, par Fraction AnalyticsI am trying to extract features from videos using a shell script file while extracting features from videos I don't know how to set frames per second.


#!/bin/bash
frames_folder_path=./data
videos_folder_path=./videos
ext=mp4

mkdir "${frames_folder_path}"

for video_file_path in "${videos_folder_path}"/*."${ext}"; do
 slash_and_video_file_name="${video_file_path:${#videos_folder_path}}"
 slash_and_video_file_name_without_extension="${slash_and_video_file_name%.${ext}}"
 video_frames_folder_path="${frames_folder_path}${slash_and_video_file_name_without_extension}";
 mkdir "${video_frames_folder_path}"
 ffmpeg -i "${video_file_path}" "${video_frames_folder_path}/%d.jpg"
done



I tried this code to extract the feature. I just want to extract 2 frames per second but It removes 30 frames per second with default frames rate.


How to resolve this issue with shell script file.


-
ffmpeg command does not work when run from .sh file
19 novembre 2020, par Felipe HurtadoI am trying to run an ffmpeg command from a shell file but I am getting the following error :


'NULL @ 0x343e9c0] Unable to find a suitable output format for '



: Invalid argument


Below the ffmpeg commnad


ffmpeg -i "rtsp://admin:adminCTZSDS@192.168.0.5/1" -s 600x400 -framerate 20 -b:v 16k -preset slow -acodec libmp3lame -ar 11025 -crf 20 -f flv rtmp://localhost:1935/live/camara2 



and this is the content of the shell file :


#!/bin/bash
#script streaming
ffmpeg -i "rtsp://admin:adminCTZSDS@192.168.0.5/1" -s 600x400 -framerate 20 -b:v 16k -preset slow -acodec libmp3lame -ar 11025 -crf 20 -f flv rtmp://localhost:1935/live/camara2 
 



the command works if I run it manually in a terminal


-
Unable to get a continuous video of last N seconds using ffmpeg [duplicate]
28 juin 2021, par trycatch22I am trying to create a dashcam from an RTSP streaming device using ffmpeg (in Python). I have it working, but I am losing a small bit of video between stopping a file and starting a new file.


My pseudocode looks like this :


Start recording in 5s increments
while True:
 now = get current time
 if now > split:
 stop recording
 start recording with new file name



At any point when I send a trigger, I wait (up to 5s) for the current file to be written to disk, and then I stitch the required number of files to get a video of the desired length. The issue is that I am losing time between the stop and the start.


I am starting a new file like so :


process_cmd = "ffmpeg -y -loglevel panic -i rtsp://{}:{}@{} -vf scale={}:{} -t {} {}".format(self._rtsp_login, self._rtsp_pwd, self._rtsp_server, self._width, self._height,self._rtsp_video_duration,output_file)
self._process_handle = subprocess.Popen(process_cmd, shell=True)



I am waiting for the video to be done recording by :


self._process_handle.wait()



What's a cleaner way to do this ? One option would be to write a longer file and then use ffmpeg to extract the desired N seconds from it.


proc = subprocess.Popen("ffmpeg -y -i rtsp://admin:ambi1234@192.168.1.200 -profile:v high -pix_fmt nv12 -b:v 15M -acodec aac out.mp4", stdin=subprocess.PIPE,shell=True)



This requires me to stop the recording first by sending 'q' to the process and then :


subprocess.Popen("ffmpeg -y -sseof -00:00:3 -i out.mp4 -vcodec copy -acodec copy test.mp4", shell=True)



But that source file (out.mp4) would have to be cleaned up every so often and if an event happens at that point, then I won't be able to capture the data.