Advertisement

convert bitmap array to YUV in java for create video with ffmpeg

Started by August 31, 2018 05:55 AM
0 comments, last by giuseppeferrari 6 years, 5 months ago

hello.
I'm trying to understand how i can convert a bitmap array to a single yuv file.
I'm trying to do this for register webcamera from windows and android.
Next i would use ffmpeg for convert the yuv file to a video.
Is possible?
My chose to the single file because i save the max possible space in a stream in memory after write it to disk, for performances.
i found this
http://embedav.blogspot.com/2013/06/convert-rgb-to-yuv420-planar-format-in.html
but i'm not understand how i can use it for an array of bitmap.but a yuv file not have any header?
very thanks.
ps.
I must use java or c# but i understand c++ as well  i should do something of easy , then no big code library in c++

but is possible in some methods to save big quantity of data in only a file for transform this file to a video with ffmpeg?
this is my real question.

This topic is closed to new replies.

Advertisement