Closed alex-rsk closed 3 days ago
It would be great at least to have a comment about confirmation or disproval of that bug from @jeanlf .
Thanks again for reporting and documenting the issue. We're slower than usual for processing issues these days but it doesn't mean we don't welcome them nor don't plan to do our best to address them. Thanks for your patience.
I wrote a simple script for reproduce. Before launch please download attached files (seg_000.mp4....seg_004.mp4) and run:
#!/bin/bash
if [ ! -d "stream" ]; then
mkdir stream
fi
for i in $(seq 0 4);
do
cp "seg_00$i.mp4" input.mp4
echo "Adding segment $i"
MP4Box -dash 10000 \
-dash-ctx ./stream/context.xml \
-profile dashavc264:live \
-mpd-refresh 10 \
-dynamic \
-bs-switching no \
-segment-timeline \
-url-template \
-time-shift -1 \
input.mp4#video \
input.mp4#audio \
-out ./stream/stream.mpd
sleep 9
done
Indeed, the second stream was not correctly reloaded , now fixed thanks for the report (and check #2801)
Given: video fragments of equal length, prepared from some source stream by segmenting into 10s chunks. Example command of preparation:
So we have seg_0001.mp4, seg_0002.mp4 etc. You can download prepared files from here: link
Goal:
Dash these segments sequentially, as the next segment becomes fully written and ready.
Example commands:
Estimated result: the dash manifest plays in dash.js player or reference dash-if player. When the next segment is adding to manifest, it is playing next. Obtained result: dash.js plays only first 10s fragment, and then hangs.
I tried:
input.mp4#audio
source --- WHOA! it's helped! But I don't hear sound )Addendum: when I remove -dash-ctx, it plays with sound, but loops around the initial fragment, as expected. I have a vague feeling that there is a problem somewhere in keeping sound in dash-context. It is surely my musings and no more.
What helped else?
When I substitute to source the actual filename, instead of renaming it to "input.mp4", then, everything works. But, the
stream.mpd
andcontext.xml
are constantly growing, because there are emerging newPeriod
xml-entities. I've posted about it in the issue #2801So, it would be cool if you fix that problem with live streaming with sound.
Cheers!