You are not logged in.

Dear visitor, welcome to VDR Portal. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

DrBoon

Intermediate

Posts: 409

Location: de/bayern/hof

Occupation: Systemintegrator

  • Send private message

221

Tuesday, March 30th 2010, 2:31pm

PS:

where you get the Status?

Quoted

"img_off": "img/off.gif",
"status": "on";
},
{
"name": "Shutdown VDR",
VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

222

Tuesday, March 30th 2010, 7:19pm

Quoted

Original von DrBoon
@mentox: Can you validate this?


under gentoo i have to re merge php with useflag zlib and json .. now it works

thanks ...
VDR Server: 1,8 core2 Duo, 3x TT-S3200, Gentoo, VDR 1.7.22
VDR Client 1: Zotac ION, Gentoo, streamdev, VDR 1.7.22
VDR Client 2: Nvidia 9500GT, Gentoo aktuell yavdr (zum Testen), streamdev, VDR 1.7.22
VDR Client 3: Nvidia GT220 passiv, Gentoo, streamdev, VDR 1.7.28

223

Tuesday, March 30th 2010, 8:02pm

That's what php answers to js client. So at this moment, php checked if the status file is present, and answer yes if it is.

Then the client knows which image to show.

DrBoon

Intermediate

Posts: 409

Location: de/bayern/hof

Occupation: Systemintegrator

  • Send private message

224

Tuesday, March 30th 2010, 8:11pm

@alib: sounds great ... :)

@mentox: thanks.
VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

225

Thursday, April 1st 2010, 10:32am

Hey,
is it possible to use antoher touchscreen handy like iphone?
Possible to use a notebook as client?

Gruß
Parti

NemoN

Professional

Posts: 636

Location: Hamburg (Neu Wulmstorf)

Occupation: QA Engineer

  • Send private message

226

Thursday, April 1st 2010, 10:44am

Quoted

Possible to use a notebook as client?


Webgui works flawless with Safari under MacOS, but no stream is shown (seqmenter is up and encoding). i think the code to embed a stream into Safari is different from Mobile Safari.
NAS: Synology D213+
Server: Debian, 2.5" 320GB, 3.5" 2TB, GuruPlug Plus, 10 Watt idle
Client 1: HD/VDPAU (VDR 2.0.x / 1.5TB / Antec Fusion Remote / yaUsbIr / M3N78-EM + GT220 (inkl. HDMI Audio) / AMD X2 250 / 2GB RAM / HVR-4000 / NOVA-HD-S2) (CineS2 wartet auf Einbau)
Client 2: M740AV (VDR 1.4.7)

DrBoon

Intermediate

Posts: 409

Location: de/bayern/hof

Occupation: Systemintegrator

  • Send private message

227

Thursday, April 1st 2010, 10:58am

hmm, is it possible to use the ENV['USERAGENT'] Variable, to differentiate the Browsers ?

Something like that:

Source code

1
if (navigator.appCodeName == "Apple iPhone OS *")


Setting the Content type for Mediaplayers should be easy.

Just my two Cent *g*
VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

This post has been edited 2 times, last edit by "DrBoon" (Apr 1st 2010, 10:59am)


228

Thursday, April 1st 2010, 11:27am

The Live HTTP Stream Protocol is only supported by Iphone for the moment.

The video in the page is embedded with the HTML5 <video> tag.

If any other webkit based browser don't show the video, it's just because it's not supported by the plateform so.


There's no goal for this apps to run on other device as Iphone for the moment.

As everything is optimised for Webkit browser, i think the nav works ok on Androids phone, but for the moment Android don't handle Live HTTP Stream protocol yet.

DrBoon

Intermediate

Posts: 409

Location: de/bayern/hof

Occupation: Systemintegrator

  • Send private message

229

Thursday, April 1st 2010, 12:11pm

^^ That is, what the "Live-Plugin" includes ( advisable )

( DE: Im Live-Plugin ist das Streamen für Standard-Browser enthalten ( Empfehlenswert ) ).
VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

230

Thursday, April 1st 2010, 12:30pm

to achieve this, a whole new client needs to be done, as many features won't work on other browsers :

- i have a bunch of triggers on animation start and end ( not supported by IE, Firefox, Opera, etc ).
- All iphone looking drop down menu with multi selection works only on Iphone with touch events.
- Many jqTouch specific events are used.

The good thing are:

- php server don't write any html code, but send only json data.
- so we only have to build a new .html client for other browsers and detects wich one is best suited according to client browser.

What needs to be done on server side:
- New json functions & parameters to call streaming process according to client type.


There's a lot of works, I only concentrate on Iphone features for now.
Perhaps later.

231

Thursday, April 1st 2010, 12:43pm

thanks

NemoN

Professional

Posts: 636

Location: Hamburg (Neu Wulmstorf)

Occupation: QA Engineer

  • Send private message

232

Thursday, April 1st 2010, 1:02pm

Here is a Quick-and-dirty patch to enable streaming with desktop safari (with small video centering fix).
For me (Safari 4.0.4) all streaming features are working (Live Video, Recordings(!) and even Video streaming)
NemoN has attached the following image:
  • desktop-streaming.jpg
NemoN has attached the following file:
NAS: Synology D213+
Server: Debian, 2.5" 320GB, 3.5" 2TB, GuruPlug Plus, 10 Watt idle
Client 1: HD/VDPAU (VDR 2.0.x / 1.5TB / Antec Fusion Remote / yaUsbIr / M3N78-EM + GT220 (inkl. HDMI Audio) / AMD X2 250 / 2GB RAM / HVR-4000 / NOVA-HD-S2) (CineS2 wartet auf Einbau)
Client 2: M740AV (VDR 1.4.7)

This post has been edited 2 times, last edit by "NemoN" (Apr 1st 2010, 1:08pm)


Habib

Professional

Posts: 732

Location: Bremer Raum

Occupation: Student

  • Send private message

233

Thursday, April 1st 2010, 2:47pm

Hi,

could you explain me how to use the patch?
I tried it after extracting with these command:

Source code

1
2
3
root@Multimedia-HD:/var/www/istreamdev/js# patch -p0 < desktop-safari-streaming.patch

patch: **** malformed patch at line 9: thumb.png?' + time + '" src="' + url + '" ></video><span rel="ready"></span>');


I think, there is something wrong with the patchfile, or?

I use the git Version of istreamdev 1.0 and Safarri 4.0.5 (OSX)

I tried to put in the patch manualy, but the result is the same as without... I can't get the playbutton for streaming...

UPDATE: it's works now, after I tried it manually again. I`ve made now a new versions
Habib has attached the following file:
Gruß
Habib

--------------------------------
Aufnahme-Server:
Silverstone Lascala SST-LC10M
Reel Stable 11.12.2, HDe, 1x 2TB HDD als Aufnahme Server, iVDR 0.3.2 (manuelle Fixe f. Aufnahmeverz.)
Netceiver mit 3x DUAL DVB-S2
Clients:
3x REEL NetClients
Reel Stable 11.12.2

This post has been edited 1 times, last edit by "Habib" (Apr 1st 2010, 3:01pm)


NemoN

Professional

Posts: 636

Location: Hamburg (Neu Wulmstorf)

Occupation: QA Engineer

  • Send private message

234

Thursday, April 1st 2010, 2:56pm

i replaced in js/istreamdev.js:

Source code

1
streaming.find('#player').html('<video id="videofeed" width="' + thumbwidth + '" height="' + thumbheight + '" poster="ram/session' + session + '/ thumb.png?' + time + '" src="' + url + '" ></video><span rel="ready"></span>');


with:

Source code

1
2
streaming.find('#player').removeAttr("style");
streaming.find('#player').html('<video id="videofeed" src="' + url + '" controls autoplay ></video><span rel="ready"></span>');
NAS: Synology D213+
Server: Debian, 2.5" 320GB, 3.5" 2TB, GuruPlug Plus, 10 Watt idle
Client 1: HD/VDPAU (VDR 2.0.x / 1.5TB / Antec Fusion Remote / yaUsbIr / M3N78-EM + GT220 (inkl. HDMI Audio) / AMD X2 250 / 2GB RAM / HVR-4000 / NOVA-HD-S2) (CineS2 wartet auf Einbau)
Client 2: M740AV (VDR 1.4.7)

235

Thursday, April 1st 2010, 3:08pm

Hi guys,

a new way to handle the segmenter/ffmpeg PIDs has been adde on GIT.
It would be greatly appreciated if some of you could test it :)

Thanks!

DrBoon

Intermediate

Posts: 409

Location: de/bayern/hof

Occupation: Systemintegrator

  • Send private message

236

Thursday, April 1st 2010, 3:17pm

Quoted


[Thu Apr 01 15:19:50 2010] [error] [client 88.79.85.86] PHP Notice: Undefined offset: 0 in /srv/www/vhosts/fhem/www/istreamdev/bin/session.php on line 37, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 15:19:50 2010] [error] [client 88.79.85.86] PHP Notice: Undefined index: video in /srv/www/vhosts/fhem/www/istreamdev/bin/session.php on line 160, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 15:19:50 2010] [error] [client 88.79.85.86] PHP Notice: Undefined index: video in /srv/www/vhosts/fhem/www/istreamdev/bin/session.php on line 161, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 15:19:50 2010] [error] [client 88.79.85.86] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/ram/session0/thumb.png, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 15:19:53 2010] [error] [client 88.79.85.86] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/ram/session0/thumb.png
[Thu Apr 01 15:19:54 2010] [error] [client 88.79.85.86] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/undefined

Quoted

[2010/04/01 15:25:59] Executing action [startBroadcast]
[2010/04/01 15:25:59] Creating a new session for "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec" (rec, 3g)
[2010/04/01 15:25:59] Creating new session dir ram/session0
[2010/04/01 15:25:59] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/01 15:25:59] Generating stream logo for file SciFi of type rec
[2010/04/01 15:25:59] Executing generation cmd: cp "../logos/nologoREC.png" ../ram/session0/thumb.png
[2010/04/01 15:25:59] Sending encoding command: cat "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec"/0* | ./istream.sh - 350k 64k 408x272 /istreamdev/ 1260 /usr/local/bin/ffmpeg /usr/local/bin/segmen
ter session0 "" >/dev/null &
[2010/04/01 15:25:59] Writting stream info from session session0 (type=rec, mode=3g, url=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec, channame=SciFi)
[2010/04/01 15:25:59] Executing action [getStreamInfo]
[2010/04/01 15:25:59] Getting info for session session0
[2010/04/01 15:25:59] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/01 15:26:00] Executing action [getStreamStatus]
[2010/04/01 15:26:00] Returning status: <b>Error: segmenter did not start correclty</b>
VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

This post has been edited 6 times, last edit by "DrBoon" (Apr 1st 2010, 3:28pm)


237

Thursday, April 1st 2010, 3:41pm

Thanks :)

very nice indeed...

Edit:

[Thu Apr 01 15:19:50 2010] [error] [client 88.79.85.86] PHP Notice: Undefined offset: 0 in /srv/www/vhosts/fhem/www/istreamdev/bin/session.php on line 37, referer: http://192.168.178.27/istreamdev/index.php

this is very strange ?
Can you double check your config.php file ? specially the quality part ?

thanks

This post has been edited 1 times, last edit by "TheTroll" (Apr 1st 2010, 3:48pm)


DrBoon

Intermediate

Posts: 409

Location: de/bayern/hof

Occupation: Systemintegrator

  • Send private message

238

Thursday, April 1st 2010, 4:11pm

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
vdr:/srv/www/vhosts/fhem/www # rm istreamdev -R
vdr:/srv/www/vhosts/fhem/www # git clone git://projects.vdr-developer.org/istreamdev.git
Initialized empty Git repository in /srv/www/vhosts/fhem/www/istreamdev/.git/
remote: Counting objects: 2741, done.
remote: Compressing objects: 100% (2698/2698), done.
remote: Total 2741 (delta 1634), reused 342 (delta 24)
Receiving objects: 100% (2741/2741), 1.57 MiB | 1705 KiB/s, done.
Resolving deltas: 100% (1634/1634), done.
vdr:/srv/www/vhosts/fhem/www # cd istreamdev
vdr:/srv/www/vhosts/fhem/www/istreamdev # cp ../istreamdev.git.20100330/logos/ logos/ -R
vdr:/srv/www/vhosts/fhem/www/istreamdev # vi config_default.php
vdr:/srv/www/vhosts/fhem/www/istreamdev # mkdir ram
vdr:/srv/www/vhosts/fhem/www/istreamdev # chown wwwrun:www * -R
vdr:/srv/www/vhosts/fhem/www/istreamdev # >/tmp/istreamdev.log
vdr:/srv/www/vhosts/fhem/www/istreamdev # >/tmp/istreamdev-ffmpeg.log
vdr:/srv/www/vhosts/fhem/www/istreamdev # chmod 755 bin/istream.sh


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
        // Enable/disable features
        $enablevdr=1;                   // VDR features
        $enablemediavideo=1;            // Video files streaming
        $enablemediaaudio=1;            // Audio files streaming

        // Debug mode
        $debug=1;                       // Debug all action
        $debugfile="/tmp/istreamdev.log"; // Debug file
        $ffmpegdebug=1;                 // Debug ffmpeg
        $ffmpegdebugfile="/tmp/istreamdev-ffmpeg.log"; // FFmpeg debug file

        // Http configuration
        $user='user';            // Login
        $pass='pass';                        // Password
        $httppath='/istreamdev/';       // Absolute path to the index.php file. Don't put http://yourdomain !!

        // VDR configuration
        $vdrchannels='/etc/vdr/channels.conf';                  // VDR channel list
        $svdrpport=2001;                                        // SVDRP port
        $svdrpip='127.0.0.1';                                   // SVDRP ip
        $vdrstreamdev='http://127.0.0.1:3000/TS/';              // VDR streamdev URL
        $vdrrecpath='/video/';                                  // VDR recording directory
        $vdrepgmaxdays=1;                                       // Number of days to get from EPG

        // Media configuration
        $videotypes='avi mkv ts mov mp4 wmv flv mpg mpeg mpeg2 mpv ';   // Supported video extensions (must finish with a space)
        $audiotypes='mp3 aac wav ';                                     // Supported audio extensions
        $videosource='/srv/';                           // Video files directory
        $audiosource='/srv/';                           // Audio files directory

        // Encoding (The name cannot be changed)
        //                      Name            Video   Audio   Resolution
        $quality=array  (       'edge'  =>      '128k   64k     240x160',
                                '3g'    =>      '350k   64k     408x272',
                                'wifi'  =>      '512k   128k    480x320');
        $maxencodingprocesses=3;                // Max simultaneous encoding processes

        // Misc
        $ffmpegpath='/usr/local/bin/ffmpeg';            //path to ffmpeg binary
        $segmenterpath='/usr/local/bin/segmenter';      //path to segmenter binary

        // Version
        $isdversion = "1.0";
?>


---

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 36, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:35 2010] [error] [client 88.79.85.86] PHP Notice:  Use of undefined constant fp - assumed 'fp' in /srv/www/vhosts/fhem/www/istreamdev/bin/vdr.php on line 107, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:47 2010] [error] [client 88.79.85.86] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/logos/SciFi.png, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:50 2010] [error] [client 88.79.85.86] PHP Notice:  Undefined offset:  0 in /srv/www/vhosts/fhem/www/istreamdev/bin/session.php on line 37, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:50 2010] [error] [client 88.79.85.86] PHP Notice:  Undefined index:  video in /srv/www/vhosts/fhem/www/istreamdev/bin/session.php on line 160, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:50 2010] [error] [client 88.79.85.86] PHP Notice:  Undefined index:  video in /srv/www/vhosts/fhem/www/istreamdev/bin/session.php on line 161, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:50 2010] [error] [client 88.79.85.86] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/ram/session0/thumb.png, referer: http://192.168.178.27/istreamdev/index.php
[Thu Apr 01 16:08:51 2010] [error] [client 88.79.85.86] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/ram/session0/thumb.png
[Thu Apr 01 16:08:51 2010] [error] [client 88.79.85.86] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/undefined


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[2010/04/01 16:08:34]  Executing action [getGlobals]
[2010/04/01 16:08:35]  Executing action [getFullChanList]
[2010/04/01 16:08:35]  VDR: vdrgetcategories()
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=Haupt, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=PREMIERE, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=HD, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=Musik, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=Radio, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=CAM, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=Sonstige, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=DokuInfo, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=NEWS, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=ATV+ORF, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=PREMIERE FEEDS, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=XXX, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=ARD, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=ZDFvision, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=Astra, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=Deutsche Telekom, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=EUROSPORT, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=ARD, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=PREMIERE, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=ZDFvision, now=0)
[2010/04/01 16:08:35]  VDR: vdrgetchannels(category=neu, now=0)
[2010/04/01 16:08:35]  Executing action [getRunningSessions]
[2010/04/01 16:08:35]  Listing sessions
[2010/04/01 16:08:41]  Executing action [browseFolder]
[2010/04/01 16:08:41]  Listing dir: /video/
[2010/04/01 16:08:43]  Executing action [browseFolder]
[2010/04/01 16:08:43]  Listing dir: /video/Afterworld/
[2010/04/01 16:08:45]  Executing action [browseFolder]
[2010/04/01 16:08:45]  Listing dir: /video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/
[2010/04/01 16:08:47]  Executing action [getRecInfo]
[2010/04/01 16:08:47]  VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/01 16:08:50]  Executing action [startBroadcast]
[2010/04/01 16:08:50]  Creating a new session for "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec" (rec, 3g)
[2010/04/01 16:08:50]  Creating new session dir ram/session0
[2010/04/01 16:08:50]  VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/01 16:08:50]  Generating stream logo for file SciFi of type rec
[2010/04/01 16:08:50]  Executing generation cmd: cp "../logos/nologoREC.png" ../ram/session0/thumb.png
[2010/04/01 16:08:50]  Sending encoding command: cat "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec"/0* | ./istream.sh - 350k  64k     408x272 /istreamdev/ 1260 /usr/local/bin/ffmpeg /usr/local/bin/segmen
ter session0 "/tmp/istreamdev-ffmpeg.log" >/dev/null &
[2010/04/01 16:08:50]  Writting stream info from session session0 (type=rec, mode=3g, url=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec, channame=SciFi)
[2010/04/01 16:08:50]  Executing action [getStreamInfo]
[2010/04/01 16:08:50]  Getting info for session session0
[2010/04/01 16:08:50]  VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/01 16:08:51]  Executing action [getStreamStatus]
[2010/04/01 16:08:51]  Returning status: <b>Error: segmenter did not start correclty</b>


the Output from cat "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_12010-03-31.05.39.14-0.rec"/0* | ./istream.sh - 350k 64k 408x272 /istreamdev/ 1260 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" is nothing ... no new processes spawning.
VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

This post has been edited 5 times, last edit by "DrBoon" (Apr 1st 2010, 5:00pm)


DrBoon

Intermediate

Posts: 409

Location: de/bayern/hof

Occupation: Systemintegrator

  • Send private message

239

Thursday, April 1st 2010, 5:06pm

if this help:

i add to istream.sh the folowing line:

Source code

1
2
3
4
5
6
7
8
9
# Start ffmpeg
(trap "rm -f ...

echo "trap \"rm -f ./ffmpeg.pid; rm -f ./fifo\" EXIT HUP INT TERM ABRT; $FFPATH -i "$STREAM" -deinterlace -f mpegts -acodec libmp3lame -ab $ARATE -ac 2 -s $XY -vcodec libx264 -b $VRATE -flags +loop \
 -cmp \+chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16  -keyint_min 25 \
 -sc_threshold 40 -i_qfactor 0.71 -bt $VRATE -maxrate $VRATE -bufsize $VRATE -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 \
 -qmin 10 -qmax 51 -qdiff 4 -level 30  -g 30 -async 2 -threads 4 - 2>$FFMPEGLOG > ./fifo" >>/tmp/istreamdev.log

... # Store ffmpeg pid 



and i get in /tmp/istreamdev.log

Source code

1
2
trap "rm -f ./ffmpeg.pid; rm -f ./fifo" EXIT HUP INT TERM ABRT; /usr/local/bin/ffmpeg -i - -deinterlace -f mpegts -acodec libmp3lame -ab 64k -ac 2 -s 408x272 -vcodec libx264 -b 350k -flags +loop  -cmp \+chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16  -keyint_min 25  -sc_threshold 40 -i_qfactor 0.71 -bt 350k -maxrate 350k -bufsize 350k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6  -qmin 10 -qmax 51 -qdiff 4 -level 30  -g 30 -asy
nc 2 -threads 4 - 2>/tmp/istreamdev-ffmpeg.log > ./fifo



and when i reopen /tmp/istreamdev-ffmpeg.log:

Source code

1
2
3
4
5
6
7
8
9
10
11
FFmpeg version git-463c62d, Copyright (c) 2000-2010 Fabrice Bellard, et al.
  built on Feb 22 2010 11:58:52 with gcc 4.3.2 [gcc-4_3-branch revision 141291]
  configuration: --prefix=/usr --enable-gpl --enable-libxvid --enable-postproc --enable-pthreads --enable-avfilter --enable-shared --enable-libx264 --enable-nonfree --enable-libmp3lame --enable-libfaac
  libavutil     50. 9. 0 / 50. 9. 0
  libavcodec    52.54. 0 / 52.54. 0
  libavformat   52.52. 0 / 52.52. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.17. 0 /  1.17. 0
  libswscale     0.10. 0 /  0.10. 0
  libpostproc   51. 2. 0 / 51. 2. 0
pipe:: Error while opening file
VDR1.7.12 + ExtPatch on openSuSE 11.1 2.6.27.45-0.1-default (x86_64) gcc 4.3.2 r141291
1xNexus (fw:f12623) ** 3xTeVii S650 ** Alphacrypt/SKY ** DVB-Treiber 7.6.09cvs ** 7" GraphTFT ** VOMP on MediaMVP ** zendeb 0.4.0.b1 on S100 ** 4ch Atmolight
Xine-lib-1.2 20100412(vdpau) +DFextPatch ** XINE-UI ** Nvidia GT240 (260.19.36) ** Samsung LE46C650 ** istreamdev-git_20110216 to IPhone

This post has been edited 1 times, last edit by "DrBoon" (Apr 1st 2010, 5:08pm)


240

Thursday, April 1st 2010, 5:38pm

Interesting, but with this patch , you break the thumbnail of video on iphone part.