Bug (0.0.5) Cannot read property.
Using the newest version (0.0.5), encountering this issue (displays in the console). Console window closes shortly after.
Stream starting. Channel: 2
(node:3412) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'videoIndex' of undefined
at FFMPEG.spawn (C:\snapshot\pseudotv-plex\dist\src\ffmpeg.js:50:38)
at C:\snapshot\pseudotv-plex\dist\src\video.js:94:12
at Layer.handle [as handle_request] (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\layer.js:95:5)
at next (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\layer.js:95:5)
at C:\snapshot\pseudotv-plex\node_modules\express\lib\router\index.js:281:22
at Function.process_params (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\index.js:335:12)
at next (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\index.js:275:10)
at Function.handle (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\index.js:174:3)
at router (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\index.js:47:12)
at Layer.handle [as handle_request] (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\index.js:317:13)
at C:\snapshot\pseudotv-plex\node_modules\express\lib\router\index.js:284:7
at Function.process_params (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\index.js:335:12)
at next (C:\snapshot\pseudotv-plex\node_modules\express\lib\router\index.js:275:10)
(node:3412) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:3412) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Here are the ffmpeg settings:
-threads 2
-ss STARTTIME
-t DURATION
-re
-i INPUTFILE
-map VIDEOSTREAM
-map AUDIOSTREAM
-c:v mpeg4
-c:a ac3
-ac 2
-ar 48000
-b:a 128k
-b:v 2500k
-s 854x480
-r 25
-flags cgop+ilme
-sc_threshold 1000000000
-minrate:v 2500k
-maxrate:v 2500k
-bufsize:v 1000k
-metadata service_provider="PseudoTV"
-metadata CHANNELNAME
-f mpegts
-output_ts_offset TSOFFSET
-muxdelay 0
-muxpreload 0
OUTPUTFILE
Edited by Wolfie