UMS-4.1.3-Java7 on Cubieboard A20

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
guilhermerebello
Posts: 1
Joined: Thu Jul 31, 2014 12:50 pm

UMS-4.1.3-Java7 on Cubieboard A20

Post by guilhermerebello »

Is it possible to run UMS-4.1.3-Java7 on Cubieboard A20?
I would like to install samba server, UMS, transmission and jdownloader.
I tried many things but java-open isn't compatible with arm architeture.
My OS is: Cubian x1(http://cubian.org/)
anyone have any idea :?: :roll:
jazzy1986
Posts: 5
Joined: Sat Nov 29, 2014 4:43 pm

Re: UMS-4.1.3-Java7 on Cubieboard A20

Post by jazzy1986 »

I am now running UMS 4.3.0 on Cubieboard ubuntu. Not bad. Videos play fine. I have all transcoding turned off. Will try the 5.0 version next.
blipi
Posts: 3
Joined: Tue Jan 13, 2015 6:42 am

Re: UMS-4.1.3-Java7 on Cubieboard A20

Post by blipi »

I've just registered to post here =P

I'm also running UMS (just updated to 4.40, but 4.30 did work too) on a Cubieboard A20 with Cubian (r5 in my case, I believe it's more stable and lightweight), installed on NAND.
So far experience is good, you can play videos just fine, without any major lag or problem. Transcoding/muxing is trickier, you won't ever get any tsMuxer runing on armhf (as is cubieboard A20), but instead you might opt for ffmpeg. I'll soon post a nice script to use ffmpeg as muxer (not transcoder) in place of txMuxer. Muxing with FFMPEG does have some micro-spikes, but as long as you let it load for a minute, it plays fine.

That being said, I'm overcloking the Cubieboard to 1.2-1.1GHz and using performance governor. I'll too post a script. (I'm not using higher voltages, but I do have a heatsink for the CPU and RAM and a USB powered fan).

You must forget about using the provided ffmpeg and txMuxer (in linux/) folder, as that is (I believe) x86, not arm.

Installing ffmpeg might be kind of tricky, in my case I've had to use this repository here:
http://www.deb-multimedia.org/
(To sum up:)

Code: Select all

echo "deb http://www.deb-multimedia.org wheezy main non-free" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install deb-multimedia-keyring
sudo apt-get update
sudo apt-get install ffmpeg
In case you already had ffmpeg installed, try "sudo apt-get upgrade" or "sudo apt-get dist-upgrade". Look out you don't break anything with "dist-upgrade".

Mediainfo might also not be intuitive, install it by issuing:

Code: Select all

sudo apt-get install mediainfo libzen-dev libmediainfo-dev
And don't forget to copy the UMS.conf file to whatever user is running UMS, in my case:

Code: Select all

sudo cp UMS.conf /root/.config/UMS/UMS.conf
And modify the ffmpeg path to use the system ffmpeg and not the provided one.

As for Java, I don't know of Cubian X1, but Cubian r5 comes with Java 7 preinstalled.

You are now ready to go!


PS:
You might also want to install mplayer and mencoder

Code: Select all

sudo apt-get install mplayer mencoder
guso
Posts: 1
Joined: Tue Feb 03, 2015 9:04 am

Re: UMS-4.1.3-Java7 on Cubieboard A20

Post by guso »

@blipi May I ask for your script for ffmpeg? I'm a little bit stuck with my odroid C1 trying to run this beauty, may be my drivers but I don't fully understand how to proceed right now, as I'm writing this I'm just able to run normal videos, but not even DVDs and not to mention transcoding, ffmpeg,tsMuxer or VLC does not work at all, MEncoder starts playing but not viewable, kinda laggy and audio its totally off sync, like 3 or 4 secs, I was trying to track errors on log file but I don't know what to look for exactly, I found some lines about ffmpeg not working properly and then stop the stream but it wasn't clear for me

this is a fragment of it

Code: Select all

DEBUG 08:12:05.599 [Thread-38] ==========================================================================
DEBUG 08:12:05.599 [Thread-38] Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
DEBUG 08:12:05.599 [Thread-38] Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
DEBUG 08:12:05.599 [Thread-38] ==========================================================================
DEBUG 08:12:05.599 [Thread-38] audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=24000 sample-1)
DEBUG 08:12:05.599 [Thread-38] [VD_FFMPEG] Trying pixfmt=0.
DEBUG 08:12:05.599 [Thread-38] Could not find matching colorspace - retrying with -vf scale...
DEBUG 08:12:05.599 [Thread-38] Opening video filter: [scale]
DEBUG 08:12:05.600 [Thread-38] [VD_FFMPEG] Trying pixfmt=1.
DEBUG 08:12:05.600 [Thread-38] Could not find matching colorspace - retrying with -vf scale...
DEBUG 08:12:05.600 [Thread-38] Opening video filter: [scale]
DEBUG 08:12:05.600 [Thread-38] Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
DEBUG 08:12:05.600 [Thread-38] videocodec: libavcodec (720x480 fourcc=34363268 [h264])
DEBUG 08:12:05.600 [Thread-38]
DEBUG 08:12:05.600 [Thread-38] Exiting...
another one

Code: Select all

DEBUG 08:12:05.183 [mencoder-7] Starting mencoder -ss 0 -dvd-device /home/odroid/Videos/The abominable dr. Phibes/VIDEO_TS dvd://1 -msglevel statusline=2 -oac copy -of lavf -lavfopts format=mpegts -mpegopts format=mpeg2:muxrate=500000$
DEBUG 08:12:05.185 [mencoder-7] Reading pipe: /tmp/universalmediaserver/mencoder1422913325151
DEBUG 08:12:05.273 [mencoder-7-2] libdvdread: Couldn't find device name.
DEBUG 08:12:05.535 [mencoder-7-2] ** MUXER_LAVF *****************************************************************
DEBUG 08:12:05.588 [mencoder-7-2] REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
DEBUG 08:12:05.589 [mencoder-7-2] INCORRECT files in the presence of B-frames. Moreover, due to bugs MPlayer
DEBUG 08:12:05.589 [mencoder-7] Attaching thread: mencoder-7
DEBUG 08:12:05.589 [mencoder-7-2] will play these INCORRECT files as if nothing were wrong!
DEBUG 08:12:05.590 [mencoder-7-2] *******************************************************************************
DEBUG 08:12:05.590 [mencoder-7-2] The selected video_out device is incompatible with this codec.
DEBUG 08:12:05.590 [mencoder-7-2] Try appending the scale filter to your filter list,
DEBUG 08:12:05.590 [mencoder-7-2] e.g. -vf spp,scale instead of -vf spp.
DEBUG 08:12:05.591 [mencoder-7-2] The selected video_out device is incompatible with this codec.
DEBUG 08:12:05.591 [mencoder-7-2] Try appending the scale filter to your filter list,
DEBUG 08:12:05.591 [mencoder-7-2] e.g. -vf spp,scale instead of -vf spp.
DEBUG 08:12:05.591 [mencoder-7-2] Your options /preset=superfast,crf=19,g=250,i_qfactor=0.71,qcomp=0.6,level=3.1,weightp=0,8x8dct=0,aq-strength=0,me_range=16/ look like gibberish to me pal
DEBUG 08:12:05.591 [mencoder-7-2] FATAL: Cannot initialize video driver.
DEBUG 08:12:05.592 [mencoder-7-2] [mpeg2video @ 0x33f510] Warning MVs not available
DEBUG 08:12:05.593 [mencoder-7-2] [mpeg2video @ 0x33f510] concealing 1046 DC, 1046 AC, 1046 MV errors in I frame
DEBUG 08:12:05.593 [mencoder-7] Unix process ID (mencoder): 13875
DEBUG 08:12:05.594 [Thread-38] MEncoder 1.1-4.8 (C) 2000-2012 MPlayer Team
DEBUG 08:12:05.594 [Thread-38] There are 5 titles on this DVD.
DEBUG 08:12:05.594 [Thread-38] There are 1 angles in this DVD title.
DEBUG 08:12:05.594 [Thread-38] audio stream: 0 format: ac3 (stereo) language: en aid: 128.
DEBUG 08:12:05.595 [Thread-38] audio stream: 1 format: ac3 (stereo) language: fr aid: 129.
DEBUG 08:12:05.596 [Thread-38] audio stream: 2 format: ac3 (stereo) language: es aid: 130.
DEBUG 08:12:05.596 [Thread-38] number of audio channels on disk: 3.
DEBUG 08:12:05.596 [Thread-38] subtitle ( sid ): 0 language: fr
DEBUG 08:12:05.596 [Thread-38] subtitle ( sid ): 1 language: es
DEBUG 08:12:05.596 [Thread-38] number of subtitles on disk: 2
DEBUG 08:12:05.596 [Thread-38]
INFO  08:12:05.596 [mencoder-7] Process mencoder has a return code of 1! Maybe an error occurred... check the log file
DEBUG 08:12:05.596 [Thread-38] success: format: 2  data: 0x17000 - 0xfedc4000
DEBUG 08:12:05.597 [Thread-38] MPEG-PS file format detected.
DEBUG 08:12:05.597 [Thread-38] VIDEO:  MPEG2  720x480  (aspect 3)  29.970 fps  9001.6 kbps (1125.2 kbyte/s)
DEBUG 08:12:05.597 [mencoder-7] Stopping Unix process 13871: mkfifo-8
any help will be greatly appreciated :(
blipi
Posts: 3
Joined: Tue Jan 13, 2015 6:42 am

Re: UMS-4.1.3-Java7 on Cubieboard A20

Post by blipi »

Hi there! Sorry for the late reply.

I'm also having issues with latests MEncoder versions that didn't had before. I'll look into it.
Post Reply