I have used xuggle library in my project to trans code the video from mp4 to flv. I have used slf4j libraries also to support logging
xuggle library
mp4 to flv
slf4j libraries
For gradle
compile('org.xxx:xxx:1.0-SNAPSHOT'){ exclude module: 'log4j' exclude module: 'slf4j-log4j12' }