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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-21T12:45:02.353Z
Comments.Text: Can you compare the output of an ffprobe and/or mediainfo command on a file that plays correctly and one that doesn't in order to see if there's a difference in streams encoding or metadata ?
Comments.UserDisplayName: audionuma
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-21T13:16:57.930Z
Comments.Text: Yeah... I did that and found the cause ,why it was not playing on HTML5 .The culprit was **MPEG-2 transport stream**.. Thanks :)
Comments.UserDisplayName: akki_2891
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-21T17:11:42.507Z
Comments.Text: Good. If your issue is solved, you are welcome to self-answer with a solution for future references.
Comments.UserDisplayName: audionuma
Tags: <video><ffmpeg>
Title: FFmpeg : Check if the aac bitstream is malformed or not
UserDisplayName: akki_2891
ThreadText: # FFmpeg : Check if the aac bitstream is malformed or not
  
  (Asked by: username_0 on 2015-07-21)
  
  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.
  
  I checked the audio stream and video stream of the video, they have **AAC** and **H264** codec respectively.So nothing seems wrong to me.
  
  Then I tried re-encoding it, i got the following message:
  
  ```
  malformated aac bitstream, use -absf aac_adtstoasc
  av_interleaved_write_frame(): Operation not permitted
  
  ```
  
  However I don't want to encode the videos before upload and **just need to check** if video has a malformed aac or h264 bitsream.
  
  > PS. Users are limited and will be provided with videos h264 and aac
  > encoded for the upload.
  
  **Tags:** video, ffmpeg
  
  > **Comments:**
  > **username_1**: Can you compare the output of an ffprobe and/or mediainfo command on a file that plays correctly and one that doesn't in order to see if there's a difference in streams encoding or metadata ?  
  > **username_0**: Yeah... I did that and found the cause ,why it was not playing on HTML5 .The culprit was **MPEG-2 transport stream**.. Thanks :)  
  > **username_1**: Good. If your issue is solved, you are welcome to self-answer with a solution for future references.  
  
  ---
  
  ## 0 answers
  
  