title: Youtube audio and video download and merge with ffmpeg-static after that pipe the output in res. The download video is unable to fast forward?
body: <p>I downloaded the youtube video and audio separately with the help of node js package YTDL-Core. Then merge both successfully using the FFMPEG-STATIC package.</p>
  <p>Now, I .pipe the output in res like the below code.</p>
  <pre><code>
  const range = req.headers.range;
       //console.log(range);
  
       if (range) {
            let [start, end] = range.replace(/bytes=/, &quot;&quot;).split(&quot;-&quot;);
            start = parseInt(start, 10);
            end = end ? parseInt(end, 10) : videoSize - 1;
  
            res.writeHead(206, {
                 &quot;Content-Range&quot;: `bytes ${start}-${end}/${videoSize}`,
                 &quot;Accept-Ranges&quot;: &quot;bytes&quot;,
                 &quot;Content-Length&quot;: start - end + 1,
                 &quot;Content-Type&quot;: &quot;video/mp4&quot;,
                 &quot;Content-Disposition&quot;: contentDisposition(
                      &quot;Song EP01.mp4&quot;
                 ),
            });
  
            ffmpegProcess.stdio[5].pipe(res);
       } else {
            res.writeHead(200, {
                 &quot;Content-Length&quot;: videoSize,
                 &quot;Content-Type&quot;: &quot;video/mp4&quot;,
                 &quot;Content-Disposition&quot;: contentDisposition(
                      &quot;Song EP01.mp4&quot;
                 ),
            });
  
            ffmpegProcess.stdio[5].pipe(res);
       }
  
  </code></pre>
  <p><strong>Video downloaded successfully and it plays with any player
  <code>but I can't fast forward or rewind the video</code>.</strong></p>
  <p>The first time I was doing the streaming program, I thought I missed lots of things I tried with many tutorials but I didn't find a proper answer.
  Hope! somebody guide me to archive this milestone.</p>
  <p>Thank you! to all of you.</p>