
Recherche avancée
Médias (91)
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
-
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 (32)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
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 (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (4707)
-
Python ffmpeg won't accept path, why ?
16 février, par Messaoud dhiaeverytime i launch the code and set the correct path it gives me this error, I tried including ffmpeg path, uninstalling and installing the library back but no luck. I've also tried using diffrent ways to set the path like putting it directly without saving it to a variable, this is getting me crazy please help me with a solution .



Code




from pytube import *
import ffmpeg

global str
userurl = (input("Enter a youtube video URL : "))
q = str(input("Which quality you want ? 360p,480p,720p,1080p,4K,Flh :")).lower()
yt = YouTube(userurl)
print ("Title of the video : ",yt.title)


def hd1080p():
 print("Downloading a HD 1080p video...")
 v = yt.streams.filter(mime_type="video/mp4", res="1080p", adaptive = True).first().download(filename = "HD1080P.mp4")
 print("Video downloaded")
 yt.streams.filter(mime_type="audio")
 a = yt.streams.get_audio_only()
 print("Downloading audio")
 a.download(filename = "audio.mp4")
 print("audio downloaded")
 input_video = ffmpeg.input("HD1080P.mp4")
 added_audio = ffmpeg.input("audio.mp4").audio.filter('adelay', "1500|1500")

 merged_audio = ffmpeg.filter([input_video.audio, added_audio], 'amix')

 (
 ffmpeg
 .concat(input_video, merged_audio, v=1, a=1)
 .output("mix_delayed_audio.mp4")
 .run(overwrite_output=True)
 )
 

if q == "1080" or q == "1080p":
 hd1080p()
elif q == "720" or q == "720p":
 hd720p()
elif q == "480" or q == "480p":
 l480p()
elif q == "360" or q == "360p":
 l360p()
elif q == "4" or q == "4k":
 hd4k()
else:
 print("invalid choice")




THE ERROR




Traceback (most recent call last):
 File "c:\Users\messa\Desktop\upcoming project\videodownloader.py", line 65, in <module>
 hd1080p()
 File "c:\Users\messa\Desktop\upcoming project\videodownloader.py", line 26, in hd1080p
 ffmpeg
 File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg\_run.py", line 313, in run
 process = run_async(
 File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\site-packages\ffmpeg\_run.py", line 284, in run_async
 return subprocess.Popen(
 File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 947, in __init__
 self._execute_child(args, executable, preexec_fn, close_fds,
 File "E:\Users\messa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1416, in _execute_child
 hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
</module>


-
How to convert multiple video files in a specific path outputvideo with the same video name
31 janvier, par Oussama GamerThe following code to converts a one video from mp4 to avi using ffmpeg


ffmpeg.exe -i "kingman.mp4" -c copy "kingman.avi"


I need to convert multiple videos in a specific path. "outputvideo" with the same video name


This is the my code that needs to be modified.


from pathlib import Path
import subprocess
from glob import glob

all_files = glob('./video/*.mp4')

for filename in all_files:
 videofile = Path(filename)
 outputfile = Path(r"./outputvideo/")
 codec = "copy"
 ffmpeg_path = (r"ffmpeg.exe")

outputfile = outputfile / f"{videofile.stem}"

outputfile.mkdir(parents=True, exist_ok=True)

command = [
 f"{ffmpeg_path}",
 "-i", f"{videofile}",
 "-c", f"{codec}",
 "{outputfile}",]

process = subprocess.Popen(
 command,
 stdout=subprocess.PIPE,
 stderr=subprocess.PIPE,
 text=True,
 bufsize=1,
 universal_newlines=True)
process.communicate()



-
avcodec/opus/parser : remove duplicate failure path code
3 janvier, par James Almer