1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Playing music videos on a Pi

Discussion in 'Networking and online stuff' started by Yellow Fang, 30 Apr 2016.

  1. Yellow Fang

    Yellow Fang Veteran Geek

    Placeholder for useful Linux commands for downloading clips off YouTube.

    youtube-dl is jolly good, but it stopped working.

    These commands eventually got it working again:
    sudo curl https://yt-dl.org/downloads/2016.04.24/youtube-dl -o /usr/local/bin/youtube-dl
    sudo chmod a+rx /usr/local/bin/youtube-dl
    amusicsite likes this.
  2. Yellow Fang

    Yellow Fang Veteran Geek

    omxplayer -o local --win "0 0 1360 780" seems to play the videos reasonably well on my Pi and sound system. I have a phono jack lead connecting my Raspberry Pi to my amplifier; the -o local causes the sound signal to go through the phono output rather than the HDMI cable. The win "0 0 1360 780" stretches the video over my TV screen, rather than playing as a square in the middle of it.

    To play from the file manager equivalent:
    • right click on a video clip
    • select Open With
    • click on the Custom Command Line Tab
    • type omxplayer -o local --win "0 0 1360 780" in the command to execute box

    Your setup may require a different utility or parameters. Mplayer is an alternative. I use vlc on my old PC running LinuxLite, but I could not get vlc to work on my Pi.

    Edit: I am having difficulty getting the Pi to remember the command to run. I think you have to check the default action tickbox, and maybe set an application name.
    Last edited: 2 May 2016
  3. amusicsite

    amusicsite dn ʎɐʍ sᴉɥ┴ Staff Member