それマグで!

知識はカップより、マグでゆっくり頂きます。 takuya_1stのブログ

習慣に早くから配慮した者は、 おそらく人生の実りも大きい。

raspberryPi でMP4動画の快適再生するコマンド omxplayer とその使い方(キーボード操作

mplayer で再生すると遅い

MPlayer は良く出来たソフトなんだけど、raspbian でmplayer を使うと動画がDelayする。

Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0x15a2060] No accelerated colorspace conversion found from yuv420p to rgb565le.

こまったなぁと。諦めていたら

omxplayer というものを見つけた

http://omxplayer.sconde.net/

mplayer だと遅延が多くて見ることが出来ない動画でも快適に見ることが出来る!

Omxplayer is a video player specifically made for the Raspberry PI's GPU made by Edgar (gimli)

Raspberry PiGPUに特化して作られているらしい。

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.

raspberry Pi 最高じゃん?

epgrec に再生ボタンつけてraspberry Pi で再生できるよ!

キーボードから操作

startx をデフォにしたraspberry PiSSHでアクセスして、omxplayerをコマンドで叩く

omxplayer URL

ssh のリモート・アクセスで再生している状態で、キーボードを押すとスキップできる

Key bindings Key Action
Space or p Pause/Resume
1 Decrease Speed
2 Increase Speed
j Previous Audio stream
k Next Audio stream
i Previous Chapter
o Next Chapter
n Previous Subtitle stream
m Next Subtitle stream
s Toggle subtitles
q Exit OMXPlayer
- Decrease Volume
+ Increase Volume
Left Seek -30
Right Seek +30
Down Seek -600
Up Seek +600

参考資料

RaspberryPiでストリーミングしながら動画をループ再生する — どこか遠くでのんびり怠惰に暮らしたい

Raspberry Pi • View topic - OMXPlayer Controls

Omxplayer - eLinux.org

https://github.com/popcornmix/omxplayer