bravobit / FFmpeg-Android

FFMpeg/FFprobe compiled for Android
https://bravobit.nl/
MIT License
741 stars 176 forks source link

How can I use this with streaming media? #13

Closed DysaniazzZ closed 6 years ago

DysaniazzZ commented 6 years ago

Hi there, I'm new to FFmpeg. I just want to use ffprobe to get some info from streaming media on android. I write my codes on this sample module and run it on my device, but I get an error log which says Protocol not found. Can you please help me with this? Thx a lot.

BTW, my command array is this:

{"-v", "error", "-show_entries", "stream=codec_name,height,width:format=filename,format_name", "-of", "json", "http://223.75.11.92:9090/live/cctv1hd_1500.m3u8"}

And I do it well on my Mac's terminal, which is:

ffprobe -v error -show_entries stream=codec_name,height,width:format=filename,format_name -of json http://223.75.11.92:9090/live/cctv1hd_1500.m3u8

And the snapshot of the error log:

screen shot 2018-01-18 at 20 28 27 screen shot 2018-01-18 at 20 29 57
Brianvdb commented 6 years ago

Network capabilities are currently disabled in the binaries.

Brianvdb commented 6 years ago

This issue has been fixed in version 1.1.1. I tested your command and it works fine with that version. Make sure you have internet permission defined in your AndroidManifest.

dependencies {
    implementation 'nl.bravobit:android-ffmpeg:1.1.1'
}
DysaniazzZ commented 6 years ago

Excellent job, my bro. You saved my day!