LoginSignup
4

More than 3 years have passed since last update.

ラズパイ: VLCをコマンドで操作

Posted at

概要

VLCをコマンドで操作

環境

  • Raspberry Pi 3B / 3B+
  • Raspbian: 2019-04-08-raspbian-stretch (デスクトップ環境)

手順

  1. microSDにOSを焼いて、簡単な設定、パッケージ更新しておく
  2. telnet コマンドの導入をしておく。
    sudo apt update && sudo apt install telnet -y
  3. VLCの設定

    1. VLCを開く 2019-04-12-001015_1280x720_scrot.png
    2. Tools > Preferences 2019-04-12-001045_1280x720_scrot.png
    3. 一番下の、Show settingsのところで、Allをクリック 2019-04-12-001057_1280x720_scrot.png
    4. 左側の項目から、Main interfaces をクリックして、Telnetにチェック 2019-04-12-001219_1280x720_scrot.png

    5 左側の項目、一個下がって、Luaをクリックして、下のLua TelnetのところのPasswordのところへ入力したら、[Save]をクリック。
    2019-04-12-001339_1280x720_scrot.png
    6. 一旦、クローズ (右上の × をクリック)
    2019-04-12-001400_1280x720_scrot.png

  4. コマンド操作

    1. VLCとTerminalを開きます。telnet localhost 4212と入力して、Enter。パスワードが聞かれるので、先程設定したものを入力(見えない)すると、Welcome, Masterのメッセージが出て、操作ができるようになります。 2019-04-12-001550_1280x720_scrot.png
    2. enqueue https://www.youtube.com/watch?v=xxxxx(YoutubeのURL) で、プレイリストに追加。
    3. playlistコマンドで、リスト表示
    4. play コマンドで再生開始 2019-04-12-002002_1280x720_scrot.png
    5. f on / f off コマンドでフルスクリーン オン・オフ
    6. pauseで一時停止、nextでプレイリストの次、prevでプレイリストの一つ前、stopで完全停止.
    7. helpでコマンドヘルプ表示 2019-04-12-002031_1280x720_scrot.png

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4