
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (49)
-
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (5914)
-
ffmpeg : is there a simple way to edit the video resolution, but keep all audio and subtitles
21 avril 2022, par ArkeenI 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 ?


-
preserve alpha channel when changing resolution in webm vp9 ffmpeg
28 juin 2022, par Patrick VelliaI 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



-
How do i change the resolution of a outgoing hls stream using ffmpeg ?
31 juillet 2022, par 8f7anI 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;
 }

 }
}