
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (103)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (9700)
-
FFmpeg - How to choose video stream based on resolution
23 septembre 2023, par SylvenI want to choose the video stream based on it's quality, let's say I want to choose one video stream with certain resolution.


Manually selecting the video stream is not good enough for me because I want to process many files in bulk and they have the video streams in different order, so always going for certain position would make me end up with different resolutions.


I don't want to use filters as that would make me reencode which I don't need and would make it way slower.


I've tried using the
-map
with metadata but the only key that is different is "variant_bitrate" which has slightly different values everytime, so unless I can use some wildcard or conditionals, I guess it won't work either.

What I want to try now is to obtain the exact bitrate of the stream using
ffmpeg
orffprobe
and then pass it to theffmpeg
command so it ends in something like this :

ffmpeg -i <url> -map m:variant_bitrate:1760000 ...</url>


PD : I've been reading the FFmpeg documentation and browsing the whole internet without luck.


Edit :
I managed to make it work by first using
ffprobe
to obtain stream info in json format (easier to parse), then I search for the string"height": 540
and extract next 50 lines (counted them manually so I'm sure I'll pick the value I need), then I search for the stringvariant_bitrate
and then I use a regular expression to extract the bitrate. Once I have the bitrate I make use of the MacOS clipboard (withpbcopy
andpbpaste
) to pass the value to the finalffmpeg
command through the-map
option using a metadata selector.

ffprobe -v error -show_streams -of json "https://streamlink.com/master.m3u8?f=dash"
| grep -A 50 '"height": 540' 
| grep variant_bitrate
| grep -oe '\([0-9.]*\)' 
| pbcopy
&& ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "https://streamlink.com/master.m3u8?f=dash" -map "0:a:0" -map "m:variant_bitrate:$(pbpaste)" -c copy "Output.mp4"



(added line breaks for readability)


I know it looks kinda dirty but I didn't find any other way to achieve my requirement.


-
xcbgrab : XCB-based screen capture
24 août 2014, par Luca Barbato -
lavc/hevcdec : output RASL frames based on the value of no_rasl_output_flag
1er juin 2024, par Anton Khirnovlavc/hevcdec : output RASL frames based on the value of no_rasl_output_flag
Instead of an ad-hoc scheme. Also, combine skipping RASL frames with
skip_frame handling - current code seems flawed as it only executes for
the first slice of a RASL frame and unnecessarily unsets is_decoded,
which should not be set at this point anyway..Some RASL frames in fate-hevc-afd-tc-sei that were previously discarded
are now output.