
Recherche avancée
Médias (2)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (111)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (18173)
-
ffmpeg library does not work from path but directly
19 juin 2020, par Ángel BarriosI want to add a watermark to a video.



I'm trying with windows 10 and ffmpeg library



The command I am using.



ffmpeg -i example.mp4 -i watermark.png -filter_complex "overlay=0-0+0:main_h-overlay_h-0+0" watermark.mp4




When I use it this way accesing the path I get this error :






But when I execute it not from path but opening cmd right on the executable folder it works fine



I did some research and couldn't find the answers I was looking for.



Why does this happen ? I can´t understand really



Thank you !


-
How to make ffmpeg follow a variable file path [closed]
2 septembre 2023, par WessieI have a little Python script. What it should do is to take the last file out a folder and convert it to another with the same filename.


The Script :


from moviepy.editor import *
import glob
import os.path

#Variabels
folder_path = r'/pathtofolder/Recordings'
file_type = r'/*h264'
file_type_conv = r'/*mp4'
files = glob.glob(folder_path + file_type)
files_conv = glob.glob(folder_path + file_type_conv)
clip_latest = max(files, key=os.path.getctime)
clip_conv = max(files_conv, key=os.path.getctime)

#print(clip_latest)
#print(clip_conv)

ffmpeg -i clip_latest -r 25 clip_conv 



This gives me back :


SyntaxError: invalid syntax



When I 'print" the code it gives me the path I need. But I cannot get the path into the ffmpeg code.
What anm I doing wrong ?


Thanks in advance !


I tried to place the variables in "" and in {}.
When I give a full path it works good.


UPDATE :


Got it working ! Thaqnks to the advise of@Daviid I've used python-ffmpeg library.
Here's the code :


import glob
import os.path
import subprocess

#Variabels
folder_path = r'/home/wessie/Halloween/Recordings'
file_type = r'/*h264'
file_type_conv = r'/*mp4'
files = glob.glob(folder_path + file_type)
files_conv = glob.glob(folder_path + file_type_conv)
clip_latest = max(files, key=os.path.getctime)
clip_conv = clip_latest + '.mp4'

print(clip_latest)
print(clip_conv)

subprocess.run(['ffmpeg', '-i', clip_latest, clip_conv])




Thanks !


-
Set path while installing [duplicate]
12 janvier 2021, par Education 4FunMy requirement is to set a path(C :/ffmpeg) while installing the software itself for my application(which I made)

A reference that it's possible(While installing python 3.8.0 we have check box by ticking it we can add the path of python automatically)

This is the main requirement which I wanna do with my application



About My application :

My application is a simple video editing application that runs on cmd as it uses FFmpeg its path should be set only then the application will work
The application is coded in python and the GUI is made using pyqt5 The application runs on cmd like the commands and all here is a reference image for observation enter image description here



So it's mandatory to add the path else FFmpeg will not recognize. If there is any way to do in building setup like how python can add the path as per user requirement refer to the image (1st image)


About Files in C :/ffmpeg
Files in FFmpeg folder refer to image for that info




Hope the query is a bit clear.
Thanks a lot