lundi 12 mars 2018

THUNAR, ACTIONS PERSONNALISÉES: Afficher les propriétés d'une vidéo



Il suffit de créer une nouvelle action personnalisée ou "custom action" dans Edition > Configurer les actions personnalisées.

Pour commencer il faut installer Zenity et Mediainfo (ici dans Manjaro)
sudo yaourt -S zenity mediainfo
Voici la commande pour la "custom action"
mediainfo -i %f | zenity --text-info --title %N --width=480 --height=640
Comme nom: VIDEO INFO (ou autre chose)
N'oubliez pas de cocher "fichiers vidéo" dans "Conditions d'apparition"


Exemple de sortie pour une vidéo de mon appareil Nikon Coolpix 32-s
General
Complete name                            : /home/user/VIDEO/test.MOV
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   2007.09 (qt  /niko)
File size                                : 43.0 MiB
Duration                                 : 18 s 18 ms
Overall bit rate                         : 20.0 Mb/s
Encoded date                             : UTC 2018-03-12 07:42:18
Tagged date                              : UTC 2018-03-12 07:42:18
NCDT                                     : NCTG

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 1 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=30
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 18 s 18 ms
Bit rate                                 : 18.4 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) FPS
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.297
Stream size                              : 39.6 MiB (92%)
Language                                 : English
Encoded date                             : UTC 2018-03-12 07:42:18
Tagged date                              : UTC 2018-03-12 07:42:18
Color range                              : Full
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Codec ID                                 : sowt
Duration                                 : 18 s 18 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Stream size                              : 3.30 MiB (8%)
Language                                 : English
Encoded date                             : UTC 2018-03-12 07:42:18
Tagged date                              : UTC 2018-03-12 07:42:18

Aucun commentaire:

Enregistrer un commentaire

Ajoutez un commentaire mais en bon Français ou éventuellement en bon Anglais. Les commentaires en langage SMS seront supprimés.