
Recherche avancée
Autres articles (36)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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. -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (4842)
-
Can I convert mp4 server file into a server as mp3 ?
5 février 2021, par Andor UhrinI'm working on an API which convert from video ID to mp3 or mp4. I use FFMPEG to convert. If I want to convert in mp3 first I download the video in mp4 then convert it to mp3 and upload it to Firebase storage. I want to make the fastest and I found the way where i download in mp4 and with ffmpeg the converted mp3 has uploaded to Firebase and this works fine and faster than the last version. The pafy streams have an attribute called 'url'. And I tried to put this url to base file's place so I don't download it just call it from the server. But this is doesn't work. I got this error :


"
[https @ 0x564635880240] HTTP error 403 Forbidden
https://r3---sn-c0q7lnly.googlevideo.com/videoplayback?expire=1612548216 : Server returned 403 Forbidden (access denied)
"
I know ffmpeg can convert from server, because I didn't get this error if it can't...


This is my code :


import pafy

import os


firebaseURL = f"https://firebasestorage.googleapis.com/v0/b/{my_firebase_app_id}.appspot.com/o/test.mp3"

vidID = "AQLEWWKv9n4"

ids = pafy.new(vidID).allstreams[-1].url

os.system(f"ffmpeg -i {ids} {firebaseURL}")



-
i have problem in python with Muxing video and audio
2 février 2021, par Mahmoud AhmedI want to merge files video and audio but I don't know how I did try many times to fix it with ffmpeg,subprocess and moviepy with a deferent ways so this my problem and I stop work on it here if someone can help me to edit it and send to me back please .


This is my code with a window .


from pytube import YouTube
from tkinter import *
from tqdm import tqdm
from os import startfile
import subprocess
import shutil
import pytube
import ffmpeg
import time
import sys
import os
#Functions
def download():
 video_url = url.get()
 try:
 youtube = pytube.YouTube(video_url)
 video = youtube.streams.filter(adaptive=True,file_extension='mp4').order_by('resolution').desc().first()
 video.download(filename='Dvideo')
 audio = youtube.streams.get_by_itag(251).download(filename='Daudio') #webm 
 notif.config(fg="green",text="Download is Completed")



 except Exception as e:
 print(e)
 notif.config(fg="red",text="There is an Error in the Downloading Check Your url")

def Merge():
 try:
 os.system("ffmpeg -i Dvideo.mp4 -i Daudio.webm -c:v copy -c:a aac output.mp4")
 #video = ffmpeg.input('Dvideo.mp4')
 #audio = ffmpeg.input('Daudio.webm')
 #out = ffmpeg.output(video, audio, r'final.mp4', vcodec='"avc1.640028')
 #out.run()

 except Exception as w:
 print(w)
 notif.config(fg="red",text="There is an Error in the Merge")

#Main Screen
Window = Tk()
Window.title("Youtube Video Downloader ")
#The Labels of Texts 
Label(Window, text="Youtube Video Converter \n By: Mahmoud Ahmed", fg="blue", font=("Calibri",15)).grid(sticky=N,padx=15,row=0)
Label(Window, text="Please enter the url of the Video u want to download it : ", font=("Calibri",12)).grid(sticky=N,row=1,pady=15)
Label(Window, text="Notice Any Downloading will be in the same file with this tool.", fg="orange", font=("Calibri",10)).grid(sticky=N,padx=15,row=8)

#my_progress = ttk.Progressbar(Window,length=130, mode='determinate').grid(row= 9, pady=20)


notif = Label(Window,font=("Calibri",12))
notif.grid(sticky=N,pady=1,row=6)
#Variables
url = StringVar()
#The empty label for URL
Entry(Window,width=50,textvariable=url).grid(sticky=N,row=2)
#The Button
Button(Window,width=20,text="Download",font=("Calibri",12),command=download).grid(sticky=N,row=4,pady=15)
Button(Window,width=20,text="Merge",font=("Calibri",12),command=Merge).grid(sticky=N,row=5,pady=15)
#Button(Window,width=20,text="Info",font=("Calibri",12),command=download).grid(sticky=N,row=4,pady=15)

Window.mainloop()




-
video preview from remote mp4 [h264] file
20 novembre 2015, par sathiaI was trying to make a video preview from a remote video (smaller size, short clip and no audio. you get the idea)
By knowing the video duration, and bitrate (constant) is rather easy to make several byte-range requests in order to fetch chunks of it.
Once all the needed chunks are downloaded I use the "concat" method of ffmpeg to make a single video (this is in order to avoid to download all the video locally)
well, technically it all works perfectly the problem is that most of the chunks I download have pretty severe aberrations, and I mean, it’s usually all green and pixelated, rubbish.
Is this a limit on the h264 protocol or I should maybe find the first keyframe and start from there (on each chunk of course) ? thanks