Problem downloading 'shetland'
Jim web
web at audiomisc.co.uk
Tue Nov 17 05:15:31 PST 2026
On 17 Nov, web at audiomisc.co.uk wrote:
> More details and a copy of the app can be got from
> http://jcgl.orpheusweb.co.uk/temp/Gipper.zip
*Apologies*, that was a version taken from my newer laptop, but may not be
the same as what I mainly use on a bigger AV box. The actual version of
Gipper that I'm mostly using is 3.23 which newer, and has some changes that
I think are relevant. It specifically mentions DASH so may need altering.
(?) I've listed the 'C' below. Last modified in Jan 2024
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
long i,jcount,iok;
char* charpoint;
FILE* infile;
FILE* settingsfile;
FILE* outfile;
FILE* giplistfile;
char indirname[1024];
char infilename[1024];
char glname[1024];
char iodirectory[1024];
char leafname[1024];
char tempname[1024];
char appdirname[1024];
char settingsfilename[1024];
char vodname[1024];
char aodname[1024];
char outfilename[1024];
char giputliname[1024];
char fflocate[1024];
char avtype[64];
char ssstring[64];
char tsstring[64];
char commandstring[1024];
char pid[64];
char avmode;
long sh,sm,ss,th,tm,ts,tsecs,xh,xm,xs,ssecs,dsecs;
long i,ok;
long read_settingsfile(void);
void getprogramme(void);
int main(int argc,char*argv[])
{
printf("Gipper v3.23\nJim Lesurf Jan 2024\n\n");
i=argc;
printf("Number of arguments given = %ld\n\n",i);
sprintf(appdirname,"%s",argv[0]);
ok=(long)strrchr(appdirname,'/')-(long)appdirname;
appdirname[ok]=(char)0;
printf("Application directory = %s\n",appdirname);
sprintf(settingsfilename,"%s/%s",appdirname,"Settings");
printf("Settings file at %s\n",settingsfilename);
ok=read_settingsfile();
if(i==1)
{
printf("\n\nPlease read the help inside the application\n");
printf("first for more details!\n\n");
printf("\n\nDrag a giplist of pids to the Application icon\n");
printf("to fetch a series of AV files.\n\n");
printf("To fetch a single programme give the following details:\n");
printf(" Enter type\n [ r = DASH radio : p = podcast : w = DASH World
Sevice\n");
printf(" v = DASH hdtv : t = DASH sdtv : i = get programme info\n
x = DASH HDTV excluding bidi : e = Editorial HD ]\n and press
return/enter:\n => ");
scanf("%c",&avmode);
printf(" Enter programme pid => ");
scanf("%s",pid);
printf ("mode = %c pid = %s\n",avmode,pid);
iok=0;
getprogramme();
}
if(i==2)
{
sprintf(glname,"%s",argv[1]);
sprintf(iodirectory,"%s",glname);
sprintf(leafname,"%s",1+strrchr(glname,'/'));
ok=(long)strrchr(iodirectory,'/')-(long)iodirectory;
iodirectory[ok]=(char)0;
ok=(long)strrchr(iodirectory,'/')-(long)iodirectory;
iodirectory[ok]=(char)0;
printf("Edit file = %s\n",glname);
printf(" leafname = %s \n",leafname);
printf("I/O directory = %s\n",iodirectory);
giplistfile=fopen(glname,"rt");
while( fscanf(giplistfile,"%c %s\n",&avmode,pid)==2)
{
iok=0;
printf("pid = %s\n mode = %c",pid,avmode);
getprogramme();
}
fclose(giplistfile);
}
printf("Done!\n");
return 0;
}
void getprogramme(void)
{
printf(" Trying to get programme\n");
if(avmode=='i')
{
iok=1;
sprintf(commandstring,"%s --info --no-purge --pid %s >>
%s/pid_info/info_%s.txt\n",giputliname,pid,appdirname,pid);
}
if(avmode=='t')
{
iok=1;
sprintf(commandstring,"%s --tvmode=best --no-tag --pid %s --force
--ffmpeg %s --output %s\n",giputliname,pid,fflocate,vodname);
}
if(avmode=='r')
{
iok=1;
sprintf(commandstring,"%s --type=radio --mode=daf --force --no-tag
--pid %s --ffmpeg %s --output %s\n",giputliname,pid,fflocate,aodname);
}
if(avmode=='w')
{
iok=1;
sprintf(commandstring,"%s --radiomode=dafhigh,dafstd,dafmed --force
--no-tag --pid %s --ffmpeg %s --output
%s\n",giputliname,pid,fflocate,aodname);
}
if(avmode=='p')
{
iok=1;
sprintf(commandstring,"%s --radiomode=dafhigh,dafstd,dafmed
--version=podcast --force --no-tag --pid %s --ffmpeg %s --output
%s\n",giputliname,pid,fflocate,aodname);
}
if(avmode=='e')
{
iok=1;
sprintf(commandstring,"%s --tvmode=dvfhd --versions=editorial --no-tag
--pid %s --force --ffmpeg %s --output
%s\n",giputliname,pid,fflocate,vodname);
}
if(avmode=='v')
{
iok=1;
sprintf(commandstring,"%s --tvmode=dvfhd --no-tag --pid %s --force
--ffmpeg %s --output %s\n",giputliname,pid,fflocate,vodname);
}
if(avmode=='x')
{
iok=1;
sprintf(commandstring,"%s --tvmode=dvfhd --no-tag
--exclude-supplier=bidi --pid %s --force --ffmpeg %s --output
%s\n",giputliname,pid,fflocate,vodname);
}
if(iok==1)
{
printf("\ncommand = \n %s\n\n",commandstring);
system(commandstring);
}
else
{
printf("mode not recognised!\n\n");
}
}
long read_settingsfile(void)
{
long result;
sprintf(settingsfilename,"%s/Settings",appdirname);
printf("\nSettings file at %s\n",settingsfilename);
settingsfile=fopen(settingsfilename,"rt");
fscanf(settingsfile,"%s",giputliname);
printf(" Will use %s for fetching\n",giputliname);
fscanf(settingsfile,"%s",tempname);
sprintf(vodname,"%s",tempname);
printf("Video will go into dir = %s\n",vodname);
fscanf(settingsfile,"%s",tempname);
sprintf(aodname,"%s",tempname);
printf("Audio will go into dir = %s\n",aodname);
fscanf(settingsfile,"%s",fflocate);
printf("Will use %s\n",fflocate);
fclose(settingsfile);
result=1;
return result;
}
--
Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html
Audio Misc http://www.audiomisc.co.uk/index.html
More information about the get_iplayer
mailing list