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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -