• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 7
Play V-PID and A-PID TS-Stream!
#46
i can zap the channel of the dreambox, but i can't stream yet?
anny idee? the log say's unable to connect.

tia
#47
hi!
here is the next release!!! Wink

<span style='color:red'><span style='font-size:17pt;line-height:100%'>dreambox-tv v0.28</span></span>
download and more screenshots here:
www.xboxconfig.de

[best viewed with: project_mayhem skin !!!]

Quote:################################################################
# xbmc geminiserver dreambox-tv v0.28 beta!
#
# comments:
# - this is my first python script guys..
# - if some one own a dreambox and good in python..
# he is welcome to help to create..
# - it is very beta, this means there are some bugs in
# it.. but i think for testing it is ok!
################################################################
#
# installation:
# - copy this py to [xbmc]\scripts\dreambox-tv\*.*
# 1. add in the script your dreambox settings
# ip = '192.168.0.110'
# user = 'root'
# password = 'dreambox'
#
# 2. do not switch chnl on dreambox during streaming
# 3. some chnls can't be stream [don't know why!! dream bug!]
# 4. if the script hang, juste restart xbmc and the script!
# 5. this script ist testet on image release. 1.07.4!
# 6. the record function only write the stream to the hdd
# 7. you can a.t.m only stream [view], or recorder! not both!
# 8. the dbox2 will follow!
# 9. there must be a folder temp in dreambox-tv!!
################################################################
#
# w.i.p: work in process and future features:
# - is to make better vapid detection
# - make a audio stream choosing, like ac3, ger, eng...
# - create epg view for that channel
# - show doing process [where what]
# - implement error detection is something goes wrong
# - better ui menu: like zap, controll, config, info
# - timeschift for recording..
# - on zap also show in background the current screen shot!
# - fixing bugs....
# - and more features;)
#
#################################################################

version history dreambox-tv

v0.28: released!
add.- some ui tweaks..
add.- lcd view during zap;)!
add.- lcd-shot on ui
add.- all temp files now and must be in \temp
add.- new folder in dreambox-tv root temp!!
add.- base config.ini [but w.i.p]

v0.27:
add.- set name for each recordet file tdate!
add.- start recording choose yesno
add.- show error is vapid not avaiblible on the current chnl
add.- ask yn if you want to exit on [back!]

v0.26:
add. - switch from channel back to bouquets <>
add. - dreambox controll: onscreendisplay [osdp] shot and show the picture
add. - create dreambox controll: lcd display shot and show the picture
add. - record to hdd [current with python, only for testing! but i will implement this
function directly into xbmc, so it will be then easy to start and stop the
recording during view! it will also possible to stream another channel and
record another one! if they im the same network.]
v0.25:
add. - dreambox controll: standby
add. - dreambox controll: wakeup
add. - dreambox controll: screenshot and show the picture
add. - zapto the channel
add. - receive all channels and bouquets
add. - analyse an create the channel list..
v0.24:
add. - create ui
v0.1x:
add. - connect and get the current stream
add. - initial release

Image

Image

regards
geminiserver!
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#48
got it working finally! the communication setup on the dreambox said port 21 but changed it to 80 and it worked, i knew it had to be something stupid. does the record option work? when i clicked it it says do u want to record and then when i say yes, nothing seems to happen so i do an igr and then i say a new file created in the e drive but its only 0.1kb. thanks anyways for your brilliant work!
#49
@kaisersose
:o nice to see that it works now!
you are right! dreambox-tv uses the http interface on port 80! which sould be standartly set!
and if you choose record, it will record in background without any process indication! standart is path e:\\ set! and it will cream a mpg file! but this feature is only for testing and it is very alpha state! to stop the recording, close the script and you see that dreambox-tv is running.. is you once [open] it it will stop recording!

to all you guys who use this script! please post your experience with it!

regards
geminiserver
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#50
i tried almost every known port, but there is no challel list.
but for now it's showing more. keep up the work
#51
Thumbs Up 
hi.

while running img version 1.08-> the script (v0.28) can't fetch anything from dreambox. in newer img the webinterface is build arround frames and the only data fetched from db is the frames index file. so when the script depends on the information from the main html page and don't get it .. the script won't work.

@->geminiserver.. nice w.i.p. Wink
i have a code example how to fetch apid+vpid witch don't need the html index file from db.

Quote:pids = urllib.urlopen(url+'/control/zapto?getpids')
dec_vpid = pids.readline()
dec_apid = pids.readline()
pids.close()

vpid = hex(int(dec_vpid))[2:]
apid = hex(int(dec_apid))[2:]

also if you use
Quote:url+'/body'
you will get the bouquetrefs, channel and channelrefs on newer img's and go arround the "frames" problem.

thanks again geminiserver for your nice work. :d
#52
@GeminiServer

the only problem im having at the moment is that no bouquets or channel lists come up when i select it. can u put up your bouquet files or something or does the script retrieve it from the dreambox each time its started? i know the recording is in alpha stage but when it does work its great. i've been holding out on buying a harddrive for my dreambox and was planning to get one for the xbox, so thanks to you all my problems will be solved.
#53
(kaisersose @ july 21 2004,22:28 Wrote:@GeminiServer

the only problem im having at the moment is that no bouquets or channel lists come up when i select it. can u put up your bouquet files or something or does the script retrieve it from the dreambox each time its started? i know the recording is in alpha stage but when it does work its great. i've been holding out on buying a harddrive for my dreambox and was planning to get one for the xbox, so thanks to you all my problems will be solved.
i have the same problem, i get no channel list, and screenshots don´t work, too.

the stream selb only ork the first time, when i uses it one time, i need to delete all the tmp files of the skript, to get it work agian.

i have no config.ini, do i need one ?
#54
(bulldog64 @ july 21 2004,22:15 Wrote:i have a code example how to fetch apid+vpid witch don't need the html index file from db.

Quote:pids = urllib.urlopen(url+'/control/zapto?getpids')
dec_vpid = pids.readline()
dec_apid = pids.readline()
pids.close()

vpid = hex(int(dec_vpid))[2:]
apid = hex(int(dec_apid))[2:]

also if you use
Quote:url+'/body'
you will get the bouquetrefs, channel and channelrefs on newer img's and go arround the "frames" problem.

where should i add the code from the quote and what should be removed.

still don't know where to put it... Confused
#55
hi!
i need to know which http interface you are using!
also i want see the xmbc.log file..

and for all dreambox user who can make screenshots but no bouquets and channels.. show me this file on dreambox:
Quote:/share/tuxbox/enigma/htdocs/zapdata.js

it must be the same like this one!
Quote:var channels = new array();
var channelrefs = new array();
var bouquets = new array(
#bouquets#
);
var bouquetrefs = new array(
#bouquetrefs#
);
var currentbouquet = #currentbouquet#;
var currentchannel = #currentchannel#;

function init()
{
#channels#
#channelrefs#

loadbouquets(currentbouquet);
loadchannels(currentbouquet, currentchannel);
}

in the official image releses you are not able to edit this file! so show me this file.. so i can patch the script!

to all other people! you must actived the port 80 on the dreambox settings.. also you need to know the login and the pw..

the temp folder is not a simple temp folder.. i just called it temp folder.. if you delete the files there will be createt again!

config.ini.. there is no config.ini includet in this release.. you also don't need to set that one.. damm! can't you read!!! so please don't ask about settings which are w.i.p!


@bULLdOG64
yes you are right.. and i know this feature.. but i won't use that one.. for the future release there will be a audio stream switch, that means.. i need to read all pid's and all settings! but it is very good for a test script!

@all
and again! you are all welcome to help to develope a script that works on all dreamboxes.. also try to find where the problems can be.. it don't help to write.. it won't work on my dreambox..


btw: there are so many dreambox images availible.. and everybody put's his part in it..

regards
geminiserver
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#56
@geminiserver:

here is a part of the xbmc-log that i have.
i hope this can help you.
tia

Quote:22-07-2004 23:50:49 -->python initialized<--
22-07-2004 23:50:49
22-07-2004 23:50:49 sys:1: deprecationwarning: non-ascii character '\xe4' in file q:\scripts\dreambox-tv\dreambox-tv.py on line 132, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
22-07-2004 23:51:04 1.opening the dreambox url:http://root:[email protected]
22-07-2004 23:51:04
22-07-2004 23:51:04 2.created the tmp file: dreambox-tv.html
22-07-2004 23:51:04
22-07-2004 23:51:04 3.finding the apid and vpid line
22-07-2004 23:51:04
22-07-2004 23:51:30 stop all
22-07-2004 23:51:30 stop webserver
22-07-2004 23:51:30 stop python
22-07-2004 23:51:30 stop dvd detect media
22-07-2004 23:51:30 stop lcd
22-07-2004 23:51:30 stop time server
22-07-2004 23:51:30 unload skin
22-07-2004 23:51:31 launch xbe:harddisk0\partition2 d:\evoxdash.xbe
22-07-2004 23:51:31 mount harddisk0\partition2 as d:
22-07-2004 23:51:31 launch xbe:d:\evoxdash.xbe
#57
/share/tuxbox/enigma/htdocs/zapdata.js


there is no such file on my dreambox , i created one with notepad but i cant ftp it to the dreambox.

@GeminiServer, can you tell me what image u are using or any recent images you have used that worked properly with ur script. im using an image call mydream2.1, its from the start of july and based on a rudream image
#58
]
Quote:@geminiserver:

here is a part of the xbmc-log that i have.
i hope this can help you.
tia

same from me and my zapdata.js out of the latest sf108_8

Quote:var channels = new array();
var channelrefs = new array();
var bouquets = new array(
#bouquets#
);
var bouquetrefs = new array(
#bouquetrefs#
);
var currentbouquet = #currentbouquet#;
var currentchannel = #currentchannel#;
var autobouquetchange = #autobouquetchange#;

function init()
{
#channels#
#channelrefs#

loadbouquets(currentbouquet);
loadchannels(currentbouquet, currentchannel);
}

Quote:23-07-2004 01:19:52 -->python initialized<--
23-07-2004 01:19:52
23-07-2004 01:19:52 sys:1: deprecationwarning: non-ascii character '\xe4' in file q:\scripts\dreambox-tv\dreambox-tv v0.28.py on line 132, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
23-07-2004 01:20:31 1.opening the dreambox url:http://root:[email protected]
23-07-2004 01:20:31
23-07-2004 01:20:31 2.created the tmp file: dreambox-tv.html
23-07-2004 01:20:31
23-07-2004 01:20:31 3.finding the apid and vpid line
23-07-2004 01:20:31
23-07-2004 01:20:40 1.opening the dreambox url:http://root:[email protected]
23-07-2004 01:20:40
23-07-2004 01:20:40 2.created the tmp file: dreambox-tv.html
23-07-2004 01:20:40
23-07-2004 01:20:40 3.finding the apid and vpid line
23-07-2004 01:20:40
23-07-2004 01:32:46 1.opening the dreambox url:http://root:[email protected]
23-07-2004 01:32:46
23-07-2004 01:32:46 2.created the tmp file: dreambox-tv.html
23-07-2004 01:32:46
23-07-2004 01:32:46 3.finding the apid and vpid line
23-07-2004 01:32:46  
#59
:d

jepp! in firmware [image] 1.08, there is a new implementation in the webinterface! i don't use the new image 1.08! but i add it to test and look whats going wrong!

dreambox-tv 0.28 is not able to receive from img. 1.08 the bouquet and channellist! also it ist not possible to make screenshots.. lcdshot, etc.

v0.28 need some tweaks.. to get the channel and bouquet list! like the /body add.on to url.

the problem is that the scipt or in future the implementation into xbmc, coould not be changed every time while dreambox cvs making evertime changes on their web interface!

the best gole ist to implement into dreambox a data push url..like http://dreamip/external. this should be then more effective also for other developper to make a controll apps.

if some one reading this and he/she is in cvs group for dreambox images.. please contact me, to make web interface for external apps. it is very simple to implement the function into cvs from dreambox..

i'll look webserver function from dreambox and try to add. an interface primarly. i know there are loots information to get. but the big problem is the bouquets and channels.. there no /getallbouquest.. or /getallbouquest and channel.. why: we need a solution, which will holt longer . after this, we don't need to update all things again if there will relese another img with other changes..

what do you all think about this!
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#60
@GeminiServer

why not try another approach and fetch the bouquet/channel files with ftp?
the native bouquet/channel files have not changed so much as the webinterface. the userbouquet.****.** files in /var/tuxbox/config/enigma/ are plain txt files and can easely be processed.
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 7

Logout Mark Read Team Forum Stats Members Help
Play V-PID and A-PID TS-Stream!0