
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (65)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (7237)
-
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 !