Author Topic: LinuxMCE Rpi2 alpha testing  (Read 762 times)

phenigma

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1227
    • View Profile
LinuxMCE Rpi2 alpha testing
« on: April 18, 2015, 01:14:01 am »
Hey all,

I wanted to let you all know that Rpi2 development has been speeding along as quickly as possible.  We now have Rpi2 MDs booting in LinuxMCE on 1204 and 1404 cores.  We currently use UI1 but we are still working towards a qOrbiter based MD as well.

Our Rpi2 solution is built completely on Ubuntu Trusty ARMHF so we support almost everything that standard i386 LinuxMCE supports, the exception is some newer game emulators and diskless MDs.  Video, Audio, Games (up to PS1 emulation should be possible but not yet tested), HDMI-CEC control should all be working.

Because we build for Rpi2 on Ubuntu Trusty rather than Raspbian Wheezy we support all ARMv7 cpu instructions, which permits faster execution of many applications than the Raspbian equivalents.  We also support newer libraries for many common functions like audio and video decoding than the Raspbian equivalents permit.

Please follow instructions at http://wiki.linuxmce.org/index.php/RaspberryPi#RPi2_Disked_Media_Director

Please file tickets if you encounter issues (somewhat expected at the moment), join us in IRC to talk one-on-one or respond here for any issues you may have.

Happy LMCEing!

J.
« Last Edit: April 18, 2015, 01:21:27 am by phenigma »

G.I.R.

  • Regular Poster
  • **
  • Posts: 24
    • View Profile
Re: LinuxMCE Rpi2 alpha testing
« Reply #1 on: June 12, 2015, 11:34:01 am »
Hello,

thanks for all the work! Using a raspberry as a media director is a great possibility.

I finally got one myself (Raspberry pi model 2 B)  and i installed Linuxmce according to the wiki.

I used the recommended raspbian image.

The installation went smooth. I can see the the UI1 and the screen saver works.

But i cannot play a video or an audio track.

I only get a black screen with a mouse cursor if i want to play a video.

I sshd into the raspberry and copied a file to the local sdcard.
Playing it manually with the omxplayer seems to work.

I looked at the processes when playing it per orbiter and i saw two omxplayer.

Code: [Select]
root@raspbian:~# ps aux | grep player
root 14893 0.3 0.2 2756 2348 pts/9 S+ 17:22 0:00 /bin/bash /usr/bin/omxplayer -ohdmi -r --no-keys -l00:00:00 /home/public/data/videos/0,00 TB (sda1) ST2000DM001-1CH [31]/TV/Film.mp4
root 14903 1.0 0.8 81208 7596 pts/9 Dl+ 17:22 0:00 /usr/bin/omxplayer.bin -ohdmi -r --no-keys -l00:00:00 /home/public/data/videos/0,00 TB (sda1) ST2000DM001-1CH [31]/TV/Film.mp4
root 15063 0.0 0.0 1984 456 pts/12 S+ 17:22 0:00 grep player

First i thought that maybe my sdcard or network is to slow. But now i don`t think this is the problem.

I choosed MD when asked, not qMD. Was that all right?

I tried also with the ubuntu image, but i couldnot play video/audio either and switched to the raspbian.

I am using Linuxmce 12.04. I think the version is: 2.0.0.46.15060130767 (shown in the Loginscreen of the webmin)
I did a dist-upgrade yesterday on the core and tried one on the raspberry but it only wanted to update one package, so i didn`t update.

Is there something i did wrong?

Again thanks for the effort. That would be the perfect MD!

p.s. will vdr (client) be possible with the ubuntu version? I think i saw the TV button on the UI1....

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3182
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: LinuxMCE Rpi2 alpha testing
« Reply #2 on: June 12, 2015, 05:25:54 pm »
A small note re VDR: People have VDR running on rpis so I do not see why it shouldn't work on the MD. The TV button on the Orbiter is autogenerated and does not indicate that it will work :)

phenigma

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1227
    • View Profile
Re: LinuxMCE Rpi2 alpha testing
« Reply #3 on: June 12, 2015, 05:57:42 pm »
I don't think you have done anything wrong but you are only the 2nd person to install on an rpi2 ;) (that I am aware of)

2 omxplayers is normal, notice one is omxplayer and the other is omxplayer.bin

VDR may become usable, I don't really see why it couldn't be.  Big issue will be HD playback as VDR does not use OMX and I wouldn't expect any HD content to play through VDR itself.  We haven't done any testing in this regards.

When you tried the Film.mp4 file from the command line did you use the same command line arguments that lmce launches omxplayer with?  If not what was different.

Can you manually access your library files through /home/data/....   on the rpi2?

J.

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3182
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: LinuxMCE Rpi2 alpha testing
« Reply #4 on: June 12, 2015, 06:38:04 pm »
VDR can play HD content on rpi1, IF you have the appropriate decoder licences (iirc a couple of dollars will get you a number for the kernel boot line).

phenigma

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1227
    • View Profile
Re: LinuxMCE Rpi2 alpha testing
« Reply #5 on: June 13, 2015, 12:28:13 am »
REALLY?!? oh.  I'm sorry for the misinformation.  I didn't realize that vdr had an omx output.  posde can you provide me with a link so I might test the setup?  I'll do some checking myself too.  Thanks for the info!

J.

posde

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3182
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: LinuxMCE Rpi2 alpha testing
« Reply #6 on: June 13, 2015, 10:53:08 am »
:)

I didn't sway it had an omx output, I said it supported hardware assisted rendering :D

How good is your German?

http://www.vdr-wiki.de/wiki/index.php/Kategorie:Raspbian_VDR_Streaming_Client_mittels_Streamdev_und_rpihddevice

phenigma

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1227
    • View Profile
Re: LinuxMCE Rpi2 alpha testing
« Reply #7 on: June 14, 2015, 10:39:29 am »
heh.  My German is non-existant.  My ability to decipher google translated documents is... not too bad.  ;)  posde could you create a task with this link attached.  I'd appreciate that to track anything related to this implementation.  :D

Thanks a bunch!

J.

G.I.R.

  • Regular Poster
  • **
  • Posts: 24
    • View Profile
Re: LinuxMCE Rpi2 alpha testing
« Reply #8 on: June 14, 2015, 02:22:23 pm »
sorry for the late reply.

today i have tried a few things again.

i can play the file, if it is locally stored on the sdcard with this command:

Code: [Select]
/usr/bin/omxplayer -ohdmi -r --no-keys -l00:00:00 Film.mp4
seems to be the same command, when trying it via an orbiter.

i can copy the file from /home/public/data/... to the raspberry.

This is the output starting the film with the same command from the network source not locally:

Code: [Select]
/usr/bin/omxplayer -ohdmi -r --no-keys -l00:00:00 /home/public/data/videos/0\,00\ TB\ \(sda1\)\ ST2000DM001-1CH\ \[31\]/Film.mp4
Output mode 19: 1280x720@50 N:13
ntsc_freq:1
Video codec omx-h264 width 720 height 404 profile 100 fps 23.976025
Audio codec aac channels 2 samplerate 48000 bitspersample 16
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 720x404@23.98 interlace:0 deinterlace:0 anaglyph:0 par:1.00 layer:0 alpha:255
have a nice day ;)

Some times it starts to play for 1 or 2 seconds but then it stops.

This is a part of the logfile /var/log/pluto/205_OMX_Player.log

Code: [Select]
01      06/14/15 11:39:35.853           OMX_Player::CMD_Play_Media - TRYING iStreamID: 1015, sMediaURL: /home/public/data/videos/0,00 TB (s
da1) ST2000DM001-1CH [31]/Film.mp4 <0x75ee8460>
01      06/14/15 11:39:35.854           OMX_Player::CMD_Play_Media - TRYING Requested start: 00:00:00, usec = 0 <0x75ee8460>
01      06/14/15 11:39:35.854           OMX_Player::CMD_Play_Media - TRYING to Play() from 00:00:00 <0x75ee8460>
01      06/14/15 11:39:35.854           OMXPlayerInterface::SetState - State: 1 <0x75ee8460>
01      06/14/15 11:39:35.854           OMXPlayerStream::PlayerStateNotifier - 1 <0x75ee8460>
01      06/14/15 11:39:35.855           OMX_Player::StateChanged - 1 - INITIALIZING - iStreamID: 1015, MediaURL: /home/public/data/videos/0,00 TB (sda1) ST2000DM001-1CH [31]/Film.mp4 <0x75ee8460>
01      06/14/15 11:39:35.856           Play() - Opening file '/tmp/omxplayerdbus' to get d-bus address <0x75ee8460>
01      06/14/15 11:39:35.857           (Child's) Play() - begins <0x75ee8460>
01      06/14/15 11:39:35.858           (Child's) Play() - sMediaPosition: -l00:00:00 <0x75ee8460>
01      06/14/15 11:39:35.858           (Child's) Play() - MediaURL: /home/public/data/videos/0,00 TB (sda1) ST2000DM001-1CH [31]/Film.mp4 <0x75ee8460>
01      06/14/15 11:39:35.858           (Child's) Play() - cmdline: omxplayer -ohdmi -r --no-keys -l00:00:00 /home/public/data/videos/0,00 TB (sda1) ST2000DM001-1CH [31]/Film.mp4  <0x75ee8460>
01      06/14/15 11:39:35.857           Play() - Read line: unix:abstract=/tmp/dbus-CWt5o8xOXD,guid=187bddf8b7e32ba9047533ac557d4d12 <0x75ee8460>
01      06/14/15 11:39:35.859           Play() - Creating connection to 'Player' bus <0x75ee8460>
01      06/14/15 11:39:35.865           Play() - Creating Player_proxy client interface <0x75ee8460>
01      06/14/15 11:39:35.866           Play() - Creating connection to 'Propertiess' bus <0x75ee8460>
01      06/14/15 11:39:35.871           Play() - Creating Properties_proxy client interface <0x75ee8460>
01      06/14/15 11:39:35.876           Play() - Creating connection to 'Root' bus <0x75ee8460>
01      06/14/15 11:39:35.882           Play() - Creating Root_proxy client interface <0x75ee8460>
01      06/14/15 11:39:35.883           Play() - Creating PlayerMonitorThread <0x75ee8460>
01      06/14/15 11:39:35.884           [PlayerMonitor] started <0x746e8460>
01      06/14/15 11:40:46.425           Play() - Identity() [5]: OMXPlayer <0x75ee8460>
01      06/14/15 11:40:46.425           OMXPlayerInterface::SetState - State: 2 <0x75ee8460>
01      06/14/15 11:40:46.425           OMXPlayerStream::PlayerStateNotifier - 2 <0x75ee8460>
01      06/14/15 11:40:46.426           OMX_Player::StateChanged - 2 - PLAYING - iStreamID: 1015, MediaURL: /home/public/data/videos/0,00 T
B (sda1) ST2000DM001-1CH [31]/Film.mp4 <0x75ee8460>
01      06/14/15 11:40:46.445           OMXPlayerStream::Play - Creating event processor <0x75ee8460>
01      06/14/15 11:40:46.446           OMXPlayerStream::Play - Event processor started <0x75ee8460>
01      06/14/15 11:40:46.446           OMX_Player::CMD_Play_Media - SUCCESSFUL Play(/home/public/data/videos/0,00 TB (sda1) ST2000DM001-1CH [31]/Film.mp4) <0x75ee8460>
01      06/14/15 11:41:07.756           OMX_Player::CMD_Play_Media - sDuration = 00:20:51 <0x75ee8460>
01      06/14/15 11:41:14.044           [PlayerMonitor] calling Stop() <0x746e8460>
01      06/14/15 11:41:14.045           OMXPlayerInterface::SetState - State: 4 <0x746e8460>
01      06/14/15 11:41:14.045           OMXPlayerStream::PlayerStateNotifier - 4 <0x746e8460>
01      06/14/15 11:41:14.045           OMX_Player::StateChanged - 4 - STOPPING - iStreamID: 1015, MediaURL: /home/public/data/videos/0,00 TB (sda1) ST2000DM001-1CH [31]/Film.mp4 <0x746e8460>
01      06/14/15 11:41:14.046           Stop() - called <0x746e8460>
01      06/14/15 11:41:14.046           Send_Stop() - sending Stop() <0x746e8460>
01      06/14/15 11:41:14.049           Send_Stop() - D-Bus error - omxplayer has gone away? <0x746e8460>
01      06/14/15 11:41:14.050           Stop() - joining m_tPlayerMonitorThread <0x746e8460>
01      06/14/15 11:41:14.050           Stop() - m_tPlayerMonitorThread joined <0x746e8460>
01      06/14/15 11:41:14.050           Stop() - cleaning up D-Bus interface proxies <0x746e8460>
01      06/14/15 11:41:14.053           Stop() - cleaning up D-Bus connection proxies <0x746e8460>
01      06/14/15 11:41:14.061           Stop() - finished <0x746e8460>
01      06/14/15 11:41:14.061           OMXPlayerInterface::SetState - State: 5 <0x746e8460>
01      06/14/15 11:41:14.061           OMXPlayerStream::PlayerStateNotifier - 5 <0x746e8460>
01      06/14/15 11:41:14.061           OMX_Player::StateChanged - 5 - STOPPED - iStreamID: 1015, MediaURL: /home/public/data/videos/0,00 TB (sda1) ST2000DM001-1CH [31]/Film.mp4 <0x746e8460>
01      06/14/15 11:41:14.062           OMX_Player::StateChanged - 5 - STOPPED - Sending EVENT_Playback_Completed(1015, /home/public/data/videos/0,00 TB (sda1) ST2000DM001-1CH [31]/Film.mp4) <0x746e8460>
01      06/14/15 11:41:14.062           [PlayerMonitor] exiting <0x746e8460>
Return code: 139
3       06/14/15 11:41:14       205 (spawning-device)   Device died... count=1/50 dev=205
Sun Jun 14 11:41:14 UTC 2015 died
========== NEW LOG SECTION ==========
1       06/14/15 11:41:24       205 (spawning-device)   Starting... 2
1       06/14/15 11:41:24       205 (spawning-device)   Found ./OMX_Player
01      06/14/15 11:41:24.994           OMXPlayerInterface::SetState - State: 5 <0x76fbe000>
01      06/14/15 11:41:24.995           OMXPlayerStream::PlayerStateNotifier - 5 <0x76fbe000>
01      06/14/15 11:41:24.995           OMX_Player::StateChanged - 5 - STOPPED - iStreamID: 0, MediaURL:  <0x76fbe000>
01      06/14/15 11:41:24.996           OMX_Player::StateChanged - 5 - STOPPED - Sending EVENT_Playback_Completed(0, ) <0x76fbe000>

i unplugged another working mediadirector and put the networkcable into the raspberry.
so normally it cannot be the cable or does this confuse the system somehow?

If You need any further information, log or if i can do something else, i would be glad to help!


phenigma

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1227
    • View Profile
Re: LinuxMCE Rpi2 alpha testing
« Reply #9 on: June 16, 2015, 12:47:50 am »
This is the output starting the film with the same command from the network source not locally:

Code: [Select]
/usr/bin/omxplayer -ohdmi -r --no-keys -l00:00:00 /home/public/data/videos/0\,00\ TB\ \(sda1\)\ ST2000DM001-1CH\ \[31\]/Film.mp4
Output mode 19: 1280x720@50 N:13
ntsc_freq:1
Video codec omx-h264 width 720 height 404 profile 100 fps 23.976025
Audio codec aac channels 2 samplerate 48000 bitspersample 16
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: 720x404@23.98 interlace:0 deinterlace:0 anaglyph:0 par:1.00 layer:0 alpha:255
have a nice day ;)

Some times it starts to play for 1 or 2 seconds but then it stops.


mhm.  This sounds like network buffering issues since it fails to play from the network.  Perhaps you could test out increasing the buffer sizes with some command line options running omxplayer manually from the network stored file.  You can use -s to view playback stats live.

J.

G.I.R.

  • Regular Poster
  • **
  • Posts: 24
    • View Profile
Re: LinuxMCE Rpi2 alpha testing
« Reply #10 on: June 18, 2015, 09:41:32 pm »
Thanks for the hint.

i tried the --live, --threshold and --audio_queue=60 --video_queue=60 options, but i am afraid with no result.
the live version seems promissing because the player won`t stop, but it does not show video or audio either.

the strange thing is, playing radio works great...

i bought a class10 sd-card and thought yeaahh hey ho lets go, because the boot process was really quick but it didn`t do anything good to my problem.

only error in the log file (with every method):
Code: [Select]
09:23:22 T:1541125052 INFO: COMXAudio::ApplyVolume - Volume=1.00 (* 1.00 * 1.00)
09:23:22 T:1541125232 INFO: CDVDPlayerAudio::Decode dts:1877333 pts:1877333 size:347
09:23:22 T:1541125842 INFO: CDVDPlayerAudio::Decode dts:1898667 pts:1898667 size:348
09:23:22 T:1541126410 INFO: CDVDPlayerAudio::Decode dts:1920000 pts:1920000 size:355
09:23:22 T:1541126960 INFO: CDVDPlayerAudio::Decode dts:1941333 pts:1941333 size:381
09:23:22 T:1541127529 INFO: CDVDPlayerAudio::Decode dts:1962667 pts:1962667 size:364
!!!!09:23:49 T:1568267413 ERROR: COMXPlayer::interrupt_cb - Timed out
!!!!09:23:49 T:1568267679 ERROR: OMXReader::Read no valid packet
09:23:49 T:1568268106 INFO: COMXVideo::SubmitEOS

cannot find anything with google about it.

should i post the whole log?

i tried to check the network between dcerouter and raspberry with iperf, but that seems to be okay:

Code: [Select]
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   112 MBytes  94.3 Mbits/sec

Do You have any other hint, something else that i can check?



phenigma

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1227
    • View Profile
Re: LinuxMCE Rpi2 alpha testing
« Reply #11 on: June 28, 2015, 04:32:09 am »
The info shows internal errors in omxplayer.  Unfortunately I have no control over them.  I will continue to update omxplayer as I see major bugfixes arrive.  Beyond that I'm at a complete loss as to what could be causing the problem.  You could bring the issues to popcornmix in the rpi forums as the issue is with omxplayer not with our interface to it.  At least that's what the logs you are posting show me.

I'll keep thinking on it but I cannot reproduce this no matter how I try.

J.