
Recherche avancée
Médias (2)
-
Core Media Video
4 avril 2013, par
Mis à jour : Juin 2013
Langue : français
Type : Video
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (78)
-
Diogene : création de masques spécifiques de formulaires d’édition de contenus
26 octobre 2010, parDiogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
A quoi sert ce plugin
Création de masques de formulaires
Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)
Sur d’autres sites (8684)
-
How to update this script to generate HLS video with different resolution streams ? [closed]
1er décembre 2023, par Andy ZI have the following FFmpeg script :


ffmpeg -i video.mp4 -i video.vtt \
 -map 0:v -map 0:a:0 -map 1 \
 -s:v:0 1080x1920 -c:v:0 h264 -b:v:0 500K \
 -c:a:0 copy -c:a:1 copy -c:a:2 copy -c:s webvtt \
 -f hls -hls_playlist_type vod -var_stream_map "v:0,a:0,s:0" \
 -master_pl_name video.m3u8 -hls_time 6 -hls_list_size 0 -hls_allow_cache 1 -start_number 1 \
 -hls_segment_filename "output/hls/%v/seg-%d.ts" output/hls/%v/index.m3u8



Currently it only produces one 1080x1920 stream, how do I produce more lower resolution ones so it can adjust based on client bandwidth ?


Also, I've noticed that it doesn't add the reference to the VTT file to the master HLS playlist ; I had to add this manually but is there a way to make FFmpeg do it for me ?


#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="en",CHARACTERISTICS="public.accessibility.transcribes-spoken-dialog",URI="0/index_vtt.m3u8"



I've tried this, but I get an argument error :


ffmpeg -i video.mp4 -i video.vtt \
 -map 0:v -map 0:a:0 -map 1 \
 -s:v:0 1080x1920 -c:v:0 h264 -b:v:0 500K \
 -s:v:1 720x1280 -c:v:1 h264 -b:v:1 300K \
 -s:v:2 480x854 -c:v:2 h264 -b:v:2 150K \
 -c:a:0 copy -c:a:1 copy -c:a:2 copy -c:s webvtt \
 -f hls -hls_playlist_type vod -var_stream_map "v:0,a:0,s:0 v:1,a:1 s:1 v:2,a:2 s:2" \
 -master_pl_name video.m3u8 -hls_time 6 -hls_list_size 0 -hls_allow_cache 1 -start_number 1 \
 -hls_segment_filename "output/hls/%v/seg-%d.ts" output/hls/%v/index.m3u8



-
subprocess.Popen can't find the file when shell=False and doesn't know ffmpeg when shell=True [duplicate]
26 novembre 2023, par WaschbrettwadeI am trying to get an offline speech-to-text library called "vosk" running following this tutorial : https://medium.com/@johnidouglasmarangon/automatic-speech-recognition-with-vosk-828569219f2b


In this, subprocess.Popen is being used like this :


ffmpeg_command = [
 "ffmpeg",
 "-nostdin",
 "-loglevel",
 "quiet",
 "-i",
 filename,
 "-ar",
 str(SAMPLE_RATE),
 "-ac",
 "1",
 "-f",
 "s16le",
 "-",
 ]

 with subprocess.Popen(ffmpeg_command, stdout=subprocess.PIPE) as process:



When running this in Jupyter Notebook, no problem at all. But whenever I run this in VSCode, it produces the error :


FileNotFoundError: [WinError 2] The system couldn't find the specified file (translated to English by me)



When using shell=True as in


with subprocess.Popen(ffmpeg_command, stdout=subprocess.PIPE, shell=True) as process:



it tells me in the terminal (translated) :


The command "ffmpeg" ist either written wrong or couldn't be found. 



Do you have any idea what's causing these issues and how to fix them ?


-
fluent-ffmpeg ffmpeg exited with code 1 : Unknown decoder 'h264_nvenc'
3 juillet 2022, par zzzhimimport { ipcMain } from "electron"
 import fluentFfmpeg from "fluent-ffmpeg"
 import ffmpegStaticElectron from "ffmpeg-static-electron"
 import ffprobeStaticElectron from "ffprobe-static-electron"

 const ffmpeg = fluentFfmpeg()
 ffmpeg.setFfmpegPath(ffmpegStaticElectron.path)
 ffmpeg.setFfprobePath(ffprobeStaticElectron.path)

 ffmpeg
 .input('0.mp4')
 .inputOption([
 "-hwaccel cuvid",
 // "-hwaccel_device 1",
 "-c:v h264_cuvid",
 "-c:v h264_nvenc",
 ])
 // .videoCodec("h264_nvenc")
 .outputOptions([
 '-map 0',
 '-f hls',
 '-hls_time 5',
 '-segment_time 5',
 '-hls_list_size 0',
 '-hls_segment_filename',
 `${tsFilePath}/%d.ts`
 ])
 .output(`${m3u8FilePath}/${name}.m3u8`)
 .on('start', (commandLine) => {
 })
 .on('error', (err, stdout, stderr) => {
 console.log(err, stdout, stderr)
 })
 .on('progress', (progress) => {

 })
 .on('end', (err, stdout, stderr) => {
 
 
 })
 .run()



ffmpeg -codecs


enter image description here
enter image description here
Sorry, my English is not very good !


I want ffmpeg to use GPU hardware acceleration. The above is my code, but it has been executing incorrectly. This problem has plagued me for several days. I hope you can help me, thank you !