Set Recording Filename and path

Module API help / support section for programmers.

Moderators: Dreamer, FredB, X05

Dinesh_H
Just popping in
Posts: 8
Joined: Fri Jan 25, 2008 8:24 am
Location: Texas

Set Recording Filename and path

Postby Dinesh_H » Fri Jan 25, 2008 8:29 am

Is this possible with the module api. I am writing a new network encoder for SageTV to better handle HD broadcasts.

Thanks,

Dinesh

Genpix 8psk-toUSB2
DVBDream 1.4h
SageTV with Network Encoder
Core2Duo with ATI 2600HT
Dinesh_H
Just popping in
Posts: 8
Joined: Fri Jan 25, 2008 8:24 am
Location: Texas

Postby Dinesh_H » Sat Jan 26, 2008 9:46 am

Could this message be a clue to my problem?

DDMODAPI_GET_SETTINGS_POINTER

It is not documented. The current working network encoder is using it.
Genpix 8psk-toUSB2
DVBDream 1.4h
SageTV with Network Encoder
Core2Duo with ATI 2600HT
User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Postby rel » Sat Jan 26, 2008 2:54 pm

yea, if you can locate the "record string" in the structure.

v1.4i might have a new ModuleAPI command to set record file name string. I will post it here
DVB Dream - because I have to dream about having time to code it
Dinesh_H
Just popping in
Posts: 8
Joined: Fri Jan 25, 2008 8:24 am
Location: Texas

Postby Dinesh_H » Sat Jan 26, 2008 4:29 pm

I noticed the new test version now records h.264 content when the recording type is set to mpeg. However it records them with a ts extension. These would playback in SageTV if they had an mpg extension. The network encoder api is expecting the file with that extension. And therefore cannot find the file being currently recorded.

If you could have a choice of which extension is the default on saved files..Regardless of the contents. I will be able to get the current SageTV network encoder to work for some H.264 encoded channels.

This will then shift the focus to the Sage developers to improve their mpeg splitter/demux and mplayer component.

Thanks for the worderful program.

Dinesh
Genpix 8psk-toUSB2
DVBDream 1.4h
SageTV with Network Encoder
Core2Duo with ATI 2600HT
User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Postby rel » Tue Jan 29, 2008 10:51 pm

new v1.4i MODAPI command:

DDMODAPI_SET_RECFILENAME = $00100057; {Sets the record file name}

lParam: pointer to null terminated filename (including extension)

just sent a PM with test version
DVB Dream - because I have to dream about having time to code it
Dinesh_H
Just popping in
Posts: 8
Joined: Fri Jan 25, 2008 8:24 am
Location: Texas

Postby Dinesh_H » Thu Jan 31, 2008 6:57 am

I tried it out last night. It only records when mpg mode is selected in preferences. Also h.264 channels record with no video.

Thanks for the great work,

Dinesh
Genpix 8psk-toUSB2
DVBDream 1.4h
SageTV with Network Encoder
Core2Duo with ATI 2600HT
User avatar
rel
relocation
Posts: 2051
Joined: Fri Jun 16, 2006 9:50 am

Postby rel » Sat Feb 02, 2008 4:40 am

new module api command to set record file type:

DDMODAPI_SET_RECFORMAT = $00100058; {Sets the record format}


lparam: record type

// Record Types
const
REC_TS = 1;
REC_MPG = 2;


this function will be working in v1.4i
DVB Dream - because I have to dream about having time to code it

Return to “Module / Plugin Programming”

Who is online

Users browsing this forum: No registered users and 1 guest