Recherche avancée

Médias (91)

Autres articles (61)

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (7560)

  • How to update this script to generate HLS video with different resolution streams ? [closed]

    1er décembre 2023, par Andy Z

    I 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 Waschbrettwade

    I 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 zzzhim
          import { 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 !