Server Version#: 1.40.0.7998
Player Version#: web
Tuner Make/Model: custom
I have a live tv stream that provides me an m3u8 playlist. I have created a simple HDHomeRun compatible web server to serve the playlist to Plex as a live tv device.
However, Plex does not want to stream an m3u8 playlist. Instead I needed to setup ffmpeg to transcode and serve the stream so that Plex would be able to play it.
I’d love to avoid needing to run ffmpeg to stream to Plex, which in turn runs ffmpeg to stream to the client.
When investigating I noticed that Plex does make an attempt to stream the file, and this is the Plex Transcoder command that runs:
FFMPEG_EXTERNAL_LIBS='/var/snap/plexmediaserver/common/Library/Application\ Support/Plex\ Media\ Server/Codecs/90a317c-4653-linux-x86_64/' "/snap/plexmediaserver/429/Plex Transcoder" -noaccurate_seek -ignore_unknown -scan_all_pmts -1 -rw_timeout 30000000 -reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 30 -fflags +discardcorruptts+fillwallclockdts -probesize 20000000 -i "http://<hostname>:<port>/playlist.m3u8?transcode=heavy" -map "0:V?" -codec:V copy -map "0:a?" -codec:a copy -map "0:s?" -codec:s copy -break_non_keyframes 1 -segment_format mpegts -f ssegment -individual_header_trailer 0 -segment_time 1 -segment_start_number 0 -segment_time_delta 0.25 -segment_list "http://127.0.0.1:32400/video/:/transcode/session/6686160b-ad3e-48f8-a4f8-e2c0c0a12b06/c3885fc8-13ce-4331-bbef-57ad11a4040e/manifest?X-Plex-Http-Pipeline=infinite" -segment_list_type csv -segment_list_size 5 -segment_list_separate_stream_times 1 -segment_list_unfinished 1 -max_delay 5000000 -map_metadata -1 -map_chapters -1 "media-%05d.ts" -y -nostats -loglevel quiet -loglevel_plex error -xioerror
This fails with the error:
Unrecognized option 'scan_all_pmts'.
If I manually remove this option and execute the command, I get Plex Transcoder to run successfully (streams the playlist, creates the segment files, and they appear to be correctly streaming the live stream.
It seems as though this option is not needed (-scan_all_pmts), is it possible to have it removed?