Welcome! Log In Create A New Profile

Advanced

MythTV is now working on the A10!

Posted by gnexus 
MythTV is now working on the A10!
July 01, 2012 08:36AM
I just now got it all set up on my new Sid install!

Right now I am watching in f/s a low-res video from the Mythbackend also on the A10! The video is a bit choppy, but the audio is smooth.

Earlier I was watching a recording from my Mythbackend which is hosted on a GoFlex Net. The frontend settings still need to be optimized for the lack of video hardware acceleration. So the video was in slow motion. The audio settings were also incorrect then. So then I had no sound. But the video was playing. The A10 never locked up even after 1 hour of watching the recording. So MythTV is getting there.

Until we get the h/w acceleration working the frontend can prob. just be configured for a low res window. While currently playback is not so great you can still do all the other things in the frontend that Myth provides, like browsing the schedules, setting and managing recordings, and everything else. It is only a matter of time until video playback is fixed. Using Android MythTV recordings play back perfectly even at 1080p.

The A10 works also as a Mythbackend. There are no video issues to contend with. But the kernel still needs to be recompiled with the dvb and v4l modules. I certainly would not recommend running both Mythfrontend and Mythbackend on the same host, but it does work like that now. There is really no reason to do that, however. Use just one or the other on a single host, but not both at the same time. A10 devices are inexpensive enough have two...



Edited 1 time(s). Last edit at 07/01/2012 06:51PM by gnexus.
Re: MythTV is now working on the A10!
July 01, 2012 10:07AM
What happens when the MythTV mysql configuration is incorrect:

Fatal Error

!!NoTrans: Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045]

Backtrace
Array
(
[0] => Array
(
[file] => /usr/share/mythtv/mythweb/classes/Database/Query/mysql.php
[line] => 63
[function] => error
[class] => Database
[object] => Database_mysql Object
(
[dbh] =>
[error] => Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045]
[err] => Access denied for user 'mythtv'@'localhost' (using password: YES)
[errno] => 1045
[last_sh] => Database_Query_mysql Object
(
[dbh] =>
[query] => Array
(
[0] => SET NAMES utf8;
)

[last_query] => SET NAMES utf8;
[warnings] => Array
(
)

[num_args_needed] => 0
[num_rows] =>
[affected_rows] =>
[insert_id] =>
[db] => Database_mysql Object
*RECURSION*
)

[fatal_errors] => 1
[query_count] => 0
[query_time] => 0
[global_name] =>
[destruct_handlers] => Array
(
)

)

[type] => ->
[args] => Array
(
)

)

[1] => Array
(
[file] => /usr/share/mythtv/mythweb/classes/Database.php
[line] => 259
[function] => execute
[class] => Database_Query_mysql
[object] => Database_Query_mysql Object
(
[dbh] =>
[query] => Array
(
[0] => SET NAMES utf8;
)

[last_query] => SET NAMES utf8;
[warnings] => Array
(
)

[num_args_needed] => 0
[num_rows] =>
[affected_rows] =>
[insert_id] =>
[db] => Database_mysql Object
(
[dbh] =>
[error] => Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045]
[err] => Access denied for user 'mythtv'@'localhost' (using password: YES)
[errno] => 1045
[last_sh] => Database_Query_mysql Object
*RECURSION*
[fatal_errors] => 1
[query_count] => 0
[query_time] => 0
[global_name] =>
[destruct_handlers] => Array
(
)

)

)

[type] => ->
[args] => Array
(
[0] => Array
(
)

)

)

[2] => Array
(
[file] => /usr/share/mythtv/mythweb/classes/Database.php
[line] => 124
[function] => query
[class] => Database
[object] => Database_mysql Object
(
[dbh] =>
[error] => Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045]
[err] => Access denied for user 'mythtv'@'localhost' (using password: YES)
[errno] => 1045
[last_sh] => Database_Query_mysql Object
(
[dbh] =>
[query] => Array
(
[0] => SET NAMES utf8;
)

[last_query] => SET NAMES utf8;
[warnings] => Array
(
)

[num_args_needed] => 0
[num_rows] =>
[affected_rows] =>
[insert_id] =>
[db] => Database_mysql Object
*RECURSION*
)

[fatal_errors] => 1
[query_count] => 0
[query_time] => 0
[global_name] =>
[destruct_handlers] => Array
(
)

)

[type] => ->
[args] => Array
(
[0] => SET NAMES utf8;
)

)

[3] => Array
(
[file] => /usr/share/mythtv/mythweb/includes/database.php
[line] => 49
[function] => connect
[class] => Database
[type] => ::
[args] => Array
(
[0] => mythconverg
[1] => mythtv
[2] => mythtv
[3] => localhost
[4] =>
[5] => mysql
)

)

[4] => Array
(
[file] => /usr/share/mythtv/mythweb/includes/init.php
[line] => 40
[args] => Array
(
[0] => /usr/share/mythtv/mythweb/includes/database.php
)

[function] => require_once
)

[5] => Array
(
[file] => /usr/share/mythtv/mythweb/mythweb.php
[line] => 20
[args] => Array
(
[0] => /usr/share/mythtv/mythweb/includes/init.php
)

[function] => require_once
)

)
!!

If you choose to submit a bug report please make sure to include a brief description of what you were doing, along with the following backtrace as an attachment (please don\'t just paste the whole thing into the ticket)
datetime: 2012-07-01 15:04:15 (UTC) errornum: 256 error type: User Error error string: !!NoTrans: Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045] Backtrace Array ( [0] => Array ( [file] => /usr/share/mythtv/mythweb/classes/Database/Query/mysql.php [line] => 63 [function] => error [class] => Database [object] => Database_mysql Object ( [dbh] => [error] => Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045] [err] => Access denied for user 'mythtv'@'localhost' (using password: YES) [errno] => 1045 [last_sh] => Database_Query_mysql Object ( [dbh] => [query] => Array ( [0] => SET NAMES utf8; ) [last_query] => SET NAMES utf8; [warnings] => Array ( ) [num_args_needed] => 0 [num_rows] => [affected_rows] => [insert_id] => [db] => Database_mysql Object *RECURSION* ) [fatal_errors] => 1 [query_count] => 0 [query_time] => 0 [global_name] => [destruct_handlers] => Array ( ) ) [type] => -> [args] => Array ( ) ) [1] => Array ( [file] => /usr/share/mythtv/mythweb/classes/Database.php [line] => 259 [function] => execute [class] => Database_Query_mysql [object] => Database_Query_mysql Object ( [dbh] => [query] => Array ( [0] => SET NAMES utf8; ) [last_query] => SET NAMES utf8; [warnings] => Array ( ) [num_args_needed] => 0 [num_rows] => [affected_rows] => [insert_id] => [db] => Database_mysql Object ( [dbh] => [error] => Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045] [err] => Access denied for user 'mythtv'@'localhost' (using password: YES) [errno] => 1045 [last_sh] => Database_Query_mysql Object *RECURSION* [fatal_errors] => 1 [query_count] => 0 [query_time] => 0 [global_name] => [destruct_handlers] => Array ( ) ) ) [type] => -> [args] => Array ( [0] => Array ( ) ) ) [2] => Array ( [file] => /usr/share/mythtv/mythweb/classes/Database.php [line] => 124 [function] => query [class] => Database [object] => Database_mysql Object ( [dbh] => [error] => Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045] [err] => Access denied for user 'mythtv'@'localhost' (using password: YES) [errno] => 1045 [last_sh] => Database_Query_mysql Object ( [dbh] => [query] => Array ( [0] => SET NAMES utf8; ) [last_query] => SET NAMES utf8; [warnings] => Array ( ) [num_args_needed] => 0 [num_rows] => [affected_rows] => [insert_id] => [db] => Database_mysql Object *RECURSION* ) [fatal_errors] => 1 [query_count] => 0 [query_time] => 0 [global_name] => [destruct_handlers] => Array ( ) ) [type] => -> [args] => Array ( [0] => SET NAMES utf8; ) ) [3] => Array ( [file] => /usr/share/mythtv/mythweb/includes/database.php [line] => 49 [function] => connect [class] => Database [type] => :: [args] => Array ( [0] => mythconverg [1] => mythtv [2] => mythtv [3] => localhost [4] => [5] => mysql ) ) [4] => Array ( [file] => /usr/share/mythtv/mythweb/includes/init.php [line] => 40 [args] => Array ( [0] => /usr/share/mythtv/mythweb/includes/database.php ) [function] => require_once ) [5] => Array ( [file] => /usr/share/mythtv/mythweb/mythweb.php [line] => 20 [args] => Array ( [0] => /usr/share/mythtv/mythweb/includes/init.php ) [function] => require_once ) ) !! filename: /usr/share/mythtv/mythweb/classes/Database/Query/mysql.php error line: 64 ========================================================================== Backtrace: file: /usr/share/mythtv/mythweb/classes/Database/Query/mysql.php line: 64 class: function: trigger_error type: args: Array ( [0] => Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045] Backtrace Array ( [0] => Array ( [file] => /usr/share/mythtv/mythweb/classes/Database/Query/mysql.php [line] => 63 [function] => error [class] => Database [object] => Database_mysql Object ( [dbh] => [error] => Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045] [err] => Access denied for user 'mythtv'@'localhost' (using password: YES) [errno] => 1045 [last_sh] => Database_Query_mysql Object ( [dbh] => [query] => Array ( [0] => SET NAMES utf8; ) [last_query] => SET NAMES utf8; [warnings] => Array ( ) [num_args_needed] => 0 [num_rows] => [affected_rows] => [insert_id] => [db] => Database_mysql Object *RECURSION* ) [fatal_errors] => 1 [query_count] => 0 [query_time] => 0 [global_name] => [destruct_handlers] => Array ( ) ) [type] => -> [args] => Array ( ) ) [1] => Array ( [file] => /usr/share/mythtv/mythweb/classes/Database.php [line] => 259 [function] => execute [class] => Database_Query_mysql [object] => Database_Query_mysql Object ( [dbh] => [query] => Array ( [0] => SET NAMES utf8; ) [last_query] => SET NAMES utf8; [warnings] => Array ( ) [num_args_needed] => 0 [num_rows] => [affected_rows] => [insert_id] => [db] => Database_mysql Object ( [dbh] => [error] => Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045] [err] => Access denied for user 'mythtv'@'localhost' (using password: YES) [errno] => 1045 [last_sh] => Database_Query_mysql Object *RECURSION* [fatal_errors] => 1 [query_count] => 0 [query_time] => 0 [global_name] => [destruct_handlers] => Array ( ) ) ) [type] => -> [args] => Array ( [0] => Array ( ) ) ) [2] => Array ( [file] => /usr/share/mythtv/mythweb/classes/Database.php [line] => 124 [function] => query [class] => Database [object] => Database_mysql Object ( [dbh] => [error] => Access denied for user 'mythtv'@'localhost' (using password: YES) [#1045] [err] => Access denied for user 'mythtv'@'localhost' (using password: YES) [errno] => 1045 [last_sh] => Database_Query_mysql Object ( [dbh] => [query] => Array ( [0] => SET NAMES utf8; ) [last_query] => SET NAMES utf8; [warnings] => Array ( ) [num_args_needed] => 0 [num_rows] => [affected_rows] => [insert_id] => [db] => Database_mysql Object *RECURSION* ) [fatal_errors] => 1 [query_count] => 0 [query_time] => 0 [global_name] => [destruct_handlers] => Array ( ) ) [type] => -> [args] => Array ( [0] => SET NAMES utf8; ) ) [3] => Array ( [file] => /usr/share/mythtv/mythweb/includes/database.php [line] => 49 [function] => connect [class] => Database [type] => :: [args] => Array ( [0] => mythconverg [1] => mythtv [2] => mythtv [3] => localhost [4] => [5] => mysql ) ) [4] => Array ( [file] => /usr/share/mythtv/mythweb/includes/init.php [line] => 40 [args] => Array ( [0] => /usr/share/mythtv/mythweb/includes/database.php ) [function] => require_once ) [5] => Array ( [file] => /usr/share/mythtv/mythweb/mythweb.php [line] => 20 [args] => Array ( [0] => /usr/share/mythtv/mythweb/includes/init.php ) [function] => require_once ) ) [1] => 256 ) file: /usr/share/mythtv/mythweb/classes/Database.php line: 259 class: Database_Query_mysql function: execute type: -> args: Array ( [0] => Array ( ) ) file: /usr/share/mythtv/mythweb/classes/Database.php line: 124 class: Database function: query type: -> args: Array ( [0] => SET NAMES utf8; ) file: /usr/share/mythtv/mythweb/includes/database.php line: 49 class: Database function: connect type: :: args: Array ( [0] => mythconverg [1] => mythtv [2] => mythtv [3] => localhost [4] => [5] => mysql ) file: /usr/share/mythtv/mythweb/includes/init.php line: 40 class: function: require_once type: args: Array ( [0] => /usr/share/mythtv/mythweb/includes/database.php ) file: /usr/share/mythtv/mythweb/mythweb.php line: 20 class: function: require_once type: args: Array ( [0] => /usr/share/mythtv/mythweb/includes/init.php ) ========================================================================== $_SESSION: Array ( [language] => English ) ========================================================================== $_SERVER: Array ( [USER] => www-data [HOME] => /var/www [FCGI_ROLE] => RESPONDER [QUERY_STRING] => [REQUEST_METHOD] => GET [CONTENT_TYPE] => [CONTENT_LENGTH] => [SCRIPT_FILENAME] => /var/www/mythweb/mythweb.php [SCRIPT_NAME] => /mythweb/mythweb.php [REQUEST_URI] => /mythweb/status [DOCUMENT_URI] => /mythweb/mythweb.php/status [DOCUMENT_ROOT] => /var/www [SERVER_PROTOCOL] => HTTP/1.1 [GATEWAY_INTERFACE] => CGI/1.1 [SERVER_SOFTWARE] => nginx/1.2.1 [REMOTE_ADDR] => 192.168.1.109 [REMOTE_PORT] => 56845 [SERVER_ADDR] => 192.168.1.114 [SERVER_PORT] => 80 [SERVER_NAME] => localhost [HTTPS] => [REDIRECT_STATUS] => 200 [PATH_INFO] => /status [db_server] => localhost [db_name] => mythconverg [db_login] => mythtv [db_password] => mythtv [hostname] => ds01 [HTTP_HOST] => 192.168.1.114 [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0 [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5 [HTTP_ACCEPT_ENCODING] => gzip, deflate [HTTP_DNT] => 1 [HTTP_CONNECTION] => keep-alive [PHP_SELF] => /mythweb/mythweb.php/status [REQUEST_TIME_FLOAT] => 1341155054.9393 [REQUEST_TIME] => 1341155054 [STATUS] => 200 ) ========================================================================== $constant_list["user"]: Array ( [ERROR] => 512 [E_ASSERT_ERROR] => 4096 [FATAL] => 256 [PHP_MIN_VERSION] => 5.3 [WARNING] => 1024 )



Edited 1 time(s). Last edit at 07/01/2012 12:00PM by gnexus.
Re: MythTV is now working on the A10!
July 01, 2012 12:01PM
Mythbackend is now working, and I restored a backup to it from the GoFlex:

Executing command:
'mysql' --defaults-extra-file='/tmp/yKVN4rUL4a' --host='localhost' --port='3306' --user='mythtv' 'mythconverg'

mysql exited with status: 0

Restored 3002 of 3002 lines.

Successfully restored backup.
Re: MythTV is now working on the A10!
July 02, 2012 06:41AM
MythTV is now working very nicely for me on the A10. Both mythbackend and frontend are now running on it, and I can play videos, music, and recorded tv. The frontend needs to use a windowed mode, however, due to the lack of VPU drivers. There are other issues as well:
  • DVB and v4l drivers are missing from the kernel, so tv cards do not work yet
  • mythweb cannot access mythbackend due to the kenel "Paranoid Networking."

Otherwise everything seems to work well. The mythweb problem can be overcome by using a SVN version of PHP-FPM, which now allows PHP to be run as root (not recommended for gen. usage). I will try to rebuild the kernel again shortly to get the DVB and v4l drivers in it. Removing the kenel "Paranoid Networking" configs will be more difficult.
Re: MythTV is now working on the A10!
July 02, 2012 09:44AM
I have Mythfrontend playing video smoothly now from my GoFlex Net mythbackend! It is playing in a 480x320 window. Audio works fine. The video is almost perfect, but the hdmi audio pops occasionally. Overall it is perfectly usable except for not being fullscreen.

I am going to include the MythTV packages on my Debian Sid SD image so people can test it and hopefully improve it. For testing purposes I will include the MPEG video clip from the Ubuntu SD image, and also the MP3 from that SD to test in MythMusic. A recording will also be included in the MythTV recordings directory and in the installed MythTV backend database.

Wow. It is looking nice!

Anyway, as there is no room on the SD for a large video file I will need to transcode the MPEG recording to a smaller file size. It will be included in /home/mythtv/video/recordings, and the recording will appear in the MythTV recordings.

My next step after I release the Debian Sid SD image will be to get a working kernel built for the A10 with driver modules for DVB and V4L devices.
Re: MythTV is now working on the A10!
July 03, 2012 06:24PM
root@T-01:/home/mythtv# mythfilldatabase

Mythfilldatabase is running!

It takes 1 hour or so on my laptop.

It takes at least 6 hours or so on the GoFlex Net.

Lets see how long it takes on the A10. . .
2012-07-04 00:20:19.219338 C  mythfilldatabase version:  [v0.25.1] www.mythtv.org
2012-07-04 00:20:19.219495 C  Qt version: compile: 4.8.2, runtime: 4.8.2

It seems we have experienced a setback:
2012-07-04 00:29:51.684542 I  Grabber prefers method: allatonce
2012-07-04 00:29:52.628503 I  XMLTV config file is: /root/.mythtv/DVB-S_Astra_28.2-A.xmltv
Killed
Mythfilldatabase is dead!



Edited 1 time(s). Last edit at 07/04/2012 07:11AM by gnexus.
Re: MythTV is now working on the A10!
July 04, 2012 07:32AM
Mythweb is getting blocked by the kernel "Paranoid Networking" :

The Mythweb title bar shows with all the icons and such:
MythTV:     Listings   |   Searches   |   Recording Schedules (Manual, Custom)   |   Upcoming Recordings   |   Recorded Programs   |   Backend Status
But below you have this:
Error

Unable to connect to the master backend at 127.0.0.1:6543.
Is it running?

The backend is running as root. But PHP cannot run as root in this version. There is an SVN version of PHP which allows root to be used. That should eliminate the Mythweb problems until the kernel is fixed.
Re: MythTV is now working on the A10!
July 04, 2012 08:12AM
Would you believe there's another MythTV bug caused by the current A10 kernel?

Mythfrontend connects fine to other MythTV backends as root, but
you must be root to use mythfrontend with the local backend. . .

Go figure. . .

Would somebody please d/l the A10 kernel source and fix it:
rm -rf "Android kernel crap"
Re: MythTV is now working on the A10!
July 04, 2012 09:22AM
SUCCESS!

I now have mythfrontend playing a recording from mythbackend on the same A10 host!

Playback in a window is almost as smooth as using a backend from another host.

Due to the kernel's "paranoid networking" you have to do everything as root. Even playing an MP3 in Rhythmbox you need to be root. . .

Hopefully we can get the VPU drivers and kernel fixed soon.
Re: MythTV is now working on the A10!
July 04, 2012 02:35PM
While updating the capture cards in the database I accidentally deleted the entire capturecard table!

Ouch! That may delay the Debian image release another hour or so. . .
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: