TikTok App Boiler Plate Code Android (FFmpeg)
First of all I will share the My App Code link:
https://github.com/lokeshdeshmukh/TikTok-Android-BoilerCode/tree/TikTok-App
App Link: http://cchat.in/APK/LokiTiktok.apk
I used FFmpeg and Exoplayer2 for editing and merging video with audio.
We have MasterProcessorFragment which is the entry point of the application after Splash Screen. Loading Exo-Player.
Mp3 file I used was converted into 4 playback speed 0.5x, 0.75x, 1x and 2x. When you click on any of the button it gets downloaded and played along with video recording.
After that according to the play back speed on which we recorded our video we shrink video to actual mp3 timeline and merge it with audio.
Currently I used very low quality settings but you can always tune it according to your requirement. In VideoRecorder
CamcorderProfile profile = CamcorderProfile.get(Camera.CameraInfo.CAMERA_FACING_FRONT, CamcorderProfile.QUALITY_LOW);#CamcorderProfile.QUALITY_HIGH
To get different Play Back for your MP3 Please refer my Blog:
Happy Coding!