Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Can't play video in most video players and web browsers.

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
toooon
Posts: 4
Joined: 2024-02-10 08:32
Has thanked: 2 times

Can't play video in most video players and web browsers.

#1 Post by toooon »

Hi, I have a problem with watching video.

When I start playing a video, it only plays first few frames and then video track stops playing while audio track keeps playing.
Leave it about 30 seconds, finally it starts playing the rest of frames.

This happens in video players such as mplayer, smplayer and mpv, and web browsers while watching video on Youtube.
This seems not to happen with extremely short video.

Fortunately VLC can play video track successfully but it has a problem in playing audio track.

Any other graphical components of my desktop environment work well.

Can anyone give me an advise?

My environment:
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-17-amd64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700K CPU @ 4.00GHz
Memory: 39.1 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970/PCIe/SSE2

User avatar
sunrat
Administrator
Administrator
Posts: 6511
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 119 times
Been thanked: 489 times

Re: Can't play video in most video players and web browsers.

#2 Post by sunrat »

Try starting the player from a terminal to see if any error messages are shown. Something like

Code: Select all

mpv <path-to-video-file>
Also please install inxi and post the output of:

Code: Select all

inxi -CGSxxz
so we see better hardware and driver details.

I have a similar system to yours - i5-6500 and GTX970 - which has no problem playing video.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

toooon
Posts: 4
Joined: 2024-02-10 08:32
Has thanked: 2 times

Re: Can't play video in most video players and web browsers.

#3 Post by toooon »

Here are terminal outputs of mpv:

Code: Select all

 (+) Video --vid=1 (*) (h264 640x360 23.962fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 22050Hz)
AO: [pipewire] 22050Hz stereo 2ch floatp
VO: [gpu] 640x360 yuv420p
AV: 00:00:00 / 00:01:00 (0%) A-V: -0.000

Exiting... (Quit)
mplayer:

Code: Select all

MPlayer UNKNOWN-12 (C) 2000-2023 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/makoto/Downloads/big_buck_bunny.mp4.
libavformat version 59.27.100 (external)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f0fe7086d00]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
[lavf] stream 0: audio (aac), -aid 0, -alang eng
[lavf] stream 1: video (h264), -vid 0
VIDEO:  [H264]  640x360  24bpp  24.000 fps  612.2 kbps (74.7 kbyte/s)
==========================================================================
Forced video codec: ffh264vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 59.37.100 (external)
Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
==========================================================================
Clip info:
 major_brand: mp42
 minor_version: 1
 compatible_brands: mp42avc1
 creation_time: 2010-02-09T01:55:39.000000Z
Load subtitles in /home/makoto/Downloads/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 22050 Hz, 2 ch, floatle, 65.1 kbit/4.61% (ratio: 8134->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] 22050Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 640x360 => 640x360 H.264 VDPAU acceleration 
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 640x360 => 640x360 H.264 VDPAU acceleration 
A:  58.3 V:  60.0 A-V: -1.635 ct: -5.767   0/  0  0%  0%  0.3% 0 0 


Exiting... (End of file)
vlc:

Code: Select all

VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
[0000560050b05ae0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f73580049f0] gl gl: Initialized libplacebo v4.208.0 (API v208)
libva info: VA-API version 1.17.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[00007f73580049f0] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
[00007f73580049f0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
[00007f73580049f0] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[00007f73580049f0] gl gl: Initialized libplacebo v4.208.0 (API v208)
[00007f7364c4b400] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  525.147.05  Wed Oct 25 20:19:52 UTC 2023 for hardware decoding
uint DBusMenuExporterDBus::GetLayout(int, int, const QStringList&, DBusMenuLayoutItem&): Condition failed: menu
and inxi:

Code: Select all

System:
  Kernel: 6.1.0-17-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.8 wm: kwin_x11 dm: SDDM
    Distro: Debian GNU/Linux 12 (bookworm)
CPU:
  Info: quad core model: Intel Core i7-6700K bits: 64 type: MT MCP
    arch: Skylake-S rev: 3 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 800 min/max: 800/4200 cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 7: 800 8: 800 bogomips: 63999
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GM204 [GeForce GTX 970] driver: nvidia v: 525.147.05
    arch: Maxwell pcie: speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
    chip-ID: 10de:13c2
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9
    compositor: kwin_x11 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa alternate: nv gpu: nvidia
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 92
  Monitor-1: DVI-I-1 res: 1920x1080 dpi: 92 diag: 606mm (23.85")
  API: OpenGL v: 4.6.0 NVIDIA 525.147.05 renderer: NVIDIA GeForce GTX
    970/PCIe/SSE2 direct-render: Yes

Additional information: I have been able to play video at least until a month ago. Then I found that I could not watch video in Chromium several days ago . And yesterday I fell into this situation.

toooon
Posts: 4
Joined: 2024-02-10 08:32
Has thanked: 2 times

Re: Can't play video in most video players and web browsers.

#4 Post by toooon »

This is my /var/log/apt/history.log:

Code: Select all

Start-Date: 2024-02-09  12:53:51
Commandline: packagekit role='update-packages'
Requested-By: makoto (1000)
Upgrade: libc6-i386:amd64 (2.36-9+deb12u3, 2.36-9+deb12u4), chromium-sandbox:amd64 (121.0.6167.85-1~deb12u1, 121.0.6167.160-1~deb12u1), libzbar0:amd64 (0.23.92-7, 0.23.92-7+deb12u1), openjdk-17-jdk:amd64 (17.0.9+9-1~deb12u1, 17.0.10+7-1~deb12u1), openjdk-17-jre:amd64 (17.0.9+9-1~deb12u1, 17.0.10+7-1~deb12u1), openjdk-17-jdk-headless:amd64 (17.0.9+9-1~deb12u1, 17.0.10+7-1~deb12u1), chromium:amd64 (121.0.6167.85-1~deb12u1, 121.0.6167.160-1~deb12u1), libc6:amd64 (2.36-9+deb12u3, 2.36-9+deb12u4), libc6:i386 (2.36-9+deb12u3, 2.36-9+deb12u4), locales:amd64 (2.36-9+deb12u3, 2.36-9+deb12u4), runc:amd64 (1.1.5+ds1-1+b1, 1.1.5+ds1-1+deb12u1), redis-tools:amd64 (5:7.0.11-1+deb12u1, 5:7.0.15-1~deb12u1), libc-dev-bin:amd64 (2.36-9+deb12u3, 2.36-9+deb12u4), chromium-common:amd64 (121.0.6167.85-1~deb12u1, 121.0.6167.160-1~deb12u1), libc-l10n:amd64 (2.36-9+deb12u3, 2.36-9+deb12u4), libc-bin:amd64 (2.36-9+deb12u3, 2.36-9+deb12u4), libc-devtools:amd64 (2.36-9+deb12u3, 2.36-9+deb12u4), libc6-dbg:amd64 (2.36-9+deb12u3, 2.36-9+deb12u4), libc6-dev:amd64 (2.36-9+deb12u3, 2.36-9+deb12u4), code:amd64 (1.85.2-1705561292, 1.86.1-1707298119), openjdk-17-jre-headless:amd64 (17.0.9+9-1~deb12u1, 17.0.10+7-1~deb12u1)
End-Date: 2024-02-09  12:54:18

Start-Date: 2024-02-09  13:49:12
Commandline: apt install ./discord-0.0.42.deb
Requested-By: makoto (1000)
Upgrade: discord:amd64 (0.0.41, 0.0.42)
End-Date: 2024-02-09  13:49:14

Start-Date: 2024-02-09  19:24:15
Commandline: apt install mpv
Requested-By: makoto (1000)
Install: mpv:amd64 (0.35.1-4), libxpresent1:amd64 (1.0.0-2+b10, automatic), libmujs2:amd64 (1.3.2-1, automatic), libsixel1:amd64 (1.10.3-3, automatic)
End-Date: 2024-02-09  19:24:18

Start-Date: 2024-02-10  11:13:17
Commandline: packagekit role='update-packages'
Requested-By: makoto (1000)
Upgrade: libgit2-1.5:amd64 (1.5.1+ds-1, 1.5.1+ds-1+deb12u1)
End-Date: 2024-02-10  11:13:18

Start-Date: 2024-02-10  14:41:18
Commandline: apt install parole
Requested-By: makoto (1000)
Install: libxfce4util-bin:amd64 (4.18.1-2, automatic), libxfce4ui-common:amd64 (4.18.2-2, automatic), libxfce4ui-2-0:amd64 (4.18.2-2, automatic), libxfconf-0-3:amd64 (4.18.0-2, automatic), xfconf:amd64 (4.18.0-2, automatic), libxfce4util7:amd64 (4.18.1-2, automatic), parole:amd64 (4.16.0-3), libtagc0:amd64 (1.13-2, automatic), libxfce4util-common:amd64 (4.18.1-2, automatic)
End-Date: 2024-02-10  14:41:21

Start-Date: 2024-02-10  15:59:31
Commandline: apt install libavcodec-extra
Requested-By: makoto (1000)
Install: libavcodec-extra:amd64 (7:5.1.4-0+deb12u1), libavcodec-extra59:amd64 (7:5.1.4-0+deb12u1, automatic)
Remove: libavcodec59:amd64 (7:5.1.4-0+deb12u1)
End-Date: 2024-02-10  15:59:33

Start-Date: 2024-02-10  16:24:48
Commandline: apt remove vlc
Requested-By: makoto (1000)
Remove: vlc:amd64 (3.0.20-0+deb12u1)
End-Date: 2024-02-10  16:24:49

Start-Date: 2024-02-10  16:49:58
Commandline: apt install x264
Requested-By: makoto (1000)
Install: libffms2-5:amd64 (2.40+git20211209-2+b1, automatic), x264:amd64 (2:0.164.3095+gitbaee400-3)
End-Date: 2024-02-10  16:49:59

Start-Date: 2024-02-10  19:18:39
Commandline: apt install vlc
Requested-By: makoto (1000)
Install: vlc:amd64 (3.0.20-0+deb12u1)
End-Date: 2024-02-10  19:18:39

Start-Date: 2024-02-10  22:59:56
Commandline: apt install inxi
Requested-By: makoto (1000)
Install: lm-sensors:amd64 (1:3.6.0-7.1, automatic), inxi:amd64 (3.3.26-1-1)
End-Date: 2024-02-10  22:59:58


User avatar
sunrat
Administrator
Administrator
Posts: 6511
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 119 times
Been thanked: 489 times

Re: Can't play video in most video players and web browsers.

#5 Post by sunrat »

I was thinking it may be a problem with hardware acceleration so I tested those 3 players here. mplayer and vlc output is very similar, but I have configured mpv to use nvdec instead of vdpau. vaapi is not supported with nvidia. All 3 players play video fine although mplayer lost audio briefly (I don't use it normally). So basically I have no idea what is causing your issue.
Here is the mpv output:

Code: Select all

mpv /home/xxxxxx/Videos/UHD/bbb_sunflower_2160p_60fps_normal.mp4
 (+) Video --vid=1 (*) (h264 3840x2160 60.000fps)
 (+) Audio --aid=1 (*) (mp3 2ch 48000Hz)
     Audio --aid=2 (*) (ac3 6ch 48000Hz)
...
Using hardware decoding (nvdec).
[code]AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 3840x2160 cuda[nv12]
You could try configuring mpv to use nvdec but it's a long shot. Just create a file called mpv.conf in ~/config/mpv/ with this content:

Code: Select all

vo=gpu
profile=gpu-hq
hwdec=nvdec
ao=pulse
# Resample audio to catch up if audio/video go out of sync
video-sync=display-resample
interpolation
tscale=oversample
Those last lines after # may be unnecessary but it's what I have in my mpv.conf.

Also could you show:

Code: Select all

inxi -Axx
I'm curious to know why mpv shows pipewire but the others show pulse.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

toooon
Posts: 4
Joined: 2024-02-10 08:32
Has thanked: 2 times

Re: Can't play video in most video players and web browsers.

#6 Post by toooon »

Changing ~/config/mpv/mpv.conf didn't take effect. Moreover setting hwdec=no also didn't. So it may be other than a hardware acceleration problem.

This is the result of "inxi -Axx":

Code: Select all

Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: ASUSTeK
    driver: snd_hda_intel bus-ID: 1-8:2 v: kernel chip-ID: 05fc:0231
    bus-ID: 00:1f.3 chip-ID: 8086:a170
  Device-2: NVIDIA GM204 High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0fbb
  Device-3: Harman JBL Pebbles type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  API: ALSA v: k6.1.0-17-amd64 status: kernel-api
  Server-1: PipeWire v: 0.3.65 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active
  Server-2: PulseAudio v: 16.1 status: off (using pipewire-pulse)

Post Reply