Ti riporto l'output dei due diversi comandi:
Codice: Seleziona tutto
bash-4.2$ mplayer -benchmark -frames 1000 -vo gl -nosound -cache 20000 -fs file.avi
MPlayer 1.1-4.7.1 (C) 2000-2012 MPlayer Team
Playing file.avi.
Cache fill: 0.00% (0 bytes)
libavformat version 54.4.100 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 704x396 24bpp 25.000 fps 1292.7 kbps (157.8 kbyte/s)
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.21.101 (internal)
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
[mpeg4 @ 0x8c3b340]Invalid and inefficient vfw-avi packed B frames detected
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [gl] 704x396 => 704x396 Planar YV12 [fs]
V: 40.0 1001/1001 58% 24% 0.0% 0 0 77%
BENCHMARKs: VC: 23.501s VO: 9.929s A: 0.000s Sys: 0.053s = 33.483s
BENCHMARK%: VC: 70.1901% VO: 29.6530% A: 0.0000% Sys: 0.1569% = 100.0000%
Exiting... (End of file)
In questo caso il video lo vedo fluido e la velocità di riproduzione sembra normale. Niente scatti. FPS=30 circa.
Ecco cosa succede aggiungendo le altre opzioni:
Codice: Seleziona tutto
bash-4.2$ mplayer -benchmark -frames 1000 -vo gl:yuv=2:rectangle=2 -nosound -cache 20000 -fs file.avi
MPlayer 1.1-4.7.1 (C) 2000-2012 MPlayer Team
Playing file.avi.
Cache fill: 0.00% (0 bytes)
libavformat version 54.4.100 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 704x396 24bpp 25.000 fps 1292.7 kbps (157.8 kbyte/s)
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.21.101 (internal)
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
[mpeg4 @ 0x8c3b340]Invalid and inefficient vfw-avi packed B frames detected
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [gl] 704x396 => 704x396 Planar YV12 [fs]
V: 40.0 1001/1001 3% 38% 0.0% 0 0 77%
BENCHMARKs: VC: 1.457s VO: 15.310s A: 0.000s Sys: 0.052s = 16.820s
BENCHMARK%: VC: 8.6643% VO: 91.0245% A: 0.0000% Sys: 0.3112% = 100.0000%
Exiting... (End of file)
In questo caso dovremmo avere un incremento dei FPS che salgono a FPS=60 circa in pratica raddoppiano.
Però la velocità di riproduzione è raddoppiata anch'essa, cioè il video non viene riprodotto a velocità naturale, è tutto accelerato.
Premesso che non ci ho capito nulla in tutto questo, aggiungo anche il bench usando semplicemente il driver xv di default.
Codice: Seleziona tutto
bash-4.2$ mplayer -benchmark -frames 1000 -vo xv -nosound -cache 20000 -fs file.avi
MPlayer 1.1-4.7.1 (C) 2000-2012 MPlayer Team
Playing file.avi.
Cache fill: 0.00% (0 bytes)
libavformat version 54.4.100 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [XVID] 704x396 24bpp 25.000 fps 1292.7 kbps (157.8 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.21.101 (internal)
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
[mpeg4 @ 0x8c3b340]Invalid and inefficient vfw-avi packed B frames detected
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 704x396 => 704x396 Planar YV12 [fs]
V: 40.0 1001/1001 2% 30% 0.0% 0 0 77%
BENCHMARKs: VC: 0.901s VO: 12.098s A: 0.000s Sys: 1.625s = 14.624s
BENCHMARK%: VC: 6.1638% VO: 82.7225% A: 0.0000% Sys: 11.1136% = 100.0000%
Exiting... (End of file)
In questo terzo caso abbiamo FPS=68 circa.
Però il video oltre ad essere accelerato va anche a scatti, cioè si vede un fotogramma, poi resta lì su quel fotogramma poi parte accelerato saltando diversi fotogrammi, poi si riferma ecc..
Cosa pensi che si possa concludere dopo questa prova?
Tieni presente che non ci capisco niente in questa roba, sono ignorante sull'argomento... Mi sono limitato a riportare gli output...
Grazie delle risposte come al solito!