Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (40)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (8174)

  • 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 !