Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques Convert video using FFMPEG from client side

  • Convert video using FFMPEG from client side

    Posted by Venkatesh Veda on October 8, 2014 at 6:23 am

    I have setup a ffmpeg and I’m streaming a file from localhost to rtmp server.
    What i need is to stream a file from the client PC.

    i.e., I am hosting ffmpeg

    on the server and i need my web application to streams the file from the client PC

    to the rtmp server. Is it possible?

    I don’t want to upload the entire file to my server because sometime the files are from a live feed (mixer studio outputs)

    Reuben Martin replied 11 years, 8 months ago 2 Members · 5 Replies
  • 5 Replies
  • Reuben Martin

    October 13, 2014 at 4:47 am

    Not possible. And least not in the practical sense.

    The client end either needs to have a web server to host the stream, or an RTMP server to push the stream, or the content producer needs to output the file in chunked format with the chunks being uploaded over a file transport of some kind.

  • Venkatesh Veda

    October 13, 2014 at 5:32 am

    By not being uploaded i meant, the entire file. i just need just last 10 frames to be uploaded each time from the entire video file..

  • Reuben Martin

    October 14, 2014 at 3:28 am

    Doesn’t really make any difference. The only real tool you have on a client browser. And the JS environment is sandboxed from the file system. You cannot access files without a lot of user interaction. And even then there is no direct javascript API by which to extract individual frames from a video stream.

    The only thing you could do is have a video element paint it’s output to a canvas element, and the bitscrape the image off the canvas. https://appcropolis.com/blog/web-technology/using-html5-canvas-to-capture-frames-from-a-video/

  • Venkatesh Veda

    October 14, 2014 at 5:19 am
  • Reuben Martin

    October 14, 2014 at 2:37 pm

    Yes, as long as the browser supports the draft HTML5 File API.

    https://www.html5rocks.com/en/tutorials/file/dndfiles/

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy