[FFmpeg-user] DASH content FROM UDP (same bitrate in dash manifest for all adaptation sets)

Mar Andrés López mar.andres.l at gmv.com
Tue Oct 27 16:03:50 EET 2020


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.


More information about the ffmpeg-user mailing list