########################################################################################## HLS-24: Encode fails where audio stream present but null ########################################################################################## Issue Type: Bug ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2019-07-26 13:17:37) Project: HLS Stream Creator (HLS) Reported By: btasker Assigned To: btasker Components: - Transcoding Affected Versions: - 1.0 Targeted for fix in version: - 1.0 Labels: Audio, Time Estimate: 45 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== HLS Stream creator will fail to run where an audio stream is present but shows as type none -- BEGIN SNIPPET -- Duration: 00:00:00.00, start: 4241.278000, bitrate: N/A Stream #0:0: Video: flv1, 1 reference frame, yuv420p, 1280x720, 199 kb/s, 8.33 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: none, 0 channels -- END SNIPPET -- The resulting error is -- BEGIN SNIPPET -- Duration: 00:00:00.00, start: 4241.278000, bitrate: N/A Stream #0:0: Video: flv1, 1 reference frame, yuv420p, 1280x720, 199 kb/s, 8.33 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: none, 0 channels [graph 0 input from stream 0:0 @ 0xace980] w:1280 h:720 pixfmt:yuv420p tb:1/1000 fr:25/3 sar:0/1 sws_param:flags=2 No decoder for stream #0:1, filtering impossible Error opening filters! Invoking deleteStream -- END SNIPPET -- This can be mitigated by setting an FFMPEG flag to tell ffmpeg to ignore the audio stream: -- BEGIN SNIPPET -- ben@milleniumfalcon:/tmp/HLSCreate$ FFMPEG_FLAGS="-an" ben@milleniumfalcon:/tmp/HLSCreate$ export FFMPEG_FLAGS ben@milleniumfalcon:/tmp/HLSCreate$ ./HLS-Stream-Creator.sh -l -i rtmp://ent1/camtest/camera -s 2 -- END SNIPPET -- But it'd be nice to have a commandline flag to be able to do this ----------------------------------------------------------------------------------------- Issue Relations ================ - relates to HLS-25: Additional flags/features to aid Low Latency Streaming ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2019-07-26 13:09:25 git ----------------------------------------------------------------------------------------- -- BEGIN QUOTE -- Repo: HLS-Stream-Creator Commit: db85e45814b2a163c5ae927bca36a74460483fe7 Author: B Tasker