Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 | 3 | 4 | 5 | 6 | 7


590 posts

Ultimate Geek

Subscriber

  # 448124 14-Mar-2011 09:34
Send private message

I'm getting a different error when running it on mono: 
EPG Collector.log: 
http://cl.ly/3r2Q0e3y1t1h0L2u3I2q 

CLI output: 
http://cl.ly/2U0d0S1N3x2U0b0n251m 

@tokyovigilante, I had a look at your last posted log, it looks like the app can't find your files as I see several "" 

My config file looks like this: 
http://cl.ly/353p1T2O090U060N0m3m 
This line is what mono seems to want (windows style) 
C:\Documents and Settings\All Users\Application Data\Geekzone\00000000132b514b_.mpg 

But on a mac that file is located here: 
/Users/technoguy001/.local/share/Geekzone/00000000132b514b_.mpg 

Same principle is applied for the xml dir... hope that helps... but if it does you will probably end up with the next error (that I get)

Edit:
Damn, not even <code></code> tags work for code (well.. they do on the editor but it disappears when you post it) 

SJB

1446 posts

Uber Geek

Trusted
Lifetime subscriber

  # 448128 14-Mar-2011 09:58
Send private message

I've realised there is a problem that I need to do some more work on.

In normal running the DirectShow related code buffers the incoming data in an unmanaged memory block. This is done with a C++ DirectShow filter and it allocates the buffer and the .net managed code reads and processes the data from it.

Unfortunately the simulated input code does pretty much the same even though it is all managed code. It allocates the buffer using a .net function that gets the memory from the unmanaged memory of the process which is obviously not going to work when running under Mono.

I need to adjust the simulated input code to use a regular managed buffer when running under Mono. I'll try and sort this out today and let you have another copy as soon as it's done.

Steve

 
 
 
 


57 posts

Master Geek


  # 448129 14-Mar-2011 09:59
Send private message

Good spotting yeah, lost in the translation to Mono. I now get the same stack trace as you. Hope SJB has some bright ideas...

57 posts

Master Geek


  # 448130 14-Mar-2011 10:03
Send private message

Speak of the devil! Thanks Steve, we might have this running tonight...

On the plus side the TS exporter/parser plugin for EyeTV is working fine, I've borrowed some PID parsing code from Handbrake to find the DSM-CC PID -

streamtest[10873:a0f] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
streamtest[10873:a0f] next_packet: sync lost @ 8192, regained after 80 bytes
streamtest[10873:a0f] hb_ts_stream_find_pids - found the following PIDS
streamtest[10873:a0f] Video PIDS :
streamtest[10873:a0f] 0x1c4 type H.264 (0x1b)
streamtest[10873:a0f] Audio PIDS :
streamtest[10873:a0f] 0x192 type MPEG4 LATM AAC (0x11)
streamtest[10873:a0f] 0x3eb type ISO 13818-6 DSM-CC U-N msgs (0xb)



590 posts

Ultimate Geek

Subscriber

  # 448133 14-Mar-2011 10:07
Send private message

Nice work tokyovigilante, can you post the plugin so I can give it a try with my DVB-T stick?

I didn't think this thread would ever evolve into this, very pleased it did though :)

57 posts

Master Geek


  # 448135 14-Mar-2011 10:09
Send private message

I'm working on getting it up to Github, but there's a couple of rough edges so I might wait for Steve's code. It's kinda useless without ;)

SJB

1446 posts

Uber Geek

Trusted
Lifetime subscriber

  # 448138 14-Mar-2011 10:12
Send private message

Is it possible for the TS exporter to be generic rather than just for MHEG5?

Ideally you would export every PID that wasn't carring video or audio but that would require you to parse/process the SI packets (not a trivial task) first to find out which PID's they are.

Alternatively I would dump everything.

Incidentally even if you stuck with the specific MHEG5 implementation the Collector needs more than just the MHEG5 PID. It process all the station data and, for satellite, the channel allocation data, which is transmitted on other standard DVB PID's.

 
 
 
 


57 posts

Master Geek


  # 448140 14-Mar-2011 10:14
Send private message

Oh yes, the parsing code is just to find the DSM-CC PID for the configuration file. The exporter dumps the whole stream, as per the sample I provided.

The plugin's basic flow is

-Export 65 second raw TS
-Parse file to find DSM-CC PID
-Write EPG Collector config file and spawn EPG Collector process
-Reimport generated XML file to EyeTV. 

SJB

1446 posts

Uber Geek

Trusted
Lifetime subscriber

  # 448141 14-Mar-2011 10:22
Send private message

That's fine.

Can the 65 seconds be parameterized? Some FreeSat and OpenTV collections in Europe are huge (1,000 stations and 100,000 epg entries) so 65 secs won't be enough.

57 posts

Master Geek


  # 448145 14-Mar-2011 10:27
Send private message

Yeah sure, I can just read it from a settings file, or maybe even make a GUI if i'm super-keen. How long would you need as a realistic maximum?

SJB

1446 posts

Uber Geek

Trusted
Lifetime subscriber

  # 448147 14-Mar-2011 10:43
Send private message

Bit difficult to say. The Collector has a default timeout of 5 minutes but I don't know if users have overridden that.

How about 10 minutes - the file would be huge though.

SJB

1446 posts

Uber Geek

Trusted
Lifetime subscriber

  # 448157 14-Mar-2011 11:06
Send private message

I've had a look at the Mono forums and apparently it is OK to allocate and use unmanaged memory. Almost immediately I found some posts that were doing it.

It can't tell from the log/cli posted what exception is being reported. There is no exception in the Collector log and the cli stack trace just indentifies the failing line not what's wrong with it.

Do you have any more info?

SJB

1446 posts

Uber Geek

Trusted
Lifetime subscriber

  # 448162 14-Mar-2011 11:27
Send private message

Try this one.

http://rapidshare.com/files/452419246/EPG_Collector_for_Mono.zip

I've changed the unmanaged memory allocation to managed anyway.



590 posts

Ultimate Geek

Subscriber

  # 448164 14-Mar-2011 11:35
Send private message

Same error as before.

The below outputs are from the new build you just posted
Here is the output of: mono --trace EPGCollector.exe /ini="MHEG5 Test.ini"
http://cl.ly/0F0G3i0m3u2t28263K2y

Maybe the --debug switch could be helpful... http://www.mono-project.com/Debugging 

 
edit:
Output using -v switch (verbose)
http://cl.ly/3f0G3b3j2J0c1g0u0D0D



590 posts

Ultimate Geek

Subscriber

  # 448172 14-Mar-2011 11:57
Send private message

Seems like im getting an exception (using switch: --trace=N:nothing )

[0xa064c540:] EXCEPTION handling: System.IO.FileNotFoundException: Could not find file "/Users/technoguy001/Downloads/EPG_Collector_for_Mono-1/C:\Documents and Settings\All Users\Application Data\Geekzone\00000000132b514b_.mpg".

Here is the whole CLI output: http://cl.ly/350Y2t1d0S2K3B020T2R

Not to sure how to change this...

1 | 2 | 3 | 4 | 5 | 6 | 7
View this topic in a long page with up to 500 replies per page Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Samsung Galaxy Fold now available in New Zealand
Posted 6-Dec-2019 00:01


NZ company oDocs awarded US$ 100,000 Dubai World Expo grant
Posted 5-Dec-2019 16:00


New Zealand Rugby Selects AWS-Powered Analytics for Deeper Game Insights
Posted 5-Dec-2019 11:33


IMAGR and Farro bring checkout-less supermarket shopping to New Zealand
Posted 5-Dec-2019 09:07


Wellington Airport becomes first 5G connected airport in the country
Posted 3-Dec-2019 08:42


MetService secures Al Jazeera as a new weather client
Posted 28-Nov-2019 09:40


NZ a top 10 connected nation with stage one of ultra-fast broadband roll-out completed
Posted 24-Nov-2019 14:15


Microsoft Translator understands te reo Māori
Posted 22-Nov-2019 08:46


Chorus to launch Hyperfibre service
Posted 18-Nov-2019 15:00


Microsoft launches first Experience Center worldwide for Asia Pacific in Singapore
Posted 13-Nov-2019 13:08


Disney+ comes to LG Smart TVs
Posted 13-Nov-2019 12:55


Spark launches new wireless broadband "Unplan Metro"
Posted 11-Nov-2019 08:19


Malwarebytes overhauls flagship product with new UI, faster engine and lighter footprint
Posted 6-Nov-2019 11:48


CarbonClick launches into Digital Marketplaces
Posted 6-Nov-2019 11:42


Kordia offers Microsoft Azure Peering Service
Posted 6-Nov-2019 11:41



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.