Sorry my fault
You have to set the permissions of "istreamdev" for the user www-data.
Do this in /var/www :
chown -R www-data:www-data istreamdev
I tested it with permissions set to root, then I get:
vdr-ng-3:/var/www/istreamdev# ./istream.sh http://localhost:3000/TS/11 512k 64k 1 480x320 ./ 3 /usr/bin/ffmpeg
vdr-ng-3:/var/www/istreamdev# [mpegts @ 0x9d56150]max_analyze_duration reached
[mpegts @ 0x9d56150]Estimating duration from bitrate, this may be inaccurate
Output #0, mpegts, to 'stream':
Stream #0.0: Video: libx264, yuv420p, 480x320, q=2-31, 90k tbn, 25 tbc
Stream #0.1: Audio: libmp3lame, 48000 Hz, 1 channels, 64 kb/s
[mpegts @ 0x9d63420]stream 0, bit rate is not set, this will cause problems
[mpegts @ 0x9d63420]dts < pcr, TS is invalid
Last message repeated 6 times
[mpegts @ 0x9d63420]st:1 error, non monotone timestamps 63000 >= 63000
Warning: Could not write frame of stream
[mpegts @ 0x9d63420]dts < pcr, TS is invalid
Same result as you. So the whole path must be set to www-data.
And if you want to test istream.sh from the comandline you must switch to user www-data.
Hope it will work now.
Roupi