Open
Description
Describe the Bug
This is quite weird and I must be doing something wrong, but the command profile I'm trying to use isn't being used when I start a stream.
I've set the following command profile:
-hide_banner -loglevel debug -err_detect ignore_err -reconnect 1 -reconnect_on_network_error 1 -reconnect_on_http_error 1 -reconnect_streamed 1 -reconnect_delay_max 4294 -analyzeduration 2000000 -probesize 2000000 -re -thread_queue_size 4096 -rtbufsize 2048k -i {streamUrl} -map_metadata -1 -c:v libx264 -preset ultrafast -crf 20 -vf format=yuv420p -tune zerolatency -c:a aac -b:a 192k -c:s copy -fflags +genpts -timeout 7000000 -muxdelay 0.001 -max_interleave_delta 0 -async 1 -f mpegts pipe:1
And called it "Plex", and then created a stream group called "Plex" and selected this command profile from the drop down box.
Then in Plex I've set the HDHR stream to the Plex specific one, not the "all" one.
But when I attempt to play a stream in Plex the logs show this:
tting source stream ABC TV to ABC TV
info: StreamMaster.Streams.Factories.StreamFactory[0]
Stream URL has m3u8 extension, using SMFFMPEG for streaming: ABC TV
info: StreamMaster.Streams.Factories.CommandExecutor[0]
Opened command with args "ffmpeg -hide_banner -loglevel error -user_agent {clientUserAgent} -fflags +genpts+discardcorrupt -i {streamUrl} -map 0:v -map 0:a? -map 0:s? -c copy -f mpegts -copyts -reconnect 1 -reconnect_streamed 1 -reconnect_on_network_error 1 -reconnect_delay_max 10 -fflags +nobuffer pipe:1" in 2 ms
info: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
RunPipelineAsync ABC TV
info: StreamMaster.Streams.ClientConfiguration[0]
Stopping client 0HNAUF4IQ8AIU:00000001.
info: StreamMaster.API.Controllers.VsController[0]
Unregistered Client 0HNAUF4IQ8AIU:00000001 ABC TV disposing
fail: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
Source stream read error: Stream closed unexpectedly
info: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
Source Broadcaster stopped: ABC TV
info: StreamMaster.Streams.Broadcasters.SourceBroadcasterService[0]
Retrying stream ABC TV 0/1.
info: StreamMaster.Streams.Broadcasters.SourceBroadcasterService[0]
Created new source stream for: 14a5bacd11b05cced432d0eb03bf9b7c ABC TV
info: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
Setting source stream ABC TV to ABC TV
info: StreamMaster.Streams.Factories.StreamFactory[0]
Stream URL has m3u8 extension, using SMFFMPEG for streaming: ABC TV
info: StreamMaster.Streams.Factories.CommandExecutor[0]
Opened command with args "ffmpeg -hide_banner -loglevel error -user_agent {clientUserAgent} -fflags +genpts+discardcorrupt -i {streamUrl} -map 0:v -map 0:a? -map 0:s? -c copy -f mpegts -copyts -reconnect 1 -reconnect_streamed 1 -reconnect_on_network_error 1 -reconnect_delay_max 10 -fflags +nobuffer pipe:1" in 2 ms
info: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
RunPipelineAsync ABC TV
info: StreamMaster.Streams.Domain.Interfaces.IChannelBroadcaster[0]
Channel Broadcaster stopped: ABC TV
fail: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
Source stream connection failed
info: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
Source Broadcaster stopped: ABC TV
info: StreamMaster.Streams.Broadcasters.SourceBroadcasterService[0]
Stream ABC TV stopped.
As you can see the ffmpeg commands being used are not what I've set.
Steps to Reproduce
Create command profile
Set it
Stream
Output logs and show the command profile is different
Stream Master Version
0.11.1
Relevant Logs
tting source stream ABC TV to ABC TV
info: StreamMaster.Streams.Factories.StreamFactory[0]
Stream URL has m3u8 extension, using SMFFMPEG for streaming: ABC TV
info: StreamMaster.Streams.Factories.CommandExecutor[0]
Opened command with args "ffmpeg -hide_banner -loglevel error -user_agent {clientUserAgent} -fflags +genpts+discardcorrupt -i {streamUrl} -map 0:v -map 0:a? -map 0:s? -c copy -f mpegts -copyts -reconnect 1 -reconnect_streamed 1 -reconnect_on_network_error 1 -reconnect_delay_max 10 -fflags +nobuffer pipe:1" in 2 ms
info: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
RunPipelineAsync ABC TV
info: StreamMaster.Streams.ClientConfiguration[0]
Stopping client 0HNAUF4IQ8AIU:00000001.
info: StreamMaster.API.Controllers.VsController[0]
Unregistered Client 0HNAUF4IQ8AIU:00000001 ABC TV disposing
fail: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
Source stream read error: Stream closed unexpectedly
info: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
Source Broadcaster stopped: ABC TV
info: StreamMaster.Streams.Broadcasters.SourceBroadcasterService[0]
Retrying stream ABC TV 0/1.
info: StreamMaster.Streams.Broadcasters.SourceBroadcasterService[0]
Created new source stream for: 14a5bacd11b05cced432d0eb03bf9b7c ABC TV
info: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
Setting source stream ABC TV to ABC TV
info: StreamMaster.Streams.Factories.StreamFactory[0]
Stream URL has m3u8 extension, using SMFFMPEG for streaming: ABC TV
info: StreamMaster.Streams.Factories.CommandExecutor[0]
Opened command with args "ffmpeg -hide_banner -loglevel error -user_agent {clientUserAgent} -fflags +genpts+discardcorrupt -i {streamUrl} -map 0:v -map 0:a? -map 0:s? -c copy -f mpegts -copyts -reconnect 1 -reconnect_streamed 1 -reconnect_on_network_error 1 -reconnect_delay_max 10 -fflags +nobuffer pipe:1" in 2 ms
info: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
RunPipelineAsync ABC TV
info: StreamMaster.Streams.Domain.Interfaces.IChannelBroadcaster[0]
Channel Broadcaster stopped: ABC TV
fail: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
Source stream connection failed
info: StreamMaster.Streams.Domain.Interfaces.ISourceBroadcaster[0]
Source Broadcaster stopped: ABC TV
info: StreamMaster.Streams.Broadcasters.SourceBroadcasterService[0]
Stream ABC TV stopped.
Relevant Configuration
Not sure what's relevant here
Verification
- I have included COMPLETE logs, not just error messages
- I have provided detailed reproduction steps
- I have checked for similar issues before creating this report
- I have tried the
latest
release to see if the issue has already been fixed - I understand that incomplete reports may be closed without investigation