
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (96)
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
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 ; (...) -
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)
Sur d’autres sites (9535)
-
ffmpeg break up videos with frame persecond
25 mai 2018, par jameshwart lopezTheres a command to extract images of a video providing frame per seconds
ffmpeg -i "vide.mp4" -vf fps=1 frames/frame_%04d.png -hide_banner
Is there a command in ffmpeg to cut video providing fps and save it as video(.mp4 / avi) file like the command above ?
What i currently have is i created a method to cut the videos with start and endtime but i firstly created a method to get the length of a video so that i could cut the video base on how many frames that was generated by the above command.
def get_length(self):
"""
Gets the length of a video in seconds
Returns:
float : Length of the video
"""
print("Getting video length: " + self.video_string_path)
command = 'ffprobe -i "'+self.video_string_path+'" -show_entries format=duration -v quiet -of csv="p=0"'
self.command = command
length = str(cmd.execute(command)).strip()
print("lenght: "+length+" second(s)")
return float(length)
def cut(self, start_time, duration, output_file_name = 'output_file_name.mp4', save_to =''):
"""
Cut a video on a specific start time of the video and duration.
Check ffmpeg documentation https://ffmpeg.org/ffmpeg.html for more information about the parameters
Parameters:
start_time : string
is the value of ffmpeg -ss with the format: 00:00:00.000
duration : string | int | float
is the end point where the video will be cut. Can be the same with start_time format but it could also handle integer as in seconds
output_file_name : string
is the file name once the file is save in the hardisk
save_to : string | optional
is the directory where the file will be saved
Returns:
string: file location of the cutted video
"""
self.make_sure_save_dir_exits(save_to)
print('Cutting ' + self.video_string_path + ' from ' + start_time + ' to ' + str(duration))
print('Please wait...')
file = '"' + self.save_to + output_file_name + '"'
command = 'ffmpeg -i "' + self.video_string_path + '" -ss ' + str(start_time) + ' -t ' + str(duration) + ' -c copy -y ' + file
self.command = command
cmd.execute(command)
file_loc = self.get_save_to_dir() + output_file_name
print('Done: Output file was saved to "' + file_loc + '"')
return file_loc + output_file_name -
Capture & save MJPG CCTV stream to file w. FFMPEG
21 juin 2021, par GBanoI've been trying to record an IP-cam stream (Foscam, mjpg) via http with ffmpeg.
Can't get the rtsp stream for some reason, but the http/mjpg works fine (VLC IDed it as mjpg).


The stream URL looks like this :

http://192.168.1.123:456/videostream.cgi?user=USERNAME&pwd=PWD


So I created the string (w.o line wrap) :

ffmpeg -i -loglevel debug http://192.168.1.123:456/videostream.cgi?user=USERNAME&pwd=PWD /home/user/Videos/camera.mp4


Some examples I saw are using
-c
copy
andmap 0
options as well but I left this out since I defined source and destination clearly and this is just a video, no audio.
segment_time
andsegment_format
I also left out for now (I'd like segments later though- when it's working).

FFMPEG returns :
"bash: /home/user/Videos/camera.mp4: No such file or directory"


So I tried a random mjpg stream from the net (Insecam is a nice source for this...) :
http://58.69.178.54:80/mjpg/video.mjpg


Leading to :

ffmpeg copy -i -loglevel debug -hide_banner http://58.69.178.54:80/mjpg/video.mjpg /home/user/Videos/camera.mp4


Returns :
-loglevel: "No such file or directory"
(the same with segment options included, copy excluded).

Shouldn't FFMPEG create the destination file ?


One example mixed FFMPEG with CVLC (Save continuous RTSP stream to 5-10 minute long mp4 files) so I just tried with cvlc.

cvlc http://58.69.178.54:80/mjpg/video.mjpg copy /home/user/Videos/camera.mp4

This opens the stream in a VLC window (despite that I use Cvlc) but does not create a destination file.

I suspect I must have missed something simple & silly, but what ?


-
How to detetc hardware acceleration in ffmpeg
19 décembre 2020, par Ali RazmkhahI am writing c++ program to screen record by ffmpeg 4.3 ! I need to detect hardware acceleration support such as h264_qsv or h264_nvenc without running ffmpeg.exe !


I explored ffmpeg.exe source code and found no results ! some solutions are deprecated or dose not work on 4.3 !
As instance,


avcodec_find_encoder_by_name("h264_qsv")



returns null even it is exist and works properly !