Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 03/06/2015, à 14:21

Na_vi

[RESOLU]utilitaire video avec fonction d'inversion gauche-droite ?

Bonjour,
Existe-t-il un utilitaire video (même en mode ligne comme avconv) qui inverserait gauche-droite les videos ? (comme pour regarder la télé chez le coiffeur wink )
Merci

Dernière modification par Na_vi (Le 04/06/2015, à 08:36)

Hors ligne

#2 Le 03/06/2015, à 15:17

Nasman

Re : [RESOLU]utilitaire video avec fonction d'inversion gauche-droite ?

avidemux avec les filtres V-flip et rotate (180°)


PC fixe sous Bionic 64 bits et portable avec Focal 64 bits

Hors ligne

#3 Le 03/06/2015, à 18:18

le-peyo

Re : [RESOLU]utilitaire video avec fonction d'inversion gauche-droite ?

¡ Holà !

Avec Vlc : Afficher les options étendues > Effets vidéo > Géométrie > Transformation > Retournement horizontal

À plus.


Sous Linux depuis 2009 | Xubuntu 22.04 LTS | Lenovo Thinkpad W540
Windows... ? J'connais pas...
Petits scripts vidéos bien pratiques =>
C'est le moment : OMS et Institut Pasteur !

Hors ligne

#4 Le 03/06/2015, à 21:55

grandtoubab

Re : [RESOLU]utilitaire video avec fonction d'inversion gauche-droite ?

Salut

Rotation de 180°

ffmpeg -i input.mp4 -vf "hflip,vflip,format=yuv420p" -metadata:s:v rotate=0 \
-codec:v libx264 -codec:a copy output.mp4

Rotation de 90°

ffmpeg -i input.mp4 -vf "rotate=90*(PI/180),format=yuv420p" \
 -metadata:s:v rotate=0 -codec:v libx264 -codec:a copy output.mp4

http://superuser.com/questions/578321/h … 329#578329

Exemple d'une video prise avec mon smartphone:

ffmpeg -i VID_20150603_164820.mp4 -vf "hflip,vflip,format=yuv420p" -metadata:s:v rotate=0 \
 -codec:v libx264 -codec:a copy output.mp4

ffmpeg version 2.5.7-0ubuntu0.15.04.1 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
  configuration: --prefix=/usr --extra-version=0ubuntu0.15.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/i386-linux-gnu --shlibdir=/usr/lib/i386-linux-gnu --incdir=/usr/include/i386-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libwavpack --enable-libwebp --enable-libxvid --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libvpx --enable-libx264 --enable-libsoxr --enable-gnutls --enable-openal --enable-libopencv --enable-librtmp --enable-libx265
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'VID_20150603_164820.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: isom3gp4
    creation_time   : 2015-06-03 14:48:32
  Duration: 00:00:10.90, start: 0.000000, bitrate: 8467 kb/s
    Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 7971 kb/s, SAR 65536:65536 DAR 16:9, 29.25 fps, 29.25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      rotate          : 90
      creation_time   : 2015-06-03 14:48:32
      handler_name    : VideoHandle
    Side data:
      displaymatrix: rotation of -90.00 degrees
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 96 kb/s (default)
    Metadata:
      creation_time   : 2015-06-03 14:48:32
      handler_name    : SoundHandle
[libx264 @ 0x8115380] using SAR=1/1
[libx264 @ 0x8115380] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x8115380] profile High, level 3.1
[libx264 @ 0x8115380] 264 - core 142 r2495 6a301b6 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 0
    compatible_brands: isom3gp4
    encoder         : Lavf56.15.102
    Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 65536:65536 DAR 16:9], q=-1--1, 29.25 fps, 14976 tbn, 29.25 tbc (default)
    Metadata:
      handler_name    : VideoHandle
      creation_time   : 2015-06-03 14:48:32
      rotate          : 0
      encoder         : Lavc56.13.100 libx264
    Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 96 kb/s (default)
    Metadata:
      creation_time   : 2015-06-03 14:48:32
      handler_name    : SoundHandle
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  311 fps=2.4 q=-1.0 Lsize=    4149kB time=00:00:10.90 bitrate=3117.8kbits/s    
video:4009kB audio:128kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.274919%
[libx264 @ 0x8115380] frame I:3     Avg QP:22.40  size: 31095
[libx264 @ 0x8115380] frame P:217   Avg QP:24.24  size: 15413
[libx264 @ 0x8115380] frame B:91    Avg QP:27.00  size:  7329
[libx264 @ 0x8115380] consecutive B-frames: 44.7% 45.7%  9.6%  0.0%
[libx264 @ 0x8115380] mb I  I16..4: 26.2% 66.4%  7.4%
[libx264 @ 0x8115380] mb P  I16..4:  8.4%  9.9%  0.5%  P16..4: 53.3% 10.9%  5.7%  0.0%  0.0%    skip:11.4%
[libx264 @ 0x8115380] mb B  I16..4:  1.0%  1.2%  0.1%  B16..8: 44.3%  4.9%  1.0%  direct: 5.0%  skip:42.4%  L0:46.1% L1:47.8% BI: 6.1%
[libx264 @ 0x8115380] 8x8 transform intra:53.4% inter:81.2%
[libx264 @ 0x8115380] coded y,uvDC,uvAC intra: 28.1% 68.4% 10.7% inter: 22.1% 44.5% 2.6%
[libx264 @ 0x8115380] i16 v,h,dc,p: 26% 37% 17% 20%
[libx264 @ 0x8115380] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 19% 41%  3%  3%  4%  4%  3%  4%
[libx264 @ 0x8115380] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 19% 16%  5%  8%  7%  7%  6%  5%
[libx264 @ 0x8115380] i8c dc,h,v,p: 43% 33% 17%  7%
[libx264 @ 0x8115380] Weighted P-Frames: Y:30.4% UV:21.2%
[libx264 @ 0x8115380] ref P L0: 57.3% 12.1% 18.8%  9.4%  2.5%
[libx264 @ 0x8115380] ref B L0: 83.3% 15.7%  1.1%
[libx264 @ 0x8115380] ref B L1: 97.2%  2.8%
[libx264 @ 0x8115380] kb/s:3088.50

Dernière modification par grandtoubab (Le 03/06/2015, à 22:13)


Linux tout seul sur HP Pavilion DV7 et Acer Aspire T650, Canon MG3650 en wifi
Debian 11 Bullseye Gnome/Xorg, Gnome/Wayland avec SDDM
https://bidouilledebian.wordpress.com/
ON M'A VU DANS LE VERCORS, SAUTER A L'ELASTIQUE..... J'AI DANS LES BOTTES DES MONTAGNES DE QUESTIONS....

Hors ligne

#5 Le 04/06/2015, à 08:35

Na_vi

Re : [RESOLU]utilitaire video avec fonction d'inversion gauche-droite ?

Merci à tous,
Je vais m'en tenir à l'indication suivante avec avconv et le -vf "hflip" qui "retourne" horizontalement (=inversion gauche/droite) le fichier vidéo :

grandtoubab a écrit :

Salut

Rotation de 180°

ffmpeg -i input.mp4 -vf "hflip,vflip,format=yuv420p" -metadata:s:v rotate=0 \
-codec:v libx264 -codec:a copy output.mp4

PS. j'ai un peu utilisé avconv (super et sacrément puissant tout comme ffmeg)... mais je n'étais pas encore arrivé à la fin de son fichier documentation où l'option "hflip" est mentionnée !

Hors ligne