Skip to content

stream.ffmpegmux: stream with independent segments (audio+video) cannot be remuxed #4825

@vidanio

Description

@vidanio

Checklist

Streamlink version

Latest stable release

Description

I am using a Debian 11 stable with kernel 5.10 as you can see in the debug log below.
Tried to send this URL: https://videodelivery.net/9fb3596948ddf463fde0ec4b85625b24/manifest/video.m3u8 that has independent segments for audio and video. Streams were closed, does not start re-muxing.
Cmdline used:
streamlink --stdout hls://https://videodelivery.net/9fb3596948ddf463fde0ec4b85625b24/manifest/video.m3u8 --default-stream best --loglevel debug | ffmpeg -re -i - -c copy

Debug log

[cli][debug] OS:         Linux-5.10.0-16-amd64-x86_64-with-glibc2.31
[cli][debug] Python:     3.9.2
[cli][debug] Streamlink: 4.3.0
[cli][debug] Dependencies:
[cli][debug]  isodate: 0.6.0
[cli][debug]  lxml: 4.9.1
[cli][debug]  pycountry: 20.7.3
[cli][debug]  pycryptodome: 3.15.0
[cli][debug]  PySocks: 1.7.1
[cli][debug]  requests: 2.28.1
[cli][debug]  websocket-client: 1.4.1
[cli][debug] Arguments:
[cli][debug]  url=hls://https://videodelivery.net/9fb3596948ddf463fde0ec4b85625b24/manifest/video.m3u8
[cli][debug]  --loglevel=debug
[cli][debug]  --stdout=True
[cli][debug]  --default-stream=['best']
[cli][info] Found matching plugin hls for URL hls://https://videodelivery.net/9fb3596948ddf463fde0ec4b85625b24/manifest/video.m3u8
[plugins.hls][debug] URL=https://videodelivery.net/9fb3596948ddf463fde0ec4b85625b24/manifest/video.m3u8; params={}
[utils.l10n][debug] Language code: es_ES
[stream.hls][debug] Using external audio tracks for stream 720p (language=en, name=und)
[stream.hls][debug] Using external audio tracks for stream 1080p (language=en, name=und)
[stream.hls][debug] Using external audio tracks for stream 480p (language=en, name=und)
[stream.hls][debug] Using external audio tracks for stream 360p (language=en, name=und)
[stream.hls][debug] Using external audio tracks for stream 240p (language=en, name=und)
[cli][info] Available streams: 240p (worst), 360p, 480p, 720p, 1080p (best)
[cli][info] Opening stream: 1080p (hls-multi)
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[utils.named_pipe][info] Creating pipe streamlinkpipe-15513-1-8241
[utils.named_pipe][info] Creating pipe streamlinkpipe-15513-2-9185
[stream.ffmpegmux][debug] ffmpeg command: /usr/bin/avconv -nostats -y -i /tmp/streamlinkpipe-15513-1-8241 -i /tmp/streamlinkpipe-15513-2-9185 -c:v copy -c:a copy -map 0:v? -map 0:a? -map 1:a -f mpegts pipe:1
[stream.ffmpegmux][debug] Starting copy to pipe: /tmp/streamlinkpipe-15513-1-8241
[stream.ffmpegmux][debug] Starting copy to pipe: /tmp/streamlinkpipe-15513-2-9185
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] First Sequence: 18267; Last Sequence: 18274
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 18272; End Sequence: None
[stream.hls][debug] Adding segment 18272 to queue
[stream.hls][debug] Adding segment 18273 to queue
[stream.hls][debug] Adding segment 18274 to queue
[stream.hls][debug] First Sequence: 18267; Last Sequence: 18274
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 18272; End Sequence: None
[stream.hls][debug] Adding segment 18272 to queue
[stream.hls][debug] Adding segment 18273 to queue
[stream.hls][debug] Adding segment 18274 to queue
[stream.hls][debug] Segment initialization 18272 complete
[stream.hls][debug] Segment initialization 18272 complete
[stream.hls][debug] Segment 18272 complete
[stream.hls][debug] Segment initialization 18273 complete
[stream.hls][debug] Segment 18272 complete
[stream.hls][debug] Segment initialization 18273 complete
[stream.ffmpegmux][error] Pipe copy aborted: /tmp/streamlinkpipe-15513-1-8241
[stream.ffmpegmux][debug] Pipe copy complete: /tmp/streamlinkpipe-15513-1-8241
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[stream.ffmpegmux][debug] Pipe copy complete: /tmp/streamlinkpipe-15513-2-9185
[stream.hls][debug] Segment 18273 complete
[stream.hls][debug] Segment 18273 complete
[stream.ffmpegmux][debug] Closed all the substreams
[cli][error] Try 1/1: Could not open stream <MuxedHLSStream ['hls-multi', 'https://videodelivery.net/9fb3596948ddf463fde0ec4b85625b24/manifest/video.m3u8']> (No data returned from stream)
error: Could not open stream <MuxedHLSStream ['hls-multi', 'https://videodelivery.net/9fb3596948ddf463fde0ec4b85625b24/manifest/video.m3u8']>, tried 1 times, exiting
[cli][info] Closing currently open stream...
pipe:: Invalid data found when processing input

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions