Page 1 of 1
Set Recording Filename and path
Posted: Fri Jan 25, 2008 8:29 am
by Dinesh_H
Is this possible with the module api. I am writing a new network encoder for SageTV to better handle HD broadcasts.
Thanks,
Dinesh
Posted: Sat Jan 26, 2008 9:46 am
by Dinesh_H
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.
Posted: Sat Jan 26, 2008 2:54 pm
by rel
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
Posted: Sat Jan 26, 2008 4:29 pm
by Dinesh_H
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
Posted: Tue Jan 29, 2008 10:51 pm
by rel
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
Posted: Thu Jan 31, 2008 6:57 am
by Dinesh_H
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
Posted: Sat Feb 02, 2008 4:40 am
by rel
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