What can play *.mp4 files? (neither vlc nor mplayer can)

The mpv issue appears to be related to some other bug that was perceived with vlc, in a different way: after switching to VT-1 and back, acceleration is no longer available.

Behaviour: When logging into X and then starting vlc, things work as expected. When logging into X, then switching to a text console and back, and THEN starting vlc, the fans will make your ears fall off, because it now runs via llvmpipe and consumes immense amounts of CPU.
This is known, I found it discussed in some linux forum or wherever, I currently do not find a corresponding bug report in our database.
The typical error message is:
libGL error: failed to authenticate magic 1

The mpv fullscreen issue is similar insofar that it also appears after switching to a text console VT and back.
On initial start things work as expected and this is reported:
Code:
 (+) Video --vid=1 (h264 588x480 25.000fps)
 (+) Audio --aid=1 (aac 2ch 44100Hz)
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
AO: [oss] 44100Hz stereo 2ch s32
VO: [gpu] 588x480 yuv420p

After switching VTs, the fullscreen is immediately occupied and this is reported:
Code:
 (+) Video --vid=1 (h264 588x480 25.000fps)
 (+) Audio --aid=1 (aac 2ch 44100Hz)
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
libEGL warning: DRI2: failed to authenticate
[vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable.
WARNING: Kernel has no file descriptor comparison support: No such file or directory
AO: [oss] 44100Hz stereo 2ch s32
VO: [gpu] 588x480 yuv420p

zirias@ : does this mpv thing have some switch to NOT occupy the entire display when it doesn't find an acceleration?
 
No real idea but the last errors somehow scream „Wayland“ in my eyes.
I have had the same and solved it there.
Unsure bout the GPU atomic errors though.
 
I have an *.mp4 file which I would like to play.
Trying with vlc, it plays the file fine, but after 30-40 seconds it disables all gui functions except kill -9, so the playback cannot be paused or repositioned.
Trying with mplayer, it also plays the file fine, but the video part is played ~3 times faster than the audio part.
Practically, both are unuseable. Is there something that might work?
file might be corrupted , have you tried mvp ? handbrake to re sample it to see if that cleans up the file?
 
Code:
ffprobe version 4.4.3 Copyright (c) 2007-2022 the FFmpeg developers
  built with FreeBSD clang version 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386ae247c)
  configuration: --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --pkgconfigdir=/usr/local/libdata/pkgconfig --disable-static --disable-libcelt --enable-shared --enable-pic --enable-gpl --enable-avresample --cc=cc --cxx=c++ --enable-alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libaom --disable-libaribb24 --enable-asm --disable-libass --disable-libbs2b --disable-libcaca --disable-libcdio --disable-libcodec2 --disable-libdav1d --disable-libdavs2 --disable-libdc1394 --disable-debug --enable-htmlpages --disable-libdrm --disable-libfdk-aac --disable-libflite --enable-fontconfig --enable-libfreetype --disable-frei0r --disable-libfribidi --disable-gcrypt --disable-libglslang --disable-libgme --enable-gmp --enable-gnutls --enable-version3 --enable-libgsm --enable-iconv --disable-libilbc --enable-libjack --disable-libklvanc --disable-libkvazaar --enable-ladspa --enable-libmp3lame --disable-liblensfun --enable-libbluray --disable-librsvg --disable-librtmp --disable-libxml2 --disable-lto --disable-lv2 --disable-mbedtls --enable-libmfx --disable-libmodplug --disable-libmysofa --enable-network --enable-nonfree --disable-nvenc --enable-openal --disable-opencl --disable-opengl --disable-libopenh264 --enable-libopenjpeg --disable-libopenmpt --disable-openssl --disable-libopenvino --enable-optimizations --enable-libopus --disable-pocketsphinx --disable-libpulse --disable-librabbitmq --disable-librav1e --disable-librist --enable-runtime-cpudetect --disable-librubberband --enable-sdl2 --disable-libsmbclient --disable-libsnappy --disable-sndio --disable-libsoxr --enable-libspeex --disable-libsrt --disable-libssh --enable-libsvtav1 --disable-libtensorflow --disable-libtesseract --enable-libtheora --enable-libtwolame --disable-libuavs3d --enable-libv4l2 --enable-vaapi --disable-vapoursynth --enable-vdpau --disable-libvidstab --disable-libvmaf --enable-libvorbis --disable-libvo-amrwbenc --enable-libvpx --disable-vulkan --enable-libwebp --enable-libx264 --enable-libx265 --disable-libxavs2 --enable-libxcb --disable-libxvid --disable-outdev=xv --disable-libzimg --disable-libzmq --disable-libzvbi
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, mpegts, from 'Video.mp4':
  Duration: 01:34:49.65, start: 1.433589, bitrate: 808 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
  Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 588x480 [SAR 1:1 DAR 49:40], 25 fps, 25 tbr, 90k tbn, 50 tbc
  Stream #0:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 131 kb/s
MP4 is a container containing, in this case, two streams: one, #0.0, is a H264 video. The other, #0.1, is an AAC audio. At the website, you probably had both of them properly synchronized, but downloading somehow made this mess.

In a sentence: synchronize the tracks. And yes, it is a pain in the ass, but I see no choices left.
 
Back
Top