# Get bitrate from stream when generating dynamic smil

**URL:** <https://community.wowza.com/t/get-bitrate-from-stream-when-generating-dynamic-smil/47343>\
**Category:** Wowza Streaming Engine\
**Created:** [October 6, 2016, 7:12am UTC](https://community.wowza.com/t/get-bitrate-from-stream-when-generating-dynamic-smil/47343 "2016-10-06T07:12:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jagir\_Highq](https://avatars.discourse-cdn.com/v4/letter/j/c37758/32.png) [@Jagir\_Highq](https://community.wowza.com/u/Jagir_Highq)\
**Post date:** [October 6, 2016, 7:12am UTC](https://community.wowza.com/t/get-bitrate-from-stream-when-generating-dynamic-smil/47343/1 "2016-10-06T07:12:25Z")

</div>

Hello,

I am converting single video to multibitrate.

Let say if you upload video of 720p bitrate then i am generating video of different bitrate like 360p,240p etc.

But, If you have already uploaded video before my implementation then that original video should play.

I am generating dynamic smil file and providing that smil file when video plays.

Now,If there is no video found in different bitrate then original video (uploaded video) should play.

What should i do for that? Is there any way to achieve this?

Can I get video bitrate from stream? because what i think , I have generated video in different bitrate and append that bitrate at the end , so what i will do i check if file exist which name ended with \_240p,\_360p etc. then play that video else play original video and for that i need to set original bitrate which i will get from stream.

Please help me to get bitrate from the coming stream.

Thanks.

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [November 11, 2016, 3:49pm UTC](https://community.wowza.com/t/get-bitrate-from-stream-when-generating-dynamic-smil/47343/2 "2016-11-11T15:49:17Z")

</div>

Hi,

If these are VOD files then you can query the file using a tool such as ffprobe (part of the ffmpeg suite) which will show the bitrate.

Regards,

Paul
