
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (47)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone. -
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)
Sur d’autres sites (7744)
-
avcodec/opus/parser : remove duplicate failure path code
3 janvier, par James Almer -
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()



-
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>