C'è il problema della sincronia A-V.
C'è il problema del frame-dropping.
Sono in qualche modo legati e derivano dallo stesso problema di fondo:
a un qualche livello, sia esso il display, sia esso la scheda grafica... diciamo che non lo sappiamo per il momento... ebbene da qualche parte nella gestione del flusso, il video non sta al passo con l'audio.
Come ho mostrato però c'è una controprova su quale sia il discrimine:
impiegando la CPU non ci sono problemi di A-V. Nel mio caso si hanno solo quando sfrutto HWDEC.
Il monitor invece resta sempre quello. Se fosse lui a non farcela con il refresh non si spiegherebbe allora come faccia a funzionare in sincrono e con pochi frames buttati quando non utilizzo HWDEC.
Ad ogni modo ho provato ad usare prima "display-resample", poi "display-desync":
Codice: Seleziona tutto
$ mpv --no-config --video-sync=display-resample -vo=gpu -hwdec=auto Downloads/Corso\ introduttivo\ GIT\ per\ principianti\ -\ Git\ Tutorial\ Italiano\ \[wPAE9-DdMtI\].mp4
(+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
(+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
Using hardware decoding (vdpau).
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1920x1080 vdpau[yuv420p]
AV: 00:00:04 / 00:53:01 (0%) A-V: 0.019 DS: 0.310/13 Dropped: 142
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
AV: 00:10:10 / 00:53:01 (19%) A-V: 0.014 DS: 0.300/65 Dropped: 336
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
AV: 00:11:36 / 00:53:01 (22%) A-V: 2.866 DS: 0.090/104 Dropped: 5138
Exiting... (Quit)
Impostando display-desync invece ecco l'output:
Codice: Seleziona tutto
$ mpv --no-config --video-sync=display-desync -vo=gpu -hwdec=auto Downloads/Corso\ introduttivo\ GIT\ per\ principianti\ -\ Git\ Tutorial\ Italiano\ \[wPAE9-DdMtI\].mp4
(+) Video --vid=1 (*) (h264 1920x1080 60.000fps)
(+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
Using hardware decoding (vdpau).
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 1920x1080 vdpau[yuv420p]
AV: 00:00:03 / 00:53:01 (0%) A-V: 0.488 DS: 1.000/21
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
AV: 00:09:13 / 00:53:01 (17%) A-V: 0.478 DS: 1.000/15
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
AV: 00:10:09 / 00:53:01 (19%) A-V: 4.768 DS: 1.000/167
Exiting... (Quit)