
Recherche avancée
Autres articles (112)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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 (14640)
-
Anomalie #3024 (Fermé) : spip_loader.php et IE8 (oui.... les pros du C/S traditionnels l’exigent !)
3 mai 2015, par b bIE8 n’est plus supporté depuis le 8 avril 2014, cf http://fr.wikipedia.org/wiki/Internet_Explorer#Internet_Explorer_8 => on ferme.
-
How to get native frame rate of vide with FFmpex ?
18 juin 2021, par Flame_PhoenixBackground


I have an
.mp4
video and I need to get the video's frame rate. Using ffmepg (in Linux) I know I can get this information via the following command :

ffprobe -v 0 -of compact=p=0 -select_streams 0 -show_entries stream=r_frame_rate 'MyVideoFIle.mp4'



Which returns :


r_frame_rate=24000/1001



FFmpex


Doing this in bash is fine, but what I really want is to use it in my Elixir application. To this end I found out about
ffmpex
.

First I tried using
FFprobe
:

> FFprobe.format("Devil May Cry 5 Bury the Light LITTLE V COVER.mp4")

{:ok,
 %{
 "bit_rate" => "611784",
 "duration" => "482.999000",
 "filename" => "Devil May Cry 5 Bury the Light LITTLE V COVER.mp4",
 "format_long_name" => "QuickTime / MOV",
 "format_name" => "mov,mp4,m4a,3gp,3g2,mj2",
 "nb_programs" => 0,
 "nb_streams" => 2,
 "probe_score" => 100, 
 "size" => "36936415",
 "start_time" => "0.000000",
 "tags" => %{
 "compatible_brands" => "isomiso2avc1mp41",
 "encoder" => "Lavf58.19.102",
 "major_brand" => "isom",
 "minor_version" => "512"
 }
 }}



Which gives me some information, but not the frame rate.


My next tentative was to use the command options :


command = 
 FFmpex.new_command() 
 |> add_input_file("Devil May Cry 5 Bury the Light LITTLE V COVER.mp4") 
 |> add_video_option(???) 



But the problem here is that I can't find in the documentation the video option I need to get the native frame rate. I only found
vframe
which is used to set the video frame rate.

Question


- 

- How can I get the native fps of a video using
ffmpex
?




- How can I get the native fps of a video using
-
Anomalie #4363 : mot de passe vide bloque le formulaire de réinitialisation du mot de passe d’un u...
3 août 2019, par b bComme tu le dis, "on" ne veut pas, mais en attendant que quelqu’un
propose mieuxmette à disposition la super fonctionnalité "qu’on veut", on peut répondre à la demande avec ce bouton. C’est bien de rappeler qu’on fait de la merde et qu’on devrait s’améliorer, mais en attendant on peut toujours s’en sortir avec l’existant :*