Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

-2 votes
1 answers
36 views
How do I enable Advanced Controls using vlcrc?
To enable advanced controls, I can check the Advanced Controls in the View menu. , but how can I do this using the vlcrc file?
To enable advanced controls, I can check the Advanced Controls in the View menu. , but how can I do this using the vlcrc file?
Jason Hunter (227 rep)
Jul 21, 2025, 12:45 AM • Last activity: Jul 21, 2025, 10:07 AM
3 votes
1 answers
3287 views
Failed to open vdpau backend - Nouveau
I'm using ArchLinux and when I run vlc or mplayer, I used to get the error Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory This doesn't seem to cause any error as far as video playback is concerned, but I want to know the reason for this pr...
I'm using ArchLinux and when I run vlc or mplayer, I used to get the error Failed to open VDPAU backend libvdpau_nouveau.so: cannot open shared object file: No such file or directory This doesn't seem to cause any error as far as video playback is concerned, but I want to know the reason for this problem. I referred to this post in UbuntuForums and one of the suggestions to solve the problem was to install nouveau-fw. Looking at the installed files by the nouveau-fw package, I couldn't find libvdpau_nouveau.so at all in the list, but surprisingly mplayer stopped showing the error after installing the package. But vlc still continues to show the error. The only other solution given in the post was to install official nvidia drivers. I'm hoping to avoid this and just use the open-source drivers. Hoping someone can provide a solution to this.
Hashken (333 rep)
Apr 10, 2015, 04:12 AM • Last activity: Jul 10, 2025, 03:08 AM
1 votes
1 answers
4464 views
Pamac error - Failed to prepare transaction: invalid or corrupted database
I was trying to install VLC in my linux manjaro , but when i do pamac update this happens - ``` pamac update Warning: Building packages as dynamic user Warning: Setting build directory to /var/cache/pamac Preparing... Synchronizing package databases... Refreshing core.db... Refreshing extra.db... Re...
I was trying to install VLC in my linux manjaro , but when i do pamac update this happens -
pamac update
Warning: Building packages as dynamic user
Warning: Setting build directory to /var/cache/pamac
Preparing...
Synchronizing package databases...
Refreshing core.db...                                                                                               
Refreshing extra.db...                                                                                              
Refreshing community.db...                                                                                          
Refreshing multilib.db...                                                                                           
Error: multilib.db: GPGME error: No data                                                                            
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
invalid or corrupted database (PGP signature)
Failed to synchronize databases
Refreshing AUR...                                                                                                   
Checking google-chrome dependencies...                                                                              
Error: Failed to prepare transaction: invalid or corrupted database

Edit build files : [e] 
Apply transaction ? [e/y/N] y

Transaction cancelled.
[Saksham-Sahgal saksham]# pamac install vlc
Preparing...
Synchronizing package databases...
Refreshing core.db...                                                                                               
Refreshing extra.db...                                                                                              
Refreshing community.db...                                                                                          
Refreshing multilib.db...                                                                                           
Error: multilib.db: GPGME error: No data                                                                            
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
Error: multilib.db: GPGME error: No data
invalid or corrupted database (PGP signature)
Failed to synchronize databases
where am I going wrong?
Choose optional dependencies for vlc:
 1:  vcdimager: navigate VCD with libvcdinfo
 2:  gnu-free-fonts: subtitle font
 3:  libnfs: NFS access
 4:  protobuf: chromecast streaming
 5:  lua52-socket: http interface
 6:  libtiger: Tiger rendering for Kate streams
 7:  sdl_image: SDL image support
 8:  lirc: lirc control
 9:  libgoom2: Goom visualization
10:  projectm: ProjectM visualisation
11:  aribb24: aribsub support
12:  aribb25: aribcam support

Enter a selection (default=none): 1-12        

Checking google-chrome dependencies...
Error: Failed to prepare transaction: target not found: aribb25
Error: Failed to prepare transaction: invalid or corrupted database
Saksham Sahgal (11 rep)
Sep 3, 2022, 09:30 AM • Last activity: Jul 1, 2025, 04:07 AM
0 votes
0 answers
21 views
VLC Not Adhering to Theme Correctly (KDE Plasma/Kvantum)
This theme (Gently) used to make the highlighted areas of VLC in the image below transparent, now it doesn't. Other applications are working fine (Kate, Dolphin, plasmoids, menus). I've been playing around in InkScape for hours but no changes https://i.imgur.com/AfEG4Xc.png
This theme (Gently) used to make the highlighted areas of VLC in the image below transparent, now it doesn't. Other applications are working fine (Kate, Dolphin, plasmoids, menus). I've been playing around in InkScape for hours but no changes Image
ToneyFox (1 rep)
Jun 29, 2025, 12:45 PM
2 votes
1 answers
1987 views
Why am I losing audio on VLC when playing HQ videos?
I am having a problem with VLC when I play HQ videos (720p and higher): when I try to look for a particular scene (say I am playing a movie and want to get to go to 30 minute mark) the sound goes off. It doesn't happen always but it does happen frequently, and when I loose the sound is only on the v...
I am having a problem with VLC when I play HQ videos (720p and higher): when I try to look for a particular scene (say I am playing a movie and want to get to go to 30 minute mark) the sound goes off. It doesn't happen always but it does happen frequently, and when I loose the sound is only on the video I am playing. I never have this problem on Parole Media Player, so I think something must be misconfiguled on VLC. Does anybody have any idea what could be wrong and how can I fix it? ----------------------------------------------------- **Update:** Following the advice from Skuminder, I ran vlc -vvv my_video.mp4 and here I present the lines concerning audio of the output I got: [0xae7705b0] faad decoder warning: decoded zero sample [0x8803d40] main playlist debug: reusing audio output [0x87f9030] pulse audio output debug: using stereo channel map [0xaad017c8] main spu text debug: looking for text renderer module matching "any": 3 candidates [0x87f9030] pulse audio output debug: changed buffer metrics: maxlength=4194304, tlength=46080, prebuf=0, minreq=15360 [0x87f9030] pulse audio output debug: connected to sink alsa_output.pci-0000_00_1b.0.analog-stereo [0x87f9030] main audio output debug: output 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes [0xaaf06568] main volume debug: looking for audio volume module matching "any": 2 candidates [0x87f9030] pulse audio output debug: base volume: 65536 [0x87f9030] pulse audio output debug: changing sink 0: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo) [0xaaf06568] main volume debug: using audio volume module "float_mixer" [0x87f9030] main audio output debug: input 'f32l' 48000 Hz Stereo frame=1 samples/8 bytes [0xaaf07a58] main audio filter debug: looking for audio filter module matching "scaletempo": 14 candidates [0xaaf07a58] scaletempo audio filter debug: format: 48000 rate, 2 nch, 4 bps, fl32 [0xaaf07a58] scaletempo audio filter debug: params: 30 stride, 0.200 overlap, 14 search [0xaaf07a58] scaletempo audio filter debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode [0xaaf07a58] main audio filter debug: using audio filter module "scaletempo" [0x87f9030] main audio output debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo [0x87f9030] main audio output debug: conversion pipeline complete [0x87f9030] main audio output debug: conversion: 'f32l'->'f32l' 48000 Hz->48000 Hz Stereo->Stereo [0x87f9030] main audio output debug: conversion pipeline complete [0xaaf0f228] main audio resampler debug: looking for audio resampler module matching "any": 3 candidates [0xaaf0f228] main audio resampler debug: using audio resampler module "samplerate" [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: cannot synchronize start [0x87f9030] pulse audio output debug: deferring start (30851 us) [0x87f9030] pulse audio output debug: deferring start (9397 us) [0x87f9030] pulse audio output warning: starting late (-12465 us) [0x87f9030] pulse audio output debug: started [0x87f9030] pulse audio output debug: changing sink 0: alsa_output.pci-0000_00_1b.0.analog-stereo (Built-in Audio Analog Stereo) [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 32% [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 66% [0xb24024a0] main input debug: Buffering 99% [0xb24024a0] main input debug: Stream buffering done (398 ms in 76 ms) [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 33% [0xb24024a0] main input debug: Buffering 66% [0xb24024a0] main input debug: Buffering 99% [0xb24024a0] main input debug: Stream buffering done (399 ms in 94 ms) [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: underflow [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 33% [0xb24024a0] main input debug: Buffering 66% [0xb24024a0] main input debug: Buffering 99% [0xb24024a0] main input debug: Stream buffering done (399 ms in 3 ms) [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: underflow [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 32% [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 66% [0xb24024a0] main input debug: Buffering 99% [0xb24024a0] main input debug: Stream buffering done (398 ms in 49 ms) [0xae71ee18] main decoder debug: End of video preroll [0xae71ee18] main decoder debug: Received first picture [0xb24024a0] main input debug: Decoder buffering done in 599 ms [0x87f9030] pulse audio output debug: underflow[0x87f9030] main audio output debug: inserting 27606 zeroes [0x87f9030] main audio output warning: playback way too early (-575136): playing silence [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 0% [0xb24024a0] main input debug: Buffering 32% [0xae7705b0] main decoder debug: End of audio preroll [0x87f9030] pulse audio output debug: underflow [0xb24024a0] main input debug: Buffering 66% [0xb24024a0] main input debug: Buffering 99% [0xb24024a0] main input debug: Stream buffering done (398 ms in 78 ms) Hope there's something interesting.
Carl Rojas (1139 rep)
Mar 29, 2015, 07:14 PM • Last activity: May 30, 2025, 11:05 AM
8 votes
2 answers
3405 views
Using a Unix Domain Socket to Control VLC
I am interested in using a UNIX-Domain Socket to control VLC playback. This functionality is outlined in the [VideoLan documentation for using oldrc][1]. So what I need to is startup vlc with a command such as: cvlc -I oldrc --rc-unix /some/socket And then I should be able to send vlc commands to `/...
I am interested in using a UNIX-Domain Socket to control VLC playback. This functionality is outlined in the VideoLan documentation for using oldrc . So what I need to is startup vlc with a command such as: cvlc -I oldrc --rc-unix /some/socket And then I should be able to send vlc commands to /some/socket to control the playback. Are there any general-purpose sockets floating around somewhere on my Kubuntu 12.10 system that I could use for this?
Lombard (203 rep)
Jan 19, 2014, 01:50 AM • Last activity: May 4, 2025, 10:51 AM
4 votes
1 answers
4647 views
Using RAW video encoding with gstreamer & VLC
I'm streaming RAW video with gstreamer like so: gst-launch-1.0 -v videotestsrc ! rtpvrawpay ! udpsink host="127.0.0.1" port="5000" This outputs the following caps: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(st...
I'm streaming RAW video with gstreamer like so: gst-launch-1.0 -v videotestsrc ! rtpvrawpay ! udpsink host="127.0.0.1" port="5000" This outputs the following caps: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)320, height=(string)240, colorimetry=(string)BT601-5, payload=(int)96, ssrc=(uint)1103043224, timestamp-offset=(uint)1948293153, seqnum-offset=(uint)27904 I can view this stream with gstreamer using: gst-launch-1.0 udpsrc port="5000" caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:0, depth=(string)8, width=(string)320, height=(string)240, colorimetry=(string)BT601-5, payload=(int)96, ssrc=(uint)1103043224, timestamp-offset=(uint)1948293153, seqnum-offset=(uint)27904" ! rtpvrawdepay ! videoconvert ! queue ! xvimagesink sync=false Using VLC, I've created an SDL file: v=0 c=IN IP4 127.0.0.1 m=video 5000 RTP/AVP 96 a=rtpmap:96 RAW/90000 a=fmtp:96 media=video; clock-rate=90000; encoding-name=RAW But VLC errors with: core input error: no suitable demux module for `file/any:///home/.../settings.sdp' How can I have VLC accept the RAW stream?
wulfgarpro (783 rep)
Oct 27, 2014, 12:49 AM • Last activity: Apr 9, 2025, 11:03 PM
3 votes
2 answers
351 views
Can I send a keyboard shortcut to two applications (e.g. Audacity and VLC) and at the same time?
I am on Fedora 25 (x86_64) and I use XFCE desktop. I need to record a sound in sync with a video. Recording is done by Audacity and video playback is done by VLC. Currently, I have set global keyboard shortcut for VLC to pause and play the video when I want. I use another keyboard shortcut in Audaci...
I am on Fedora 25 (x86_64) and I use XFCE desktop. I need to record a sound in sync with a video. Recording is done by Audacity and video playback is done by VLC. Currently, I have set global keyboard shortcut for VLC to pause and play the video when I want. I use another keyboard shortcut in Audacity (not global) to append my voice to the sound being recorded and I hit space (local) to pause the recording. You see that this makes the recording asynchronous to the video playback, which sucks! My question is how can I define global keyboard shortcuts for my desktop (currently XFCE but I can use other desktop environments on my Fedora if necessary), to start playback and record at the same time (with a single key [combination] and pause them so (with a single key [combination]) as well? To make the question clearer, for example I have set CTRL+ALT+SPACE as global hotkey for VLC for play/pause. How can I define the same key combination for Audacity to do Append Record/Pause when I send this key combination to the system?
Mehdi Haghgoo (583 rep)
Jan 7, 2017, 03:25 PM • Last activity: Apr 3, 2025, 09:06 PM
1 votes
1 answers
53 views
Problem building vlc
I'm trying to build vlc. So I did this: $ sudo apt build-dep vlc Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if yo...
I'm trying to build vlc. So I did this: $ sudo apt build-dep vlc Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libsystemd-dev : Depends: libsystemd0 (= 252.33-1~deb12u1) E: Unable to correct problems, you have held broken packages. Ok, fair enough. So I wanted to investigate what broken packages I have. I found this page https://askubuntu.com/q/772653/965510 with various commands to list broken packages. I tried all of them, but got no information at all. I have also tried aptitude, but it said: Unable to satisfy the build-depends: Build-Depends: debhelper-compat (= 13) Unable to apply some actions, aborting My sources.list is here:
#deb cdrom:[Debian GNU/Linux 12.5.0 _Bookworm_ - Official amd64 NETINST with firmware 20240210-11:27]/ bookworm contrib main non-free-firmware

deb http://deb.debian.org/debian/  bookworm main contrib non-free-firmware
deb-src http://deb.debian.org/debian/  bookworm main contrib non-free-firmware

deb http://deb.debian.org/debian/  bookworm-proposed-updates  main contrib non-free-firmware
deb-src http://deb.debian.org/debian/  bookworm-proposed-updates  main contrib non-free-firmware

deb http://deb.debian.org/debian/  bookworm-backports  main contrib non-free-firmware
deb-src http://deb.debian.org/debian/  bookworm-backports  main contrib non-free-firmware

deb http://security.debian.org/debian-security  bookworm-security main non-free-firmware
deb-src http://security.debian.org/debian-security  bookworm-security main non-free-firmware

# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports 
deb http://deb.debian.org/debian/  bookworm-updates main non-free-firmware
deb-src http://deb.debian.org/debian/  bookworm-updates main non-free-firmware

deb [ arch=amd64,arm64 ] https://www.ui.com/downloads/unifi/debian  stable ubiquiti
deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/  stable main
deb [signed-by=/etc/apt/keyrings/lutris.gpg] https://download.opensuse.org/repositories/home:/strycore/Debian_12/  ./
deb [ signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] http://repo.mongodb.org/apt/debian  bookworm/mongodb-org/7.0 main
deb [signed-by=/usr/share/keyrings/mullvad-keyring.asc arch=amd64] https://repository.mullvad.net/deb/stable  bookworm main
deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt  xenial main
# Uncomment these lines to try the beta version of the Steam launcher
#deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https://repo.steampowered.com/steam/  beta steam
#deb-src [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https://repo.steampowered.com/steam/  beta steam
# deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] http://repo.steampowered.com/steam/  stable steam
deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https://repo.steampowered.com/steam/  stable steam
deb-src [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https://repo.steampowered.com/steam/  stable steam
deb [signed-by=/usr/share/keyrings/winehq.gpg] http://dl.winehq.org/wine-builds/debian/  bookworm main
How can I continue from here?
klutt (566 rep)
Mar 16, 2025, 12:40 AM • Last activity: Mar 16, 2025, 08:55 PM
0 votes
0 answers
45 views
vlc creates a linux_perf_out.bin file
After each time I run `vlc` on my Ubuntu 24.02 LTS system, I find a binary file named `linux_perf_out.bin` in the same folder as the video being played. What generates it? How could I get rid of it? I tried running `vlc` through `strace`, but the trace file did not mention `linux_perf_out.bin`.
After each time I run vlc on my Ubuntu 24.02 LTS system, I find a binary file named linux_perf_out.bin in the same folder as the video being played. What generates it? How could I get rid of it? I tried running vlc through strace, but the trace file did not mention linux_perf_out.bin.
john75 (1 rep)
Feb 27, 2025, 09:19 AM • Last activity: Mar 1, 2025, 09:01 AM
0 votes
1 answers
43 views
Can I get help with VLC that plays .mp4 files fine one day, then a no video?
Can I get help with VLC that plays .mp4 files fine one day, then on another day it only has audio? [![enter image description here][1]][1] [1]: https://i.sstatic.net/650T1DsB.png
Can I get help with VLC that plays .mp4 files fine one day, then on another day it only has audio? enter image description here
Andrew K (103 rep)
Feb 14, 2025, 09:29 PM • Last activity: Feb 18, 2025, 05:36 PM
1 votes
1 answers
313 views
VLC fails to start due to missing symbol after reinstall on Arch Linux
Whenever I try to run VLC, I get the following error: vlc: symbol lookup error: /usr/lib/libvlc.so.5: undefined symbol: vlc_object_hold I've tried uninstalling it and reinstalling it (as well as orphaned dependencies), but that only gives me this similar error: /usr/lib/vlc/vlc-cache-gen: symbol loo...
Whenever I try to run VLC, I get the following error: vlc: symbol lookup error: /usr/lib/libvlc.so.5: undefined symbol: vlc_object_hold I've tried uninstalling it and reinstalling it (as well as orphaned dependencies), but that only gives me this similar error: /usr/lib/vlc/vlc-cache-gen: symbol lookup error: /usr/lib/libvlc.so.5: undefined symbol: vlc_object_hold I have only tried installing VLC from my distro's repos. I have not tried any third-party repos, nor have I tried compiling from source. I have an old version (3.0.11-1-x86) in the form of an AppImage, which works fine, but I'd like to fix this problem instead of working around it. Any ideas? Arch GNU/Linux, x86_64. VLC 3.0.16-7 was the newest version in the repos at the time of writing.
TSJNachos117 (427 rep)
Jan 28, 2022, 10:55 PM • Last activity: Sep 29, 2024, 09:06 AM
3 votes
2 answers
3232 views
How to merge multiple mp4 files as chapters in a final mp4?
I have folder with files named like `0001.mp4`, `0002.mp4`, ... I want to merge all these files to a `combined.mp4`, and I want it to have an internal chapter marks. It is convenient when playing for example in vlc, as you can see the chapter names in timeline. [![enter image description here][1]][1...
I have folder with files named like 0001.mp4, 0002.mp4, ... I want to merge all these files to a combined.mp4, and I want it to have an internal chapter marks. It is convenient when playing for example in vlc, as you can see the chapter names in timeline. enter image description here How can I make such combined.mp4? Preferably, command line script using ffmpeg, and no additional dependencies. There is similar question, but asker wants to use handbrake.
Ashark (1069 rep)
May 8, 2023, 12:32 AM • Last activity: Sep 18, 2024, 02:30 PM
1 votes
0 answers
88 views
VLC media player on my Ubuntu 23.10 play videos with a lot of noise to the extend of not getting the sound clearly
I have being using VLC for a while. Now suddenly on my Ubuntu 23.10 when I play a multimedia file there is a lot of noise clutter in the audio. But if I play an audio on RhythmBox it play clearly as is should. I think this is due to my recent upgrade from Ubuntu 23.04 to 23.10. I have never have suc...
I have being using VLC for a while. Now suddenly on my Ubuntu 23.10 when I play a multimedia file there is a lot of noise clutter in the audio. But if I play an audio on RhythmBox it play clearly as is should. I think this is due to my recent upgrade from Ubuntu 23.04 to 23.10. I have never have such issues before. My computer is an HP Envy x360 with a 10th Gen Intel processor and a 12GB RAM.
TERENCE ROOT (11 rep)
Apr 6, 2024, 04:09 PM • Last activity: Apr 8, 2024, 03:36 PM
2 votes
1 answers
100 views
Playing random videos on one's system; minor improvement to include DVDs
In my .bashrc I have a function which I use to play random videos (not written below, just fyi), and another one for all media files, e.g.: createmediafiles() { find ~+ -type f -iregex '.*\.\(mp3\|wav\|ogg\|flac\|mp4\|mov\|avi\)' > ~/mediafiles.txt find ~+ -type d -name VIDEO_TS >> ~+/mediafiles.txt...
In my .bashrc I have a function which I use to play random videos (not written below, just fyi), and another one for all media files, e.g.: createmediafiles() { find ~+ -type f -iregex '.*\.\(mp3\|wav\|ogg\|flac\|mp4\|mov\|avi\)' > ~/mediafiles.txt find ~+ -type d -name VIDEO_TS >> ~+/mediafiles.txt } playmediafiles() { while true; do while read -r line; do shuf -n 1 | tee -a ~/played-log.txt | xargs -d "\n" mpv done < ~/mediafiles.txt done } I want to add the VIDEO_TS line to createmediafiles, but in the playmediafiles function I want to add an IF statement, such that if the line shuffled to in mediafiles.txt is a VIDEO_TS then rather than using mpv to play a file, it will do: tee -a ~/played-log.txt | xargs -d "\n" vlc --fullscreen Piping in mediafiles.txt read the same way as it does with mpv. How do I throw that in an IF statement with the condition being that the line ends in VIDEO_TS?
1toneboy (465 rep)
Mar 26, 2024, 09:38 AM • Last activity: Mar 28, 2024, 10:04 AM
2 votes
1 answers
436 views
How do you configure a V4L2 device when V4L2 software cannot read a V4L2 stream directly, because they give IO errors?
I'm trying to capture video from an [Elikliv UVC microscope][1] in Linux. We can do direct frame-by-frame capture using this command: ```sh v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=stream.mjpg ``` ... and I can see it live using this big crazy command: ```sh v4l2-ctl --device /dev/vid...
I'm trying to capture video from an Elikliv UVC microscope in Linux. We can do direct frame-by-frame capture using this command:
v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=stream.mjpg
... and I can see it live using this big crazy command:
v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=/proc/self/fd/1 | \
  ffmpeg -i - -fflags discardcorrupt -c:v copy -f matroska - | \
  mpv --profile=low-latency -
..but I can't get it to work directly with V4L2-aware software (ie, MPV, VLC, OBS) without the help of v4l2-ctl to stream it into ffmpeg and then mpv. ## **Question:** Is there a way I can tell configure the V4L2 device to work in a "normal" way, directly from /dev/video0, without a big crazy pipe? ## MPV says
# mpv /dev/video0
[lavf] avformat_open_input() failed
Failed to recognize file format.
## VLC says
Your input can't be opened:
VLC is unable to open the MRL 'v4l2:///dev/video0'. Check the log for details.
[00007efbdc001120] v4l2 demux error: cannot set format: Input/output error
[00007efbdc001120] v4l2 demux error: not a radio tuner device
[00007efbdc003710] v4l2 stream error: cannot set format: Input/output error
## Other misc info:
# dmesg
[  +0.078764] usb 1-4.3: New USB device found, idVendor=05e3, idProduct=f12b, bcdDevice= 1.00
[  +0.000019] usb 1-4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000008] usb 1-4.3: Product: GENERAL - UVC
[  +0.000006] usb 1-4.3: Manufacturer: GENERAL
[  +0.002536] usb 1-4.3: Found UVC 1.00 device GENERAL - UVC  (05e3:f12b)
[  +0.000287] usb 1-4.3: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[  +5.549774] retire_capture_urb: 233 callbacks suppressed
[  +5.000996] retire_capture_urb: 4991 callbacks suppressed
[  +5.000956] retire_capture_urb: 4991 callbacks suppressed
[  +5.001062] retire_capture_urb: 4991 callbacks suppressed
...  ...
[  +3.438372] uvcvideo 1-4.3:1.1: Failed to query (130) UVC probe control : -32 (exp. 26).


# v4l2-ctl --list-devices
GENERAL - UVC : GENERAL - UVC  (usb-0000:00:14.0-4.3):
    /dev/video0
    /dev/video1
    /dev/media0

# v4l2-ctl --list-formats -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
    Type: Video Capture


# v4l2-ctl --list-formats -d /dev/video1
ioctl: VIDIOC_ENUM_FMT
    Type: Video Capture

# v4l2-ctl --list-formats -d /dev/media0
Unable to detect what device /dev/media0 is, exiting.

# v4l2-ctl -D -d /dev/video0
Driver Info:
    Driver name      : uvcvideo
    Card type        : GENERAL - UVC : GENERAL - UVC
    Bus info         : usb-0000:00:14.0-4.3
    Driver version   : 6.7.6
    Capabilities     : 0x84a00001
        Video Capture
        Metadata Capture
        Streaming
        Extended Pix Format
        Device Capabilities
    Device Caps      : 0x04200001
        Video Capture
        Streaming
        Extended Pix Format
Media Driver Info:
    Driver name      : uvcvideo
    Model            : GENERAL - UVC : GENERAL - UVC
    Serial           :
    Bus info         : usb-0000:00:14.0-4.3
    Media version    : 6.7.6
    Hardware revision: 0x00000100 (256)
    Driver version   : 6.7.6
Interface Info:
    ID               : 0x03000002
    Type             : V4L Video
Entity Info:
    ID               : 0x00000001 (1)
    Name             : GENERAL - UVC : GENERAL - UVC
    Function         : V4L2 I/O
    Flags         : default
    Pad 0x01000007   : 0: Sink
      Link 0x02000010: from remote pad 0x100000a of entity 'Processing 5': Data, Enabled, Immutable

# v4l2-ctl -D -d /dev/video1
Driver Info:
    Driver name      : uvcvideo
    Card type        : GENERAL - UVC : GENERAL - UVC
    Bus info         : usb-0000:00:14.0-4.3
    Driver version   : 6.7.6
    Capabilities     : 0x84a00001
        Video Capture
        Metadata Capture
        Streaming
        Extended Pix Format
        Device Capabilities
    Device Caps      : 0x04a00000
        Metadata Capture
        Streaming
        Extended Pix Format
Media Driver Info:
    Driver name      : uvcvideo
    Model            : GENERAL - UVC : GENERAL - UVC
    Serial           :
    Bus info         : usb-0000:00:14.0-4.3
    Media version    : 6.7.6
    Hardware revision: 0x00000100 (256)
    Driver version   : 6.7.6
Interface Info:
    ID               : 0x03000005
    Type             : V4L Video
Entity Info:
    ID               : 0x00000004 (4)
    Name             : GENERAL - UVC : GENERAL - UVC
    Function         : V4L2 I/O
## MPV Verbose output:
# mpv av://v4l2:/dev/video0 --profile=low-latency --untimed --demuxer-lavf-o=video_size=1280x720,input_format=mjpeg -v -v 
[cplayer] Command line options: 'av://v4l2:/dev/video0' '--profile=low-latency' '--untimed' '--demuxer-lavf-o=video_size=1280x720,input_format=mjpeg' '-v' '-v'
[cplayer] mpv 0.35.1 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       57.28.100
[cplayer]    libavcodec      59.37.100
[cplayer]    libavformat     59.27.100
[cplayer]    libswscale      6.7.100
[cplayer]    libavfilter     8.44.100
[cplayer]    libswresample   4.7.100
[cplayer] FFmpeg version: 5.1.3
[cplayer] 
[cplayer] Configuration: /usr/bin/waf configure --prefix=/usr --bindir=/usr/bin --libdir=/usr/lib64 --mandir=/usr/share/man --docdir=/usr/share/doc/mpv --confdir=/etc/mpv --disable-build-date --enable-libmpv-shared --enable-sdl2 --enable-libarchive --enable-dvdnav --enable-cdda --enable-html-build --enable-dvbin --enable-gl-x11 --enable-wayland
[cplayer] List of enabled features: alsa asm av-channel-layout caca cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo librt linux-fstatfs linux-input-event-codes lua lua_5_1 memfd_create optimize pipewire plain-gl posix posix-or-mingw pthreads pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vaapi-x-egl vaapi-x11 vapoursynth vdpau vdpau-gl-x11 vector vt.h vulkan wayland wayland-protocols wayland-protocols-1-24 x11 xv zimg zlib
[global] config path: '' -> '/root/.config/mpv'
[global] user path: '~~home/' -> '/root/.config/mpv'
[global] user path: '~~old_home/' -> '/root/.mpv'
[global] config path: 'encoding-profiles.conf' -/-> '/root/.config/mpv/encoding-profiles.conf'
[global] config path: 'encoding-profiles.conf' -/-> '/root/.mpv/encoding-profiles.conf'
[global] config path: 'encoding-profiles.conf' -> '/etc/mpv/encoding-profiles.conf'
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Applying profile 'default'...
[global] config path: 'mpv.conf' -/-> '/root/.config/mpv/mpv.conf'
[global] config path: 'config' -/-> '/root/.config/mpv/config'
[global] config path: 'mpv.conf' -/-> '/root/.mpv/mpv.conf'
[global] config path: 'config' -/-> '/root/.mpv/config'
[global] config path: 'mpv.conf' -/-> '/etc/mpv/mpv.conf'
[global] config path: 'config' -/-> '/etc/mpv/config'
[cplayer] Setting option 'profile' = 'low-latency' (flags = 8)
[cplayer] Applying profile 'low-latency'...
[cplayer] Setting option 'audio-buffer' = '0' (flags = 12)
[cplayer] Setting option 'vd-lavc-threads' = '1' (flags = 12)
[cplayer] Setting option 'cache-pause' = 'no' (flags = 12)
[cplayer] Setting option 'demuxer-lavf-o-add' = 'fflags=+nobuffer' (flags = 12)
[cplayer] Setting option 'demuxer-lavf-probe-info' = 'nostreams' (flags = 12)
[cplayer] Setting option 'demuxer-lavf-analyzeduration' = '0.1' (flags = 12)
[cplayer] Setting option 'video-sync' = 'audio' (flags = 12)
[cplayer] Setting option 'interpolation' = 'no' (flags = 12)
[cplayer] Setting option 'video-latency-hacks' = 'yes' (flags = 12)
[cplayer] Setting option 'stream-buffer-size' = '4k' (flags = 12)
[cplayer] Setting option 'untimed' = '' (flags = 8)
[cplayer] Setting option 'demuxer-lavf-o' = 'video_size=1280x720,input_format=mjpeg' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[global] config path: 'input.conf' -/-> '/root/.config/mpv/input.conf'
[global] config path: 'input.conf' -/-> '/root/.mpv/input.conf'
[global] config path: 'input.conf' -/-> '/etc/mpv/input.conf'
[osc] Loading lua script @osc.lua...
[ytdl_hook] Loading lua script @ytdl_hook.lua...
[stats] Loading lua script @stats.lua...
[console] Loading lua script @console.lua...
[osc] loading mp.defaults
[auto_profiles] Loading lua script @auto_profiles.lua...
[ytdl_hook] loading mp.defaults
[global] config path: 'scripts' -/-> '/root/.config/mpv/scripts'
[stats] loading mp.defaults
[global] config path: 'scripts' -/-> '/root/.mpv/scripts'
[global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[cplayer] Waiting for scripts...
[auto_profiles] loading mp.defaults
[console] loading mp.defaults
[osc] loading @osc.lua
[stats] loading @stats.lua
[auto_profiles] loading @auto_profiles.lua
[console] loading @console.lua
[auto_profiles] Exiting...
[console] reading options for console 
[global] config path: 'script-opts/console.conf' -/-> '/root/.config/mpv/script-opts/console.conf'
[global] config path: 'script-opts/console.conf' -/-> '/root/.mpv/script-opts/console.conf'
[global] config path: 'script-opts/console.conf' -/-> '/etc/mpv/script-opts/console.conf'
[console] script-opts/console.conf not found. 
[global] config path: 'lua-settings/console.conf' -/-> '/root/.config/mpv/lua-settings/console.conf'
[global] config path: 'lua-settings/console.conf' -/-> '/root/.mpv/lua-settings/console.conf'
[global] config path: 'lua-settings/console.conf' -/-> '/etc/mpv/lua-settings/console.conf'
[console] lua-settings/console.conf not found. 
[stats] reading options for stats 
[global] config path: 'script-opts/stats.conf' -/-> '/root/.config/mpv/script-opts/stats.conf'
[global] config path: 'script-opts/stats.conf' -/-> '/root/.mpv/script-opts/stats.conf'
[global] config path: 'script-opts/stats.conf' -/-> '/etc/mpv/script-opts/stats.conf'
[stats] script-opts/stats.conf not found. 
[global] config path: 'lua-settings/stats.conf' -/-> '/root/.config/mpv/lua-settings/stats.conf'
[global] config path: 'lua-settings/stats.conf' -/-> '/root/.mpv/lua-settings/stats.conf'
[global] config path: 'lua-settings/stats.conf' -/-> '/etc/mpv/lua-settings/stats.conf'
[stats] lua-settings/stats.conf not found. 
[ytdl_hook] loading @ytdl_hook.lua
[global] config path: 'fonts' -/-> '/root/.config/mpv/fonts'
[global] config path: 'fonts' -/-> '/root/.mpv/fonts'
[global] config path: 'fonts' -/-> '/etc/mpv/fonts'
[osd/libass] ASS library version: 0x1701000 (runtime 0x1701000)
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[global] config path: 'subfont.ttf' -/-> '/root/.config/mpv/subfont.ttf'
[global] config path: 'subfont.ttf' -/-> '/root/.mpv/subfont.ttf'
[global] config path: 'subfont.ttf' -/-> '/etc/mpv/subfont.ttf'
[global] config path: 'fonts.conf' -/-> '/root/.config/mpv/fonts.conf'
[global] config path: 'fonts.conf' -/-> '/root/.mpv/fonts.conf'
[global] config path: 'fonts.conf' -/-> '/etc/mpv/fonts.conf'
[osd/libass] Setting up fonts...
[ytdl_hook] reading options for ytdl_hook 
[global] config path: 'script-opts/ytdl_hook.conf' -/-> '/root/.config/mpv/script-opts/ytdl_hook.conf'
[global] config path: 'script-opts/ytdl_hook.conf' -/-> '/root/.mpv/script-opts/ytdl_hook.conf'
[global] config path: 'script-opts/ytdl_hook.conf' -/-> '/etc/mpv/script-opts/ytdl_hook.conf'
[ytdl_hook] script-opts/ytdl_hook.conf not found. 
[global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/root/.config/mpv/lua-settings/ytdl_hook.conf'
[global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/root/.mpv/lua-settings/ytdl_hook.conf'
[global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/etc/mpv/lua-settings/ytdl_hook.conf'
[ytdl_hook] lua-settings/ytdl_hook.conf not found. 
[osc] reading options for osc 
[global] config path: 'script-opts/osc.conf' -/-> '/root/.config/mpv/script-opts/osc.conf'
[global] config path: 'script-opts/osc.conf' -/-> '/root/.mpv/script-opts/osc.conf'
[global] config path: 'script-opts/osc.conf' -/-> '/etc/mpv/script-opts/osc.conf'
[osc] script-opts/osc.conf not found. 
[global] config path: 'lua-settings/osc.conf' -/-> '/root/.config/mpv/lua-settings/osc.conf'
[global] config path: 'lua-settings/osc.conf' -/-> '/root/.mpv/lua-settings/osc.conf'
[global] config path: 'lua-settings/osc.conf' -/-> '/etc/mpv/lua-settings/osc.conf'
[osc] lua-settings/osc.conf not found. 
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Run command: define-section, flags=64, args=[name="input_stats", contents="", flags="default"]
[cplayer] Run command: enable-section, flags=64, args=[name="input_stats", flags="allow-hide-cursor+allow-vo-dragging"]
[cplayer] Run command: define-section, flags=64, args=[name="input_forced_stats", contents="", flags="force"]
[cplayer] Run command: enable-section, flags=64, args=[name="input_forced_stats", flags="allow-hide-cursor+allow-vo-dragging"]
[cplayer] Run command: define-section, flags=64, args=[name="input_console", contents="", flags="default"]
[cplayer] Run command: enable-section, flags=64, args=[name="input_console", flags="allow-hide-cursor+allow-vo-dragging"]
[cplayer] Run command: define-section, flags=64, args=[name="input_forced_console", contents="", flags="force"]
[cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide-cursor+allow-vo-dragging"]
[cplayer] Run command: define-section, flags=64, args=[name="showhide", contents="mouse_move script-binding osc/__keybinding1\nmouse_leave script-binding osc/__keybinding2\n", flags="force"]
[cplayer] Run command: define-section, flags=64, args=[name="showhide_wc", contents="mouse_move script-binding osc/__keybinding3\nmouse_leave script-binding osc/__keybinding4\n", flags="force"]
[cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow-vo-dragging"]
[cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+allow-vo-dragging"]
[cplayer] Run command: define-section, flags=64, args=[name="input", contents="mbtn_left script-binding osc/__keybinding5\nshift+mbtn_left script-binding osc/__keybinding6\nmbtn_right script-binding osc/__keybinding7\nmbtn_mid script-binding osc/__keybinding8\nwheel_up script-binding osc/__keybinding9\nwheel_down script-binding osc/__keybinding10\nmbtn_left_dbl ignore\nshift+mbtn_left_dbl ignore\nmbtn_right_dbl ignore\n", flags="force"]
[cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""]
[cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left script-binding osc/__keybinding11\n", flags="force"]
[cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""]
[cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-visibility=auto"]
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Run command: disable-section, flags=64, args=[name="input"]
[cplayer] Run command: disable-section, flags=64, args=[name="window-controls"]
[cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-margins=0.000000,0.000000,0.000000,0.000000"]
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Done loading scripts.
[global] config path: 'watch_later' -> '/root/.config/mpv/watch_later'
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-margins=0.000000,0.000000,0.000000,0.000000"]
[avdevice] Opening av://v4l2:/dev/video0
[avdevice] resize stream to 4096 bytes, drop 0 bytes
[cplayer] Set property: shared-script-properties -> 1
[osc] osc_init 
[avdevice] Stream opened successfully.
[demux] Trying demuxers for level=request.
[demux] Trying demuxer: lavf (force-level: request)
[cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-margins=0.000000,0.000000,0.000000,0.000000"]
[cplayer] Set property: shared-script-properties -> 1
[global] config path: 'fonts' -/-> '/root/.config/mpv/fonts'
[global] config path: 'fonts' -/-> '/root/.mpv/fonts'
[global] config path: 'fonts' -/-> '/etc/mpv/fonts'
[osd/libass] ASS library version: 0x1701000 (runtime 0x1701000)
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[lavf] Found 'video4linux2,v4l2' at score=100 size=0 (forced).
[osd/libass] Shaper: FriBidi 1.0.10 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[global] config path: 'subfont.ttf' -/-> '/root/.config/mpv/subfont.ttf'
[global] config path: 'subfont.ttf' -/-> '/root/.mpv/subfont.ttf'
[global] config path: 'subfont.ttf' -/-> '/etc/mpv/subfont.ttf'
[global] config path: 'fonts.conf' -/-> '/root/.config/mpv/fonts.conf'
[global] config path: 'fonts.conf' -/-> '/root/.mpv/fonts.conf'
[global] config path: 'fonts.conf' -/-> '/etc/mpv/fonts.conf'
[osd/libass] Setting up fonts...
[ffmpeg/demuxer] video4linux2,v4l2: fd:6 capabilities:84a00001
[lavf] avformat_open_input() failed
[cplayer] Opening failed or was aborted: av://v4l2:/dev/video0
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Running hook: ytdl_hook/on_load_fail
[ytdl_hook] full hook 
[cplayer] Run command: define-section, flags=64, args=[name="input_osc", contents="", flags="default"]
[cplayer] Run command: enable-section, flags=64, args=[name="input_osc", flags="allow-hide-cursor+allow-vo-dragging"]
[cplayer] Run command: define-section, flags=64, args=[name="input_forced_osc", contents="", flags="force"]
[cplayer] Run command: enable-section, flags=64, args=[name="input_forced_osc", flags="allow-hide-cursor+allow-vo-dragging"]
[cplayer] finished playback, unrecognized file format (reason 4)
[cplayer] Failed to recognize file format.
[cplayer] 
[cplayer] Exiting... (Errors when loading file)
[ytdl_hook] Exiting...
[cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="remove", value="osc-margins"]
[cplayer] Set property: shared-script-properties -> 1
[stats] Exiting...
[console] Exiting...
[osc] Exiting...
KJ7LNW (525 rep)
Mar 24, 2024, 10:13 PM • Last activity: Mar 26, 2024, 08:06 PM
6 votes
2 answers
14711 views
D-Bus library appears to be incorrectly set up
`VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d) process 20124: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory See the manual page for dbus-uuidgen to correct this issue. D-Bus not built w...
`VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d) process 20124: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory See the manual page for dbus-uuidgen to correct this issue. D-Bus not built with -rdynamic so unable to print a backtrace Aborted If having trouble installing ffmpeg was not enough, the above output is what getting trying to install vlc. All I did was download the linuxtech.repo to /etc/yum.repos.d/ followed by yum install vlc Others have had same problem so tried downloading and installing dbus because there is nothing in dbus folder. So I yum removed and reinstalled, still nothing in folder. Please does anyone know what is going on besides my being an obvious idiot? `
cea (1573 rep)
Mar 2, 2014, 06:32 AM • Last activity: Feb 14, 2024, 04:51 PM
1 votes
1 answers
226 views
How to get the destinations of two instances of VLC
If you have only one instance of VLC running, you can talk to VLC with dbus-send using org.mpris.MediaPlayer2.vlc as destination: ``` $ dbus-send --dest=org.mpris.MediaPlayer2.vlc ... ``` If you have two instances of VLC running, they have different destinations xxxx and yyyy. If you want to talk to...
If you have only one instance of VLC running, you can talk to VLC with dbus-send using org.mpris.MediaPlayer2.vlc as destination:
$ dbus-send --dest=org.mpris.MediaPlayer2.vlc  ...
If you have two instances of VLC running, they have different destinations xxxx and yyyy. If you want to talk to one of them, you must use xxxx or yyyy as destination:
$ dbus-send --dest=:xxxx   ...
The destination of the first instance I can find in this way:
$ dbus-send --print-reply --dest=org.freedesktop.DBus  /org/freedesktop/DBusorg.freedesktop.DBus.ListQueuedOwners  string:org.mpris.MediaPlayer2.vlc

method return time=1702494718.199915 sender=org.freedesktop.DBus -> destination=:1.1256 serial=3 reply_serial=2
   array [
      string ":1.1251"
   ]
Then I see that the destination is 1.1251 But how can I get the destination of the second instance?
Eddy Sorngard (23 rep)
Dec 13, 2023, 10:04 PM • Last activity: Dec 14, 2023, 11:39 AM
0 votes
0 answers
526 views
Why VLC couldn't play .mp4 properly?
Parole Media Player can play .mp4 properly on openSUSE 15.5, perhaps openSUSE 15.5 has enough codecs. While VLC only can play sound, and a few seconds of .mp4 video, how to set VLC to get over this problem without installing extra codecs?
Parole Media Player can play .mp4 properly on openSUSE 15.5, perhaps openSUSE 15.5 has enough codecs. While VLC only can play sound, and a few seconds of .mp4 video, how to set VLC to get over this problem without installing extra codecs?
agjeet (1 rep)
Dec 3, 2023, 04:16 AM • Last activity: Dec 6, 2023, 02:23 PM
3 votes
3 answers
3934 views
VLC doesn't open through terminal or GUI
I installed VLC through terminal but it shows: bash: /snap/bin/vlc: No such file or directory I also tried: which vlc and it showed: /usr/bin/vlc When I try to run it through `sudo su`, it shows this error: VLC is not supposed to be run as root. Sorry. If you need to use real-time priorities and/or...
I installed VLC through terminal but it shows: bash: /snap/bin/vlc: No such file or directory I also tried: which vlc and it showed: /usr/bin/vlc When I try to run it through sudo su, it shows this error: VLC is not supposed to be run as root. Sorry. If you need to use real-time priorities and/or privileged TCP ports you can use vlc-wrapper (make sure it is Set-UID root and cannot be run by non-trusted users first). Any idea how I can fix this issue? I tried using the snap VLC package, which I installed using the terminal, but I couldn't navigate to my Downloads folder. I could only navigate in the "computer" folder, which consists of /bin, /usr, /var, etc. I was able to play the items of the folder I wanted by dragging and dropping. I'm also only able to open VLC through the terminal. Opening it through the start menu doesn't do anything. I'm using Zorin OS 16, which is based on Ubuntu 20.04, if I'm not wrong.
Haadee Bin Hafees (71 rep)
Sep 24, 2021, 10:47 AM • Last activity: Oct 19, 2023, 11:28 AM
Showing page 1 of 20 total questions