W!o+ 的《小伶鼬工坊演義》︰樹莓派 3 三兩事之 VLC 篇

或許因為『 omxplayer

About

OMXPlayer is a commandline OMX player for the Raspberry PI.
It was developed as a testbed for the XBMC Raspberry PI implementation and is quite handy to use standalone.

OMXPlayer has big dependencies that take long to compile on Raspberry Pi and usually without sucess, so I decided to make a build-bot for creating binary distributions for Raspbian (Debian with hard-float for RPi).

I didn’t wrote the code, I just provide the binary packages. If you have any problem with them you can contact me in different ways and I will try to help:

  • E-Mail: skgsergio [at] gmail [dot] com
  • Twitter: @skgsergio
  • IRC: [SkG] @ irc.freenode.net (usually online at #raspberrypi, #raspbian and many others.)

───

 

是個『命令列』程式。然而人們總是想要有個『圖形界面』的應用程式,於是許久以來,就有人開始嘗試

Tutorial: Compile VLC with HW acceleration – Jessie, RPi 2/3

by gkreidl » Sat Nov 02, 2013 8:30 am
Update March 14th, 2016:
This is now finally working again! This tutorial is for Raspbian Jessie and the RPi 2 and 3 only!If you have already VLC installed, remove it now (all packages belonging to it).
If not, it might be a good idea, to install it first and remove it again (all packages belonging to it) to get all the program dependencies installed.1) Download and unpack:
http://download.videolan.org/vlc/2.2.2/vlc-2.2.2.tar.xzFor everything else we’ll use a terminal.2) Installing the dependencies for building

……

This will also take a few minutes.

After starting VLC for the first time, change the following options:
Settings, simple, Audio: make sure, ALSA and bcm2835 are selected
Settings, simple, Video, output: select “OpenMAX IL video output”
VLC will remember these settings.

Video is displayed in an overlay, similar to omxplayer, not inside a window. On both RPi2 and 3 it will play up to 1080p video.

If audio is jerky and out of sync, check, if pulseaudio is installed on your system and remove it (only the main application package).

Enjoy!

───

 

後來友人寫了樹莓派二『 vlc 安裝 』一文,作者一旦需要首先也就這麼編譯的了。雖說如今還是『依樣畫葫蘆』,卻請讀者注意那個文本中有一行,應如下︰

./configure –-prefix=/usr –-enable-rpi-omxil –-disable-ogg –-disable-mux_ogg –-disable-mmal-codec

 

果然結果很成功的哩!僅簡單以圖為證︰

VLC 媒體播放器

 

VLC 關於

 

VLC 簡易偏好設定

 

如果問為什麼要作這件事呢?大概由於過去有人問

Do I still need to purchase the MPEG-2 and VC-1 license keys for the Raspberry Pi 2?

 

。即使這在樹莓派 3 之 KODI

 

1.9 Enabling additional video codecs

Link
You can buy additional video codecs (VC-1 – used in some bluray discs, and MPEG-2) from the Raspberry Pi Foundation online shop. After purchase the keys are emailed to you, looking like this (invalid keys used for example):

decode_MPG2=0x1cc591c7
decode_WVC1=0x8aa09876

In order to enable additional video codecs you should modify /boot/config.txt and add these lines literally. The method may vary per distribution:

  • Manual: Open /boot/config.txt with a text editor like nano or vi, and add the keys.
  • XBian: You can add/remote your keys using XBian-config. After reboot your keys will be entered and ready to use.
  • OSMC: Go in to My OSMC -> Pi Config. Navigate to Codecs and enter your keys with the on-screen keyboard. After a reboot your keys will be entered and ready to use.
  • OpenELEC: Type mount /flash -o remount,rw to remount the boot partition in read/write mode. The file to edit is located in /flash/config.txt, and contains stubs for the license keys. Add the keys using nano or vi. There is also an unofficial add-on which can be used to enter the codec information.

 

官方版的驗證下也是需要??!!

雖然『  Jessie 』的 VLC 也已經很新的了︰

pi@raspberrypi ~ apt-cache show vlc Package: vlc Version: 2.2.1-1~deb8u1 Architecture: armhf Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org> Installed-Size: 3859 Depends: fonts-freefont-ttf, vlc-nox (= 2.2.1-1~deb8u1), libaa1 (>= 1.4p5), libavcodec56 (>= 6:11~beta1) | libavcodec-extra-56 (>= 6:11.4), libavutil54 (>= 6:11~beta1), libc6 (>= 2.16), libcaca0 (>= 0.99.beta17-1), libegl1-mesa (>= 7.8.1) | libegl1-x11, libfreerdp-cache1.1 (>= 1.1.0~beta1+git20130629), libfreerdp-client1.1 (>= 1.1.0~beta1+git20130629), libfreerdp-codec1.1 (>= 1.1.0~beta1+git20130629), libfreerdp-core1.1 (>= 1.1.0~beta1+git20130629), libfreerdp-crypto1.1 (>= 1.1.0~beta1+git20130629), libfreerdp-gdi1.1 (>= 1.1.0~beta1+git20130629), libfreerdp-locale1.1 (>= 1.1.0~beta1+git20130629), libfreerdp-rail1.1 (>= 1.1.0~beta1+git20130629), libfreerdp-utils1.1 (>= 1.1.0~beta1+git20130629), libfreetype6 (>= 2.2.1), libfribidi0 (>= 0.19.2), libgcc1 (>= 1:4.4.0), libgl1-mesa-glx | libgl1, libgles1-mesa (>= 7.8.1) | libgles1, libgles2-mesa (>= 7.8.1) | libgles2, libice6 (>= 1:1.0.0), libpulse0 (>= 0.99.4), libqtcore4 (>= 4:4.8.0), libqtgui4 (>= 4:4.8.0), libsdl-image1.2 (>= 1.2.10), libsdl1.2debian (>= 1.2.11), libsm6, libstdc++6 (>= 4.9), libva-drm1 (>= 1.1.0), libva-x11-1 (>= 1.0.3), libva1 (>= 1.2.0), libvlccore8 (>= 2.2.0), libvncclient0 (>= 0.9.9), libwinpr-rpc0.1 (>= 1.1.0~beta1+git20130629), libwinpr-sspi0.1 (>= 1.1.0~beta1+git20130629), libwinpr-utils0.1 (>= 1.1.0~beta1+git20130629), libx11-6, libxcb-composite0, libxcb-keysyms1 (>= 0.4.0), libxcb-randr0 (>= 1.1), libxcb-render0, libxcb-shape0, libxcb-shm0, libxcb-xfixes0, libxcb-xv0 (>= 1.2), libxcb1 (>= 1.6), libxext6, libxinerama1, libxpm4, zlib1g (>= 1:1.2.3.3) Recommends: vlc-plugin-notify (= 2.2.1-1~deb8u1), vlc-plugin-samba (= 2.2.1-1~deb8u1), xdg-utils Suggests: videolan-doc Breaks: vlc-data (<< 1.1.5), vlc-nox (<< 2.2.0~pre2-2~), vlc-plugin-pulse (<< 2.2.0~pre2-2~) Replaces: vlc-data (<< 1.1.5), vlc-nox (<< 2.2.0~pre2-2~), vlc-plugin-pulse (<< 2.2.0~pre2-2~) Provides: mp3-decoder Homepage: http://www.videolan.org/vlc/ Priority: optional Section: video Filename: pool/main/v/vlc/vlc_2.2.1-1~deb8u1_armhf.deb Size: 1280554 SHA256: 567ff0e4faa792b4a23d7331ded649453b2d4e06fee3daf9774007d261e74eec SHA1: 00771e56e45bd9eb8959095a7847433479028393 MD5sum: ecf025906c32b9ceccdb1cf096e0ba3c Description: multimedia player and streamer  VLC is the VideoLAN project's media player. It plays MPEG, MPEG-2, MPEG-4,  DivX, MOV, WMV, QuickTime, WebM, FLAC, MP3, Ogg/Vorbis files, DVDs, VCDs,  podcasts, and multimedia streams from various network sources.  .  VLC can also be used as a streaming server that duplicates the stream it  reads and multicasts them through the network to other clients, or serves  them through HTTP.  .  VLC has support for on-the-fly transcoding of audio and video formats, either  for broadcasting purposes or for movie format transformations. Support for  most output methods is provided by this package, but features can be added by  installing additional plugins (vlc-plugin-fluidsynth, vlc-plugin-jack,  vlc-plugin-notify, vlc-plugin-samba, vlc-plugin-sdl, vlc-plugin-svg,  vlc-plugin-zvbi). Description-md5: c3a7a10e39c9ddd30da6653ec2238442  pi@raspberrypi ~ 

 

問題是沒有『硬體影音解碼』!!??所以 …… 怎麼得到『兩種』好處的乎☆★

可是作者還想要『第三種』的也︰

Listen to Bluetooth Audio on Your Raspberry Pi 3, Pi Zero, or Earlier Pi

YouTube on the Pi

The Raspberry Pi is a handy little computer for so many uses, but Raspbian doesn’t come already set up for listening to audio over Bluetooth headphones or speakers. However, it’s not hard to do, it’s a lot of fun, and it works!. As I’m writing this, I’m listening to 40s Big Band music on my Pi 3 through my Bluetooth headphones.

The instructions in this post are for the February 26, 2016 version of version of Raspbian or Noobs, but they work with all previous versions of Raspbian Jessie. They work for the Raspberry any Pi version, although the Zero and the original Pi are not really powerful enough to stream from the internet. They work great for playing mp3 files with a media player like VLC.

Except for the Pi 3, you’ll need a Bluetooth adapter like the Plugable Bluetooth adapter. For the Pi Zero, you’ll also need a way to connect to the Internet like a Plugable USB-Ethernet adapter or WiFi adapter, along with an OTG cable and a powered hub like the compact Plugable 4-port USB 2.0 hub. Whichever Pi you use, you end up with is a great little music server that opens the door to a lot of fun projects.

───

 

只不過眼前似乎『踢到鐵板』?之前 OK 的『藍牙喇叭』

IMAG1178

 

,現在雖不能用『blueman』連接??不是還可用『bluetoothctl』

pi@raspberrypi ~ bluetoothctl  [NEW] Controller B8:27:EB:23:2B:C8 raspberrypi [default] [bluetooth]# power on Changing power on succeeded [bluetooth]# agent on Agent registered [bluetooth]# default-agent  Default agent request successful [bluetooth]# scan on Discovery started [CHG] Controller B8:27:EB:23:2B:C8 Discovering: yes [NEW] Device 00:02:5B:00:47:4E NOGO B6500 [NEW] Device 74:E5:43:88:E4:16 localhost.localdomain-0 [bluetooth]# pair 00:02:5B:00:47:4E Attempting to pair with 00:02:5B:00:47:4E [CHG] Device 00:02:5B:00:47:4E Connected: yes [CHG] Device 00:02:5B:00:47:4E UUIDs: 	00001108-0000-1000-8000-00805f9b34fb 	0000110b-0000-1000-8000-00805f9b34fb 	0000110c-0000-1000-8000-00805f9b34fb 	0000110e-0000-1000-8000-00805f9b34fb 	0000111e-0000-1000-8000-00805f9b34fb [CHG] Device 00:02:5B:00:47:4E Paired: yes Pairing successful [CHG] Device 00:02:5B:00:47:4E Connected: no [bluetooth]# connect 00:02:5B:00:47:4E Attempting to connect to 00:02:5B:00:47:4E [CHG] Device 00:02:5B:00:47:4E Connected: yes Connection successful [bluetooth]# quit Agent unregistered [DEL] Controller B8:27:EB:23:2B:C8 raspberrypi [default] pi@raspberrypi ~ 

 

連成功乎!怎 A2DP 聲音會 …… 不忍聞的耶!!