title: FFmpeg : Check if the aac bitstream is malformed or not
body: <p>I want to upload few sets of videos on my server and later play them in the HTML5 video tag. But some of them are not playing.</p>
  
  <p>I checked the audio stream and video stream of the video, they have <strong>AAC</strong> and <strong>H264</strong> codec respectively.So nothing seems wrong to me.</p>
  
  <p>Then I tried re-encoding it, i got the following message:</p>
  
  <pre><code>malformated aac bitstream, use -absf aac_adtstoasc
  av_interleaved_write_frame(): Operation not permitted
  </code></pre>
  
  <p>However I don't want to encode the videos before upload and <strong>just need to check</strong> if video has a malformed aac or h264 bitsream.</p>
  
  <blockquote>
    <p>PS. Users are limited and will be provided with videos h264 and aac
    encoded for the upload.</p>
  </blockquote>