
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 (78)
-
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...) -
L’espace de configuration de MediaSPIP
29 novembre 2010, parL’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
Il permet de configurer finement votre site.
La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)
Sur d’autres sites (10884)
-
Merge video and audio using ffmpeg and download immediately in django
29 janvier 2024, par Suresh ChandI have video and audio file which is to be merge and download immediately. I have written some code but it will start download after merged. I want when user hit the url, then it will start merging and downloading immediately so that user don't have to wait for it.


video_url = "./video.mp4"
audio_url = "./audio.mp4"

output_filepath = './merged.mp4'

try:
 process = subprocess.Popen([
 "ffmpeg",
 "-i", video_url,
 "-i", audio_url,
 "-c:v", "copy",
 "-c:a", "copy",
 "-f", "mp4",
 "-movflags", "frag_keyframe+empty_moov",
 "pipe:1"
 ], stdout=subprocess.PIPE)

 def generate_stream():
 while True:
 data = process.stdout.read(1024)
 if not data:
 break
 yield data

 response = StreamingHttpResponse(generate_stream(), content_type="video/mp4")
 response['Content-Disposition'] = 'attachment; filename="stream.mp4"'
 return response

except subprocess.CalledProcessError as e:
 return HttpResponse("Error: {}".format(e), status=500)



But it will merge and then start downloading. I want to be at same time so that user don't have to wait until the merging process.


I am using django and i am learning django


-
ffmpeg programatically set the export date to download date using python
16 janvier 2021, par Vladimir Tarasovi'm currently using the code below to export a youtube-dl converted video (with ffmpeg and youtube-dl for python)
how could i programatically set the good options for ffmpeg to add the download date (at least today's date) to the .mp3 file ?


ydl_opts = {
 'format': 'bestaudio/best',
 'outtmpl': path + urlToTitleYT(link) + '.mp3',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'mp3',
 'preferredquality': '320',
 }],
}

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 ydl.download([link])




-
Concatenate a video and audio stream via urls and download them directly to user's computer
10 juillet 2019, par CeylonDomains SolutionsI’m looking for a solution for the following matter.
I need to concatenate a video and an audio stream via URL and then download them directly to user’s computer without creating a merged file on server. Is there any possible way to do this via ffmpeg or any other tool ?
Merging 2 files on server and then downloading this file to user’s computer is possible, but I’m expecting something more than that.
Please note my application is a PHP application.
Thanks in advance.