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 19/05/2014, à 10:12

Gaara

[résolu] mplayer: son d'une vidéo mkv trop rapide

Bonjour, j'essaie d'intéger mplayer dans un script, mais j'ai un soucis.
La vidéo se lit à vitesse normale, mais le son est en accéléré. (je ne sais pas si c'est 3x ou 4x, mais c'est trop rapide, on ne comprend même pas ce qu'il se dit!)
Je suis sous Kubuntu 14.04 x64, et vlc lit cette vidéo très bien.
Le retour du terminal:

[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_AAC), -aid 0, -alang und
[mkv] Will play video track 1.
Detected file format: Matroska
Clip info:
 ENCODER: Lavf54.20.4
Load subtitles in ./
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[ass] auto-open
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
Selected audio codec: AAC (Advanced Audio Coding) [libavcodec]
AUDIO: 96000 Hz, 2 ch, floatle, 128.0 kbit/2.08% (ratio: 16000->768000)
AO: [pulse] 96000Hz 2ch floatle (4 bytes per sample)
Starting playback...
VIDEO:  704x396  90000.898 fps    0.0 kbps ( 0.0 kB/s)
VO: [xv] 704x396 => 704x396 Planar YV12 
A:  26.8 V:  13.1 A-V: 13.730 ct:  1.308   0/  0  1%  0%  0.7% 0 0

Le "Failed to open VDPAU backend libvdpau_nvidia.so" me parrait bizarre, j'ai une carte Ati..

La vidéo est créée comme suit, en utilisant avconv. (téléchargement du site pluzz)

Output #0, matroska, to 'doc_24_aquitaine_102333565.mkv':
  Metadata:
    encoder         : Lavf54.20.4
    Stream #0.0: Video: libx264, yuv420p, 704x396 [PAR 1:1 DAR 16:9], q=2-31, 1k tbn, 90k tbc                                          
    Stream #0.1: Audio: libvo_aacenc, 44100 Hz, stereo                                                                                 
Stream mapping:                                                                                                                        
  Stream #0:0 -> #0:0 (copy)                                                                                                           
  Stream #0:1 -> #0:1 (copy)                                                                                                           
Press ctrl-c to stop encoding

codec utilisé pour l'enregistrement: libvo_aacenc
codec utilisé pour la lecture: libavcodec

Si quelqu'un a une idée !

Edit: j'ai essayé avec l'option fps=24 mais c'est toujours pareil

Dernière modification par Gaara (Le 19/05/2014, à 17:43)


Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid

                                        <code>zenity  --question --title "Alert"  --text "Microsoft Windows has been found! Would you like to remove it?"</code>

Hors ligne

#2 Le 19/05/2014, à 11:46

melixgaro

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

salut,

tu pourrais mettre le retour de mediainfo sur ta vidéo. ça doit être une histoire d'info manquante. c'est une vidéo obtenue avec ton script dpluzz ?


Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#3 Le 19/05/2014, à 13:23

Gaara

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

Salut melixgaro,
Oui c'est pour dPluzz, j'essaie de faire un bouton "aperçu de la vidéo". Ça marche, mais le son ressemble à un son de rembobinage!
Quand je fais (sur le terminal)

mplayer vidéo.mkv

ça fait pareil.
Mais je ne comprend pas, c'est quoi mediainfo? je le récupère ou?


Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid

                                        <code>zenity  --question --title "Alert"  --text "Microsoft Windows has been found! Would you like to remove it?"</code>

Hors ligne

#4 Le 19/05/2014, à 14:23

melixgaro

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

mediainfo doit être dans les dépôts. C'est un programme qui doit des informations très détaillé sur le conteneur, les flux audio et vidéo d'un fichier multimédia.

Oui je vois très bien à quoi ressemble le son. J'ai eu ce gag avec une vidéo (pas de pluzz wink) il y a qques semaines. J'ai dû bidouiller avec mencoder et avconv pour m'en sortir. Elle avait été mal codé. Ici, c'est bizarre car ça devrait être assez propre. Si j'ai du temps, je testerai avec mplayer...


Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#5 Le 19/05/2014, à 15:53

Gaara

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

Alors voilà le retour de mediainfo (vidéo prise au pif dans dPluzz):

$ mediainfo --full maxride_103433938.mkv
General
Count                                    : 284
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Unique ID                                : 34371794685032617051581253006399224352
Unique ID                                : 34371794685032617051581253006399224352 (0x19DBC4511BE02E5D2095F70CEB99BA20)
Count of video streams                   : 1
Count of audio streams                   : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Codecs Video                             : AVC
Audio_Format_List                        : AAC
Audio_Format_WithHint_List               : AAC
Audio codecs                             : AAC
Complete name                            : maxride_103433938.mkv
File name                                : maxride_103433938
File extension                           : mkv
Format                                   : Matroska
Format                                   : Matroska
Format/Url                               : http://packs.matroska.org/
Format/Extensions usually used           : mkv mk3d mka mks
Commercial name                          : Matroska
Format version                           : Version 2
Codec                                    : Matroska
Codec                                    : Matroska
Codec/Url                                : http://packs.matroska.org/
Codec/Extensions usually used            : mkv mk3d mka mks
File size                                : 48015656
File size                                : 45.8 MiB
File size                                : 46 MiB
File size                                : 46 MiB
File size                                : 45.8 MiB
File size                                : 45.79 MiB
File last modification date              : UTC 2014-05-19 12:21:18
File last modification date (local)      : 2014-05-19 14:21:18
Writing application                      : Lavf54.20.4
Writing library                          : Lavf54.20.4
Writing library                          : Lavf54.20.4

Video
Count                                    : 272
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
ID                                       : 1
ID                                       : 1
Unique ID                                : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : http://developers.videolan.org/x264.html
Commercial name                          : AVC
Format profile                           : Main@L3.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4
Format settings, ReFrames                : 4 frames
Internet media type                      : video/H264
Codec ID                                 : V_MPEG4/ISO/AVC
Codec ID/Url                             : http://ffdshow-tryout.sourceforge.net/
Codec                                    : V_MPEG4/ISO/AVC
Codec                                    : AVC
Codec/Family                             : AVC
Codec/Info                               : Advanced Video Codec
Codec/Url                                : http://ffdshow-tryout.sourceforge.net/
Codec profile                            : Main@L3.1
Codec settings                           : CABAC / 4 Ref Frames
Codec settings, CABAC                    : Yes
Codec_Settings_RefFrames                 : 4
Bit rate                                 : 768000
Bit rate                                 : 768 Kbps
Width                                    : 704
Width                                    : 704 pixels
Height                                   : 396
Height                                   : 396 pixels
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate mode                          : CFR
Frame rate mode                          : Constant
FrameRate_Mode_Original                  : VFR
Frame rate                               : 25.000
Frame rate                               : 25.000 fps
Resolution                               : 8
Resolution                               : 8 bits
Colorimetry                              : 4:2:0
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan type                                : Progressive
Interlacement                            : PPF
Interlacement                            : Progressive
Bits/(Pixel*Frame)                       : 0.110
Delay                                    : 80
Delay                                    : 80ms
Delay                                    : 80ms
Delay                                    : 80ms
Delay                                    : 00:00:00.080
Delay, origin                            : Container
Delay, origin                            : Container
Writing library                          : x264 - core 120 r2164 da19765
Writing library                          : x264 core 120 r2164 da19765
Writing library/Name                     : x264
Writing library/Version                  : core 120 r2164 da19765
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=36 / 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=50 / keyint_min=26 / scenecut=0 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=768 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No

Audio
Count                                    : 222
Count of stream of this kind             : 1
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 0
StreamOrder                              : 1
ID                                       : 2
ID                                       : 2
Unique ID                                : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Commercial name                          : AAC
Codec ID                                 : A_AAC
Codec                                    : A_AAC
Codec                                    : AAC
Codec/Family                             : AAC
Channel(s)                               : 2
Channel(s)                               : 2 channels
Sampling rate                            : 96000
Sampling rate                            : 96.0 KHz
Compression mode                         : Lossy
Compression mode                         : Lossy
Delay                                    : 65536
Delay                                    : 1mn 5s
Delay                                    : 1mn 5s 536ms
Delay                                    : 1mn 5s
Delay                                    : 00:01:05.536
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : 65456
Delay relative to video                  : 1mn 5s
Delay relative to video                  : 1mn 5s 456ms
Delay relative to video                  : 1mn 5s
Delay relative to video                  : 00:01:05.456
Video0 delay                             : 65456
Video0 delay                             : 1mn 5s
Video0 delay                             : 1mn 5s 456ms
Video0 delay                             : 1mn 5s
Video0 delay                             : 00:01:05.456
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No

A priori c'est de l'AAC, je vois rien de particulier, en même temps j'y connais pas grand chose...


Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid

                                        <code>zenity  --question --title "Alert"  --text "Microsoft Windows has been found! Would you like to remove it?"</code>

Hors ligne

#6 Le 19/05/2014, à 16:22

melixgaro

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

ouais il a l'air louche ce retour de mediainfo. Il y a de nombreux champs dupliqués. Je me demande si la commande avconv qui fabrique le mkv final fait un travail bien propre. Essaye de faire ça sur le mkv final, de passer mediainfo sur le nouveau fichier et de le lire avec mplayer :

avconv -i video.mkv -acodec copy -vcodec copy video.new.mkv

Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#7 Le 19/05/2014, à 16:46

Gaara

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

Toujours pareil. J'ai essayé de convertir la vidéo finale, de remplacer la ligne dans le script, de remplacer avconv par ffmpeg... sans résultat. Ce qui est bizarre c'est que VLC le lise sans problème!

Voilà les retours de mediainfo (vidéo finale et de video.new.mkv):

$ mediainfo --full maxride_103433938.mkv
General
Count                                    : 284
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Unique ID                                : 81367484849679796612374953853613376842
Unique ID                                : 81367484849679796612374953853613376842 (0x3D36CEBC10B1554782ACADD1E75A054A)
Count of video streams                   : 1
Count of audio streams                   : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Codecs Video                             : AVC
Audio_Format_List                        : AAC
Audio_Format_WithHint_List               : AAC
Audio codecs                             : AAC
Complete name                            : maxride_103433938.mkv
File name                                : maxride_103433938
File extension                           : mkv
Format                                   : Matroska
Format                                   : Matroska
Format/Url                               : http://packs.matroska.org/                                                                  
Format/Extensions usually used           : mkv mk3d mka mks                                                                            
Commercial name                          : Matroska                                                                                    
Format version                           : Version 2                                                                                   
Codec                                    : Matroska                                                                                    
Codec                                    : Matroska                                                                                    
Codec/Url                                : http://packs.matroska.org/
Codec/Extensions usually used            : mkv mk3d mka mks
File size                                : 37743672
File size                                : 36.0 MiB
File size                                : 36 MiB
File size                                : 36 MiB
File size                                : 36.0 MiB
File size                                : 36.00 MiB
File last modification date              : UTC 2014-05-19 15:32:43
File last modification date (local)      : 2014-05-19 17:32:43
Writing application                      : Lavf53.21.1
Writing library                          : Lavf53.21.1
Writing library                          : Lavf53.21.1

Video
Count                                    : 272
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
ID                                       : 1
ID                                       : 1
Unique ID                                : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : http://developers.videolan.org/x264.html
Commercial name                          : AVC
Format profile                           : Main@L3.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4
Format settings, ReFrames                : 4 frames
Internet media type                      : video/H264
Codec ID                                 : V_MPEG4/ISO/AVC
Codec ID/Url                             : http://ffdshow-tryout.sourceforge.net/
Codec                                    : V_MPEG4/ISO/AVC
Codec                                    : AVC
Codec/Family                             : AVC
Codec/Info                               : Advanced Video Codec
Codec/Url                                : http://ffdshow-tryout.sourceforge.net/
Codec profile                            : Main@L3.1
Codec settings                           : CABAC / 4 Ref Frames
Codec settings, CABAC                    : Yes
Codec_Settings_RefFrames                 : 4
Width                                    : 704
Width                                    : 704 pixels
Height                                   : 396
Height                                   : 396 pixels
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate mode                          : CFR
Frame rate mode                          : Constant
FrameRate_Mode_Original                  : VFR
Frame rate                               : 25.000
Frame rate                               : 25.000 fps
Resolution                               : 8
Resolution                               : 8 bits
Colorimetry                              : 4:2:0
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan type                                : Progressive
Interlacement                            : PPF
Interlacement                            : Progressive
Delay                                    : 75
Delay                                    : 75ms
Delay                                    : 75ms
Delay                                    : 75ms
Delay                                    : 00:00:00.075
Delay, origin                            : Container
Delay, origin                            : Container
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No

Audio
Count                                    : 222
Count of stream of this kind             : 1
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 0
StreamOrder                              : 1
ID                                       : 2
ID                                       : 2
Unique ID                                : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Commercial name                          : AAC
Codec ID                                 : A_AAC
Codec                                    : A_AAC
Codec                                    : AAC
Codec/Family                             : AAC
Channel(s)                               : 2
Channel(s)                               : 2 channels
Sampling rate                            : 96000
Sampling rate                            : 96.0 KHz
Compression mode                         : Lossy
Compression mode                         : Lossy
Delay                                    : 65536
Delay                                    : 1mn 5s
Delay                                    : 1mn 5s 536ms
Delay                                    : 1mn 5s
Delay                                    : 00:01:05.536
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : 65461
Delay relative to video                  : 1mn 5s
Delay relative to video                  : 1mn 5s 461ms
Delay relative to video                  : 1mn 5s
Delay relative to video                  : 00:01:05.461
Video0 delay                             : 65461
Video0 delay                             : 1mn 5s
Video0 delay                             : 1mn 5s 461ms
Video0 delay                             : 1mn 5s
Video0 delay                             : 00:01:05.461
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No


$ mediainfo --full video.new.mkv
General
Count                                    : 284
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Unique ID                                : 166505106193347154859794103899910277798
Unique ID                                : 166505106193347154859794103899910277798 (0x7D43B78CBACBD25589BD814160B38AA6)
Count of video streams                   : 1
Count of audio streams                   : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Codecs Video                             : AVC
Audio_Format_List                        : AAC
Audio_Format_WithHint_List               : AAC
Audio codecs                             : AAC LTP
Complete name                            : video.new.mkv
File name                                : video.new
File extension                           : mkv
Format                                   : Matroska
Format                                   : Matroska
Format/Url                               : http://packs.matroska.org/
Format/Extensions usually used           : mkv mk3d mka mks
Commercial name                          : Matroska
Format version                           : Version 2
Codec                                    : Matroska
Codec                                    : Matroska
Codec/Url                                : http://packs.matroska.org/
Codec/Extensions usually used            : mkv mk3d mka mks
File size                                : 81539455
File size                                : 77.8 MiB
File size                                : 78 MiB
File size                                : 78 MiB
File size                                : 77.8 MiB
File size                                : 77.76 MiB
Duration                                 : 785066
Duration                                 : 13mn 5s
Duration                                 : 13mn 5s 66ms
Duration                                 : 13mn 5s
Duration                                 : 00:13:05.066
Overall bit rate                         : 830905
Overall bit rate                         : 831 Kbps
File last modification date              : UTC 2014-05-19 15:29:45
File last modification date (local)      : 2014-05-19 17:29:45
Writing application                      : Lavf54.20.4
Writing library                          : Lavf54.20.4
Writing library                          : Lavf54.20.4

Video
Count                                    : 272
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
ID                                       : 1
ID                                       : 1
Unique ID                                : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : http://developers.videolan.org/x264.html
Commercial name                          : AVC
Format profile                           : Main@L3.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4
Format settings, ReFrames                : 4 frames
Internet media type                      : video/H264
Codec ID                                 : V_MPEG4/ISO/AVC
Codec ID/Url                             : http://ffdshow-tryout.sourceforge.net/
Codec                                    : V_MPEG4/ISO/AVC
Codec                                    : AVC
Codec/Family                             : AVC
Codec/Info                               : Advanced Video Codec
Codec/Url                                : http://ffdshow-tryout.sourceforge.net/
Codec profile                            : Main@L3.1
Codec settings                           : CABAC / 4 Ref Frames
Codec settings, CABAC                    : Yes
Codec_Settings_RefFrames                 : 4
Duration                                 : 785080
Duration                                 : 13mn 5s
Duration                                 : 13mn 5s 80ms
Duration                                 : 13mn 5s
Duration                                 : 00:13:05.080
Nominal bit rate                         : 768000
Nominal bit rate                         : 768 Kbps
Width                                    : 704
Width                                    : 704 pixels
Height                                   : 396
Height                                   : 396 pixels
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.778
Display aspect ratio                     : 16:9
Frame rate mode                          : CFR
Frame rate mode                          : Constant
FrameRate_Mode_Original                  : VFR
Frame rate                               : 25.000
Frame rate                               : 25.000 fps
Frame count                              : 19627
Resolution                               : 8
Resolution                               : 8 bits
Colorimetry                              : 4:2:0
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan type                                : Progressive
Interlacement                            : PPF
Interlacement                            : Progressive
Bits/(Pixel*Frame)                       : 0.110
Delay                                    : 80
Delay                                    : 80ms
Delay                                    : 80ms
Delay                                    : 80ms
Delay                                    : 00:00:00.080
Delay, origin                            : Container
Delay, origin                            : Container
Writing library                          : x264 - core 120 r2164 da19765
Writing library                          : x264 core 120 r2164 da19765
Writing library/Name                     : x264
Writing library/Version                  : core 120 r2164 da19765
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=36 / 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=50 / keyint_min=26 / scenecut=0 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=768 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No

Audio
Count                                    : 222
Count of stream of this kind             : 1
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 0
StreamOrder                              : 1
ID                                       : 2
ID                                       : 2
Unique ID                                : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Commercial name                          : AAC
Format profile                           : LTP
Codec ID                                 : A_AAC
Codec                                    : AAC LTP
Codec                                    : AAC LTP
Codec/Family                             : AAC
Duration                                 : 785066
Duration                                 : 13mn 5s
Duration                                 : 13mn 5s 66ms
Duration                                 : 13mn 5s
Duration                                 : 00:13:05.066
Channel(s)                               : 2
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Channel positions                        : 2/0/0
ChannelLayout                            : L R
Sampling rate                            : 96000
Sampling rate                            : 96.0 KHz
Samples count                            : 75366336
Compression mode                         : Lossy
Compression mode                         : Lossy
Delay                                    : 65536
Delay                                    : 1mn 5s
Delay                                    : 1mn 5s 536ms
Delay                                    : 1mn 5s
Delay                                    : 00:01:05.536
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : 65456
Delay relative to video                  : 1mn 5s
Delay relative to video                  : 1mn 5s 456ms
Delay relative to video                  : 1mn 5s
Delay relative to video                  : 00:01:05.456
Video0 delay                             : 65456
Video0 delay                             : 1mn 5s
Video0 delay                             : 1mn 5s 456ms
Video0 delay                             : 1mn 5s
Video0 delay                             : 00:01:05.456
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No

Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid

                                        <code>zenity  --question --title "Alert"  --text "Microsoft Windows has been found! Would you like to remove it?"</code>

Hors ligne

#8 Le 19/05/2014, à 16:52

melixgaro

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

attends je prends 10mn pour tester.


Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#9 Le 19/05/2014, à 17:01

melixgaro

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

bon j'ai essayé avec ça (en passant, EELV a un clip de campagne original).

Voici le retour de mediainfo

General
Unique ID                                : 295324702707929220627552627922194019618 (0xDE2D7804FF31AF032A23E33697C23522)
Complete name                            : campagne_officielle_elections_f2_102362266.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 30.3 MiB
Duration                                 : 4mn 58s
Overall bit rate                         : 851 Kbps
Writing application                      : Lavf55.10.1
Writing library                          : Lavf55.10.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 4mn 58s
Nominal bit rate                         : 768 Kbps
Width                                    : 704 pixels
Height                                   : 396 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.110
Writing library                          : x264 core 120 r2164 da19765
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=36 / 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=50 / keyint_min=26 / scenecut=0 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=768 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default                                  : No
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Codec ID                                 : A_AAC
Duration                                 : 4mn 58s
Channel count                            : 2 channels
Sampling rate                            : 96.0 KHz
Compression mode                         : Lossy
Delay relative to video                  : 1mn 5s
Default                                  : No
Forced                                   : No

Lecture avec vlc ou mplayer sans problème.

PS 1 : j'utilise mediainfo sans l'option --full. C'est ça qui provoque la redondance d'info.
PS 2 : j'ai utilisé la version 0.4.2 du script. La seule chose différente avec toi, c'est sans doute ma version de avconv (je l'ai compilé moi-même, car la version livrée avec la 13.10 était beuguée).

Dernière modification par melixgaro (Le 19/05/2014, à 17:04)


Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#10 Le 19/05/2014, à 17:08

melixgaro

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

Et voilà le blabla de mplayer qd je lis la vidéo

Playing campagne_officielle_elections_f2_102362266.mkv.
libavformat version 53.21.1 (external)
Mismatching header version 53.19.0
libavformat file format detected.
[matroska,webm @ 0xb6bef400]Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
VIDEO:  [H264]  704x396  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 ENCODER: Lavf55.10.1
Load subtitles in ./
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vdpau] 704x396 => 704x396 Planar YV12 
A: 290.8 V:   0.0 A-V:290.818 ct:  0.100   0/  0 ??% ??% ??,?% 0 0 


Exiting... (End of file)

Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#11 Le 19/05/2014, à 17:16

Gaara

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

ok merci, la compil est en train de tourner, je te dirais si ça marche


Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid

                                        <code>zenity  --question --title "Alert"  --text "Microsoft Windows has been found! Would you like to remove it?"</code>

Hors ligne

#12 Le 19/05/2014, à 17:17

melixgaro

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

regarde ça
ou peut-être que tu devrais installer ce paquet libvdpau1 ou variante (je suis toujours sous 13.10) je ne sais pas si c'est spécifique nvidia ou si ça sert aussi aux ati...


Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#13 Le 19/05/2014, à 17:18

Ubuntu1988

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

Gaara a écrit :

Ce qui est bizarre c'est que VLC le lise sans problème !

A la différence de mplayer, VLC corrige les problèmes audio et/ou vidéo à la volée. A noter aussi que mplayer2, un fork de mplayer, corrige pas mal de tracas de ce genre, si ça peut éviter un ré-encodage wink


J'ai perdu ! :(

Hors ligne

#14 Le 19/05/2014, à 17:24

melixgaro

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

à Ubuntu1988
oui et non. il m'est arrivé de vouloir lire des vidéos un peu mal fichues (ça devait être du wmv ou du flv) et mplayer était plus performant que vlc. Chacun a ses forces et ses faiblesse. C'est pour ça que je garde les deux. En fait, j'ai souvent deux logiciels qui font à peu près les mêmes choses, mais qui selon la tâche sont plus ou moins performants : vlc & mplayer, mencoder & avconv, ristretto & eog, gedit & mousepad, emacs & vi etc etc Et aujourd'hui, vue la taille des disques durs, on peut se permettre des doublons...


Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#15 Le 19/05/2014, à 17:27

Gaara

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

@melixgaro: ce paquet est déjà installé chez moi, donc ça doit servir aux ati aussi.
Et je ne fais pas le lien symbolique, si ça marche pas tanpis, vu que ça doit être portable... j'essaie juste la compilation pour voir.

@Ubuntu1988: C'est mplayer2 qui est installé par défaut sur 14.04... peut-être en installant mplayer...


Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid

                                        <code>zenity  --question --title "Alert"  --text "Microsoft Windows has been found! Would you like to remove it?"</code>

Hors ligne

#16 Le 19/05/2014, à 17:28

melixgaro

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

ah moi c'est mplayer.
j'ai testé mplayer2 et suis vite revenu à l'original.

Dernière modification par melixgaro (Le 19/05/2014, à 17:28)


Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#17 Le 19/05/2014, à 17:31

melixgaro

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

ah oui, en fait, c'est en voulant installer kphotoalbum que l'on m'a forcé à installer mplayer2. Ça a créé plus de problèmes qu'autre chose. Donc j'ai installé mplayer et fait croire à kphotoalbum que mplayer2 était bien là.


Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#18 Le 19/05/2014, à 17:35

Gaara

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

Bon... Toujours rien avec avconv !

avconv version 10.1, Copyright (c) 2000-2014 the Libav developers
  built on May 19 2014 18:22:22 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)

J'essaie mplayer


Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid

                                        <code>zenity  --question --title "Alert"  --text "Microsoft Windows has been found! Would you like to remove it?"</code>

Hors ligne

#19 Le 19/05/2014, à 17:43

Gaara

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

Ouf ! C'était ça.
Ça marche avec mplayer
J'espère que ça ne va pas bloquer d'autres logiciels, car il a fallu que je réinstalle dévédé, mais à priori mplayer2 est bien désinstallé.
Merci à vous! smile


Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid

                                        <code>zenity  --question --title "Alert"  --text "Microsoft Windows has been found! Would you like to remove it?"</code>

Hors ligne

#20 Le 19/05/2014, à 21:08

Gaara

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

bon j'ai fait une petite recherche et il semblerait que mplayer2 plante avec un bitrate de 96.0 KHz.
Il n'y aurait pas moyen de modifier ça à l'encodage?
sinon ça marche nickel avec mplayer !


Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid

                                        <code>zenity  --question --title "Alert"  --text "Microsoft Windows has been found! Would you like to remove it?"</code>

Hors ligne

#21 Le 19/05/2014, à 21:36

melixgaro

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

ben tant mieux. Merci surtout à Ubuntu1988 qui t'a mis sur la voie, même si au final tu as fait le contraire de ce qu'il disait (c'est-à-dire remplacer mplayer2 par mplayer).

C'est l'audio qui a un bitrate de 96 kHz. Si on veut le changer, il faut recoder la piste audio, donc ça demandera plus de travail à l'ordi.
Il faudrait un truc de ce genre

-acodec libfdk_aac -ar 48000 -ac 2 -ab 256k

à la place de

-acodec copy

Ça veut dire qu'on triture le signal et donc perd de l'info. Bah ça ne devrait pas s'entendre, mais ma philosophe est toujours de garder le plus d'info possible.

PS : je crois que libfdk_aac n'est pas dispo dans la version avconv des dépôts. Il faut trouver l'équivalent GPL ou utiliser libmp3lame (mais dans ce cas, on change le format audio aac en mp3).

Dernière modification par melixgaro (Le 19/05/2014, à 21:39)


Linux depuis ~2007. Xubuntu seulement.

Hors ligne

#22 Le 19/05/2014, à 22:18

Gaara

Re : [résolu] mplayer: son d'une vidéo mkv trop rapide

Ok merci. Mais si ça demande une dépendance en plus, ça vaut pas la peine de se fatiguer, autant installer mplayer.
Mais j'essaierais demain, pour savoir si c'est vraiment le 96KHz qui est en cause, ou si ça vient d'ailleurs.


Kubuntu 18.04 x64
Un terminal tactile Raspberry Pi et Odroid

                                        <code>zenity  --question --title "Alert"  --text "Microsoft Windows has been found! Would you like to remove it?"</code>

Hors ligne