https://redmine.graphics-muse.org/https://redmine.graphics-muse.org/favicon.ico?16278048512020-08-27T00:22:36ZGraphics Muse Issue TrackerVideoFE - Feature #794: Add URL streaming option for AutoKiosk systemhttps://redmine.graphics-muse.org/issues/794?journal_id=28762020-08-27T00:22:36ZHammelmjhammel@graphics-muse.org
<ul></ul><p>For this to work I need to be able to configure the kiosk after installation. The way to do this is with a videofe.db file. If that file exists it will be read first. That file can contain URLs to add to the list of files to play and/or remote .db files to download. The remote .db files must be named <file>.db and they can only contain URLs to play.</p>
<p>Valid URLs for the .db files must start with <a class="external" href="http:// or">http:// or</a> <a class="external" href="https://.">https://.</a> If a line in those files starts with anything else it will not be downloaded. All valid lines must also be suffixed with a supported video format, which defaults to one of p4 mkv m4v avi mov. However, to avoid having to fully download the file before playing the file should be in the MP4 format.</p>
<p>Additionally, to allow configuration after the device is installed with PiBox a USB stick can be inserted with files on it. An init script will install files it finds on the USB stick.</p>
<p>If the usb stick has a config file for videofe that should be copied over at boot time.<br />If the usb stick has a playlist (re: .db) file for videofe that should be copied over at boot time.</p> VideoFE - Feature #794: Add URL streaming option for AutoKiosk systemhttps://redmine.graphics-muse.org/issues/794?journal_id=28772020-08-27T00:23:20ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>10</i></li></ul><p>I switched the omxplayer build from local ffmpeg to system ffmpeg to get access to tls support, which is required to use an http URI. This also makes omxplayer build much faster. This was just for testing purposes - it's not checked in yet. I need to make sure this change doesn't affect standard Media System or Kiosk operation.</p>
<p>I can play the video stream like so:</p>
<pre><code>./omxplayer.bin --loop -o hdmi -r -s <a class="external" href="https://client.cybsm.com/videos/Test/main_scurt.mp4">https://client.cybsm.com/videos/Test/main_scurt.mp4</a></code></pre>
<p>I cannot play the URL like so, because omxplayer doesn't support an HTML5 parser. </p>
<pre><code>./omxplayer.bin --loop -o hdmi -r -s <a class="external" href="https://client.cybsm.com/display">https://client.cybsm.com/display</a></code></pre>
If you dig into the HTML you can see there are two urls that get played here:
<ol>
<li><a class="external" href="https://client.cybsm.com/videos/Test/main_scurt.mp4">https://client.cybsm.com/videos/Test/main_scurt.mp4</a></li>
<li><a class="external" href="https://client.cybsm.com/videos/Test/hit_music.mp4">https://client.cybsm.com/videos/Test/hit_music.mp4</a></li>
</ol>
<p>Lag on the internet causes playback to stutter a little (not terrible, but it happens). This is worse for the "hit_music" video because it's audio stops too. That's more noticable than the video stutter.</p>
<p>If I download these videos to the local network, and I run on wired ethernet, there is almost no stutter. On a closed network I'd expect there would be no stutter at all.</p>
<p>Next step is to verify the omxplayer build changes don't cause any regressions. <em>Status: they didn't. Changes can be committed and pushed.</em><br />Then I can look at adding config option changes to videofe to support this type of playback.</p> VideoFE - Feature #794: Add URL streaming option for AutoKiosk systemhttps://redmine.graphics-muse.org/issues/794?journal_id=28782020-08-31T02:43:31ZHammelmjhammel@graphics-muse.org
<ul><li><strong>% Done</strong> changed from <i>10</i> to <i>30</i></li></ul><p>I have the changes implemented to support a videofe.db file. I need to test the following:</p>
<ul>
<li>Add remote urls to videofe.db: These are <a class="external" href="https:// urls">https:// urls</a> added to /etc/videofe.db. If videofe.db exists then any <a class="external" href="https:// urls">https:// urls</a> should be ADDED to the list of files to play. That means both remote and local files can be played in kiosk mode. I need to test
<ul>
<li>local urls only (the regression test)</li>
<li>remote urls only (new functionality)</li>
<li>local and remote urls (mixed functionality)</li>
</ul></li>
</ul>
<p>For these tests I need a USB stick with two videos on it for the local URLs.</p>
<ul>
<li>Add remote dbs to videofe.db: These are https// urls to videofe.db files. If the remote url is a videofe.db file then that file should be parsed for remote urls ONLY (any local files should be ignored). I need to test
<ul>
<li>remote videofe.db with remote URLs only</li>
<li>remote videofe.db with invalid URLs (non-http and non-https; these should be ignored)</li>
<li>remote videofe.db with mixed remote URLs and invalid local URLs</li>
<li>remote videofe.db with videofe.db URLs (these should be ignored)</li>
</ul></li>
</ul>
<p>The remote videofe.db can be placed on my local wiki file archive for testing.</p>
<p>The code for this is currently in my sandbox for videofe (re: vfe cdtools).</p>
Possible remote urls to try:
<ul>
<li>H264: <a class="external" href="https://samplemedia.linaro.org/H264/big_buck_bunny_480p_H264_AAC_25fps_1800K_short.MP4">https://samplemedia.linaro.org/H264/big_buck_bunny_480p_H264_AAC_25fps_1800K_short.MP4</a></li>
<li><abbr title="H265">HEVC</abbr>: <a class="external" href="https://s3.amazonaws.com/x265.org/video/Tears_400_x265.mp4">https://s3.amazonaws.com/x265.org/video/Tears_400_x265.mp4</a></li>
<li>MP2: <a class="external" href="https://samplemedia.linaro.org/MPEG2/big_buck_bunny_480p_MPEG2_MP2_25fps_1800K_short.MPG">https://samplemedia.linaro.org/MPEG2/big_buck_bunny_480p_MPEG2_MP2_25fps_1800K_short.MPG</a></li>
<li>MP4: <a class="external" href="https://samplemedia.linaro.org/MPEG4/big_buck_bunny_480p_MPEG4_MP3_25fps_1600K_short.AVI">https://samplemedia.linaro.org/MPEG4/big_buck_bunny_480p_MPEG4_MP3_25fps_1600K_short.AVI</a></li>
<li>VP8: <a class="external" href="https://samplemedia.linaro.org/VP8/big_buck_bunny_480p_VP8_VORBIS_25fps_1900K_short.WebM">https://samplemedia.linaro.org/VP8/big_buck_bunny_480p_VP8_VORBIS_25fps_1900K_short.WebM</a></li>
<li>VP9: <a class="external" href="https://test-videos.co.uk/vids/bigbuckbunny/webm/vp9/360/Big_Buck_Bunny_360_10s_1MB.webm">https://test-videos.co.uk/vids/bigbuckbunny/webm/vp9/360/Big_Buck_Bunny_360_10s_1MB.webm</a></li>
<li>Possible other source of videos: <a class="external" href="https://github.com/xmixahlx/media-samples/tree/master/videos">https://github.com/xmixahlx/media-samples/tree/master/videos</a></li>
</ul> VideoFE - Feature #794: Add URL streaming option for AutoKiosk systemhttps://redmine.graphics-muse.org/issues/794?journal_id=29522021-02-20T21:47:46ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Severity</strong> changed from <i>01 - Critical</i> to <i>05 - Very Low</i></li></ul> VideoFE - Feature #794: Add URL streaming option for AutoKiosk systemhttps://redmine.graphics-muse.org/issues/794?journal_id=31422021-12-02T15:47:42ZHammelmjhammel@graphics-muse.org
<ul><li><strong>% Done</strong> changed from <i>30</i> to <i>10</i></li></ul><p>The code for this work was lost when my desktop went belly up in August 2021. I'll have to rebuild it from scratch based on these notes.</p> VideoFE - Feature #794: Add URL streaming option for AutoKiosk systemhttps://redmine.graphics-muse.org/issues/794?journal_id=32042022-02-21T02:31:36ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Severity</strong> changed from <i>05 - Very Low</i> to <i>02 - High</i></li></ul> VideoFE - Feature #794: Add URL streaming option for AutoKiosk systemhttps://redmine.graphics-muse.org/issues/794?journal_id=32262022-04-14T21:53:52ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Severity</strong> changed from <i>02 - High</i> to <i>01 - Critical</i></li></ul> VideoFE - Feature #794: Add URL streaming option for AutoKiosk systemhttps://redmine.graphics-muse.org/issues/794?journal_id=32382022-09-06T23:30:25ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Severity</strong> changed from <i>01 - Critical</i> to <i>05 - Very Low</i></li></ul> VideoFE - Feature #794: Add URL streaming option for AutoKiosk systemhttps://redmine.graphics-muse.org/issues/794?journal_id=34292023-04-25T04:19:09ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Target version</strong> changed from <i>2.0 - Harkonnen</i> to <i>3.0 - Corrino</i></li></ul><p>Moving to 3.0.</p>