Upload video url to FFmpegFrameGrabber

Does JavaCV FFmpegFrameGrabber support using a URL as a video source?

I tried using:

grabber = new FFmpegFrameGrabber("http://techslides.com/demos/sample-videos/small.mp4"); grabber.setFormat("mp4"); grabber.start() 

But start() throws the following error

 org.bytedeco.javacv.FrameGrabber$Exception: avformat_open_input() error -5: Could not open input "http://techslides.com/demos/sample-videos/small.mp4". (Has setFormat() been called?) 

By the way, I am developing in Android, and everything works fine with the video file from the SD card.

Thanks!

+6
source share

Source: https://habr.com/ru/post/985215/


All Articles