Jump to content
Sign in to follow this  
Bobben

How To Grabbing Ts Packets With Delphi ?

Recommended Posts

Bobben

I have been programming some stuff in Delphi 6.

Its mainly some applications for grabbing TS via the SCSI interface of a Nokia DVB2000 receiver

where somebody gave a good example on how to do just that.

 

Is there simular possibilities with DVB cards ?

 

I mainly need an source code example on how to setup the DVB reception parameters and start grabbing of

the TS data. PID filter and other filters I will have to write myself.

 

Would have been really nice to experiment and try to make some tools.

 

At the moment I grab TS from Transedit and use the TS file in Delphi 6. Would be nice to do it

without the input from a TS recording. Then it would also be possible handle the TS data in real time.

Share this post


Link to post
Lars_MQ

Well you cann allways write a plugin for DVBViewer getting the ts stream directly.

 

BTW nothing to do with DVBViewer directly -> moved

Share this post


Link to post
Bobben
Well you cann allways write a plugin for DVBViewer getting the ts stream directly.

 

BTW nothing to do with DVBViewer directly -> moved

 

Sorry if I posted in wrong section.

 

Maybe plugin will be easiest.

 

I have downloaded some plugin examples but it seams like they cant be run

in Delphi and then its a bit more difficult to do debugging.

 

Should it be possible to run/test plugins in Delphi or must they always be loaded

by DVBViewer application ?

Edited by Bobben

Share this post


Link to post
Hartwig
Should it be possible to run/test plugins in Delphi or must they always be loaded

by DVBViewer application ?

They should be loaded by DVBViewer. But you can do it inside Delphi.

 

define the output path and the host application.

Then, if you click "run", DVBViewer will be startet with the new Plugin and the plugin is running inside Delphis debugger.

post-1668-1176671330_thumb.png

post-1668-1176671336_thumb.png

Share this post


Link to post
Griga

Here you'll find a code sample that shows how the Videorecorder Plugin makes a request for certain streams (delivered via PidCallback):

 

http://www.DVBViewer.info/forum/index.php?...st&p=131918

 

Don't use the PluginPids pointer of the Execute function - no more supported. DVBHandle is the handle of the DVBViewer main window, passed by SetAppHandle.

Share this post


Link to post
Lars_MQ

Another thought: you can user the open whole transponder function of the netstreaming plugin and receive it via tcp/IP unicast. It delivers the complete TS stream, all you have to do is remove the header first send:

 

'HTTP/1.1 200 OK' + #13#10 +
'Server: DVBViewer (Windows)' + #13#10 +
'Content-Type: video/mpeg2' + #13#10 + #13#10;

 

And watch for packet fragmentation.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...