only quick and dirty
on my system the thumnails are not generated (without patch too)
only quick and dirty
on my system the thumnails are not generated (without patch too)
Ok it seems the new version does not like recordings...
can you try with a chan or a file please ?
thanks
Well well it should work now
Please test again with recordings when you got a minute!
Thanks for your help.
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: 2772, done.
remote: Compressing objects: 100% (2729/2729), done.
remote: Total 2772 (delta 1656), reused 342 (delta 24)
Receiving objects: 100% (2772/2772), 1.57 MiB | 1546 KiB/s, done.
Resolving deltas: 100% (1656/1656), done.
vdr:/srv/www/vhosts/fhem/www # cd istreamdev
vdr:/srv/www/vhosts/fhem/www/istreamdev # mkdir ram
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 # vi config_default.php
vdr:/srv/www/vhosts/fhem/www/istreamdev # chown wwwrun:www * -R
vdr:/srv/www/vhosts/fhem/www/istreamdev # chmod 755 bin/istream.sh
Alles anzeigen
<?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.1";
?>
Alles anzeigen
[2010/04/02 12:09:17] Executing action [getGlobals]
[2010/04/02 12:09:18] Executing action [getFullChanList]
[2010/04/02 12:09:18] VDR: vdrgetcategories()
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=Haupt, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=PREMIERE, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=HD, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=Musik, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=Radio, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=CAM, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=Sonstige, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=DokuInfo, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=NEWS, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=ATV+ORF, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=PREMIERE FEEDS, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=XXX, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=ARD, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=ZDFvision, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=Astra, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=Deutsche Telekom, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=EUROSPORT, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=ARD, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=PREMIERE, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=ZDFvision, now=0)
[2010/04/02 12:09:18] VDR: vdrgetchannels(category=neu, now=0)
[2010/04/02 12:09:18] Executing action [getRunningSessions]
[2010/04/02 12:09:18] Listing sessions
[2010/04/02 12:09:27] Executing action [browseFolder]
[2010/04/02 12:09:27] Listing dir: /video/
[2010/04/02 12:09:30] Executing action [browseFolder]
[2010/04/02 12:09:30] Listing dir: /video/Afterworld/
[2010/04/02 12:09:32] Executing action [browseFolder]
[2010/04/02 12:09:32] Listing dir: /video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/
[2010/04/02 12:09:34] Executing action [getRecInfo]
[2010/04/02 12:09:34] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/02 12:09:36] Executing action [startBroadcast]
[2010/04/02 12:09:36] Creating a new session for "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec" (rec, 3g)
[2010/04/02 12:09:36] Creating new session dir ram/session0
[2010/04/02 12:09:36] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/02 12:09:36] Generating stream logo for file SciFi of type rec
[2010/04/02 12:09:36] Executing generation cmd: cp "../logos/nologoREC.png" ../ram/session0/thumb.png
[2010/04/02 12:09:36] Sending encoding command: ./istream.sh - 350k 64k 408x272 /istreamdev/ 1260 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" "/video/Afterworld/Wahrheit_oder_Konsequenzen,
_Teil_1/2010-03-31.05.39.14-0.rec/0* " >/dev/null &
[2010/04/02 12:09:36] 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/02 12:09:37] Executing action [getStreamInfo]
[2010/04/02 12:09:37] Getting info for session session0
[2010/04/02 12:09:37] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/02 12:09:38] Executing action [getStreamStatus]
[2010/04/02 12:09:38] Returning status: <b>Rec: requesting SciFi</b><br><br> * FFmpeg: <i>running</i><br> * Segmenter: <i>running</i> (0/2)</i>
[2010/04/02 12:09:38] Executing action [getStreamStatus]
[2010/04/02 12:09:48] Returning status: Error: session could not start
Alles anzeigen
/tmp/istreamdev-ffmpeg.log is empty
i think:
Zitat./istream.sh - 350k 64k 408x272 /istreamdev/ 1260 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" "/video/Afterworld/Wahrheit_oder_Konsequenzen,
_Teil_1/2010-03-31.05.39.14-0.rec/0* " >/dev/null &
should be
Zitat./istream.sh - 350k 64k 408x272 /istreamdev/ 1260 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" "/video/Afterworld/Wahrheit_oder_Konsequenzen,
_Teil_1/2010-03-31.05.39.14-0.rec"/0* >/dev/null &
i try it in commandline, and /tmp/istreamdev-ffmpeg.log says:
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
[mpegts @ 0x63a3c0]max_analyze_duration reached
[mpegts @ 0x63a3c0]Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
Input #0, mpegts, from 'pipe:':
Duration: N/A, start: 6047.736622, bitrate: 15576 kb/s
Program 132
Stream #0.0[0xa3]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x68](deu): Audio: mp2, 48000 Hz, 2 channels, s16, 192 kb/s
Stream #0.2[0x6a](deu): Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s
Stream #0.3[0x69]: Data: 0x0006
[libx264 @ 0x655d30]using SAR=32/27
[libx264 @ 0x655d30]using cpu capabilities: MMX2 SSE2Slow
[libx264 @ 0x655d30]profile Baseline, level 3.0
Output #0, mpegts, to 'pipe:':
Stream #0.0: Video: libx264, yuv420p, 408x272 [PAR 32:27 DAR 16:9], q=10-51, 350 kb/s, 90k tbn, 25 tbc
Stream #0.1(deu): Audio: libmp3lame, 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
frame= 72 fps= 0 q=23.0 size= 97kB time=1.40 bitrate= 570.4kbits/s dup=15 drop=0 ^Mframe= 130 fps=130 q=20.0 size= 237kB time=3.72 bitrate= 521.5kbits/s dup=15 drop=0 ^Mframe= 186 fps=124 q=22.0 size= 365kB time=5
.96 bitrate= 501.2kbits/s dup=15 drop=0 ^Mframe= 243 fps=121 q=20.0 size= 499kB time=8.24 bitrate= 496.1kbits/s dup=15 drop=0 ^Mframe= 294 fps=117 q=26.0 size= 624kB time=10.28 bitrate= 497.6kbits/s dup=15 drop=0 ^M[mp
egts @ 0x89c3a0]dts < pcr, TS is invalid
frame= 348 fps=116 q=23.0 size= 764kB time=12.44 bitrate= 502.8kbits/s dup=15 drop=0 ^Mframe= 402 fps=114 q=23.0 size= 865kB time=14.60 bitrate= 485.5kbits/s dup=15 drop=0 ^Mframe= 452 fps=113 q=28.0 size= 991kB time
=16.60 bitrate= 489.0kbits/s dup=15 drop=0 ^Mframe= 503 fps=111 q=27.0 size= 1118kB time=18.64 bitrate= 491.2kbits/s dup=15 drop=0 ^Mframe= 558 fps=111 q=30.0 size= 1250kB time=20.84 bitrate= 491.4kbits/s dup=15 drop=0
^Mframe= 611 fps=111 q=28.0 size= ...
Alles anzeigen
EDIT: At Live-TV the same error:
[2010/04/02 12:23:33] Creating a new session for "http://127.0.0.1:3000/TS/4" (tv, 3g)
[2010/04/02 12:23:33] Creating new session dir ram/session0
[2010/04/02 12:23:33] VDR: vdrgetchanname(channum=4)
[2010/04/02 12:23:33] Sending SVDRP command: LSTC 4
[2010/04/02 12:23:34] SVDRP command result received
[2010/04/02 12:23:34] Generating stream logo for file kabel eins of type tv
[2010/04/02 12:23:34] Executing generation cmd: cp "../logos/nologoTV.png" ../ram/session0/thumb.png
[2010/04/02 12:23:34] Sending encoding command: ./istream.sh "http://127.0.0.1:3000/TS/4" 350k 64k 408x272 /istreamdev/ 2 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" "" >/dev/null &
[2010/04/02 12:23:34] Writting stream info from session session0 (type=tv, mode=3g, url=http://127.0.0.1:3000/TS/4, channame=kabel eins)
[2010/04/02 12:23:34] Executing action [getStreamInfo]
[2010/04/02 12:23:34] Getting info for session session0
[2010/04/02 12:23:34] VDR: vdrgetchannum(chan=kabel eins)
[2010/04/02 12:23:34] Sending SVDRP command: LSTC
[2010/04/02 12:23:35] SVDRP command result received
[2010/04/02 12:23:35] VDR: vdrgetepgat(channum=4, at=now)
[2010/04/02 12:23:35] Sending SVDRP command: LSTE 4 now
[2010/04/02 12:23:35] SVDRP command result received
[2010/04/02 12:23:35] VDR: vdrgetepgat(channum=4, at=next)
[2010/04/02 12:23:35] Sending SVDRP command: LSTE 4 next
[2010/04/02 12:23:35] SVDRP command result received
[2010/04/02 12:23:36] Executing action [getStreamStatus]
[2010/04/02 12:23:36] Returning status: <b>Live: requesting kabel eins</b><br><br> * FFmpeg: <i>running</i><br> * Segmenter: <i>running</i> (0/2)</i>
[2010/04/02 12:23:37] Executing action [getStreamStatus]
[2010/04/02 12:23:47] Returning status: Error: session could not start
Alles anzeigen
But when i Call this command directly on Commandline, it seems to be working:
./istream.sh "http://127.0.0.1:3000/TS/4" 350k 64k 408x272 /istreamdev/ 2 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" ""
Why don't call with ATd ?
Hi,
thanks for your tests.
We dropped at because it was not working for some people.
Could you please try with the latest git, I have added a bit of reporting ...
thanks
Try to watch a Record:
[2010/04/02 16:22:19] Executing action [browseFolder]
[2010/04/02 16:22:19] Listing dir: /video/
[2010/04/02 16:22:21] Executing action [browseFolder]
[2010/04/02 16:22:21] Listing dir: /video/Afterworld/
[2010/04/02 16:22:24] Executing action [browseFolder]
[2010/04/02 16:22:24] Listing dir: /video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/
[2010/04/02 16:22:26] Executing action [getRecInfo]
[2010/04/02 16:22:26] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/02 16:22:28] Executing action [startBroadcast]
[2010/04/02 16:22:28] Creating a new session for "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec" (rec, 3g)
[2010/04/02 16:22:28] Creating new session dir ram/session0
[2010/04/02 16:22:28] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/02 16:22:28] Generating stream logo for file SciFi of type rec
[2010/04/02 16:22:28] Executing generation cmd: cp "../logos/nologoREC.png" ../ram/session0/thumb.png
[2010/04/02 16:22:28] Sending encoding command: ./istream.sh - 350k 64k 408x272 /istreamdev/ 1260 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec/0* " >/dev/null &
[2010/04/02 16:22:28] 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/02 16:22:28] Executing action [getStreamInfo]
[2010/04/02 16:22:28] Getting info for session session0
[2010/04/02 16:22:28] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/02 16:22:29] Executing action [getStreamStatus]
[2010/04/02 16:22:29] Returning status: <b>Error: streaming could not start correclty</b><br><br> * FFmpeg: <i>stopped</i><br> * Segmenter: <i>running</i> (0/2)</i>
Alles anzeigen
Try to watch Live-TV:
[2010/04/02 16:24:52] Executing action [getTvCat]
[2010/04/02 16:24:52] VDR: vdrgetcategories()
[2010/04/02 16:24:55] Executing action [getTvChan]
[2010/04/02 16:24:55] VDR: vdrgetchannels(category=Haupt, now=1)
[2010/04/02 16:24:55] Sending SVDRP command: LSTE NOW
[2010/04/02 16:24:56] SVDRP command result received
[2010/04/02 16:25:01] Executing action [getChanInfo]
[2010/04/02 16:25:01] VDR: vdrgetchaninfo(channum=1)
[2010/04/02 16:25:01] VDR: vdrgetchanname(channum=1)
[2010/04/02 16:25:01] Sending SVDRP command: LSTC 1
[2010/04/02 16:25:02] SVDRP command result received
[2010/04/02 16:25:02] VDR: vdrgetepgat(channum=1, at=now)
[2010/04/02 16:25:02] Sending SVDRP command: LSTE 1 now
[2010/04/02 16:25:02] SVDRP command result received
[2010/04/02 16:25:02] VDR: vdrgetepgat(channum=1, at=next)
[2010/04/02 16:25:02] Sending SVDRP command: LSTE 1 next
[2010/04/02 16:25:02] SVDRP command result received
[2010/04/02 16:25:08] Executing action [startBroadcast]
[2010/04/02 16:25:08] Creating a new session for "http://127.0.0.1:3000/TS/1" (tv, 3g)
[2010/04/02 16:25:08] Creating new session dir ram/session0
[2010/04/02 16:25:08] VDR: vdrgetchanname(channum=1)
[2010/04/02 16:25:08] Sending SVDRP command: LSTC 1
[2010/04/02 16:25:08] SVDRP command result received
[2010/04/02 16:25:08] Generating stream logo for file Das Erste of type tv
[2010/04/02 16:25:08] Executing generation cmd: cp "../logos/nologoTV.png" ../ram/session0/thumb.png
[2010/04/02 16:25:08] Sending encoding command: ./istream.sh "http://127.0.0.1:3000/TS/1" 350k 64k 408x272 /istreamdev/ 2 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" "" >/dev/null &
[2010/04/02 16:25:08] Writting stream info from session session0 (type=tv, mode=3g, url=http://127.0.0.1:3000/TS/1, channame=Das Erste)
[2010/04/02 16:25:08] Executing action [getStreamInfo]
[2010/04/02 16:25:08] Getting info for session session0
[2010/04/02 16:25:08] VDR: vdrgetchannum(chan=Das Erste)
[2010/04/02 16:25:08] Sending SVDRP command: LSTC
[2010/04/02 16:25:09] SVDRP command result received
[2010/04/02 16:25:09] VDR: vdrgetepgat(channum=1, at=now)
[2010/04/02 16:25:09] Sending SVDRP command: LSTE 1 now
[2010/04/02 16:25:09] SVDRP command result received
[2010/04/02 16:25:09] VDR: vdrgetepgat(channum=1, at=next)
[2010/04/02 16:25:09] Sending SVDRP command: LSTE 1 next
[2010/04/02 16:25:09] SVDRP command result received
[2010/04/02 16:25:11] Executing action [getStreamStatus]
[2010/04/02 16:25:11] Returning status: <b>Error: streaming could not start correclty</b><br><br> * FFmpeg: <i>stopped</i><br> * Segmenter: <i>running</i> (0/2)</i>
Alles anzeigen
PS: I think Quoting the full Path AND a Asterisk will always fail at the Recordings istream.sh-call.
Zitat... "/path/to/recording/*" ...
Zitat... "/path/to/recording"/* ...
When not Calling with ATd, then try it with the screen command?
I'm not shure that screen Process forks better to background than "cmd &", but i think.
try "screen -ls" while it should be running, than you must see a "stream 0" ... connect to it with "screen -x stream0" ...
Hum screen is a solution yes.
About the wildcard, live and file streaming does not need it.
Do they work for you ? If they do, then it is not a wildcard issue
thx
EDIT: another fix was just commited...
EDIT2: forget it, still not OK,,,
Recording:
[2010/04/02 16:47:05] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/02 16:47:07] Executing action [startBroadcast]
[2010/04/02 16:47:07] Creating a new session for "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec" (rec, 3g)
[2010/04/02 16:47:07] Creating new session dir ram/session0
[2010/04/02 16:47:07] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/02 16:47:07] Generating stream logo for file SciFi of type rec
[2010/04/02 16:47:07] Executing generation cmd: cp "../logos/nologoREC.png" ../ram/session0/thumb.png
[2010/04/02 16:47:07] Sending encoding command: ./istream.sh - 350k 64k 408x272 /istreamdev/ 1260 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec/0* " >/dev/null &
[2010/04/02 16:47:07] 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/02 16:47:07] Executing action [getStreamInfo]
[2010/04/02 16:47:07] Getting info for session session0
[2010/04/02 16:47:07] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/02 16:47:08] Executing action [getStreamStatus]
[2010/04/02 16:47:08] Returning status: <b>Error: streaming could not start correclty</b><br><br> * FFmpeg: <i>stopped</i><br> * Segmenter: <i>stopped</i>
Alles anzeigen
live:
[2010/04/02 16:48:26] Generating stream logo for file Das Erste of type tv
[2010/04/02 16:48:26] Executing generation cmd: cp "../logos/nologoTV.png" ../ram/session0/thumb.png
[2010/04/02 16:48:26] Sending encoding command: ./istream.sh "http://127.0.0.1:3000/TS/1" 350k 64k 408x272 /istreamdev/ 2 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" "" >/dev/null &
[2010/04/02 16:48:26] Writting stream info from session session0 (type=tv, mode=3g, url=http://127.0.0.1:3000/TS/1, channame=Das Erste)
[2010/04/02 16:48:26] Executing action [getStreamInfo]
[2010/04/02 16:48:26] Getting info for session session0
[2010/04/02 16:48:26] VDR: vdrgetchannum(chan=Das Erste)
[2010/04/02 16:48:26] Sending SVDRP command: LSTC
[2010/04/02 16:48:27] SVDRP command result received
[2010/04/02 16:48:27] VDR: vdrgetepgat(channum=1, at=now)
[2010/04/02 16:48:27] Sending SVDRP command: LSTE 1 now
[2010/04/02 16:48:27] SVDRP command result received
[2010/04/02 16:48:27] VDR: vdrgetepgat(channum=1, at=next)
[2010/04/02 16:48:27] Sending SVDRP command: LSTE 1 next
[2010/04/02 16:48:27] SVDRP command result received
[2010/04/02 16:48:29] Executing action [getStreamStatus]
[2010/04/02 16:48:29] Returning status: <b>Error: streaming could not start correclty</b><br><br> * FFmpeg: <i>stopped</i><br> * Segmenter: <i>stopped</i>
Alles anzeigen
PS:
./istream.sh - 350k 64k 408x272 /istreamdev/ 1260 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session1 "/tmp/istreamdev-ffmpeg.log" "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec/0*" >/dev/null &
won't work at present ( if apache try to start it ), on command-line it seems to work.
ps ax ( start it on commandline
31711 ? S 0:00 /bin/bash ./istream.sh http://127.0.0.1:3000/TS/1 350k 64k 408x272 /istreamdev/ 2 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 /tmp/istreamdev-ffmpeg.log
31712 ? S 0:00 /usr/local/bin/segmenter ./fifo 10 stream stream.m3u8 /istreamdev/ram/session0/ 2
I think " & " is no way to fork a process for Apache.
EDIT: Sry, my fail:
seems to work on command-line, too.
Ok now it works for me in all situation!
A last test if you can please.
On live recording only, please get the log and also do a "ps -fA f" command
we need to know what runs ...
[2010/04/02 17:42:56] Executing action [getGlobals]
[2010/04/02 17:42:57] Executing action [getRunningSessions]
[2010/04/02 17:42:57] Listing sessions
[2010/04/02 17:42:57] Executing action [getFullChanList]
[2010/04/02 17:42:57] VDR: vdrgetcategories()
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=Haupt, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=PREMIERE, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=HD, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=Musik, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=Radio, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=CAM, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=Sonstige, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=DokuInfo, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=NEWS, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=ATV+ORF, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=PREMIERE FEEDS, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=XXX, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=ARD, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=ZDFvision, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=Astra, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=Deutsche Telekom, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=EUROSPORT, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=ARD, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=PREMIERE, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=ZDFvision, now=0)
[2010/04/02 17:42:57] VDR: vdrgetchannels(category=neu, now=0)
[2010/04/02 17:43:17] Executing action [getTvCat]
[2010/04/02 17:43:17] VDR: vdrgetcategories()
[2010/04/02 17:43:20] Executing action [getTvChan]
[2010/04/02 17:43:20] VDR: vdrgetchannels(category=Haupt, now=1)
[2010/04/02 17:43:20] Sending SVDRP command: LSTE NOW
[2010/04/02 17:43:20] SVDRP command result received
[2010/04/02 17:43:59] Executing action [getChanInfo]
[2010/04/02 17:43:59] VDR: vdrgetchaninfo(channum=1)
[2010/04/02 17:43:59] VDR: vdrgetchanname(channum=1)
[2010/04/02 17:43:59] Sending SVDRP command: LSTC 1
[2010/04/02 17:43:59] SVDRP command result received
[2010/04/02 17:43:59] VDR: vdrgetepgat(channum=1, at=now)
[2010/04/02 17:43:59] Sending SVDRP command: LSTE 1 now
[2010/04/02 17:43:59] SVDRP command result received
[2010/04/02 17:43:59] VDR: vdrgetepgat(channum=1, at=next)
[2010/04/02 17:43:59] Sending SVDRP command: LSTE 1 next
[2010/04/02 17:44:00] SVDRP command result received
[2010/04/02 17:44:04] Executing action [startBroadcast]
[2010/04/02 17:44:04] Creating a new session for "http://127.0.0.1:3000/TS/1" (tv, 3g)
[2010/04/02 17:44:04] Creating new session dir ram/session0
[2010/04/02 17:44:04] VDR: vdrgetchanname(channum=1)
[2010/04/02 17:44:04] Sending SVDRP command: LSTC 1
[2010/04/02 17:44:05] SVDRP command result received
[2010/04/02 17:44:05] Generating stream logo for file Das Erste of type tv
[2010/04/02 17:44:05] Executing generation cmd: cp "../logos/nologoTV.png" ../ram/session0/thumb.png
[2010/04/02 17:44:05] Sending encoding command: ./istream.sh "http://127.0.0.1:3000/TS/1" 350k 64k 408x272 /istreamdev/ 2 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" "" >/dev/null &
[2010/04/02 17:44:05] Writting stream info from session session0 (type=tv, mode=3g, url=http://127.0.0.1:3000/TS/1, channame=Das Erste)
[2010/04/02 17:44:05] Executing action [getStreamInfo]
[2010/04/02 17:44:05] Getting info for session session0
[2010/04/02 17:44:05] VDR: vdrgetchannum(chan=Das Erste)
[2010/04/02 17:44:05] Sending SVDRP command: LSTC
[2010/04/02 17:44:06] SVDRP command result received
[2010/04/02 17:44:06] VDR: vdrgetepgat(channum=1, at=now)
[2010/04/02 17:44:06] Sending SVDRP command: LSTE 1 now
[2010/04/02 17:44:06] SVDRP command result received
[2010/04/02 17:44:06] VDR: vdrgetepgat(channum=1, at=next)
[2010/04/02 17:44:06] Sending SVDRP command: LSTE 1 next
[2010/04/02 17:44:06] SVDRP command result received
[2010/04/02 17:44:08] Executing action [getStreamStatus]
[2010/04/02 17:44:08] Returning status: <b>Error: streaming could not start correclty</b><br><br> * FFmpeg: <i>stopped</i><br> * Segmenter: <i>stopped</i>
Alles anzeigen
ps -fA f -> See attachment
Ok it seems your apache2 conf hates running processes like this
We have to look into that...
Ok I also redirect "2" instead of only "1>dev/null'
Could you please try again with the latest code ?
thanks!
[2010/04/02 19:36:18] Executing action [getRunningSessions]
[2010/04/02 19:36:18] Listing sessions
[2010/04/02 19:36:23] Executing action [getTvCat]
[2010/04/02 19:36:23] VDR: vdrgetcategories()
[2010/04/02 19:36:25] Executing action [getTvChan]
[2010/04/02 19:36:25] VDR: vdrgetchannels(category=Haupt, now=1)
[2010/04/02 19:36:25] Sending SVDRP command: LSTE NOW
[2010/04/02 19:36:25] SVDRP command result received
[2010/04/02 19:36:29] Executing action [getChanInfo]
[2010/04/02 19:36:29] VDR: vdrgetchaninfo(channum=1)
[2010/04/02 19:36:29] VDR: vdrgetchanname(channum=1)
[2010/04/02 19:36:29] Sending SVDRP command: LSTC 1
[2010/04/02 19:36:29] SVDRP command result received
[2010/04/02 19:36:29] VDR: vdrgetepgat(channum=1, at=now)
[2010/04/02 19:36:29] Sending SVDRP command: LSTE 1 now
[2010/04/02 19:36:29] SVDRP command result received
[2010/04/02 19:36:29] VDR: vdrgetepgat(channum=1, at=next)
[2010/04/02 19:36:29] Sending SVDRP command: LSTE 1 next
[2010/04/02 19:36:30] SVDRP command result received
[2010/04/02 19:36:35] Executing action [startBroadcast]
[2010/04/02 19:36:35] Creating a new session for "http://127.0.0.1:3000/TS/1" (tv, 3g)
[2010/04/02 19:36:35] Creating new session dir ram/session0
[2010/04/02 19:36:35] VDR: vdrgetchanname(channum=1)
[2010/04/02 19:36:35] Sending SVDRP command: LSTC 1
[2010/04/02 19:36:35] SVDRP command result received
[2010/04/02 19:36:35] Generating stream logo for file Das Erste of type tv
[2010/04/02 19:36:35] Executing generation cmd: cp "../logos/nologoTV.png" ../ram/session0/thumb.png
[2010/04/02 19:36:35] Sending encoding command: ./istream.sh "http://127.0.0.1:3000/TS/1" 350k 64k 408x272 /istreamdev/ 2 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session0 "/tmp/istreamdev-ffmpeg.log" "" >/dev/null 2>&1 &
[2010/04/02 19:36:35] Writting stream info from session session0 (type=tv, mode=3g, url=http://127.0.0.1:3000/TS/1, channame=Das Erste)
[2010/04/02 19:36:35] Executing action [getStreamInfo]
[2010/04/02 19:36:35] Getting info for session session0
[2010/04/02 19:36:35] VDR: vdrgetchannum(chan=Das Erste)
[2010/04/02 19:36:35] VDR: vdrgetepgat(channum=1, at=now)
[2010/04/02 19:36:35] Sending SVDRP command: LSTE 1 now
[2010/04/02 19:36:36] SVDRP command result received
[2010/04/02 19:36:36] VDR: vdrgetepgat(channum=1, at=next)
[2010/04/02 19:36:36] Sending SVDRP command: LSTE 1 next
[2010/04/02 19:36:36] SVDRP command result received
[2010/04/02 19:36:38] Executing action [getStreamStatus]
[2010/04/02 19:36:38] Returning status: <b>Error: streaming could not start correclty</b><br><br> * FFmpeg: <i>stopped</i><br> * Segmenter: <i>stopped</i>
Alles anzeigen
redirection 2 is syslog -> apachestd|error.log ? right?
/var/log/apache/error.log:
cp: cannot stat `../logos/nologoTV.png': No such file or directory
./istream.sh: line 55: /tmp/istreamdev-ffmpeg.log: Permission denied
cp: cannot stat `../logos/nologoREC.png': No such file or directory
./istream.sh: line 55: /tmp/istreamdev-ffmpeg.log: Permission denied
cat: write error: Broken pipe
cat: ./fifo: No such file or directory
cp: cannot stat `../logos/nologoTV.png': No such file or directory
./istream.sh: line 55: /tmp/istreamdev-ffmpeg.log: Permission denied
cat: ./fifo: No such file or directory
cp: cannot stat `../logos/nologoTV.png': No such file or directory
./istream.sh: line 55: /tmp/istreamdev-ffmpeg.log: Permission denied
cat: ./fifo: No such file or directory
cp: cannot stat `../logos/nologoREC.png': No such file or directory
./istream.sh: line 55: /tmp/istreamdev-ffmpeg.log: Permission denied
cat: write error: Broken pipe
cat: ./fifo: No such file or directory
cp: cannot stat `../logos/nologoTV.png': No such file or directory
./istream.sh: line 55: /tmp/istreamdev-ffmpeg.log: Permission denied
cat: ./fifo: No such file or directory
cp: cannot stat `../logos/nologoTV.png': No such file or directory
Alles anzeigen
/var/log/apache/fhem-error.log
[Fri Apr 02 19:36:18 2010] [error] [client 109.84.70.118] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/ram/session0, referer: http://mimmiomi.mine.nu/istreamdev/index.php
[Fri Apr 02 19:36:26 2010] [error] [client 109.84.70.118] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/logos/RTL Television,RTL.png, referer: http://mimmiomi.mine.nu/istreamdev/index.php
[Fri Apr 02 19:36:26 2010] [error] [client 77.23.54.99] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/logos/ZDF.png, referer: http://mimmiomi.mine.nu/istreamdev/index.php
[Fri Apr 02 19:36:26 2010] [error] [client 77.23.54.99] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/logos/VOX.png, referer: http://mimmiomi.mine.nu/istreamdev/index.php
[Fri Apr 02 19:36:26 2010] [error] [client 77.23.54.99] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/logos/SAT.1.png, referer: http://mimmiomi.mine.nu/istreamdev/index.php
[Fri Apr 02 19:36:26 2010] [error] [client 77.23.54.99] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/logos/kabel eins.png, referer: http://mimmiomi.mine.nu/istreamdev/index.php
[Fri Apr 02 19:36:26 2010] [error] [client 109.84.70.118] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/logos/RTL2.png, referer: http://mimmiomi.mine.nu/istreamdev/index.php
[Fri Apr 02 19:36:27 2010] [error] [client 109.84.70.118] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/logos/ProSieben.png, referer: http://mimmiomi.mine.nu/istreamdev/index.php
[Fri Apr 02 19:36:35 2010] [error] [client 77.23.54.99] PHP Notice: Undefined index: video in /srv/www/vhosts/fhem/www/istreamdev/bin/session.php on line 160, referer: http://mimmiomi.mine.nu/istreamdev/index.php
[Fri Apr 02 19:36:35 2010] [error] [client 77.23.54.99] PHP Notice: Undefined index: video in /srv/www/vhosts/fhem/www/istreamdev/bin/session.php on line 161, referer: http://mimmiomi.mine.nu/istreamdev/index.php
[Fri Apr 02 19:36:36 2010] [error] [client 77.23.54.99] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/ram/session0/thumb.png, referer: http://mimmiomi.mine.nu/istreamdev/index.php
[Fri Apr 02 19:36:38 2010] [error] [client 77.23.54.99] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/ram/session0/thumb.png
[Fri Apr 02 19:36:38 2010] [error] [client 77.23.54.99] File does not exist: /srv/www/vhosts/fhem/www/istreamdev/undefined
Alles anzeigen
ps -fA f >psout2.txt # see attachment
Oops: after a "chmod 777 /tmp/istreamdev-ffmpeg.log" all seems fine
Sry, absolutly my fault.
live-tv:
[2010/04/02 19:45:45] Generating stream logo for file Das Erste of type tv
[2010/04/02 19:45:45] Executing generation cmd: cp "../logos/nologoTV.png" ../ram/session1/thumb.png
[2010/04/02 19:45:45] Sending encoding command: ./istream.sh "http://127.0.0.1:3000/TS/1" 350k 64k 408x272 /istreamdev/ 2 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session1 "/tmp/istreamdev-ffmpeg.log" "" >/dev/null 2>&1 &
[2010/04/02 19:45:45] Writting stream info from session session1 (type=tv, mode=3g, url=http://127.0.0.1:3000/TS/1, channame=Das Erste)
[2010/04/02 19:45:46] Executing action [getStreamInfo]
[2010/04/02 19:45:46] Getting info for session session1
[2010/04/02 19:45:46] VDR: vdrgetchannum(chan=Das Erste)
[2010/04/02 19:45:46] VDR: vdrgetepgat(channum=1, at=now)
[2010/04/02 19:45:46] Sending SVDRP command: LSTE 1 now
[2010/04/02 19:45:46] SVDRP command result received
[2010/04/02 19:45:46] VDR: vdrgetepgat(channum=1, at=next)
[2010/04/02 19:45:46] Sending SVDRP command: LSTE 1 next
[2010/04/02 19:45:46] SVDRP command result received
[2010/04/02 19:45:48] Executing action [getStreamStatus]
[2010/04/02 19:45:48] Returning status: <b>Live: requesting Das Erste</b><br><br> * FFmpeg: <i>running</i><br> * Segmenter: <i>running</i> (0/2)</i>
[2010/04/02 19:45:48] Executing action [getStreamStatus]
[2010/04/02 19:45:54] Returning status: <b>Live: requesting Das Erste</b><br><br> * FFmpeg: <i>running</i><br> * Segmenter: <i>running</i> (1/2)</i>
[2010/04/02 19:45:54] Executing action [getStreamStatus]
[2010/04/02 19:45:57] Returning status: <b>Live: requesting Das Erste</b><br><br> * FFmpeg: <i>running</i><br> * Segmenter: <i>running</i> (2/2)</i>
[2010/04/02 19:45:57] Executing action [getStreamStatus]
[2010/04/02 19:45:57] Returning status: <b>Broadcast ready</b><br><br> * Quality: <i>3g</i><br> * Status: <i>encoding...</i>
Alles anzeigen
Recording:
[2010/04/02 19:49:43] Creating a new session for "/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec" (rec, 3g)
[2010/04/02 19:49:43] Creating new session dir ram/session2
[2010/04/02 19:49:43] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/02 19:49:43] Generating stream logo for file SciFi of type rec
[2010/04/02 19:49:43] Executing generation cmd: cp "../logos/nologoREC.png" ../ram/session2/thumb.png
[2010/04/02 19:49:43] Sending encoding command: ./istream.sh - 350k 64k 408x272 /istreamdev/ 1260 /usr/local/bin/ffmpeg /usr/local/bin/segmenter session2 "/tmp/istreamdev-ffmpeg.log" "/video/Afterworld/Wahrheit_oder_Konsequenzen,
_Teil_1/2010-03-31.05.39.14-0.rec/0* " >/dev/null 2>&1 &
[2010/04/02 19:49:43] Writting stream info from session session2 (type=rec, mode=3g, url=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec, channame=SciFi)
[2010/04/02 19:49:43] Executing action [getStreamInfo]
[2010/04/02 19:49:43] Getting info for session session2
[2010/04/02 19:49:43] VDR: vdrgetrecinfo(rec=/video/Afterworld/Wahrheit_oder_Konsequenzen,_Teil_1/2010-03-31.05.39.14-0.rec)
[2010/04/02 19:49:44] Executing action [getStreamStatus]
[2010/04/02 19:49:44] Returning status: <b>Rec: requesting SciFi</b><br><br> * FFmpeg: <i>running</i><br> * Segmenter: <i>running</i> (0/2)</i>
[2010/04/02 19:49:44] Executing action [getStreamStatus]
[2010/04/02 19:49:45] Returning status: <b>Rec: requesting SciFi</b><br><br> * FFmpeg: <i>running</i><br> * Segmenter: <i>running</i> (1/2)</i>
[2010/04/02 19:49:45] Executing action [getStreamStatus]
[2010/04/02 19:49:46] Returning status: <b>Rec: requesting SciFi</b><br><br> * FFmpeg: <i>running</i><br> * Segmenter: <i>running</i> (2/2)</i>
[2010/04/02 19:49:46] Executing action [getStreamStatus]
[2010/04/02 19:49:46] Returning status: <b>Broadcast ready</b><br><br> * Quality: <i>3g</i><br> * Status: <i>encoding...</i>
Alles anzeigen
ps -fA f >psout3.txt # see attachment
I'm so happy. Sorry for this Day. I'm so stupid ...
Nice
Well it helped me fixing other stuff so its all good.
enjoy!
Hallo. Hat schon jemand segmenter unter Debian Lenny kompiliert bekommen? Ich bekomme ein
libavformat-dev ist installiert. libavformatcvs-dev, libavformatcvs51-dev und libavformatcvs52-dev lassen sich wegen Abhängigkeitsproblemen nicht installieren.
Gruß
Obelix
Hi!
I am trying to get iStreamdev running on my test setup. I have an Acer laptop running with yaVDR 0.1.1 and a USB DVB-T stick. Everythings working fine so far.
Now I tried to install istreamdev from the git repo, Apache2 and php5 via apt-get from the original Ubuntu repos. I followed the install instructions carefully and my iphone is able to connect to the server and get the istreamdev start page. I can also switch to Recordings, Timer, etc. and I can see what's in there. Didn't try to stream a recording so far.
BUT when I tap "Watch TV" and the page turns I get a blank page. No channel listing or so. The log file says "VDR: vdrgetcategories()" and nothing more.
The same happens when I try to use the program guide. I tap on the button, set "AT Time" to some value and hit "Get Programs". Now I can see, that something more is happening in the log file (vdrgetchannum, vdrgetchancat, etc.), but the iphone says "Loading" and nothing more.
What am I doing wrong here?
Greetz, Holger
Hi Pandel
Do you have some categories in your channels.conf ?
You need to organise your channels in Categories or I don't think it will works. ( Too mucch channels to show in one page, to much info in epg mode etc ).
Hi!
I think from your answer I'm a real noob regarding VDR :), but ok, I'm really new to it. I have to admit that I don't know if my channels.conf has categories inside or how I could organise my channels into categories. My channels.conf was generated by a channel scan function inside VDR...
I only have 26 channels defined, if that helps.
Thanks, Holger
EDIT: I FOUND IT!!!! Yipieee! Many thanks for the hint!
Sorry, but I have another question.
Now that I can select a channel and start streaming, after a short time it says:
"Error: streaming could not start correctly"
With ps xa I can see that istream.sh starts ffmpeg and the segmenter but they disappear and the istreamdev-ffmpeg.log says:
"[mpegts @ 0x8523ee0] sample rate not set
Could not write header for output file #0 (incorrect codec parameters ?)"
EDIT:
Ok, I found the missing parameter in the istream.sh: the ffmpeg line needs "-ar 48000". Now encoding starts. BUT no stream.m3u8 file is generated and the apache2 error.log says "File does not exist: /var/www/istreamdev/undefined". I added the needed mime types to httpd.conf, so that shouldn't be the problem.
I'll investigate...
EDIT 2:
What I also notice is when I stop all sessions from the home page, two processes won't get killed: istream.sh and cat ./fifo.
EDIT 3:
I compiled segmenter.c with the makefile. Is it possible that some -l parms for the linker are missing and so the stream.m3u8 won't get written? I found some different compile statements for segmenter.c on different web pages...
EDIT 4:
I recompiled ffmpeg and x264 from the repos. It is working now with the unmodified git version.
Many thanks for this wonderful addition to the iphone and vdr!!!
Hi!
I have a strange problem with watching recordings:
When I start watching a recording, no matter which quality I choose, it says
"Error:streaming could not start correctly"
* FFmpeg: running
* Segmenter: stopped
But that's not true! The processes are running, and if I return to the home page I can see and join the session for watching.
Could this be some kind of timing problem between starting istream.sh and trying to get the session info?
Greetz, Holger
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!