Es ist ja nun möglich WebRadio über den Audioplayer der DBox zu hören,nun wollte ich ganz gern WebTV über die DBox schauen (z.B Viva Plus).Ist das möglich und wenn ja wie????

Code: Alles auswählen
File: ffwrap.c
#define _FILE_OFFSET_BITS 64
#define _GNU_SOURCE 1
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <string.h>
#define BUF_SIZE 32768
#define MAXPIDS 16
#define CMD_STR "/usr/bin/ffmpeg -y -i %s -vcodec copy -acodec copy -f mpegts - 2>/dev/null"
int main (int argc, char ** argv)
{
int pid, cnt;
char buf[BUF_SIZE];
char *fname;
char *bp;
if (argc>1)
fname = argv[1];
else
{
fprintf(stderr, "usage: ffwrap <filename>\n");
return EXIT_FAILURE;
}
fclose(stderr);
/* read one line */
bp = buf;
while (bp - buf < BUF_SIZE)
{
unsigned char c;
read(STDIN_FILENO, &c, 1);
if ((*bp++ = c) == '\n') break;
}
*bp++ = 0;
bp = buf;
/* send response to http client */
if (!strncmp((const char *)"GET /", buf, 5))
{
printf("HTTP/1.1 200 OK\r\n");
printf("Server: streamtsd (%s)\r\n\r\n", &argv[1][1]);
fflush(stdout);
bp += 5;
}
/* parse stdin / url path */
cnt = 0;
do
{
cnt++;
sscanf(bp, "%x", &pid);
}
while ((bp = strchr(bp, ',')) && (bp++) && (cnt < MAXPIDS));
sprintf(buf, CMD_STR, fname);
system(buf);
return EXIT_SUCCESS;
}
Code: Alles auswählen
File: /etc/xinetd.d/mystream
service http
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/local/bin/ffwrap
server_args = /videos/film.mpg
disable = no
}
Code: Alles auswählen
file = streamtest.ts
#DBOXSTREAM
IS=192.168.xxx.xxx;80;0x100,0x101,-1
Mal blöd gefragt, kann der VLC das nicht?jmittelst hat geschrieben:Wäre möglich, wenn ...
... man eine Applikation hätte, die den Stream empfängt und ihn als Box-konformen MPG2-Stream an die Box schickt, der dann z.B. in dem modifizieren Movieplayer abgespielt werden könnten, oder evtl. per PlugIn.
Da es sowas noch nicht gibt müßtest Du jemanden finden, der das programmiert.
Ich würde es klasse finden, wenn Du jemanden findest.
cu
Jens