DASH content FROM UDP (same bitrate in dash manifest for all adaptation sets)
Dear all, ffmpeg –i udp://127.0.0.1:12007 –r 25 -c:v libx264 -c:a aac -b:a 128k -ac 1 -ar 44100 –b:d 2M -map v:0 -b:v:0 2M -map v:0 -b:v:1 145k -map v:0 -b:v:2 365k -map 0:a? -f dash dash.mpd 1. First I start streaming my video with UDP and ffmpeg. 2. Then I start to generate dash content with the command above, also with ffmpeg. for different bitrates 2Mbps, 145kbps, 365kbps. The result of my manifest is the following SAME BITRATE for the three adaptation sets: <Period id="0" start="PT0.0S"> <AdaptationSet id="0" contentType="video" startWithSAP="1" segmentAlignment="true" bitstreamSwitching="true" frameRate="25/1" maxWidth="640" maxHeight="480" par="4:3"> <Representation id="0" mimeType="video/mp4" codecs="avc1.64001e" bandwidth="13973" width="640" height="480" sar="1:1"> <SegmentTemplate timescale="12800" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startNumber="1"> <SegmentTimeline> <S t="0" d="128000" r="7" /> </SegmentTimeline> </SegmentTemplate> </Representation> </AdaptationSet> <AdaptationSet id="1" contentType="video" startWithSAP="1" segmentAlignment="true" bitstreamSwitching="true" frameRate="25/1" maxWidth="640" maxHeight="480" par="4:3"> <Representation id="1" mimeType="video/mp4" codecs="avc1.64001e" bandwidth="13973" width="640" height="480" sar="1:1"> <SegmentTemplate timescale="12800" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startNumber="1"> <SegmentTimeline> <S t="0" d="128000" r="7" /> </SegmentTimeline> </SegmentTemplate> </Representation> </AdaptationSet> <AdaptationSet id="2" contentType="video" startWithSAP="1" segmentAlignment="true" bitstreamSwitching="true" frameRate="25/1" maxWidth="640" maxHeight="480" par="4:3"> <Representation id="2" mimeType="video/mp4" codecs="avc1.64001e" bandwidth="13973" width="640" height="480" sar="1:1"> <SegmentTemplate timescale="12800" initialization="init-stream$RepresentationID$.m4s" media="chunk-stream$RepresentationID$-$Number%05d$.m4s" startNumber="1"> <SegmentTimeline> <S t="0" d="128000" r="7" /> </SegmentTimeline> </SegmentTemplate> </Representation> </AdaptationSet> </Period> Why is the reason for that behaviour? A lot of thanks P Please consider the environment before printing this e-mail.
and if you try with a bit simpler to read command, like : ffmpeg -re -i 'udp://127.0.0.1:12007?fifo_size=50000000' -t 10 \ -map 0 -map 0 -map 0 -map 0:a:0 \ -r 25 -c:v libx264 -sc_threshold 0 -g 50 -profile:v high -preset:v fast \ -c:a libfdk_aac -ac 2 -ar 48000 \ -b:v:0 2M \ -b:v:1 365k \ -b:v:2 145k \ -b:a:0 128k \ -adaptation_sets "id=0,streams=v id=1,streams=a" -f dash dash.mpd &rei
Am Di., 27. Okt. 2020 um 15:04 Uhr schrieb Mar Andrés López <mar.andres.l@gmv.com>:
ffmpeg –i udp://127.0.0.1:12007 –r 25 -c:v libx264 -c:a aac -b:a 128k -ac 1 -ar 44100 –b:d 2M -map v:0 -b:v:0 2M -map v:0 -b:v:1 145k -map v:0 -b:v:2 365k -map 0:a? -f dash dash.mpd
Complete, uncut console output missing. What is "-b:d 2M" supposed to do? Your command works for me as expected once I removed -b:d 2M Carl Eugen
participants (3)
-
andrei ka -
Carl Eugen Hoyos -
Mar Andrés López