title: ffmpeg Video not converting from .mp4 to .ts format
body: <p>We are using RecordRTC to record video. We have used "video/mp4" mimeType and recording the video and uploading to the upload directory using the PHP file upload function.</p>
  
  <p>Here is the function that I have used to record using RecordRTC</p>
  
  <pre><code>recorder = RecordRTC(stream, {type: 'video',mimeType: 'video/mp4'});
  </code></pre>
  
  <p>We have checked the uploaded file and played on multiple browsers and multiple devices and it's playing video properly.</p>
  
  <p>But when we try to convert video from .mp4 to .ts format generating 0B .ts file. We have searched but not found any proper solution. We have converted video using FFmpeg and executing with exec() PHP function.</p>
  
  <p>We are using the below command to convert from .mp4 to .ts format</p>
  
  <blockquote>
    <p>exec('ffmpeg -i abc.mp4 -c copy -framerate 30 -bsf:v h264_mp4toannexb
    -f mpegts -crf 32 pqr.ts');</p>
  </blockquote>
  
  <p>So can anyone please check and let us know is there any solution.</p>
  
  <p>Thanks in advance.</p>