
Recherche avancée
Médias (91)
-
DJ Z-trip - Victory Lap : The Obama Mix Pt. 2
15 septembre 2011
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (60)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
MediaSPIP Init et Diogène : types de publications de MediaSPIP
11 novembre 2010, parÀ l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (7615)
-
Steps to generate video thumbnail using FFMPEG when uploading to s3bucket and upload thumbnail to s3 bucket
18 août 2023, par facebook-10203229637341337I could generate thumbnail with the ffmpeg package available in nodejs locally but, in aws lambda same did not work for me due to various reasons which I would like to share here.


-
FileNotFoundError : [WinError 2] The system cannot find the file specified when using moviepy
17 mars 2023, par HamidBeeI am trying to reduce the file size of a .mp4 file using the following code :


import os
import moviepy.editor as mp
import ffmpeg

def compress_video(input_file, output_file, target_size_ratio=0.5):
 if not os.path.exists(input_file):
 raise FileNotFoundError(f"Input file not found: {input_file}")

 if target_size_ratio <= 0 or target_size_ratio >= 1:
 raise ValueError("Target size ratio must be between 0 and 1")

 # Get input video information
 probe = ffmpeg.probe(input_file)
 video_stream = next((stream for stream in probe['streams'] if stream['codec_type'] == 'video'), None)
 bitrate = int(video_stream['bit_rate'])

 # Calculate new bitrate to achieve the target file size
 new_bitrate = int(bitrate * target_size_ratio)

 # Load the video and compress
 input_video = mp.VideoFileClip(input_file)
 input_video.write_videofile(
 output_file,
 bitrate=f"{new_bitrate}k",
 codec="libx264",
 audio_codec="aac",
 threads=4,
 ffmpeg_params=["-strict", "-2"]
 )

input_file = r"C:\Users\Hamid\Downloads\A.mp4"
output_file = r"C:\Users\Hamid\Downloads\B.mp4"
compress_video(input_file, output_file, target_size_ratio=0.5)



But I am getting the following error :


FileNotFoundError: [WinError 2] The system cannot find the file specified



Just a note I have a file in that directory called A.mp4 but currently no file exists called B.mp4.


-
How to get file from cloud storage and process as local file without downloading ?
23 octobre 2017, par AlexI am working on a project where I have to extract frames from a video by using ffmpeg (node.js). I first upload video to firebase storage from my client, and then I want to process it in the backend server. However, ffmpeg only accept file as if it is stored locally.
const ff =new ffmpeg('C:/Users/alexh/Desktop/alex/name.avi');
It will not work with url. I am wondering is any way I can get file from url as if it is stored locally or firebase can provide me a way to get the file ? I don’t want to use filebase trigger event because I want to send http request to backend server.
Thank you so much