| Prev |   1   2   3   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   Mythtv for Maemo 5 - N900 port (https://talk.maemo.org/showthread.php?t=34224)

christexaport 2009-11-14 01:32

Re: Mythtv for Maemo 5 - N900 port
 
Whenever MythTV gets to a point where I can install it and it works immediately, I'm in. Right now, taking a week to set up isn't ideal for me. I'm uninstalling and reinstalling OSes too much for that mess.

Laughing Man 2009-11-14 01:43

Re: Mythtv for Maemo 5 - N900 port
 
I once had a MythTV setup running, it took me a while to figure out how to use it but in the end I got rid of it since I used my computer to much as a computer so there was no point in having a fancy front end when I could just play files normally. I think in the future when I build another desktop I might turn my current one into a backend server.

legendemeritus 2009-11-28 17:19

Re: Mythtv for Maemo 5 - N900 port
 
i hope this gets done for Maemo 5!

MountainX 2009-11-28 17:22

Re: Mythtv for Maemo 5 - N900 port
 
Quote:

Originally Posted by legendemeritus (Post 397786)
i hope this gets done for Maemo 5!

Me too! This would be great.

MountainX 2009-11-28 17:24

Re: Mythtv for Maemo 5 - N900 port
 
Quote:

Originally Posted by christexaport (Post 375643)
Whenever MythTV gets to a point where I can install it and it works immediately, I'm in. Right now, taking a week to set up isn't ideal for me. I'm uninstalling and reinstalling OSes too much for that mess.

Once you get the hang of it, installing is easy. The first time might take a week. Once you know what you are doing it will only take a few minutes. I've installed it a few dozen times now. The first time I tried, I could not even get it to work. The last install was just easy (because I learned how to do all the settings).

christexaport 2009-12-06 00:01

Re: Mythtv for Maemo 5 - N900 port
 
I'm not satisfied with the supported video cards issue. Some say my card is supported, other no. I'm using a Falcon Conexant card with Asus chips, if that helps. Got any experience with those?

MountainX 2009-12-06 18:47

Re: Mythtv for Maemo 5 - N900 port
 
Quote:

Originally Posted by christexaport (Post 412302)
I'm not satisfied with the supported video cards issue. Some say my card is supported, other no. I'm using a Falcon Conexant card with Asus chips, if that helps. Got any experience with those?

Did you check here? http://www.mythtv.org/wiki/Video_capture_card

Get the full details of your card (chipset, etc.)and check the above site. That will give you an answer. Depending on what operating system you use (Linux Mint?), you can check that the kernel sees your card with lspci. Look for an entry labeled "Multimedia video controller". To get more detailed information about the card, use lspci -v or lspci -vv

christexaport 2009-12-06 20:23

Re: Mythtv for Maemo 5 - N900 port
 
Been there done that MountainX. It claims to support it, but it just didn't work. With Media Center so simple to setup, it got kicked to the curb. They need to get their stuff together then call me. If they can get Linux to install and "just work", they can do it for Myth, too. I'm too busy to waste another two days researching that setup.

gazza_d 2009-12-06 20:43

Re: Mythtv for Maemo 5 - N900 port
 
Quote:

Originally Posted by christexaport (Post 413332)
Been there done that MountainX. It claims to support it, but it just didn't work. With Media Center so simple to setup, it got kicked to the curb. They need to get their stuff together then call me. If they can get Linux to install and "just work", they can do it for Myth, too. I'm too busy to waste another two days researching that setup.

You don't need to spend loads of time researching. For playback use Nvidia video cards for the best result, and for video capure you cannot go far wrong with Hauppauge tv cards. There is a list on the Video4Linux wiki.

MountainX 2009-12-06 20:55

Re: Mythtv for Maemo 5 - N900 port
 
Quote:

Originally Posted by christexaport (Post 413332)
Been there done that MountainX. It claims to support it, but it just didn't work. With Media Center so simple to setup, it got kicked to the curb. They need to get their stuff together then call me. If they can get Linux to install and "just work", they can do it for Myth, too. I'm too busy to waste another two days researching that setup.

That's why it took me months to get around to setting up MythTV. I just didn't have time. I set up SageTV on Linux in a few minutes and I was done. MythTV sat on the backburner for almost a year. But recently I had time to play with it and I got it set up. I have to say that I love it. It was worth the effort.

And you could probably solve your video capture card problem with an investment of under 30 minutes. Just find out which driver to select in MythTV backend setup and I would guess that will solve your problem (if your card is supported, as you say).

I consider things like the time I invested in setting up MythTV to be part of my Linux education. When I started doing Windows server admin years ago, I had to invest a lot of time. Then, when I started Linux a couple years ago, the same. I have not invested nearly as much time in learning Linux yet, but every time I spend a little time on something like MythTV, my overall Linux skills grow.

In general, I find that Windows is only easier because it is what people are used to. Now that I use Linux every day (and never touch Windows), when my Mom asks me to fix her computer I find it maddening. Windows makes it so much harder to do almost everything. I would never want to go back to that way of living (computing).

That said, I can certainly understand if you do not have time to learn MythTV right now. But as the poster above said, setting up MythTV with a PVR-X50 card is pretty trivial. Select the IVTV MPEG driver and it will work.
http://www.mythtv.org/wiki/Hauppauge_PVR-150

MountainX 2009-12-06 20:57

Re: Mythtv for Maemo 5 - N900 port
 
Quote:

Originally Posted by legendemeritus (Post 397786)
i hope this gets done for Maemo 5!

getting this thread back on topic ;)

christexaport 2009-12-07 02:58

Re: Mythtv for Maemo 5 - N900 port
 
I meant getting it owrking on my current two set of hardware, which all just plug and play with Vista Media Center. I already know Those cards are good, but supposedly mine are to, just I couldn't get it going. I gave up before I pulled out my hair.

danmiddle2 2010-01-30 14:44

Re: Mythtv for Maemo 5 - N900 port
 
I appreciate this is an old thread, but I thought I'd post here rather than start a new one.

I have MythTV, and I use it with my mobile phones (including my new N900) but I don't have a full frontend on it.

I have a darwin streaming server running on the MythTV backend which presents all my recordings AND my video collection as 3GP RTSP streams over the Internet. This allows me to watch all my recordings or my DVD collection over a 3G connection. This worked nicely on the N900 out of the box, but sadly seems to have temporarily stopped working with the latest Maemo update (from what I can find it's a known bug that will be fixed in the next version).

The other thing I have setup, is that all my MythTV recordings are re-transcoded into DivX video files. Then I can copy the files locally for viewing in areas with no or poor signal. I intend to make them available via an RSS feed so that it 'auto-synchronises' over my WiFi when at home (mythexport does something similar).

There are pro's and con's to this. The main con is that it doesn't allow you to watch Live TV, but given I can schedule recordings remotely, it sort of allows you to not miss anything. The 3GP quality is poor, but watchable. I am sure with a bit of tweaking I could improve this. The quality of the DivX files can be as high as you want.

The main pro is that it works with almost everything out of the box! I previously used the 3GP streams on everything like my Laptop, my N82, N800 and N810. It also works on my girlfriends N95 and N97mini.

The DivX files I have previously used to sync with my PSP (albeit that was actual MP4's instead).

As most myth users will know you can have a job kick off after each recording has finished, but I choose to batch this stuff to run overnight. If anyone is interested, I can post the details up here, although it's not especially sophisticated and I am sure someone could do the same thing better.

Anyway - rather longer than I intended it to be, but basically. I use mythtv with my N900, albeit a full frontend would be nice.

SingingDwarf 2010-02-07 09:31

Re: Mythtv for Maemo 5 - N900 port
 
Quote:

Originally Posted by danmiddle2 (Post 502578)
If anyone is interested, I can post the details up here, although it's not especially sophisticated and I am sure someone could do the same thing better.

I use MythTV religiously at home in the UK - we never watch live TV anymore at all. I have also just received my N900, but cant get the UPNP feature of Mythv to work.

I'd live to know more about the Darwin server you have running on your box

danmiddle2 2010-02-07 10:22

Re: Mythtv for Maemo 5 - N900 port
 
Quote:

Originally Posted by SingingDwarf (Post 514119)
I use MythTV religiously at home in the UK - we never watch live TV anymore at all. I have also just received my N900, but cant get the UPNP feature of Mythv to work.

I'd live to know more about the Darwin server you have running on your box


Usual at your own risk caveat. These instructions are remembered so if I get anything not quite right then please reply and I will correct and help out.

Darwin Streaming Server is Apples Open Source media streaming server, which has a Linux version which can be downloaded here: (There are newer releases but I believe these are lacking a Linux install script, please correct me if I am wrong).

Code:

http://static.macosforge.org/dss/downloads/
http://static.macosforge.org/dss/downloads/DarwinStreamingSrvr5.5.5-Linux.tar.gz

then unpack and install
Code:

tar xvzf DarwinStreamingSrvr5.5.5-Linux.tar.gz
cd DarwinStreamingSrvrlinux-Linux
./Install

Then launch it
Code:

sudo /usr/local/sbin/streamingadminserver.pl
Then configure it using a web browser
Code:

http://127.0.0.1:1220
This will allow you to configure where the server looks for files to stream, in my case I put them in
Code:

/var/lib/mythtv/myth3gp
Thats the streaming server all set up. Now we need to transcode files to view remotely. This script is a mess, so please feel free to butcher, improve and recirculate. For example the web pages created could be PHP, but I have to copy the files to systems without PHP. You could also simplify it to run as a user job after each recording, but for reasons unique to me I run mine overnight as a cron job. It also creates divx files for local playback on the N900, so you need to create the directory.

Code:

/var/lib/mythtv/mythn900
It also uses mythtv-status to see if the system is recording currently so that it doesn't produce partial files. But it stops if it starts recording (cleanly in between files, but is less than ideal).

Ensure you enter your mythtv sql database username and password.

Code:

#!/bin/bash

#this part creates a divx and a 3gp file for each and every mythtv recording
#it will not start if the backend is currently recording it will stop
#between files if the backend starts to record whilst the script is underway

for recording in `ls -t /var/lib/mythtv/recordings/ | grep -i ".mpg" | cut -d "." -f1,2 | sort -u`; do
        recname=`echo $recording`
        recpath="/var/lib/mythtv/recordings"
        out="/var/lib/mythtv/mythn900"
        out3gp="/var/lib/mythtv/myth3gp"
        humanname=`mysql -umythtv -pPASSWORD -e "select concat(title, ' ', progstart) as name from recorded where basename = '$recname' limit 1;" --database mythconverg -NE \
        | grep name: | sed 's/name: //' | sed 's/00$//' | sed 's/://g' | sed 's/$/.avi/'`
        liver=`mysql -umythtv -pPASSWORD -e "select concat(recgroup) as name from recorded where basename = '$recname' limit 1;" \
        --database mythconverg -NE  | grep -i "name:" | cut -d " " -f2`       
        if [ ! -e $out/$recname.* ]
        then
        if [ $liver != "LiveTV" ]
        then
        mythtv-status | grep -A 2 -i Encoders > /tmp/mythstatus.txt
        diff  /usr/local/bin/mythstatus.txt /tmp/mythstatus.txt -q | grep -i differ | cut -d " " -f5 > /tmp/differmyth.txt
        echo "linetwo" >> /tmp/differmyth.txt
        differences=`head -1 /tmp/differmyth.txt`
        if  [ $differences = "differ" ]
        then
        echo "system is currently recording, exiting"
        rm /tmp/mythstatus.txt
        rm /tmp/differmyth.txt
        exit
        else
        echo "backend is not recording and file does not exist, creating divx file"
        rm /tmp/mythstatus.txt
        rm /tmp/differmyth.txt
        ffmpeg -i "$recpath/$recname" -vtag DIVX -f avi -vcodec mpeg4 -aspect 16:9 -s 400x240 -b 690000 -acodec libmp3lame -ab 128000 -ar 48000 -ac 2  "$out/$recname.$humanname"
        ffmpeg -i "$recpath/$recname" -s 352x288 -ar 8000 -ac 1 -ab 12.2k "$out3gp/$recname.$humanname.3gp"
        MP4Box -3gp -mtu 1450 -hint "$out3gp/$recname.$humanname.3gp"
        fi
        fi
        fi
done


#this part of the script will remove all divx files that do not correspond to a current recording

for oldfile in `ls -t /var/lib/mythtv/mythn900/*.avi | cut -d "." -f1,2 | cut -d "/" -f6`; do
        oldname=`echo $oldfile`
        realrec="/var/lib/mythtv/recordings"
        if [ -e $realrec/$oldname ]
        then
        echo "file exists, leaving"
        else
        echo "file does not exist, removing avi file"
        rm /var/lib/mythtv/mythn900/$oldname.*
fi
done


#this part of the script will remove all 3gp files that do not correspond to a current recording

for oldfile in `ls -t /var/lib/mythtv/myth3gp/*.3gp | cut -d "." -f1,2 | cut -d "/" -f6`; do
        oldname=`echo $oldfile`
        realrec="/var/lib/mythtv/recordings"
        if [ -e $realrec/$oldname ]
        then
        echo "file exists, leaving"
        else
        echo "file does not exist, removing 3gp file"
        rm /var/lib/mythtv/myth3gp/$oldname.*
fi
done

#this part of the script updates all the hyperlinks to the streams

rm /var/www/mythmobile/3gp_remote.html
rm /var/www/mythmobile/3gp_local.html
rm /var/www/mythmobile/3gp_proxied.html
echo "<span style=\"font-weight: bold; font-size: 1.2em;\">MythTV Mobile Remote URLs</span><br />&nbsp;<br />" > /var/www/mythmobile/3gp_remote.html
echo "<span style=\"font-weight: bold; font-size: 1.2em;\">Last updated `date`</span><br />&nbsp;<br />" >> /var/www/mythmobile/3gp_remote.html
echo "<span style=\"font-weight: bold; font-size: 1.2em;\">MythTV Mobile Local URLs</span><br />&nbsp;<br />" > /var/www/mythmobile/3gp_local.html
echo "<span style=\"font-weight: bold; font-size: 1.2em;\">Last updated `date`</span><br />&nbsp;<br />" >> /var/www/mythmobile/3gp_local.html
echo "<span style=\"font-weight: bold; font-size: 1.2em;\">MythTV Mobile Proxied URLs</span><br />&nbsp;<br />" > /var/www/mythmobile/3gp_proxied.html
echo "<span style=\"font-weight: bold; font-size: 1.2em;\">Last updated `date`</span><br />&nbsp;<br />" >> /var/www/mythmobile/3gp_proxied.html

ls -t /var/lib/mythtv/myth3gp/ -1 -C | grep -i 3gp | while read newfile; do
        urlfile=`echo $newfile | sed 's/ /%20/g'`
        hrname=`echo $newfile | cut -d "." -f3`
        echo "<a href="rtsp://merrycottage.demon.co.uk/$urlfile">$hrname</a><br>" >> /var/www/mythmobile/3gp_remote.html
        echo "<a href="rtsp://192.168.0.3/$urlfile">$hrname</a><br>" >> /var/www/mythmobile/3gp_local.html
        echo "<a href="rtsp://127.0.0.1/$urlfile">$hrname</a><br>" >> /var/www/mythmobile/3gp_proxied.html
done


#this part of the script updates all the hyperlinks to the local divx files

rm /var/lib/mythtv/mythn900/tv_recordings.html
echo "<span style=\"font-weight: bold; font-size: 1.2em;\">MythTV Recordings</span><br />&nbsp;<br />" > /var/lib/mythtv/mythn900/tv_recordings.html
echo "<span style=\"font-weight: bold; font-size: 1.2em;\">Last updated `date`</span><br />&nbsp;<br />" >> /var/lib/mythtv/mythn900/tv_recordings.html

ls -t /var/lib/mythtv/mythn900/ -1 -C | grep -i avi | while read newfile; do
        urlfile=`echo $newfile | sed 's/ /%20/g'`
        hrname=`echo $newfile | cut -d "." -f3`
        echo "<a href="./$urlfile">$hrname</a><br>" >> /var/lib/mythtv/mythn900/tv_recordings.html
done

Oh and once, before first use of the script, you need to create a text file (another messy bit). Do this when the mythtv backend is idle. The script compares this with the current result to ensure the backend is not in use.
Code:

mythtv-status | grep -A 2 -i Encoders > /usr/local/bin/mythstatus.txt
I can't remember all the dependencies etc, but if you have any issues please let me know and I will assist. It should be easy enough to identify from the script.

Oh, and I forgot to mention. Feel free to auto-start the server how you choose, but I did this for the user that runs myth on startup.
Code:

nano ~/.gnomerc
and then add the line
Code:

sleep 60 && sudo /usr/local/sbin/streamingadminserver.pl
You also have to add a line into /etc/sudoers so that it can run the server without prompting for a password. Please ensure you understand the security concerns before you begin.

Code:

sudo nano /etc/sudoers
and then add under # Cmnd alias specification
Code:

Cmnd_Alias DARWINLAUNCH = /usr/local/sbin/streamingadminserver.pl
and then at the bottom of the same file
Code:

username ALL=(ALL) NOPASSWD: DARWINLAUNCH

idfx 2010-03-22 01:19

Different mythtv approach(needs some fellow geek help)
 
Instead of porting mythtv to maemo5 i tried a different route

I installed easy debian, then installed mythtv-frontend from the debian repositories(inside easy debian chroot)


You need to start it with(inside easy debian chroot) :

Code:

[user@easy-debian-m5: /]DISPLAY=:0 EXPERIMENTALLY_ALLOW_PULSE_AUDIO=1 mythfrontend
It takes some time to load, but....
Mythtv loads! :)

Now come the issues I still need to work out.
No sound yet, (this is probably easy debian/pulseaudio related according to my research, + mplayer cant put out audio also...)

The screen remains black, after an occasional image flicker of 1-2 seconds(of the recording!) on start which is weird, b/c the terminal isnt outputting any big errors imho

Code:

Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
2010-03-22 02:07:53.888 MythXGetRefreshRate(): X11 ModeLine query failed
2010-03-22 02:07:55.125 VideoOutputXv: XVideo Adaptor Name: 'SGX Textured Video'
2010-03-22 02:07:57.930 OSD Theme Dimensions W: 1280 H: 720
2010-03-22 02:08:02.392 TV: StartPlayer(0, Watching WatchingPreRecorded, main) -- end ok
2010-03-22 02:08:02.461 TV: Changing from None to Watching WatchingPreRecorded
Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
2010-03-22 02:08:02.763 MythXGetRefreshRate(): X11 ModeLine query failed
2010-03-22 02:08:02.851 Couldn't load deinterlace filter none
2010-03-22 02:08:02.855 New DB connection, total: 3
2010-03-22 02:08:02.944 Realtime priority would require SUID as root.
2010-03-22 02:08:03.523 Connected to database 'mythconverg' at host: 192.168.1.3
Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
2010-03-22 02:08:03.764 MythXGetRefreshRate(): X11 ModeLine query failed
2010-03-22 02:08:03.766 Video timing method: USleep with busy wait
2010-03-22 02:08:04.428 Couldn't load deinterlace filter none
2010-03-22 02:08:04.429 Failed to enable deinterlacing
2010-03-22 02:08:08.216 NVP(0): prebuffering pause
2010-03-22 02:08:09.660 NVP(0): prebuffering pause

So i would like some help here, if anyones interested :)

idfx 2010-03-22 02:15

Re: Mythtv for Maemo 5 - N900 port
 
Already some progress!
Code:

2010-03-22 02:37:29.266 TV: Attempting to change from None to Watching WatchingLiveTV
2010-03-22 02:37:29.846 MythContext: Connecting to backend server: 192.168.1.3:6543 (try 1 of 1)
2010-03-22 02:37:30.052 Using protocol version 50
2010-03-22 02:37:30.154 Spawning LiveTV Recorder -- begin
2010-03-22 02:37:30.460 Spawning LiveTV Recorder -- end
2010-03-22 02:37:34.659 We have a playbackURL(myth://192.168.1.3:6543/227250_20100322023640.nuv) & cardtype(V4L)
2010-03-22 02:37:35.171 We have a RingBuffer
2010-03-22 02:37:35.390 TV: StartPlayer(0, Watching WatchingLiveTV, main) -- begin
2010-03-22 02:37:39.209 Opening audio device 'default'. ch 2(2) sr 32000
2010-03-22 02:37:39.224 Opening ALSA audio device 'default'.
ALSA lib pcm.c:2162:(snd_pcm_open_conf) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_alsa_dsp.so
2010-03-22 02:37:39.242 AudioOutput Error: snd_pcm_open(default): No such file or directory
2010-03-22 02:37:39.243 NVP(1): Disabling Audio, reason is: snd_pcm_open(default): No such file or directory
Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
2010-03-22 02:37:47.904 MythXGetRefreshRate(): X11 ModeLine query failed
2010-03-22 02:37:47.913 VideoOutputXv: Falling back to X shared memory video output.
                              *** May be slow ***
2010-03-22 02:37:48.410 OSD Theme Dimensions W: 1280 H: 720
Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
2010-03-22 02:37:52.260 MythXGetRefreshRate(): X11 ModeLine query failed
Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
2010-03-22 02:37:52.280 MythXGetRefreshRate(): X11 ModeLine query failed
2010-03-22 02:37:52.282 Video timing method: USleep with busy wait
2010-03-22 02:37:52.283 Realtime priority would require SUID as root.
2010-03-22 02:37:53.024 TV: StartPlayer(0, Watching WatchingLiveTV, main) -- end ok
2010-03-22 02:37:53.029 TV: Changing from None to Watching WatchingLiveTV
2010-03-22 02:37:53.035 TV: State is LiveTV & mctx == ctx
2010-03-22 02:37:53.608 TV: UpdateOSDInput done
2010-03-22 02:37:53.612 TV: UpdateLCD done
2010-03-22 02:37:53.714 TV: ITVRestart done
2010-03-22 02:37:53.888 NVP(1): Prebuffer wait timed out 10 times.
2010-03-22 02:37:59.102 VideoOutputXv Error:
***
* Your system is not capable of displaying the
* full framerate at 800x480 resolution.  Frames
* will be skipped in order to keep the audio and
* video in sync.

2010-03-22 02:38:00.629 NVP(1): prebuffering pause
2010-03-22 02:38:01.902 NVP(1): prebuffering pause

Running with the xshm renderer in "configuration -> TV-settings->playback"

Appearantly this is the only renderer that will work on the n900?

rajil.s 2010-04-05 10:15

Re: Mythtv for Maemo 5 - N900 port
 
Janneg on #mythtv compiled 0.22-fixes in scratchbox using the following parameters:

Code:

./configure --compile-type=release --cpu=armv7-a --enable-neon
--extra-cflags='-mfpu=neon -mfloat-abi=softfp' --extra-cxxflags='-mfpu=neon
-mfloat-abi=softfp' --prefix=/opt/mythtv --disable-distcc --disable-opengl
--disable-ffmpeg-pthreads --disable-v4l --disable-joystick-menu
--without-bindings=perl,python

I intend to give this a try once PR1.2 is available.

idfx 2010-04-05 10:23

Re: Mythtv for Maemo 5 - N900 port
 
Any idea about the dependencies? Are there a lot to build/port?

rajil.s 2010-04-05 19:18

Re: Mythtv for Maemo 5 - N900 port
 
The dependencies are all available in the repos as far as i am aware. One of the issues is opengl support. Myth needs opengl which is not available and thus need to be disabled at compile time.

rajil.s 2010-04-19 18:24

Re: Mythtv for Maemo 5 - N900 port
 
I tried building mythtv-0.22 in scratch box today. The packages i needed to install were
Code:

[sbox-FREMANTLE_ARMEL: ~/tmp] > ls -1 *deb
lame_3.98-0.0maemo1_armel.deb
libmp3lame-dev_3.98-0.0maemo1_armel.deb
libmp3lame0_3.98-0.0maemo1_armel.deb
libxinerama-dev_1.0.3-2_armel.deb
libxinerama1_1.0.3-2_armel.deb
libxxf86vm-dev_1.0.2-2maemo1_armel.deb
libxxf86vm1_1.0.2-2maemo1_armel.deb
x11proto-xf86vidmode-dev_2.2.2-5maemo1_all.deb

Unfortunately, the build died since mythtv needs Qt3support which is not present in maemo packages.
Code:

make[2]: Entering directory `/home/sbox/tmp/mythtv-0.22/programs/mythlcdserver'                                                                                                 
ccache g++ -c -pipe -march=armv7-a -fomit-frame-pointer -O3 -mfpu=neon -mfloat-abi=softfp -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -D_REENTRANT -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/targets/FREMANTLE_ARMEL/usr/share/qt4/mkspecs/linux-g++-maemo5 -I. -I/targets/FREMANTLE_ARMEL/usr/include/QtCore -I/targets/FREMANTLE_ARMEL/usr/include/QtNetwork -I/targets/FREMANTLE_ARMEL/usr/include/QtGui -I/targets/FREMANTLE_ARMEL/usr/include/QtXml -I/targets/FREMANTLE_ARMEL/usr/include/QtSql -I/usr/include/Qt3Support -I/targets/FREMANTLE_ARMEL/usr/include -I/targets/FREMANTLE_ARMEL/usr/include -I/opt/mythtv -I../.. -I../../libs -I../../libs/libmyth -I../../libs/libmythtv -I../../libs/libavutil -I../../libs/libavformat -I../../libs/libavcodec -I../../libs/libmythupnp -I../../libs/libmythui -I../../libs/libmythlivemedia -I../../libs/libmythdb -I../../libmythhdhomerun -I../../libs/libmythdvdnav -I. -o main.o main.cpp                                                     
main.cpp:16:26: error: q3textstream.h: No such file or directory                                                                                                               
In file included from lcdserver.h:13,                                                                                                          from main.cpp:26:                                                                                                                                             
serversocket.h:13:22: error: q3socket.h: No such file or directory                                                                                                             
serversocket.h:14:28: error: q3serversocket.h: No such file or directory                                                                                                       
In file included from lcdserver.h:14,                                                                                                        from main.cpp:26:                                                                                                                                             
lcdprocclient.h:6:27: error: q3valuevector.h: No such file or directory                                                                                                         
lcdprocclient.h:11:21: error: Q3PtrList: No such file or directory


andyt12 2010-05-08 11:13

Re: Mythtv for Maemo 5 - N900 port
 
To get past the QT3 stuff in .22 edit programs/programs.pro and comment/remove mythlcdserver and mythtranscode, frontend will then build successfully.

andyt12 2010-05-09 05:02

Re: Mythtv for Maemo 5 - N900 port
 
OK, also got the Xvideo adapter working. The N900 doesnt seem to support the XFree86-VidMode X extension.

In libs/libmythui/mythxdisplay.cpp I modified the function

int MythXDisplay::GetRefreshRate(void)

Commented this

//if (!XF86VidModeGetModeLine(m_disp, m_screen_num, &dot_clock, &mode_line))
//{
// VERBOSE(VB_IMPORTANT, "MythXGetRefreshRate(): "
// "X11 ModeLine query failed");
// return -1;
//}

Added This

mode_line.hdisplay = 800;
mode_line.hsyncstart = 832;
mode_line.hsyncend = 944;
mode_line.htotal = 976;

mode_line.vdisplay = 480;
mode_line.vsyncstart = 490;
mode_line.vsyncend = 495;
mode_line.vtotal = 505;

dot_clock = 29;


Still not usable. Tops 100% CPU. and get pre buffering pauses. The lack of real memory may be causing a lot of swapping to happen also which would slow things down.

I may try overclocking a bit next.

Andrew

Cobra 2010-05-27 12:35

Re: Mythtv for Maemo 5 - N900 port
 
has there been progress on this i would like to test it?

idfx 2010-05-30 03:07

Re: Mythtv for Maemo 5 - N900 port
 
haven't got time to play with this atm(drowning in work).

But I've got some ideas to reduce the prebuffer pauses:

1) if your recordings are on an nfs accessable drive, try to play them directly in mplayer :) this could give u an idea if it is actually the decoding or mythfrontend(can be a memory/processor hog)

2) lower the decoding quality on the n900 frontend (TV-settings -> playback -> Playback profile (3/9) )

3) change the recording profile from MPEG-4 to RTJPEG (TV-settings -> recoding profiles) RTJEG is lower quality, bigger files, but requires only very little process time on decoding in comparison to MPEG-4.

Overclocking could be usefull but i doubt that it would be enough(safe overclock) to solve al problems by itself.
2 bad we cant use the DSP for decode offloading, only the standard media player can :(

andyt12 2010-06-04 04:47

Re: Mythtv for Maemo 5 - N900 port
 
Overclocking did help, but still not 100% got to a 900mhz stable. But I prefer not to overclock if not needed.

Im using DVB so cant change the recording profile there.

I tried playing the file over NFS using Mplayer and its smooth for the most part. I get about 3% idle CPU, so yea just enough. This is with stock clock speed.

Im playing back Pal DVB so 720x576, above the supported res for the standard media player.

I think its possible to be made to work, its over my head though. I would be happy if the UPNP part of the media player worked then I could just transcode and play back with acceleration, but that doesn't work either. I could use another UPNP server but the integrated mythtv one has all the program names instead of just a number.

lappari 2010-08-20 18:12

Re: Mythtv for Maemo 5 - N900 port
 
I got this working. Easy Debian + mythfrontend from repos + alsa -utils and keymapping for esc-key.

Everything is working and in my opinion its rather usable...

idfx 2010-08-20 20:56

Re: Mythtv for Maemo 5 - N900 port
 
did you try livetv? didn't get that working decently in easy debian

If so, could you post your livetv recording profile?

lappari 2010-08-21 10:22

Re: Mythtv for Maemo 5 - N900 port
 
Quote:

Originally Posted by idfx (Post 793448)
did you try livetv? didn't get that working decently in easy debian

If so, could you post your livetv recording profile?


Well, it worked for me with default livetv recording profile. Only playback profile was significant to get livetv working. Best profile is "slim".

I have frontend version 0.23.1.201000710-1 and backend is release-0-23-fixes [25609] .

I have to say that I don't even know how to change Livetv recording profile. If I select recording profiles menu there is two profile groups: "hardware DVB Encoders and transcoders" If I want to use "Low quality"-profile for livetv what should I do ? Some filter etc. ?

I have played with mythtv for couple of years but I use xbmc for frontend because myth's own frontend was so unstable. Backend is more familiar to me ;) (with conax-card sasc-ng and newcs)

thopiekar 2011-06-10 12:08

Re: Mythtv for Maemo 5 - N900 port
 
Are there any changes in this thread? I'll get a N900 next weekend and I would invest the time till that to rebuild some applications for this device..
So MythTV .24 is not available as far as I know, right?

thopiekar 2011-06-10 14:43

Re: Mythtv for Maemo 5 - N900 port
 
tried to compile just the frontend and got this:
Code:

make -C programs
make[1]: Entering directory `/home/thopiekar/mythtv/mythtv-0.24.1/programs'
cd mythavtest/ && make -f Makefile
make[2]: Entering directory `/home/thopiekar/mythtv/mythtv-0.24.1/programs/mythavtest'
ccache distcc g++ -Wl,-O1 -o mythavtest version.o main.o    -L../../libs/libmyth -L../../libs/libmythtv -L../../external/FFmpeg/libavutil -L../../external/FFmpeg/libavcodec -L../../external/FFmpeg/libavcore -L../../external/FFmpeg/libavformat -L../../external/FFmpeg/libswscale -L../../libs/libmythdb -L../../libs/libmythui -L../../libs/libmythupnp -lmythtv-0.24 -lmythswscale -lmythavformat -lmythavcodec -lmythavcore -lmythavutil -lmythupnp-0.24 -lmythdb-0.24 -lmythui-0.24 -lmyth-0.24 -L../../libs/libmythfreemheg -lmythfreemheg-0.24 -lXext -lXinerama -lXxf86vm -lXv -lXrandr -lX11 -lmp3lame -lpulse -lasound -lm -lbz2 -lrt -ldl -lfreetype -lz -L/usr/X11R6/lib -L/usr/local/lib -L/usr/lib -lGLU -lGL -lQtSql -lQtOpenGL -lQtGui -lQtNetwork -lQtDBus -lQtXml -lQtCore -lpthread
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `TVRec::StopRecording(bool)'
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `vtable for TunedInputInfo'
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `TVRec::GetTVRec(unsigned int)'
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `InputInfo::FromStringList(QList<QString>::const_iterator&, QList<QString>::const_iterator)'
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `TVRec::IsBusy(TunedInputInfo*, int) const'
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `vtable for InputInfo'
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `TVRec::StopLiveTV()'
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `InputInfo::operator=(InputInfo const&)'
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `InputInfo::InputInfo(InputInfo const&)'
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `TVRec::GetState() const'
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `InputInfo::InputInfo(QString const&, unsigned int, unsigned int, unsigned int, unsigned int)'
../../libs/libmythtv/libmythtv-0.24.so: undefined reference to `TVRec::RecordPending(ProgramInfo const*, int, bool)'
collect2: ld returned 1 exit status
distcc[24950] ERROR: compile (null) on localhost failed
make[2]: *** [mythavtest] Error 1
make[2]: Leaving directory `/home/thopiekar/mythtv/mythtv-0.24.1/programs/mythavtest'
make[1]: *** [sub-mythavtest-make_default] Error 2
make[1]: Leaving directory `/home/thopiekar/mythtv/mythtv-0.24.1/programs'
make: *** [programs] Error 2


rfeese 2011-06-10 15:46

Re: Mythtv for Maemo 5 - N900 port
 
Christian Marillat has a debianized version of 0.24 that might be a good starting point.

http://debian-multimedia.org/

thopiekar 2011-06-10 16:24

Re: Mythtv for Maemo 5 - N900 port
 
Quote:

Originally Posted by rfeese (Post 1026562)
Christian Marillat has a debianized version of 0.24 that might be a good starting point.

http://debian-multimedia.org/

I'll try this one when I have the device, thanks!

rajil.s 2011-06-11 12:05

Re: Mythtv for Maemo 5 - N900 port
 
Quote:

Originally Posted by thopiekar (Post 1026594)
I'll try this one when I have the device, thanks!

Would be interested to know your findings.

thopiekar 2011-06-18 20:17

Re: Mythtv for Maemo 5 - N900 port
 
I wondered why the mythtv 0.24 package is just able to be build with backend support.. removed it in the compilitation before and now it works..
Still building at the moment will share the results when it has finished ;)

rajil.s 2011-06-18 20:25

Re: Mythtv for Maemo 5 - N900 port
 
Would be interested in the binaries :)

thopiekar 2011-06-18 20:30

Re: Mythtv for Maemo 5 - N900 port
 
hmm there seem to be something wrong with the qt3 libs..

Code:

make[2]: Entering directory `/home/thopiekar/mythtv/mythtv-0.24.1/programs/mythtranscode'
g++ -c -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fomit-frame-pointer -g -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -O3 -D_REENTRANT -DMMX -Di386 -D_GNU_SOURCE -DQT_NO_DEBUG -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++ -I. -I/targets/FREMANTLE_X86/usr/include/QtCore -I/targets/FREMANTLE_X86/usr/include/QtNetwork -I/targets/FREMANTLE_X86/usr/include/QtGui -I/targets/FREMANTLE_X86/usr/include/QtXml -I/targets/FREMANTLE_X86/usr/include/QtSql -I/usr/include/Qt3Support -I/targets/FREMANTLE_X86/usr/include -I/targets/FREMANTLE_X86/usr/include -I/targets/FREMANTLE_X86/usr/local -I../.. -I../../libs -I../../libs/libmyth -I../../libs/libmythtv -I../../external/FFmpeg -I../../libs/libmythupnp -I../../libs/libmythui -I../../libs/libmythlivemedia -I../../libs/libmythdb -I../../libmythhdhomerun -I../../libs/libmythdvdnav -I../../libs/libmythbluray -I../../libs/libmythsamplerate -Ireplex -I../../libs/libavcodec -I../../libs/libavformat -I../../libs/libavutil -I../../libs -I../../libs/libmythmpeg2 -I/usr/X11R6/include -I. -o main.o main.cpp
In file included from main.cpp:24:
mpeg2fix.h:31:21: error: Q3PtrList: No such file or directory
mpeg2fix.h:32:22: error: Q3PtrQueue: No such file or directory
mpeg2fix.h:33:23: error: Q3ValueList: No such file or directory
In file included from ../../libs/libmyth/virtualkeyboard_qt.h:4,
                from ../../libs/libmyth/mythwidgets.h:28,
                from ../../libs/libmyth/settings.h:15,
                from ../../libs/libmythtv/recordingprofile.h:4,
                from transcode.h:1,
                from main.cpp:23:
../../libs/libmyth/mythdialogs.h: In static member function 'static DialogCode MythPopupBox::Show2ButtonPopup(MythMainWindow*, const QString&, const QString&, const QString&, const QString&, DialogCode)':
../../libs/libmyth/mythdialogs.h:182: warning: 'ShowButtonPopup' is deprecated (declared at ../../libs/libmyth/mythdialogs.h:189)
In file included from main.cpp:24:
mpeg2fix.h: At global scope:
mpeg2fix.h:192: error: 'Q3PtrList' has not been declared
mpeg2fix.h:192: error: expected ',' or '...' before '<' token
mpeg2fix.h:196: error: ISO C++ forbids declaration of 'Q3PtrList' with no type
mpeg2fix.h:196: error: expected ';' before '<' token
mpeg2fix.h:231: error: ISO C++ forbids declaration of 'Q3PtrList' with no type
mpeg2fix.h:231: error: expected ';' before '<' token
mpeg2fix.h:234: error: ISO C++ forbids declaration of 'Q3PtrList' with no type
mpeg2fix.h:234: error: expected ';' before '<' token
mpeg2fix.h:235: error: 'Q3PtrList' was not declared in this scope
mpeg2fix.h:235: error: template argument 2 is invalid
mpeg2fix.h:235: error: expected unqualified-id before '>' token
mpeg2fix.h:236: error: ISO C++ forbids declaration of 'Q3PtrQueue' with no type
mpeg2fix.h:236: error: expected ';' before '<' token
mpeg2fix.h:237: error: ISO C++ forbids declaration of 'Q3PtrQueue' with no type
mpeg2fix.h:237: error: expected ';' before '<' token
mpeg2fix.h:238: error: ISO C++ forbids declaration of 'Q3PtrListIterator' with no type
mpeg2fix.h:238: error: expected ';' before '<' token
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/thopiekar/mythtv/mythtv-0.24.1/programs/mythtranscode'
make[1]: *** [sub-mythtranscode-make_default] Error 2
make[1]: Leaving directory `/home/thopiekar/mythtv/mythtv-0.24.1/programs'
make: *** [programs] Error 2

not familiar with that message but I would say that the widgets are missing..

rajil.s 2011-06-18 20:39

Re: Mythtv for Maemo 5 - N900 port
 
dont think there are any QT3 libs on N900. It is unfortunate myth-0.24 still needs qt3 support. Can you try compiling myth-0.25 from git to check if it still needs QT3?

thopiekar 2011-06-18 20:41

Re: Mythtv for Maemo 5 - N900 port
 
got the package: http://maemo.org/packages/view/libqt4-qt3support/
another try ;)

Edit:
http://maemo.org/packages/search/?or...Bvalue%5D=same

Edit2:
Missed that these packages are located at diablo..

Btw. I really want to stay at 0.24 because i've got atm a almost perfect setup of a myth-backend in my network.. I'll take the libqt3* packages an recompile them in fremantle..

thopiekar 2011-06-19 11:31

Re: Mythtv for Maemo 5 - N900 port
 
hmm I don't know on what the qt3 libs depend, but I can't build them on fremantle.. While checking MythTV's bug tracking system I found out that they are working on making it qt3 independent.. Well when the build would work I would even think about upgrading my current backend setup in my network ;)

when building qt3-mt from diablo or taken from ubuntu natty I get this:
Code:

make[4]: Entering directory `/home/thopiekar/qt3/qt-x11-free-3.3.8-b/tools/designer/designer'
/home/thopiekar/qt3/qt-x11-free-3.3.8-b/bin/uic -L /home/thopiekar/qt3/qt-x11-free-3.3.8-b/plugins listboxeditor.ui -o listboxeditor.h
/home/thopiekar/qt3/qt-x11-free-3.3.8-b/bin/uic: error while loading shared libraries: libqt-mt.so.3: cannot open shared object file: No such file or directory
make[4]: ***[listboxeditor.h] Error 127
make[4]: Leaving directory `/home/thopiekar/qt3/qt-x11-free-3.3.8-b/tools/designer/designer'
make[3]: *** [sub-designer] Error 2
make[3]: Leaving directory `/home/thopiekar/qt3/qt-x11-free-3.3.8-b/tools/designer'
make[2]: *** [sub-designer] Error 2
make[2]: Leaving directory `/home/thopiekar/qt3/qt-x11-free-3.3.8-b/tools'
make[1]: *** [sub-tools] Error 2
make[1]: Leaving directory `/home/thopiekar/qt3/qt-x11-free-3.3.8-b'
make: *** [init] Error 2

if someone knows why that happens it would be very helpful for me getting 0.24 working..

0.25 is at the moment building ;)

PS: talking at the moment with the #mythtv people.. the mythtv core isn't using QT3* widgets anymore.. just components like mythmusic are using them which are now going to be rewritten..
I'll see if there is a chance to disable them. However I'll also take a look to provide these QT3* widgets in fremantle's Qt4 libs.. Seems that the maintainer of the package disabled building these QT3* widgets to make Qt4 light-weighter :/

PSS: Qt3-Support in 0.25 still needed :/

PSSS: Found the problem in the x11-qt4 package in debain/rules:
They used the confflag "-no-qt3support" :mad:

PSSSS: Getting now more closer.. Found out that disabling mythtranscode should solve it.. I'll make an update when it worked and got a package for it or when it failed again :|


| Prev |   1   2   3   | Next
All times are GMT. The time now is 21:20.

vBulletin® Version 3.8.8