viewing a dreambox ts-stream with vlc 0.8.0

About encoding, codec settings, muxers and filter usage
J.N.

viewing a dreambox ts-stream with vlc 0.8.0

Postby J.N. » 05 Nov 2004 18:04

To view a ts-stream from your dreambox with vlc 0.8.0 just point your browser to http://192.168.1.1/cgi-bin/streaminfo (switch for your dreambox ip). You should see something like:

Name: SAT.1
Provider: ProSiebenSat.1
VPID: 06ffh (1791d)
APID: 0700h (1792d)
PCRPID: 06ffh (1791d)
TPID: 0022h (34d)
TSID: 0021h
ONID: 0085h
SID: 002eh
PMT: 006ah
Video Format: 720x576 (4:3)

Start VLC and chose "Open network stream...".
Check HTTP/FTP/MMS and type 192.168.1.1:31339/0,6a,6ff,700 into the empty field (again, switch for your ip). The four hexadecimal numbers at the end are the PAT (always 0), PMT, VPID and APID found above.

This works for two "channels" too: http://dreambox_ip:31339/PAT, PMT1,PMT2,VPID1,APID1,VPID2,APID2
You can switch the channels through "Navigation->Programm" (at least in the German version)

It works fine with WinXP and SUSE 9.1.
Best, Joerg

ReCRe
New Cone
New Cone
Posts: 5
Joined: 06 Nov 2004 19:41

Postby ReCRe » 06 Nov 2004 19:43

But are you only watching the video, or do you also listen the audio?

imyrvold
New Cone
New Cone
Posts: 9
Joined: 19 Sep 2004 20:59
Location: Homborsund, Norway

Postby imyrvold » 06 Nov 2004 20:48

I am using OS X, and the port I am getting picture on is 31338:

http://192.168.207.245:31338/200,280

Where the two last numbers are VPID and APID.

imyrvold
New Cone
New Cone
Posts: 9
Joined: 19 Sep 2004 20:59
Location: Homborsund, Norway

Postby imyrvold » 06 Nov 2004 20:50

But I am not getting any audio. Anyone have solution for this?

J.N.

Postby J.N. » 06 Nov 2004 21:14

But I am not getting any audio. Anyone have solution for this?
Sometime you have to switch to the "right" audio channel at "Audio->Audiospur" (German Interface).

Joerg

J.N.

Postby J.N. » 06 Nov 2004 21:22

But are you only watching the video, or do you also listen the audio?
It works well with video AND audio at port 31339 (streamts). I could not get audio with streampes (port 31338)

Joerg

ReCRe
New Cone
New Cone
Posts: 5
Joined: 06 Nov 2004 19:41

Postby ReCRe » 06 Nov 2004 22:46

If I put port 31339 I don't get anything, do you know why?

J.N.

Postby J.N. » 07 Nov 2004 09:21

If I put port 31339 I don't get anything, do you know why?
Did you set PAT and PMT in addition to the audio and video PIDs? The PAT should be 0, for the PMT you have to take the value from the streaminfo window. For my SAT1-stream the values from streaminfo are:

PAT = 0 (afaik it is always zero)
PMT = 006ah (the "h" just means, that it is a hexadecimal number)
VPID = 06ffh
APID = 0700h

Put the values into the HTTP/FTP/MMS field in the right order:

dreambox_ip:31339/PAT,PMT,VPID,APID

For my SAT1 stream it is:

192.168.1.1:31339/0,6a,6ff,700

Please post the output of the streaminfo window if it will not work.

Joerg

J.N.

Postby J.N. » 07 Nov 2004 09:29

I am using OS X, and the port I am getting picture on is 31338:

http://192.168.207.245:31338/200,280

Where the two last numbers are VPID and APID.
The port number should be 31339. But you have to add the PAT (0) and PMT values in addition:

http://192.168.207.245:31339/0,put_the_PMT_here,200,280

imyrvold
New Cone
New Cone
Posts: 9
Joined: 19 Sep 2004 20:59
Location: Homborsund, Norway

Postby imyrvold » 07 Nov 2004 16:57

I don't get anything with this:
http://192.168.207.245:31339/0,0026h,02bch,02bdh

Only when using the
http://192.168.207.245:31338/02bch,02bdh I get video, but no sound.

Here is the output from the streaminfo command (I post the source, as I get a complete black window in my Safari, as well as all the other browsers I try when using this command):

<html><META http-equiv=Content-Type content="text/html; charset=UTF-8">
<head><title>streaminfo</title><link rel="stylesheet" type="text/css" href="/si.css"></head><body bgcolor=#000000><!-- 1:0:1:192:2:46:fff60000:0:0:0:-->
<table cellspacing=0 cellpadding=0 border=0>
<tr><td>name:</td><td>Cartoon Network</td></tr>
<tr><td>provider:</td><td>Telenor</td></tr>
<tr><td>vpid:</td><td>02bch (700d)</td></tr>
<tr><td>apid:</td><td>02bdh (701d)</td></tr>
<tr><td>pcrpid:</td><td>02bch (700d)</td></tr>
<tr><td>tpid:</td><td>ffffffffh (-1d)</td></tr>
<tr><td>tsid:</td><td>0002h</td></tr>
<tr><td>onid:</td><td>0046h</td></tr>
<tr><td>sid:</td><td>0192h</td></tr><tr>
<td>pmt:</td><td>0026h</td></tr>
<tr><td>vidformat:<td>544x576 (4:3)</td></tr>
</table></body></html>

imyrvold
New Cone
New Cone
Posts: 9
Joined: 19 Sep 2004 20:59
Location: Homborsund, Norway

Postby imyrvold » 07 Nov 2004 17:20

Here is output from my messages log:

main debug: CPU has capabilities AltiVec FPU
main debug: looking for memcpy module
main debug: probing 2 candidates
main debug: using memcpy module "memcpyaltivec"
main debug: creating group Normal with id 1 at position 0
main debug: waiting for thread completion
main debug: thread 33672704 (playlist) created at priority -47 (src/playlist/playlist.c:107)
main debug: looking for interface module
main debug: probing 1 candidate
main debug: using interface module "hotkeys"
main debug: interface initialized
main debug: thread 34152448 (interface) created at priority -47 (src/interface/interface.c:176)
main debug: looking for interface module
main debug: probing 2 candidates
main debug: using interface module "macosx"
main debug: interface initialized
main debug: thread 34168832 (manager) created at priority -47 (src/interface/interface.c:152)
main debug: adding playlist item `0,26h,02bch,02bdh' ( http://192.168.207.245:31339/0,26h,02bch,02bdh )
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 34711552 (input) created at priority 37 (src/input/input.c:228)
main debug: `http://192.168.207.245:31339/0,26h,02bch,02bdh' gives access `http' demux `' path `192.168.207.245:31339/0,26h,02bch,02bdh'
main debug: demux2_New: access='http' demux='' path='192.168.207.245:31339/0,26h,02bch,02bdh'
main debug: looking for access_demux module
main debug: probing 0 candidates
main warning: no access_demux module matched "http"
main debug: access2_New: access='http' path='192.168.207.245:31339/0,26h,02bch,02bdh'
main debug: looking for access2 module
main debug: probing 6 candidates
access_http debug: http: server='192.168.207.245' port=31339 file='/0,26h,02bch,02bdh
main debug: net: connecting to '192.168.207.245:31339'
main debug: looking for network module
main debug: probing 2 candidates
ipv4 debug: connection in progress
main debug: using network module "ipv4"
main debug: unlocking module "ipv4"
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: d-Box network
main debug: using access2 module "access_http"
main debug: pre buffering
macosx debug: input has changed, refreshing interface
main debug: received first data for our buffer
main debug: prebuffering done 33304 bytes in 0s - 196 kbytes/s
main debug: demux2_New: access='http' demux='' path='192.168.207.245:31339/0,26h,02bch,02bdh'
main debug: looking for demux2 module
main debug: probing 33 candidates
mp4 warning: MP4 plugin discarded (not a valid file)
avi warning: avi module discarded (invalid header)
asf warning: ASF plugin discarded (not a valid file)
flac warning: flac module discarded (no startcode)
aac warning: AAC module discarded
main debug: looking for id3 module
main debug: probing 2 candidates
id3tag debug: checking for ID3 tag
main debug: using id3 module "id3tag"
main debug: unlocking module "id3tag"
mpgv warning: ES module discarded (no startcode)
sap warning: SDP (UDP) module discarded
livedotcom warning: SDP module discarded
mkv warning: matroska module discarded (invalid header 0x4702bc18)
ogg warning: ogg module discarded (invalid header)
real warning: Real module discarded
aiff warning: AIFF module discarded
au warning: AU module discarded
mod warning: MOD module discarded (path=192.168.207.245:31339/0,26h,02bch,02bdh)
nsv warning: NSV module discarded
playlist warning: old import module discarded: invalid file
playlist warning: pls import module discarded
pva warning: PVA module discarded
main debug: using demux2 module "ts"
ts debug: DEMUX_SET_GROUP 0 0x0
main debug: `http://192.168.207.245:31339/0,26h,02bch,02bdh' sucessfully opened
ts debug: pid[700] unknown
main debug: control type=1
ts debug: pid[701] unknown
ts debug: PATCallBack called
ts debug: new PAT ts_id=2 version=2 current_next=1
ts debug: * number=0 pid=16
ts debug: * number=201 pid=44
ts debug: * number=204 pid=35
ts debug: * number=401 pid=33
ts debug: * number=402 pid=38
ts debug: * number=906 pid=39
ts debug: * number=229 pid=40
ts debug: * number=230 pid=41
ts debug: * number=303 pid=34
ts debug: * number=403 pid=36
ts debug: * number=408 pid=37
ts debug: * number=411 pid=42
main debug: control type=1

imyrvold
New Cone
New Cone
Posts: 9
Joined: 19 Sep 2004 20:59
Location: Homborsund, Norway

Postby imyrvold » 07 Nov 2004 17:25

When using port 31338, I get this output:

main debug: CPU has capabilities AltiVec FPU
main debug: looking for memcpy module
main debug: probing 2 candidates
main debug: using memcpy module "memcpyaltivec"
main debug: creating group Normal with id 1 at position 0
main debug: waiting for thread completion
main debug: thread 33672704 (playlist) created at priority -47 (src/playlist/playlist.c:107)
main debug: looking for interface module
main debug: probing 1 candidate
main debug: using interface module "hotkeys"
main debug: interface initialized
main debug: thread 34152448 (interface) created at priority -47 (src/interface/interface.c:176)
main debug: looking for interface module
main debug: probing 2 candidates
main debug: using interface module "macosx"
main debug: interface initialized
main debug: thread 34168832 (manager) created at priority -47 (src/interface/interface.c:152)
main debug: adding playlist item `02bch,02bdh' ( http://192.168.207.245:31338/02bch,02bdh )
main debug: creating new input thread
main debug: waiting for thread completion
main debug: thread 34756096 (input) created at priority 37 (src/input/input.c:228)
main debug: `http://192.168.207.245:31338/02bch,02bdh' gives access `http' demux `' path `192.168.207.245:31338/02bch,02bdh'
main debug: demux2_New: access='http' demux='' path='192.168.207.245:31338/02bch,02bdh'
main debug: looking for access_demux module
main debug: probing 0 candidates
main warning: no access_demux module matched "http"
main debug: access2_New: access='http' path='192.168.207.245:31338/02bch,02bdh'
main debug: looking for access2 module
main debug: probing 6 candidates
access_http debug: http: server='192.168.207.245' port=31338 file='/02bch,02bdh
main debug: net: connecting to '192.168.207.245:31338'
main debug: looking for network module
main debug: probing 2 candidates
ipv4 debug: connection in progress
macosx debug: input has changed, refreshing interface
main debug: using network module "ipv4"
main debug: unlocking module "ipv4"
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: d-Box network
main debug: using access2 module "access_http"
main debug: pre buffering
main debug: received first data for our buffer
main debug: prebuffering done 8688 bytes in 0s - 13 kbytes/s
main debug: demux2_New: access='http' demux='' path='192.168.207.245:31338/02bch,02bdh'
main debug: looking for demux2 module
main debug: probing 33 candidates
mp4 warning: MP4 plugin discarded (not a valid file)
avi warning: avi module discarded (invalid header)
asf warning: ASF plugin discarded (not a valid file)
flac warning: flac module discarded (no startcode)
aac warning: AAC module discarded
main debug: looking for id3 module
main debug: probing 2 candidates
id3tag debug: checking for ID3 tag
main debug: using id3 module "id3tag"
main debug: unlocking module "id3tag"
mpgv warning: ES module discarded (system startcode)
sap warning: SDP (UDP) module discarded
livedotcom warning: SDP module discarded
mkv warning: matroska module discarded (invalid header 0x000001ea)
ogg warning: ogg module discarded (invalid header)
real warning: Real module discarded
aiff warning: AIFF module discarded
au warning: AU module discarded
mod warning: MOD module discarded (path=192.168.207.245:31338/02bch,02bdh)
nsv warning: NSV module discarded
playlist warning: old import module discarded: invalid file
playlist warning: pls import module discarded
pva warning: PVA module discarded
ts warning: TS module discarded (lost sync)
main debug: using demux2 module "ps"
main debug: `http://192.168.207.245:31338/02bch,02bdh' sucessfully opened
main debug: Selecting program id=0
main debug: looking for decoder module
main debug: probing 22 candidates
main debug: using decoder module "libmpeg2"
main debug: thread 34821120 (decoder) created at priority -47 (src/input/decoder.c:157)
libmpeg2 debug: 544x576, aspect 576000, 25.000 fps
main debug: no usable vout present, spawning one
main debug: looking for video output module
main debug: probing 3 candidates
macosx debug: We do have Altivec
main debug: control type=1
main debug: Registering subpicture channel, ID: 2
main debug: Registering subpicture channel, ID: 3
main debug: Registering subpicture channel, ID: 4
main debug: Registering subpicture channel, ID: 5
main debug: using video output module "macosx"
main debug: waiting for thread completion
main debug: got 8 direct buffer(s)
main debug: picture in 544x576, chroma 0x49343230 (I420), aspect ratio 4:3
main debug: picture out 544x576, chroma 0x59555932 (YUY2), aspect ratio 4:3
main debug: looking for chroma module
main debug: probing 6 candidates
main debug: using chroma module "i420_yuy2_altivec"
main debug: indirect render, mapping render pictures 0-7 to system pictures 8-15
main debug: thread 34540544 (video output) created at priority 37 (src/video_output/video_output.c:443)
main debug: stream periodicity changed from B[1] to B[2]
main warning: late picture skipped (62452)
main warning: late picture skipped (22481)
main debug: stream periodicity changed from P[5] to P[3]
main debug: decoded 106/108 pictures

imyrvold
New Cone
New Cone
Posts: 9
Joined: 19 Sep 2004 20:59
Location: Homborsund, Norway

Postby imyrvold » 07 Nov 2004 18:07

I tried the
http://192.168.207.245:31339/0,0026h,02bch,02bdh
in MPlayer OSX, and I got both video and sound, although the sound was very low. So I don't know what is the problem with VLC.

ReCRe
New Cone
New Cone
Posts: 5
Joined: 06 Nov 2004 19:41

Postby ReCRe » 08 Nov 2004 13:01

I can't post any log, because using the port 31339 it doesn't connect. :?
I use a DB5620. Does anybody know why?

clavac

Postby clavac » 08 Nov 2004 16:40

Same problem using a DB7000 no sound from port 31339 using VLC 0.8.0 on Mac OSX. I tryed all the URL configuration suggested, the only one working is that with ip-address:port/vid,aid.

Guest

Postby Guest » 08 Nov 2004 23:04

THANKS J.N !!!!!
This works just fine !!

:D

/Otto

ReCRe
New Cone
New Cone
Posts: 5
Joined: 06 Nov 2004 19:41

Postby ReCRe » 08 Nov 2004 23:35

I think I cannot connect because the port 31339 is only active in Dreambox 7000. Because port 31339 is for TS Streaming and the process for that is "streamts", that in the 5620 doesn't works because of not having a needed library, that I think is only the 7000s. Can anybody confirm it?

Guest

Postby Guest » 09 Nov 2004 13:46

There is some other issues here as well as far as i can tell. On port 31338 I always get picture, but never sound. On port 31339 I get picture AND sound *sometimes* using rudream image, but never using pp image. I recieve data to my VLC machine, but VLC just "ignores" the stream it seems.

marius

Postby marius » 16 Nov 2004 17:13

trying to open the streamts on port 31339 i It fails with :


<snip>
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: d-Box network
main debug: using access2 module "access_http"
main debug: pre buffering
main error: recv failed (10054)
main error: recv failed (10054)
main error: recv failed (10054)
main error: recv failed (10054)
....

Using port 31338 i get :

<snip>
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: d-Box network
main debug: using access2 module "access_http"
main debug: pre buffering
main debug: received first data for our buffer
main debug: prebuffering done 66996 bytes in 0s - 278 kbytes/s
main debug: demux2_New: access='http' demux=''
...

So it looks like vlc is not getting any data - but i can see that my machine is recieving about 800kbit/s of traffic from the dreambox.

Anyone have similar problems or a solution?

fablamenas

Postby fablamenas » 12 Dec 2004 00:14

This works just fine !!
very thank you, my tv set is down for 2 weeks, you helped me a lot.
f.

lasa

A little Windows script

Postby lasa » 24 Dec 2004 17:37

I just finished a little Windows script that starts up VLC automatically with the option to transcode the data as well. It's a hack to let me watch TV at work over the 0.5Mbit/s line I have at the house.

Code: Select all

// dbvlc.js - Dreambox VLC Script 2004 - Lars Rönnbäck (lars@delicate.se) // Configuration var dreambox = "192.168.0.2"; var useTranscoding = "true" // Transcoding options var windows = "192.168.0.3"; var port = 8080; var videoCodec = "mp4v"; var videoBitrate = 400; var scale = 0.5; var audioCodec = "vorb"; var audioBitrate = 96; var mux = "ogg"; var access = "http"; // Used for reading registry and calling vlc var shell = new ActiveXObject("WScript.Shell"); // Fetch the streaminfo from the Dreambox var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("GET", "http://" + dreambox + "/cgi-bin/streaminfo", false); xmlhttp.send(); var streaminfo = xmlhttp.responseText; // Get rid of some HTML junk var trTag = /<tr>/g; streaminfo = streaminfo.replace(trTag, "\n"); var anyTag = /<[^>]*>/g; streaminfo = streaminfo.replace(anyTag, ""); // Parse the important values // shell.popup(streaminfo); var pmt = streaminfo.substr(streaminfo.indexOf("PMT:") + 4, 4); var aPid = streaminfo.substr(streaminfo.indexOf("APID:") + 5, 4); var vPid = streaminfo.substr(streaminfo.indexOf("VPID:") + 5, 4); var vfIndex = streaminfo.indexOf("Video Format:"); var width = streaminfo.substr(vfIndex + 13, streaminfo.indexOf("x", vfIndex) - vfIndex - 13); var height = streaminfo.substr(streaminfo.indexOf("x", vfIndex) + 1, streaminfo.indexOf(" ", vfIndex) - vfIndex - 2); // Read the VLC location from the registry var key = "HKLM\\Software\\Classes\\Applications\\vlc.exe\\shell\\Play\\command\\"; var vlc = shell.regRead(key); vlc = vlc.substr(0, vlc.lastIndexOf(" ")); // Set up transcoding options var transcoding = "" if (useTranscoding == "true") transcoding = "--sout \"#transcode{acodec=" + audioCodec + ",ab=" + audioBitrate + ",vcodec=" + videoCodec + ",width=" + width * scale + ",height=" + height * scale + ",deinterlace}:standard{access=" + access + ",mux=" + mux + ",url=" + windows + ":" + port + "}\""; // Start VLC with all options var commandLine = "\"" + vlc + "\" -vvv http://" + dreambox + ":31339/0," + pmt + "," + vPid + "," + aPid + " " + transcoding; shell.run(commandLine);
If you make any improvements or find bugs, please post them here :)

Merry Christmas!
-lasa-

peli

Postby peli » 11 Jan 2005 21:59

Having on luck with this at all. What images are the ones that got it working using?

phileas50

Postby phileas50 » 12 Jan 2005 09:19

It works with the Hydra image on the dreambox.If you have audio problems (because of a different APID from VPID) try adding PCRPID in the string.I works allways.

I have a question for recorded movies.Can they be streamed? from the Dreambox to the PC?

J.N.

Postby J.N. » 12 Jan 2005 09:57

Having on luck with this at all. What images are the ones that got it working using?
It works with the official 1.08.1 image as well as most others (Hydra, Gemini...)
There are known problems with firewalls (e.g. Kerio has to be killed/shut down - just disabling it will not work)

Guest

Postby Guest » 15 Jan 2005 10:49

This is what I get :(


ts warning: invalid header [0x36:ca:98:90] (pid: 1071)
ts warning: invalid header [0x53:89:e5:dd] (pid: 1072)
ts warning: invalid header [0x78:23:a9:82] (pid: 1071)
ts warning: invalid header [0x43:20:e1:39] (pid: 1071)
ts warning: invalid header [0xad:bd:ba:b6] (pid: 1071)
ts warning: invalid header [0xeb:26:80:57] (pid: 1071)
ts warning: invalid header [0x3e:83:ed:d1] (pid: 1071)
ts warning: invalid header [0x85:36:86:37] (pid: 1071)
ts warning: invalid header [0x6d:87:c:c9] (pid: 1072)
ts warning: invalid header [0xaa:f1:d2:e2] (pid: 1071)
ts warning: invalid header [0x63:b9:cd:1f] (pid: 1071)
ts warning: invalid header [0x99:4c:23:76] (pid: 1071)
ts warning: invalid header [0xa2:9c:7e:61] (pid: 1071)
ts warning: invalid header [0xe8:d2:2c:8a] (pid: 1071)
ts warning: invalid header [0x47:6c:f8:c8] (pid: 1072)
ts warning: invalid header [0x27:6e:1e:d5] (pid: 1071)
ts warning: invalid header [0x88:4b:79:ea] (pid: 1071)
ts warning: invalid header [0xe6:b4:7e:3b] (pid: 1071)
ts warning: invalid header [0xb8:8f:a7:eb] (pid: 1071)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 1 guest