Android ffmpeg restreaming video bind failed address already in use -
i receiving udp streaming camera(go pro camera) , want re streaming stream remote server. here command have tried
"ffmpeg -i 'udp://@10.5.5.9:8554' -fflags nobuffer -f:v mpegts -probesize 8195 -vcodec libx264 copy http://103.x.x.x:8090/feed1.ffm"
in build.gradle
have included following
compile 'com.github.hiteshsondhi88.libffmpeg:ffmpegandroid:0.2.5'
here code
exec("ffmpeg -i udp://@10.5.5.9:8554 -fflags nobuffer -f:v mpegts -probesize 8195 -vcodec libx264 copy http://103.x.x.x:8090/feed1.ffm"); public void exec(string command){ try { // execute "ffmpeg -version" command need pass "-version" // now, can execute command here ffmpeg.execute(command, new executebinaryresponsehandler() { @override public void onstart() {} @override public void onprogress(string message) {} @override public void onfailure(string message) { log.d("ffmpeg", "failed output: "+message); // got bind failed address in used error } @override public void onsuccess(string message) { log.i("success", message); } @override public void onfinish() {} }); } catch (ffmpegcommandalreadyrunningexception e) { // handle if ffmpeg running }
Comments
Post a Comment