Hi alib,
is it possible, that you integrate a powerbutton in 0.3.7? It would be usefull to turn off the VDR from everywhere.
...
Hi alib,
is it possible, that you integrate a powerbutton in 0.3.7? It would be usefull to turn off the VDR from everywhere.
...
ZitatOriginal von alib
DrBoon, fixed in git, can you test ?
nice, now the Category-load seems to be ok. ( First tests )
BUT: When I try to start a livetv-stream or a Recording ( push the "3g/edge/wifi" button ), it shows me the "Now Streaming", but I cant push the Play button. The ffmpeg-process is there, and it shows me the Session. ( Sessions are nice, big thanks ).
ZitatAlles anzeigenvdr:/srv/www/vhosts/default/www/istreamdev # l ram/session0/
total 1696
drwxr-xr-x 2 wwwrun www 110 Feb 27 19:10 ./
drwxr-xr-x 3 wwwrun www 40 Feb 27 19:10 ../
-rw-r--r-- 1 wwwrun www 1317 Feb 27 19:10 logo.png
-rw-r--r-- 1 wwwrun www 641456 Feb 27 19:10 stream-1.ts
-rw-r--r-- 1 wwwrun www 815544 Feb 27 19:10 stream-2.ts
-rw-r--r-- 1 wwwrun www 240640 Feb 27 19:10 stream-3.ts
-rw-r--r-- 1 wwwrun www 201 Feb 27 19:10 stream.m3u8
-rw-r--r-- 1 wwwrun www 1442 Feb 27 19:10 streaminfo
PS: by default the "ram"-directory is missing in current git.
Have you changed something tonight?
after a new git fetch all seems fine. Thank you
EDIT:
Can you add:
* "Kill all Sessions" to the Home-screen, if there any active sessions ?
And when I start a Screen, then reopen istreamdev and change to session0, and push "Stop Stream", then I come to a Empty screen - In this case it should jump to the Home-Screen automaticly ... I think.
ZitatAlles anzeigenOriginally posted by DrBoon
Have you changed something tonight?
after a new git fetch all seems fine. Thank you
EDIT:
Can you add:
* "Kill all Sessions" to the Home-screen, if there any active sessions ?
And when I start a Screen, then reopen istreamdev and change to session0, and push "Stop Stream", then I come to a Empty screen - In this case it should jump to the Home-Screen automaticly ... I think.
Hi,
I cannot reproduce your bug.
When i enter in a new session and quit, it goes back to the screen where you choose the quality.
Then you can go back to home with the right button
Isnt it ?
Hi,
as DrBoom suggested, there is a new button to kill all sessions on the home screen.
Thanks.
Ups.
It works! I have tested the whole time from my ubuntu machine. Now I have started it from the iPhone and it works:-)
Sorry again for to be so impatient:-))
regards
Griso
Sorry, I have some trouble installing istreamdev.
I have installed the package in /var/www/istreamdev and set the permissions for www-data with the command chown -R www-data:www-data /var/www/istreamdev
For checking php5, I have placed a phpinfo.php script in /var/www/istreamdev. If I open http://myip/istreamdev/phpinfo.php I can see the output of phpinfo.php
If I open http://myip/istreamdev I get a download dialog box in my browser and I don't know why!?
In config.php I have to set user and password. Which user is required here?
Perhaps someone can help...
regards
Griso
EDIT: streaming is broken after changing .. i look for an solution EDIT
hi
i sad it already but ..
it is much better to cut before a comma in channel name ... like all others tools do ..
in inc_vdr.php
look for
and change it to ..
$channels = explode(":", $line);
$channels = explode(";", $channels[0]);
$channels = explode(",", $channels[0]);
$chan = $channels[0];
looks very nice and the epg works !!!
mentox
We have chans here with a , like "I,Tele" ... it would mess up the result.
ZitatOriginal von TheTroll
We have chans here with a , like "I,Tele" ... it would mess up the result.
ok .. and how looks this channel in vdradmin or other tool? (iVDR work also correct without comma)
in all tools i know the channel is only "RTL Television" ..
mentox
and here some officiell text
Name
The channel's name (if the name originally contains a ':' character it has to be replaced
by '|'). Some tv stations provide a way of deriving a "short name" from the channel name,
which can be used in situations where there is not much space for displaying a long name.
If a short name is available for this channel, it follows the full name and is delimited by a
comma, as in
RTL Television,RTL:...
If present, the name of the service provider or "bouquet" is appended to the channel name,
separated by a semicolon, as in
RTL Television,RTL;RTL World:...
Alles anzeigen
Well it means that a chan called "I,TELE" should be reported as "I" ?
Bad bad bad...
but this is the correct way today ..
perhaps we should ask kls about this problem .. perhaps we have to quote a comma ...
Funny Thing: Appending Plugins to istreamdev *gg*
( Only a little test, but it works ... yes, code is Ugly )
This is my House-Automation Controll ( FHEM = FHZ1000 from Conrad Electronic ).
Putting "include('includes/inc_fhem.php')" to inc_home ( over or under the block "if ($vdrenabled)" )
./include/inc_fhem.php :
<?php
$fhemaction = $_REQUEST['fhem_action'];
if (!file_exists("fhem_vdr.onoff"))
{
$fhem_onoff_vdr="Off";
} else {
$fhem_onoff_vdr="On";
}
if (!file_exists("fhem_lamp.onoff"))
{
$fhem_onoff_lamp="Off";
} else {
$fhem_onoff_lamp="On";
}
if (!file_exists("fhem_garage.onoff"))
{
$fhem_onoff_garage="Closed";
} else {
$fhem_onoff_garage="Open";
}
switch ($fhemaction)
{
case("vdr"):
if ( $fhem_onoff_vdr == "On" ) { $fhem_onoff_vdr = "Off (*)"; } else { $fhem_onoff_vdr = "On (*)"; }
exec("printf \"/usr/src/fhem-4.8/fhem.pl 127.0.0.1:7072 \\\"set swz011 off\\\"\" |at now");
break;
case("lamp"):
if ( $fhem_onoff_lamp == "On" ){ $fhem_onoff_lamp = "Off (*)"; } else { $fhem_onoff_lamp = "On (*)"; }
exec("printf \"/usr/src/fhem-4.8/fhem.pl 127.0.0.1:7072 \\\"set Eingangstuerschalter001 toggle\\\"\" |at now");
break;
case("garage"):
if ( $fhem_onoff_garage == "Closed" ){ $fhem_onoff_garage = "Open (*)"; } else { $fhem_onoff_garage = "Closed (*)"; }
exec("printf \"/usr/src/fhem-4.8/fhem.pl 127.0.0.1:7072 \\\"set Eingangstuerschalter002 toggle\\\"\" |at now");
break;
default:
//nothing
break;
}
print " <span class=\"graytitle\">FHEM</span>\r\n";
print " <ul class=\"pageitem\">\r\n";
if (( $fhem_onoff_vdr == "On" ) or ( $fhem_onoff_vdr == "On (*)" )) { $fhem_vdr_logo="fhem_tv_on.png"; } else { $fhem_vdr_logo="fhem_tv_off.png"; }
print " <li class=\"menu\"><a href=\"javascript:sendForm('toggle_vdr')\"><img src=\"images/pictos/" . $fhem_vdr_logo . "\" /><span class=\"name\">VDR " . $fhem_onoff_vdr . "</span><span class=\"arrow\"></span></a></li>\r\n";
print " <form name=\"toggle_vdr\" id=\"toggle_vdr\" method=\"post\" action=\"index.php\"><input name=\"fhem_action\" type=\"hidden\" id=\"fhem_action\" value=\"vdr\" /></form>\r\n";
if (( $fhem_onoff_lamp == "On" ) or ( $fhem_onoff_lamp == "On (*)" )) { $fhem_lamp_logo="fhem_lamp_on.png"; } else { $fhem_lamp_logo="fhem_lamp_off.png"; }
print " <li class=\"menu\"><a href=\"javascript:sendForm('toggle_lamp')\"><img src=\"images/pictos/" . $fhem_lamp_logo . "\" /><span class=\"name\">Light " . $fhem_onoff_lamp . "</span><span class=\"arrow\"></span></a></li>\r\n";
print " <form name=\"toggle_lamp\" id=\"toggle_lamp\" method=\"post\" action=\"index.php\"><input name=\"fhem_action\" type=\"hidden\" id=\"fhem_action\" value=\"lamp\" /></form>\r\n";
print " <li class=\"menu\"><a href=\"javascript:sendForm('toggle_garage')\"><img src=\"images/pictos/fhem_garage.png\" /><span class=\"name\">Garage " . $fhem_onoff_garage . "</span><span class=\"arrow\"></span></a></li>\r\n";
print " <form name=\"toggle_garage\" id=\"toggle_garage\" method=\"post\" action=\"index.php\"><input name=\"fhem_action\" type=\"hidden\" id=\"fhem_action\" value=\"garage\" /></form>\r\n";
print " </ul>";
?>
Alles anzeigen
If a Device is Toggled by fhem, it creates or removes "fhem_vdr.onoff, fhem_garage.onoff, fhem_lamp.onoff" ...
Todo:
* Config File for the Devices and their Toggle-Commands
* Logo's ( Garage open/close, TV on/off, Lamps on/off, Windows open/close, ... )
* Temperatur Monitor line
istreamdev is so nice, big Thanks.
EDIT:
Watching what's on ( through my Webcam
Putting "include('includes/inc_cam.php')" to inc_home ( in the block "if ($vdrenabled)" )
includes/inc_cam.php:
<?php
print " <li class=\"menu\"><a href=\"javascript:sendForm('stream_cam')\"><img src=\"images/pictos/tv.png\" /><span class=\"name\">Cam</span><span class=\"arrow\"></span></a></li>\r\n";
print " <form name=\"stream_cam\" id=\"stream_cam\" method=\"post\" action=\"index.php\"><input name=\"action\" type=\"hidden\" id=\"stream_cam\" value=\"startstream\" /><input name=\"type\" type=\"hidden\" id=\"stream_cam\" value=\"1\" /><input name=\"name\" type=\"hidden\" id=\"stream_cam\" value=\"Cam\" /><input name=\"title\" type=\"hidden\" id=\"stream_cam\" value=\"Cam\" /><input name=\"qname\" type=\"hidden\" id=\"stream_cam\" value=\"3g\" /><input name=\"qparams\" type=\"hidden\" id=\"stream_cam\" value=\"350k 64k 1 408x272\" /><input name=\"url\" type=\"hidden\" id=\"stream_cam\" value=\"http://192.168.178.30/img/video.asf\" /></form>\r\n";
?>
latest version is now live: 0.3.7
In top of the thread.
Good test.
ZitatOriginal von DrBoon
Funny Thing: Appending Plugins to istreamdev *gg*
very cool .. i dont have the system from conrad .. i made my own stuff .. but i have written an on web app for this .. because you can do much more than vdr stuff ..
but looks cool .. perhaps i add a button for my system to istreamdev too,
thanks for the idea
done
mav_
Hi all,
wow, great. I have been hoping for an iPhone Stream app ever since I got my first iPhone. Thanks a lot.
I spent the night installing and compiling and configuring the components; a little bitt tricky for me as a Linux amateur, but it seems that it works thanks to the hints of this thread.
However, I can't create the TS files, an I'm not sure wether it is a path problem.
I have installed ffmpeg binaries in /var/www/istreamdev/segmenter/ffmpeg
(don't ask why, thinks that happen a 4 o clock in the morning
When I call the test via
./istream.sh http://localhost:3000/TS/1 512k 64k 1 480x320 ./ 3 /var/www/istreamdev/segmenter/ffmpeg /usr/bin/segmenter
I get
Could not open input file, make sure it is an mpegts file: -1
When I call the test, as suggested in this thread, as
./istream.sh http://localhost:3000/TS/1 512k 64k -ac 1 480x320 ./ 3 /var/www/istreamdev/segmenter/ffmpeg /usr/bin/segmenter
I get
./istream.sh: line 28: cd: ram//usr/bin/segmenter: Datei oder Verzeichnis nicht gefunden
./istream.sh: line 36: /var/www/istreamdev/segmenter/ffmpeg: is a directory
My config.php is:
<?php
// Http configuration
$user = 'istreamdev'; // Login
$pass = 'iguest'; // Password
$httppath = '/istreamdev/'; // Absolute path to the index.php file. //Don't put http://yourdomain !!
// VDR configuration
$vdrenabled=1; // enable/disable VDR features
$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='/var/lib/video/'; //VDR recording directory
// Media configuration
$videotypes='avi mkv ts mov mp4 wmv flv mpg mpeg mpeg2 mpv '; // Supported video extensions (must finish with a space)
// 1:vid 2:aud Source name Source path
$mediasource=array();
$mediasources[]=array ( 1, 'Video', '/mnt/media/movies');
$mediasources[]=array ( 2, 'Audio', '/mnt/media/music');
// Encoding
// Name Video Audio Audio channels Resolution
$quality=array ( 'Edge' => '128k 64k 1 240x160',
'3g' => '350k 64k 1 408x272',
'Wifi' => '512k 128k 2 480x320');
$maxencodingprocesses=10; // Max simultaneous encoding processes
// Misc
$ffmpegpath = '/var/www/istreamdev/segmenter/ffmpeg'; //path to ffmpeg binary
$segmenterpath = '/usr/bin/segmenter'; //path to segmenter binary
// Version
$isdversion = "0.3.7";
?>
Alles anzeigen
My istream.sh is
#!/bin/bash
STREAM=$1
VRATE=$2
ARATE=$3
ACHANNELS=$4
XY=$5
HTTP_PATH="$6ram/"
SEGDUR=10 # Length of Segments produced (between 10 and 30)
SEGWIN=$7 # Amount of Segments to produce
FFPATH=$8
SEGMENTERPATH=$9
SESSION=${10}
if [ $# -eq 0 ]
then
echo "Format is : ./istream.sh source video_rate audio_rate audio_channels 480x320 httppath segments_number ffmpeg_path segmenter_path"
exit 1
fi
#############################################################
# start dumping the TS via Streamdev into a pipe for ffmpeg
# and store baseline 3.0 mpegts to outputfile
# sending it to the segmenter via a PIPE
##############################################################
cd ram/$SESSION
2> /dev/null rm stream*.ts
2> /dev/null $FFPATH -i "$STREAM" -deinterlace -f mpegts -acodec libmp3lame -ab $ARATE -ac $ACHANNELS -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 - | \
$SEGMENTERPATH - $SEGDUR stream stream.m3u8 $HTTP_PATH$SESSION/ $SEGWIN &
Alles anzeigen
Segmenter seems to work, I call the tests as user www-data, I took him out of at-deny, but I simply can't find the error. I would be very greatful for a little help to get thinks started.
Regards
Martin
Hi,
you could for instance try to replace
> /dev/null $FFPATH -i "$STREAM" -deinterlace -f mpegts -acodec libmp3lame -ab $ARATE -ac $ACHANNELS -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 - | \
$SEGMENTERPATH - $SEGDUR stream stream.m3u8 $HTTP_PATH$SESSION/ $SEGWIN &
by
> /dev/null $FFPATH -i "$STREAM" -deinterlace -f mpegts -acodec libmp3lame -ab $ARATE -ac $ACHANNELS -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 ./test.ts
and see if ts is actually a transport file ?
Hi,
thanks. I just tried this. The good news is that there are no error messages any more. The bad news: it seems that nothing else has happened. I imagine that tests.ts should have been generated in /ram?
Martin
yes its should
try to add an "echo" before the ffmpeg command and launch it manually.
not sure whether I got you right. I've put echo into istream.sh (echo 2> /dev/null $FFPATH -i "$STREAM" etc. etc.)
then called ./istream.sh http://localhost:3000/TS/1 512k 64k 1 480x320 ./ 3 /var/www/istreamdev/segmenter/ffmpeg /usr/bin/segmenter
from the command line, and what i get is
/var/www/istreamdev/segmenter/ffmpeg -i http://localhost:3000/TS/1 -deinterlace -f mpegts -acodec libmp3lame -ab 64k -ac 1 -s 480x320 -vcodec libx264 -b 512k -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 512k -maxrate 512k -bufsize 512k -rc_eq blurCplx^(1-qComp) -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -g 30 -async 2 -threads 4 ./test.ts
Martin
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!