• 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
Testing help needed for Myth 0.25 support
#76
Is anyone able to provide a compiled Windows version to test more?
Reply
#77
First time using this repo and everything seems to have compiled ok and I can sucessfully open the MythTV client and browse all the recordings on my 0.25 version backend, however when I attempt to play any recording I get the following error.

20:16:00 T:139743111825152 ERROR: InputStream: Error opening, myth://mythtv:[email protected]:6543/tvshows/Star Trek: Next Generation/1011_20120419203300.mp4
20:16:00 T:139743111825152 DEBUG: DoWork - trying to extract filestream details from video file myth://mythtv:[email protected]:6543/tvshows/Star Trek: Next Generation/1011_20120412203500.mp4
20:16:00 T:139743111825152 DEBUG: DoWork - trying to extract thumb from video file myth://mythtv:[email protected]:6543/tvshows/Star Trek: Next Generation/1011_20120419213500.mp4
20:16:00 T:139743111825152 DEBUG: AquireSession - Aquired existing MythTV session: 0x7f18341e26b0
20:16:00 T:139743111825152 INFO: (cmyth)__cmyth_rcv_proginfo: got recording info
20:16:00 T:139743111825152 ERROR: (cmyth)__cmyth_rcv_long_long: cmyth_rcv_long_long() failed (9)
20:16:00 T:139743111825152 ERROR: (cmyth)cmyth_conn_connect_file: (length) cmyth_rcv_u_long_long() failed (22)
20:16:00 T:139743111825152 ERROR: SetupRecording - unable to connect to file
20:16:00 T:139743111825152 DEBUG: ReleaseSession - Releasing MythTV session: 0x7f18341e26b0


I'm using the latest version of MythTV in the Ubuntu 12.04 (Precise) release - 2:0.25.0+fixes.20120429.ae7ac79-0ubuntu0mythbuntu2

This is the mythbackend log....

Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1360 (HandleAnnounce) MainServer::ANN Playback
Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1362 (HandleAnnounce) adding: xbmcbuntu as a client (events: 0)
Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1475 (HandleAnnounce) MainServer::HandleAnnounce FileTransfer
Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1477 (HandleAnnounce) adding: xbmcbuntu as a remote file transfer
Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1475 (HandleAnnounce) MainServer::HandleAnnounce FileTransfer
Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1477 (HandleAnnounce) adding: xbmcbuntu as a remote file transfer
Apr 30 20:16:00 mythtvserver mythbackend[3010]: C ProcessRequest mainserver.cpp:1259 (HandleVersion) MainServer::HandleVersion - Client speaks protocol version 8 but we speak 72!
Apr 30 20:16:00 mythtvserver mythbackend[3010]: W ProcessRequest mainserver.cpp:5801 (connectionClosed) MainServer: Unknown socket closing MythSocket(0x23d0f00)

Any suggestions on what to do from here?
Reply
#78
@rdoac, I've just pushed some more updates to github. These will need tidying but would appreciate if you could test with 0.25.

I think I've now resolved the only other functional difference that I could see between the old working method and the last tested method. The type of file length was being passed with the correct type in the old method, e.g. the native method signature expected an unsiged long long to be passed. The last tested method passed an unsigned long long that was then cast to a signed long long and handed off to a method that expected long long.

Anyway, I've removed the existing #define methods that did on the fly casts in favour of using the already existing methods that were supposed to do the same thing. I've tested that this still works with Myth 0.24 (not exhaustively but with enough files that I fixed some problems that I thought the code might of had) so at least the existing areas appear to still be working. I'm not entirely sure what the point of those #define method signatures were since there were proper methods already in existence.

Hopefully this will resolve the problems with 0.25 support but it's nearly midnight here now so I might still be missing something. Let me know how it goes. Please paste a log to pastebin either way.

I'll look at the channels issue once this playback problem is sorted. On that issue, can you post a screenshot listing the tuners that are setup. From Mythfrontend -> Information Center -> System Status -> Tuner Status.
Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
Reply
#79
(2012-04-30, 12:24)rwats2011nz Wrote: First time using this repo and everything seems to have compiled ok and I can sucessfully open the MythTV client and browse all the recordings on my 0.25 version backend, however when I attempt to play any recording I get the following error.

20:16:00 T:139743111825152 ERROR: InputStream: Error opening, myth://mythtv:[email protected]:6543/tvshows/Star Trek: Next Generation/1011_20120419203300.mp4
20:16:00 T:139743111825152 DEBUG: DoWork - trying to extract filestream details from video file myth://mythtv:[email protected]:6543/tvshows/Star Trek: Next Generation/1011_20120412203500.mp4
20:16:00 T:139743111825152 DEBUG: DoWork - trying to extract thumb from video file myth://mythtv:[email protected]:6543/tvshows/Star Trek: Next Generation/1011_20120419213500.mp4
20:16:00 T:139743111825152 DEBUG: AquireSession - Aquired existing MythTV session: 0x7f18341e26b0
20:16:00 T:139743111825152 INFO: (cmyth)__cmyth_rcv_proginfo: got recording info
20:16:00 T:139743111825152 ERROR: (cmyth)__cmyth_rcv_long_long: cmyth_rcv_long_long() failed (9)
20:16:00 T:139743111825152 ERROR: (cmyth)cmyth_conn_connect_file: (length) cmyth_rcv_u_long_long() failed (22)
20:16:00 T:139743111825152 ERROR: SetupRecording - unable to connect to file
20:16:00 T:139743111825152 DEBUG: ReleaseSession - Releasing MythTV session: 0x7f18341e26b0


I'm using the latest version of MythTV in the Ubuntu 12.04 (Precise) release - 2:0.25.0+fixes.20120429.ae7ac79-0ubuntu0mythbuntu2

This is the mythbackend log....

Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1360 (HandleAnnounce) MainServer::ANN Playback
Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1362 (HandleAnnounce) adding: xbmcbuntu as a client (events: 0)
Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1475 (HandleAnnounce) MainServer::HandleAnnounce FileTransfer
Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1477 (HandleAnnounce) adding: xbmcbuntu as a remote file transfer
Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1475 (HandleAnnounce) MainServer::HandleAnnounce FileTransfer
Apr 30 20:16:00 mythtvserver mythbackend[3010]: I ProcessRequest mainserver.cpp:1477 (HandleAnnounce) adding: xbmcbuntu as a remote file transfer
Apr 30 20:16:00 mythtvserver mythbackend[3010]: C ProcessRequest mainserver.cpp:1259 (HandleVersion) MainServer::HandleVersion - Client speaks protocol version 8 but we speak 72!
Apr 30 20:16:00 mythtvserver mythbackend[3010]: W ProcessRequest mainserver.cpp:5801 (connectionClosed) MainServer: Unknown socket closing MythSocket(0x23d0f00)

Any suggestions on what to do from here?

Yes, update to the latest code that I just posted to github. Might still not work. If you can post a log that would be great.
Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
Reply
#80
Just pulled the latest code, compiled and tried. Still no live TV. Swirling working circle thing forever. Do you want another log?
Reply
#81
(2012-04-30, 13:47)rdoac Wrote: Just pulled the latest code, compiled and tried. Still no live TV. Swirling working circle thing forever. Do you want another log?

Yes, need a log. Flying blind without one.

Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
Reply
#82
And can you please also provide one for a normal recording. Live TV and Recordings might also have different problems (unfortunately).
Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
Reply
#83
Here you go: I'm getting good at logs now.. :->

http://pastebin.com/2VweeL0E
Reply
#84
No luck I'm afraid....

22:00:20 T:140095475873536 DEBUG: DoWork - trying to extract thumb from video file myth://mythtv:[email protected]:6543/tvshows/Octonauts/1022_20120428073400.mp4
22:00:20 T:140095475873536 DEBUG: AquireSession - Aquired existing MythTV session: 0x7f6a7c000f10
22:00:20 T:140095475873536 INFO: (cmyth)__cmyth_rcv_proginfo: got recording info
22:00:20 T:140095475873536 ERROR: (cmyth)__cmyth_rcv_ulong_long: cmyth_rcv_ulong() failed (9)
22:00:20 T:140095475873536 ERROR: (cmyth)cmyth_conn_connect_file: (length) cmyth_rcv_ulong_long() failed (22)
22:00:20 T:140095475873536 ERROR: SetupRecording - unable to connect to file
22:00:20 T:140095475873536 DEBUG: ReleaseSession - Releasing MythTV session: 0x7f6a7c000f10
22:00:20 T:140095475873536 ERROR: InputStream: Error opening, myth://mythtv:[email protected]:6543/tvshows/Octonauts/1022_20120428073400.mp4


Not much on the backend log...

Apr 30 22:00:20 mythtvserver mythbackend[3871]: I ProcessRequest mainserver.cpp:1475 (HandleAnnounce) MainServer::HandleAnnounce FileTransfer
Apr 30 22:00:20 mythtvserver mythbackend[3871]: I ProcessRequest mainserver.cpp:1477 (HandleAnnounce) adding: xbmcbuntu as a remote file transfer
Apr 30 22:00:20 mythtvserver mythbackend[3871]: C ProcessRequest mainserver.cpp:1259 (HandleVersion) MainServer::HandleVersion - Client speaks protocol version 8 but we speak 72!
Apr 30 22:00:20 mythtvserver mythbackend[3871]: W ProcessRequest mainserver.cpp:5801 (connectionClosed) MainServer: Unknown socket closing MythSocket(0x22f7930)
Apr 30 22:00:20 mythtvserver mythbackend[3871]: I ProcessRequest mainserver.cpp:1475 (HandleAnnounce) MainServer::HandleAnnounce FileTransfer
Apr 30 22:00:20 mythtvserver mythbackend[3871]: I ProcessRequest mainserver.cpp:1477 (HandleAnnounce) adding: xbmcbuntu as a remote file transfer


Anything else I can do to assist?

Reply
#85
I've found the problem. The connection object passed to the rcv_* methods is a dummy connection object and doesn't actually contain the version of the connection to mythbackend. E.g. it should be 72 but it's hardcoded to always be 8. Should have looked at the other logs more closely.

I've pushed up a hack to see if that does in fact fix the problem. Seems to now receive the correct connection version number based on the logging I've done on my machine.

If that is the problem I'll look at fixing up the commit history properly and then rebase (again). Scheesh.
Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
Reply
#86
@rodac or @rwats2011nz, can one of you test the last update that I made and see if that now works. If it does I'll spend some more time looking at how to fix more cleanly.

Thanks
Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
Reply
#87
Will try it when I get home from work in about 2 hours..

---

OK, Live TV / Recordings are working. Can't work out if guide is or not, it shows me the program list, but clicking on a current program doesn't do anything.
Reply
#88
Just tested now and it all looks good (at least the MythTV client part...)

21:07:49 T:140665982244736 DEBUG: AquireSession - Aquired existing MythTV session: 0x308b860
21:07:49 T:140665982244736 DEBUG: ReleaseSession - Releasing MythTV session: 0x308b860
21:07:49 T:140665195321088 DEBUG: Thread Background Loader start, auto delete: 0
21:07:49 T:140665195321088 INFO: AquireSession - Aquired new MythTV session for myth://192.168.1
.2:6543/tvshows/Person of Interest (Includes Crime Stoppers at 10:04 PM)/: 0x7fef14068e30
21:07:49 T:140665195321088 ERROR: (cmyth)cmyth_conn_connect: asked for version 8, got version 72
21:07:49 T:140665195321088 ERROR: (cmyth)cmyth_conn_connect: asked for version 72, got version 72
21:07:49 T:140665195321088 INFO: (cmyth)__cmyth_rcv_proginfo: got recording info
21:07:49 T:140665195321088 INFO: Previous line repeats 35 times.
21:07:49 T:140665195321088 DEBUG: ReleaseSession - Releasing MythTV session: 0x7fef14068e30
21:07:49 T:140665170142976 DEBUG: Thread Jobworker start, auto delete: 1
21:07:49 T:140665170142976 DEBUG: DoWork - trying to extract filestream details from video file m
yth://mythtv:[email protected]:6543/tvshows/Person of Interest (Includes Crime Stoppers at 10:04
PM)/1009_20120430215100.mpg
21:07:49 T:140665195321088 DEBUG: Thread Background Loader 140665195321088 terminating
21:07:50 T:140665982244736 DEBUG: SDLKeyboard: scancode: 74, sym: 0112, unicode: 0000, modifier:
0
21:07:50 T:140665982244736 DEBUG: OnKey: down (f081) pressed, action is Down
21:07:50 T:140665170142976 WARNING: JpegIO: Error 55: Not a JPEG file: starts with 0x%02x 0x%02x
21:07:50 T:140665170142976 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-x86_64-linux.
so)
21:07:50 T:140665170142976 DEBUG: Loading: /usr/local/lib/xbmc/system/ImageLib-x86_64-linux.so
21:08:04 T:140665982244736 DEBUG: SDLKeyboard: scancode: 24, sym: 000d, unicode: 000d, modifier:
0
21:08:04 T:140665982244736 DEBUG: OnKey: return (f00d) pressed, action is Select
21:08:04 T:140665982244736 DEBUG: OnPlayMedia myth://mythtv:[email protected]:6543/tvshows/Per
son of Interest (Includes Crime Stoppers at 10:04 PM)/1009_20120430215100.mpg

Thank you!
Reply
#89
Perhaps 3rd time is the charm for this pull request. I've rebased my myth-0.25 tree again with what I believe are the only changes that are necessary for 0.25 support. If someone can update and test again that would be fantastic. Apologies for all the back and forth on this.

You should be able to reset your branch using:
Code:
git pull
git reset --hard

Once someone can confirm that things are working, e.g. Live TV plays, Recordings Play, List of Recordings looks correct, then I'll ask for another review and then push into XBMC Master (hopefully just in time for the May cutoff).

Below are problems that have been raised that don't appear like they are related to Myth 0.25 so they will be looked at separately.
1) Some channels not appearing in Live Channels area. Almost certainly a problem with Myth 0.24 as well.
2) Playback problems due to the audio queue not being filled correctly. Not a Myth 0.25 problem because I found some other forum threads with same problem using Myth 0.24.
3) Seeking doesn't work with Live TV - never has Sad
Use MythTV for recording TV? Try the integrated MythTV support in XBMC Media Center. Now with commercial skip support built-in and integration with the Movie database!
Reply
#90
...Spoke too soon. It seems the auto-commercial skip isn't working correctly. When the auto-skip is triggered the video freezes but the playback OSD keeps on counting. If you try to skip, then it jumps once, displays a single frozen screen shot and freezes application.

I've attached the logs below.

21:25:37 T:140665628169984 DEBUG: CheckAutoSceneSkip - Clock in commercial break [00:35:03.520 - 00:39:04.400]: 00:35:03
.533. Automatically skipping to end of commercial break (only done once per break)
21:25:37 T:140665628169984 DEBUG: demuxer seek to: 2344401
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 0, whence 16
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 0, whence 0
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 3203005632, whence 0
21:25:37 T:140665982244736 DEBUG: ------ Window Init (DialogSeekBar.xml) ------
21:25:37 T:140665982244736 DEBUG: Alloc resources: 0.06ms (0.00 ms skin load)
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 3203003564, whence 0
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 3202999428, whence 0
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 1733550820, whence 0
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 1746950896, whence 0
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 1748029452, whence 0
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 1747944852, whence 0
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 1747938272, whence 0
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 1747761740, whence 0
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 1747720004, whence 0
21:25:37 T:140665628169984 DEBUG: Seek - seek to pos 1747753468, whence 0
21:25:37 T:140665628169984 DEBUG: SeekTime - seek ended up on time 2344106
21:25:37 T:140665628169984 DEBUG: demuxer seek to: 2344401, success
21:25:40 T:140665982244736 DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
21:25:44 T:140665337927424 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
21:25:44 T:140665337927424 DEBUG: CDVDAudio:Big Grinrain - adding 964 bytes of silence, buffer size: 2876, chunk size: 3840
21:25:55 T:140665346320128 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
21:25:55 T:140665346320128 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(2344479999.999996, 1)
21:25:55 T:140665346320128 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
21:25:55 T:140665628169984 DEBUG: CDVDPlayer::SetCaching - caching state 2
21:25:55 T:140665628169984 DEBUG: CheckPlayerInit - dropping packet type:1 dts:2344229755.555556 to get to start point a
t 2344401000.000000
21:25:55 T:140665628169984 DEBUG: CDVDPlayer::SetCaching - caching state 3


2nd failure - no attempt to skip manually.


21:50:06 T:140088300766976 DEBUG: CheckAutoSceneSkip - Clock in commercial break [00:47:13.520 - 00:48:21.920]: 00:47:13.541. Automatically skipping to end of commercial break (only done once per break)
21:50:06 T:140088300766976 DEBUG: demuxer seek to: 2901921
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 0, whence 16
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 0, whence 0
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 3203005632, whence 0
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 3203003564, whence 0
21:50:06 T:140088889235328 DEBUG: ------ Window Init (DialogSeekBar.xml) ------
21:50:06 T:140088889235328 DEBUG: Alloc resources: 0.07ms (0.00 ms skin load)
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 3202999428, whence 0
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 2145847040, whence 0
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 2172014196, whence 0
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 2171509980, whence 0
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 2171230800, whence 0
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 2171331944, whence 0
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 2171372928, whence 0
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 2171349804, whence 0
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 2171347360, whence 0
21:50:06 T:140088300766976 DEBUG: Seek - seek to pos 2171347172, whence 0
21:50:06 T:140088300766976 DEBUG: SeekTime - seek ended up on time 2901835
21:50:06 T:140088300766976 DEBUG: demuxer seek to: 2901921, success
21:50:09 T:140088889235328 DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
21:50:14 T:140087731939072 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
21:50:14 T:140087731939072 DEBUG: CDVDAudio:Big Grinrain - adding 2812 bytes of silence, buffer size: 1028, chunk size: 3840
21:50:24 T:140088467953408 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
21:50:24 T:140088467953408 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(2902120000.000002, 1)
21:50:24 T:140088467953408 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
21:50:24 T:140088467953408 DEBUG: CPullupCorrection: pattern lost on diff 68519999.999997
21:50:24 T:140088300766976 DEBUG: CDVDPlayer::SetCaching - caching state 2
21:50:24 T:140088300766976 DEBUG: CDVDPlayer::SetCaching - caching state 3
21:50:24 T:140088300766976 DEBUG: CDVDPlayer::HandleMessages - player started 2
21:50:24 T:140088467953408 DEBUG: Previous line repeats 1 times.
21:50:24 T:140088467953408 INFO: CDVDPlayerVideo - Stillframe detected, switching to forced 25.000000 fps
21:50:29 T:140088467953408 DEBUG: CPullupCorrection: detected pattern of length 1: 40000.00, frameduration: 40000.000000


I'll try to get some more log entries when I see this again.

Reply
  • 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8

Logout Mark Read Team Forum Stats Members Help
Testing help needed for Myth 0.25 support1