View Single Post
Posts: 35 | Thanked: 18 times | Joined on Dec 2007
#1
EDIT: Please see the new thread on the initial port

Hi everyone!

Inspired by the QT4 port and running the UI over SSH on the n810, I decided I was going to try to port MythTV to OS2008. Yes I'm aware of mobile mythtv, but it's not a substitute for a real frontend, and I don't see any reason why not to use the full frontend!

To make life "easy" I decided to try to port the mythtv-QT4 branch, which only needs QT4 (like the next version of mythtv 0.22 will). At the moment the branch works fine with mythtv 0.21 servers.

In the end it turns out the maemo QT4 libqt4-sql port doesn't include mysql support! So I had to recompile QT4 and add it in, in addition I have been working on porting QT3, and have it compiling, but have a minor bug in the packaging to fix before I can release that. So at this point I'll probably be going back and looking at MythTV 0.21 with QT3 done.

I've got a preliminary port of both the backend and frontend together in the past few days. I've only tested out the frontend so far and I have some teaser pics:









The UI seems to be working fine and is fast and responsive (sorry for the ugly theme, but it is the default for some reason - I much prefer mythcenter). However live previews aren't showing (although from the log it looks like they are trying to play).

Similarly playing video using XV isn't showing either. There also isn't any audible audio:

-bash-3.2$ DISPLAY=:0 mythfrontend.real --verbose libav
2008-03-20 06:29:50.841 Using runtime prefix = /usr, libdir = /usr/lib
2008-03-20 06:29:55.029 DPMS is disabled.
2008-03-20 06:29:55.051 Empty LocalHostName.
2008-03-20 06:29:55.053 Using localhost value of Nokia-N810-50-2
2008-03-20 06:29:55.062 Testing network connectivity to 192.168.2.134
2008-03-20 06:29:55.139 New DB connection, total: 1
2008-03-20 06:29:55.173 Connected to database 'mythconverg' at host: 192.168.2.134
2008-03-20 06:29:55.196 Closing DB connection named 'DBManager0'
2008-03-20 06:29:55.215 Total desktop dim: 800x480, with 1 screen[s].
2008-03-20 06:29:55.240 Connected to database 'mythconverg' at host: 192.168.2.134
2008-03-20 06:29:55.261 Using screen 0, 800x480 at 0,0
2008-03-20 06:29:55.445 New DB connection, total: 2
2008-03-20 06:29:55.466 Connected to database 'mythconverg' at host: 192.168.2.134
2008-03-20 06:29:55.499 mythfrontend version: 0.22.20080313-2 www.mythtv.org
2008-03-20 06:29:55.505 Enabled verbose msgs: important general libav
2008-03-20 06:30:02.827 Total desktop dim: 800x480, with 1 screen[s].
2008-03-20 06:30:02.854 Using screen 0, 800x480 at 0,0
2008-03-20 06:30:02.894 Switching to square mode (G.A.N.T)
2008-03-20 06:30:03.005 Using the Qt painter
2008-03-20 06:30:03.012 JoystickMenuClient Error: Joystick disabled - Failed to read /home/user/.mythtv/joystickmenurc
2008-03-20 06:30:15.478 Loading from: /usr/share/mythtv/themes/G.A.N.T/base.xml
2008-03-20 06:30:15.883 Loading from: /usr/share/mythtv/themes/default/base.xml
2008-03-20 06:30:17.550 Registering Internal as a media playback plugin.
2008-03-20 06:33:06.624 XMLParse::LoadTheme using /usr/share/mythtv/themes/G.A.N.T/ui.xml
2008-03-20 06:33:07.614 Connecting to backend server: 192.168.2.134:6543 (try 1 of 5)
2008-03-20 06:33:07.631 Using protocol version 40
2008-03-20 06:33:14.762 AFD: Opened codec 0x2ad020, id(MPEG2VIDEO) type(Video)
2008-03-20 06:33:14.766 AFD: codec MP2 has 2 channels
2008-03-20 06:33:14.770 AFD: Opened codec 0x2b0000, id(MP2) type(Audio)
2008-03-20 06:33:14.780 Input #0, mpeg, from 'myth://192.168.2.134:6543/1006_20080320003500.mpg':
2008-03-20 06:33:14.783 Duration: 00:31:57.6, start: 0.289389, bitrate: 5187 kb/s
2008-03-20 06:33:14.788 Stream #0.0[0x1e0], 1/90000: Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 1001/30000, 6000 kb/s, 29.97 tb(r)
2008-03-20 06:33:14.791 Stream #0.1[0x1c0], 1/90000: Audio: mp2, 32000 Hz, stereo, 384 kb/s
2008-03-20 06:33:19.931 TV: Attempting to change from None to WatchingPreRecorded
QSocketNotifier: Can only be used with threads started with QThread
2008-03-20 06:33:23.039 AFD: Opened codec 0x33df20, id(MPEG2VIDEO) type(Video)
2008-03-20 06:33:23.042 AFD: codec MP2 has 2 channels
2008-03-20 06:33:23.046 AFD: Opened codec 0x3518c0, id(MP2) type(Audio)
2008-03-20 06:33:23.050 Input #0, mpeg, from 'myth://192.168.2.134:6543/1006_20080320003500.mpg':
2008-03-20 06:33:23.055 Duration: 00:31:57.6, start: 0.289389, bitrate: 5187 kb/s
2008-03-20 06:33:23.058 Stream #0.0[0x1e0], 1/90000: Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 1001/30000, 6000 kb/s, 29.97 tb(r)
2008-03-20 06:33:23.066 Stream #0.1[0x1c0], 1/90000: Audio: mp2, 32000 Hz, stereo, 384 kb/s
2008-03-20 06:33:24.290 AFD: Opened codec 0x2b2770, id(MPEG2VIDEO) type(Video)
2008-03-20 06:33:24.291 AFD: codec MP2 has 2 channels
2008-03-20 06:33:24.292 AFD: Opened codec 0x2a8e80, id(MP2) type(Audio)
2008-03-20 06:33:25.786 NVP: Prebuffer wait timed out 10 times.
2008-03-20 06:33:26.127 Opening audio device 'default'. ch 2(2) sr 32000
2008-03-20 06:33:26.135 Opening ALSA audio device 'default'.
2008-03-20 06:33:27.357 NVP: Prebuffer wait timed out 10 times.
2008-03-20 06:33:28.848 NVP: Prebuffer wait timed out 10 times.
2008-03-20 06:33:30.426 NVP: Prebuffer wait timed out 10 times.
2008-03-20 06:33:31.723 NVP: prebuffering pause
2008-03-20 06:33:33.575 NVP: prebuffering pause
2008-03-20 06:33:35.522 NVP: prebuffering pause
2008-03-20 06:33:37.012 NVP: Prebuffer wait timed out 10 times.
2008-03-20 06:33:37.637 NVP: prebuffering pause
2008-03-20 06:33:39.161 NVP: Prebuffer wait timed out 10 times.
2008-03-20 06:33:39.645 NVP: prebuffering pause
2008-03-20 06:33:40.645 TV Error: StartPlayer(): NVP is not playing after 20000 msec
2008-03-20 06:33:40.840 TV: Changing from None to WatchingPreRecorded
2008-03-20 06:33:41.145 NVP: Prebuffer wait timed out 10 times.
2008-03-20 06:33:41.418 TV: Attempting to change from WatchingPreRecorded to None
2008-03-20 06:33:41.629 NVP: prebuffering pause
2008-03-20 06:33:43.138 NVP: Prebuffer wait timed out 10 times.
2008-03-20 06:33:43.668 NVP: prebuffering pause
2008-03-20 06:33:45.178 NVP: Prebuffer wait timed out 10 times.
...
This particular recording is way too high a bitrate/res but I've tried a 320x240 1000kb/s recording with the same result. I have also tried a very small RTJpeg transcode which should have been the best bet and it didn't work either, so this is definitely not a question of the n810 being able to play the video.

This might actually just be a bug of the current svn version of mythtv-qt4 in fact, key is:

QSocketNotifier: Can only be used with threads started with QThread
This is an error in the udp signal notifier, so it looks like it's hanging when waiting for the network stream.

Anyway I'm starting up a project on the garage for it, and as soon as that project is approved I'll probably start to post some code. I'd greatly appreciate it if anyone around here who knows more about the DSP and video on the n810 helped me look into things at that point.

Last edited by yani; 2008-03-26 at 04:36.
 

The Following 7 Users Say Thank You to yani For This Useful Post: