Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (51)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (9413)

  • How do i change the resolution of a outgoing hls stream using ffmpeg ?

    31 juillet 2022, par 8f7an

    I am using nginx with ffmpeg to stream my live stream and i want to reduce the resolution of it, but it plays the video in high quality everytime

    


    here's my nginx code

    


    events {}
rtmp {
    server {
        listen 1935;

    application src {
        live on;
        exec_push ffmpeg -vcodec libx264 -vprofile baseline -g 10 -s 300x200 -acodec aac -ar 44100 -ac 1 -f flv rtmp://127.0.0.1/live;
        
    }


        application live {
            live on;

            #turn on hls
            hls on;
            hls_continuous on;
            hls_path /tmp/hls/ ;
            hls_fragment 4s;
            hls_playlist_length 12s;
            hls_nested on;
            record off;

            #disable stream consumption from rtmp

            on_publish http://auth_server:4000/auth;
         }

    }
}


    


  • preserve alpha channel when changing resolution in webm vp9 ffmpeg

    28 juin 2022, par Patrick Vellia

    I am running the streamio-ffmpeg gem in my Ruby code here to operate the FFMPEG command.

    


    Setting a Webm with codec VP9 that has alpha transparent frames in it as the input, I want to change the resolution from 1080p to 720p and preserve the alpha transparent frames when outputting to the same format/codec.

    


    I've tried it several different ways, but every time it outputs with a black background where the alpha transparent background should be, but ffprobe shows that ALPHA_MODE is set to 1.

    


    Here's the command that streamio-ffmpeg tells the system :

    


    ["/usr/local/bin/ffmpeg", "-y", "-i", "part1.webm", "-s", "1920x1080", "-aspect", "1.7777777777777777", "videos/movie_transparent_1920x1080.webm"]


    


    This one should have been exactly the same as the original, since the original resolution WAS 1080p. The resulting file is actually black background instead of transparent.

    


    Here's my Ruby code :

    


    def process_alpha_transparency(output)
    render_res = []
    case @height
    when 1080..2160
        render_res.append("1920x1080", "1280x720", "852x480")
    when 720..1079
        render_res.append("1280x720", "852x480")
    when 480..719
        render_res.append("852x480")
    when 0..479
        render_res.append(@resolution)
    end

    formats = ["webm", "mov"]
    combined_time_start = Time.now

    render_res.each do |res|
        formats.each do |format|
            puts "Rendering a #{res} resolution version."
            if format == "webm"
                options = {
                    resolution: res 
                }

                time_start = Time.now
                @movie.transcode("videos/#{output}_transparent_#{res}.#{format}", options)
                time_elapsed = Time.now - time_start

                puts "Te resolution rendering completed in #{time_elapsed.to_i.to_s} seconds."
            end
        end
    end

    combined_elapsed_time = Time.now - combined_time_start
    puts "The process completed in #{combined_elapsed_time.to_i.to_s} seconds."

    
end


    


  • ffmpeg : is there a simple way to edit the video resolution, but keep all audio and subtitles

    21 avril 2022, par Arkeen

    I would like to lower video resolution - usually from .mkv files - but to keep all possible audio tracks (might be only one, might be several) and subtitles (might be none, might be several) from the original one. I also would like to keep as many encoding parameters as I can from the original video file (especially those I do not understand).

    


    I am still new to ffmpeg : at first the idea seemed simple, but after many attempts, it seems it is more complex than that. Do I have to use the -filter_complex option ? It seems to be an overkill (or overcomplex) for what I thought to be an easy conversion, but I might be wrong.

    


    I tried to combine -vf scale=-1:720 with -c copy -map 0, which gave me an error that I now understand, but I am stuck with the next step.

    


    Any lead on to achieve that ? Could it be done with ffmpeg only or would I need a script ?