omxplayer – matoken's blog https://matoken.org/blog Is there no plan B? Sun, 12 Jun 2016 13:09:07 +0000 ja hourly 1 https://wordpress.org/?v=6.9 https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9-32x32.jpeg omxplayer – matoken's blog https://matoken.org/blog 32 32 Rasbperry Piのomxplayerでのウィンドウ表示&複数表示 https://matoken.org/blog/2016/06/12/window-display-and-multiple-display-in-omxplayer-of-rasbperry-pi/ https://matoken.org/blog/2016/06/12/window-display-and-multiple-display-in-omxplayer-of-rasbperry-pi/#respond Sun, 12 Jun 2016 13:09:07 +0000 http://matoken.org/blog/?p=1385

展示でRaspberry Piのでぅくトップを賑やかにしたいなと思い,livestreamerでストリーミングを表示したら良さそうと思ったのですが,Raspberry Piのomxplayerだと基本的に全画面です.
man(1)を見ると—​winというものを使うとウィンドウ表示が使えそう.

               --win ´x1 y1 x2 y2´     Set position of video window
               --win x1,y1,x2,y2       Set position of video window

現在の解像度を確認します.1366×768でした.

$ xdpyinfo | grep dimensions
  dimensions:    1366x768 pixels (361x203 millimeters)

livestreamer から omxplayer を呼び出すようにするとうまく行きました.
この例では右下1/4がlivestreamerで取得したストリーミング動画で埋まります.
直接描画されるのでX関係なくXの上に描画されます.

$ /usr/local/bin/livestreamer --player "omxplayer --win '684 387 1366 768'" --fifo http://www.ustream.tv/channel/iss-hdev-payload --default-stream best

以下のように同時に4枚表示とかも行けました.試してませんが9枚も行けるかも.

$ omxplayer --win '0 0 684 387' 2016-06-07.ts | \
omxplayer --win '683 0 1366 387' 2016-06-07.ts | \
omxplayer --win '0 386 684 768' 2016-06-07.ts | \
omxplayer --win '684 387 1366 768' 2016-06-07.ts


]]>
https://matoken.org/blog/2016/06/12/window-display-and-multiple-display-in-omxplayer-of-rasbperry-pi/feed/ 0
Rasbperry Piのomxplayerでのウィンドウ表示&複数表示 https://matoken.org/blog/2016/06/12/window-display-and-multiple-display-in-omxplayer-of-rasbperry-pi-2/ https://matoken.org/blog/2016/06/12/window-display-and-multiple-display-in-omxplayer-of-rasbperry-pi-2/#respond Sun, 12 Jun 2016 13:09:07 +0000 http://matoken.org/blog/?p=1385

展示でRaspberry Piのでぅくトップを賑やかにしたいなと思い,livestreamerでストリーミングを表示したら良さそうと思ったのですが,Raspberry Piのomxplayerだと基本的に全画面です.
man(1)を見ると—​winというものを使うとウィンドウ表示が使えそう.

               --win ´x1 y1 x2 y2´     Set position of video window
               --win x1,y1,x2,y2       Set position of video window

現在の解像度を確認します.1366×768でした.

$ xdpyinfo | grep dimensions
  dimensions:    1366x768 pixels (361x203 millimeters)

livestreamer から omxplayer を呼び出すようにするとうまく行きました.
この例では右下1/4がlivestreamerで取得したストリーミング動画で埋まります.
直接描画されるのでX関係なくXの上に描画されます.

$ /usr/local/bin/livestreamer --player "omxplayer --win '684 387 1366 768'" --fifo http://www.ustream.tv/channel/iss-hdev-payload --default-stream best

以下のように同時に4枚表示とかも行けました.試してませんが9枚も行けるかも.

$ omxplayer --win '0 0 684 387' 2016-06-07.ts | \
omxplayer --win '683 0 1366 387' 2016-06-07.ts | \
omxplayer --win '0 386 684 768' 2016-06-07.ts | \
omxplayer --win '684 387 1366 768' 2016-06-07.ts

]]>
https://matoken.org/blog/2016/06/12/window-display-and-multiple-display-in-omxplayer-of-rasbperry-pi-2/feed/ 0