Hot answers tagged

64

This is what worked for me. No compilation required. sed -i 's/geteuid/getppid/' /usr/bin/vlc Using VLC media player 2.0.3 Twoflower on a Raspberry Pi. Explanation: The initialization script check if the UID is equals to zero. Zero is reserved for the root user. Using sed to replace geteuid for getppid fools the initialization script because it is always &...


49

With pavucontrol Turns out, I had to switch the profile of "Built-in Audio" to HDMI. I can do that with pavucontrol, install it with pacman -Sy pavucontrol. Now, sound works perfectly on the TV speakers. As described here, you can set the profile also from the command line with pactl set-card-profile 0 output:hdmi-stereo Since pavucontrol uses ...


39

I was having the same problem and the solution at http://www.theoutpost.org/8-nslu2/open-devvideo0-device-or-resource-busy/ (EDIT: url updated) helped me. $ fuser /dev/video0 /dev/video0: 1871m $ ps axl | grep 1871 $ kill -9 1871


25

Building VLC If you have to build vlc yourself, make sure you have --enable-sout --enable-chromecast Using VLC Thus far this feature is not available under the GUI, however you can stream to Chromecast like this, $ vlc --sout="#chromecast{ip=ip_address}" ./video.mp4 You can watch the video at the same time with $ vlc --sout="#duplicate{dst=display,#...


21

You can run mpv with the --save-position-on-quit option. e.g. mpv --save-position-on-quit /path/to/video.mkv Alternatively, if you want mpv to do that by default, you can add that option to its config file. For example: echo "save-position-on-quit" >> ~/.config/mpv/mpv.conf Or use your favourite text editor to add the same line. The -- option ...


20

One way around this is recompiling. Pass the --enable-run-as-root flag to ./configure and vlc should be able to run as root. The above answer is from here.


14

Use "Q" (Shiftq). You will quit, and the next time you play it, it will start from when you left. Q Like q, but store the current playback position. Playing the same file later will resume at the old playback position if possible. https://mpv.io/manual/master/


10

Parsing JSON in the shell is generally not a great idea. You can easily find that, on U&L, almost all the answers to questions along the lines of "how can I parse this JSON in the shell?" end up using specialized tools (e.g. jq or jshon). This is why I suggest to leverage the ability of youtube-dl to select one video version when more than one is ...


8

I recommend using SoX like this: sox <input> <output> tempo 0.5 This slows down <input>'s tempo by a factor of 2 and record the result to <output>. You can add option --show-progress to display relevant information and progression percentage. Note that if <input> is for instance normal.wav and <output> is half-tempo....


8

I was unhappy w/ VLC's casting support, so I wrote a dedicated linux GUI for casting a video file. Might be of use to you, assuming your underlying goal is casting a file, not specifically with VLC. https://github.com/keredson/gnomecast


8

Using audible-activator and AAXtoMP3 worked. With a few tweaks, AAXtoMP3 converts to FLAC as well.


6

You should be able to get rid of the output of the libraries by piping stderr away cvlc -q mymedia 2> /dev/null As for the commands, I'm not sure vlc accepts commands from plain stdin, but it sounds like the rc interface might be what you're looking for. cvlc -q -Irc mymedia 2> /dev/null


5

You can install the following yum repositories (EPEL, famillecollet, & RPMFusion) so that you can install VLC: $ sudo yum localinstall --nogpgcheck http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm $ sudo yum localinstall --nogpgcheck http://rpms.famillecollet.com/enterprise/remi-release-6.rpm $ sudo yum localinstall --...


5

The option to disable the screen saver, should work. At least now it sends the input to X11. So that will work. I have verified that it works for me despite having xset q report with VLC 2 and 3. Screen Saver: prefer blanking: yes allow exposures: yes timeout: 0 cycle: 0 History and Background: Internally, VLC uses xdg-screensaver to inhibit ...


5

You can use xdotool to get the root window geometry and the VLC window geometry. If they are equal, then VLC window is fullscreen. gRoot=$(xdotool search --maxdepth 0 '.*' getwindowgeometry | grep 'Geometry:') gActive=$(xdotool getactivewindow getwindowgeometry | grep 'Geometry:') if [ "$gRoot" = "$gActive" ]; then echo "The ...


4

You have to service messagebus start and then it goes away. You have to do this as root because you can't, by default, use vlc as root. I found this information here


4

For some reason /dev/video* from Tsan-Kuang's answer didn't work for me. Here's another way you could reach your device: ls /dev/input/by-id/. For example: $ fuser /dev/input/by-id/usb-Microsoft_Microsoft®_LifeCam_HD-5000-event-if00


4

No, there are no spare sockets just floating around, But they are easy to make, so easy that you may have done so if the directory you were creating them in existed and you had write permission. To make your example work you probably need mkdir /some; chown vlc_user.rmt_grp /some; chmod 0775 /some. and it is easier if the remote control and the player run as ...


4

If you find that your sound cards keep switching indices, you won't be able to hardcode defaults.pcm.card 2 in /etc/asound.conf. One (complex) approach might work, is to configure the sound kernel modules with your desired priority. This approach is described in Debian Bug #614113: run alsamixer; use F6 and research available sound devices set ...


4

To set the default device, you should not redefine the default device but simply put the following into /etc/asound.conf: defaults.pcm.card 2 # or better "PCH" defaults.pcm.device 0 This will work only for programs that actually use a default device without explicitly specifying a device. If some program like PulseAudio or VLC has been configured for ...


4

I realized it was working for root only. Running it as a normal user in VLC's ncurses interface i typed L and seen error messages about permissions: [alsa] cannot open ALSA device "default": Permission denied [main] Audio output failed [main] The audio device "default" could not be used: [jack] failed to connect to JACK server [main] no suitable audio ...


4

First of all I am using Linux Mint Debian Edition 201403, VLC version 2.1.1 Ricewind. Now as for the solution. 1. We first need to be sure that inside VLC, we click on Tools >> Preferences menu option, this will open the preferences window dialog, and we need to make sure the Options "Allow one Instance" and "Enqueue items into playlist in one instance mode"...


4

I'm sure there's a nice, clean way of doing this. Probably via D-bus. Sadly, I don't know what that way is so here's a more hacky approach. You can use lsof to print the files opened by a running process. The relevant option here is (from man lsof): -c c selects the listing of files for processes executing the command that begins with the ...


4

You have a number of options: rebuild a recent ffmpeg source package to get libavcodec57 & co.; upgrade to Ubuntu 16.10 which has libavcodec57; follow the VLC package approach, which is to embed the appropriate version of fmmpeg and use that instead. The latter approach is the one I'd recommend; to get started: sudo apt-get install devscripts dget ...


4

On Arch Linux, if you execute pacman -Qi vlc, it shows you a list of Dependencies for vlc (among other information), and another list of Optional Dependencies. If you take a look at that list, there is an entry that says qt4: for the GUI. When you install a package, pacman normally tells you what the optional dependencies are for that package. Be sure to ...


4

Yes, there is a plugin called mpv-thumbnail-script for mpv.


4

Ipor Sircer's answer is sufficient and perfect but let me write a step by step answer for beginners. Install mpv. In Ubuntu, you can execute this command. sudo apt update && sudo apt install mpv Visit mpv-thumbnail-script releases page and download mpv_thumbnail_script_client_osc.lua and mpv_thumbnail_script_server.lua. Copy these lua scripts to ~/....


Only top voted, non community-wiki answers of a minimum length are eligible