<div dir="ltr">Hi all.<div><br></div><div>I have two questions:</div><div><br></div><div>1) is there any example how to encode video (h264) into MPEG DASH?</div><div>I tried doing it with setting output file name to be with extension ".mpd" and </div><div>avformat_alloc_output_context2(&mOutputFormatContext, NULL, "dash", filename.c_str())<br></div><div><br></div><div>This setup produces single .mpd file and a number of video chunks with "m4s" extensions. The problem is, the video doesn't play. I tried with VLC,but it doesn't play neither my files nor some standard DASH files I downloaded from the web.</div><div>Then I tried to play it in DASH.js .And that JS lib fails at some point before the playback even started. I  validated the .mpd file in <a href="http://dashif.org/conformance.html">http://dashif.org/conformance.html</a>  </div><div><br></div><div>But when comparing the output files to the DASH demos from here:</div><div><a href="http://dash-mse-test.appspot.com/media.html">http://dash-mse-test.appspot.com/media.html</a><br></div><div><br></div><div>I see that both file extensions of each chunks and the data inside the .mpd is different.</div><div><br></div><div>2)If I want to stream the chunks right after those encoded,without saving those to files,what's the best way to approach this using ffmpeg libs? </div><div><br></div><div>Tnx</div><div><br></div></div>