Log in

View Full Version : MPlayer crashes with MPEG-1/2 video + OpenGL


Midzuki
1st March 2017, 14:56
Happens with both the one-year old build that I've just deleted and the latest r37926. Other types of video (Xvid, HEVC, H.264, VC-1, etc) do not make MPlayer crash when I choose -vo gl or -vo gl_nosw.

:confused:


=> mplayer -vo gl_nosw -demuxer lavf -nosound zzzz9999.ts
MPlayer Redxii-SVN-r37926-6.2.0 (x86_64) (C) 2000-2017 MPlayer Team
FFmpeg version: N-83668-g80b644c
Build date: 2017-02-26 21:46:22 EST
224 audio & 453 video codecs

Playing zzzz9999.ts.
Cache fill: 0.00% (0 bytes)

libavformat version 57.66.102 (internal)
libavformat file format detected.
[mpegts @ 0000000001813480]PES packet size mismatch
[lavf] stream 0: video (mpeg2video), -vid 0
[lavf] stream 1: audio (mp2), -aid 0
LAVF: Program 1
VIDEO: [MPG2] 720x480 0bpp 29.970 fps 7000.0 kbps (854.5 kbyte/s)
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.81.100 (internal)
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
Load subtitles in ./
Load subtitles in B:/EXECKS/MPLAYER/mplayer/sub/
Audio: no sound
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [gl_nosw] 720x480 => 854x480 Planar YV12
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [gl_nosw] 720x480 => 854x480 Planar YV12


MPlayer interrupted by signal 11 in module: filter video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.


- MPlayer crashed. This shouldn't happen.

:rolleyes:

LoRd_MuldeR
1st March 2017, 15:20
You could try adding "-vc mpeg12" to the command-line.

Midzuki
1st March 2017, 18:09
You could try adding "-vc mpeg12" to the command-line.

Been there, seen that it doesn't work.
The latest builds by Redxii don't even include mpeg12 anymore :scared:
Anyway, I don't expect the problem to be fixed anytime soon (if ever).
I just would like to understand how-&-why OpenGL on Windows fails with only one video decoder 0_o
With -vo directx or -vo direct3d, it's not possible to adjust the brightness, contrast, saturation, etc. of the image.

Midzuki
1st March 2017, 19:18
Not an actual solution, but I have just switched to mpv :devil:

(finally — OR until MPlayer gets fixed).

LoRd_MuldeR
1st March 2017, 19:35
I just would like to understand how-&-why OpenGL on Windows fails with only one video decoder 0_o

Maybe the problem occurs only with a specific color format and/or a specific resolution?

You could try with and without "direct rendering" enabled (-dr switch). Also, the "gl" renderer has various sub-options that you could try, such as the "yuv" modes.

(Could also be a driver issue. Way back, when I still was using an ATI card, the ATI drivers were notorious for breaking the gl renderer)