Set cover image while record audio in android -
hello recording audio using mediarecorder , save in mp4 format. , upload server. record video mp4 using camera , upload server.
while receive uploaded item server uploaded url list. , playing in videoview. video , audio play good. here thing while playing video it's display video frame on video view while playing audio it's black. audio , video file extension mp4 can't make different while adding in videoview other wise i'll add imageview , display default image , hide videoview.
there way record audio cover image while playing in video view display cover image...
know using ffmpeg can got lots of error while compiling in windows pc. there way add cover image while record audio pure android api? sorry bad english.
i google can't find solution convert audio file video file using image. have go ffmpeg.
so add writingminds java ffmpeg in project using gradle dependency. convert mp4 audio cover image mp4 video.
there limitation in precompile library. not work in android 24 , commands -speed, cpu-used, -deadline important operation(but still can perform other operation). there disadvantage slow speed, , features required specific operation not include in compile library. (so gave advice compile own ffmpeg library android project in linux or mac pc(windowns have lots of issues)).
i hope who's type of scenario :)
Comments
Post a Comment