-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using bitmap files #1
Comments
Hi Michael -
No, I’m sorry to say I don’t have such an example :-( Nothing else found on the web?
— Philip
… On Jul 12, 2017, at 3:00 PM, mbullock976 ***@***.***> wrote:
Hi I'm a c# developer and have managed to port this across into c# as unmanaged code.
I wondered do you have an example of how to convert a bitmap file instead of a generated rbg data please?
Thanks
Michael
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#1>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AF8Y9jPur_CoDVeI-aUjZ61_j5NLzu1jks5sNUIFgaJpZM4OWQnV>.
|
Hi Phillip, thanks for the reply. Unfortunately my experience with unmanaged code is quite small. I have seen someone use GDI BMP and Hbitmap with locknuts, but am unsure how to do this in c#. I have done something similar in c# where I have created a bitmap from jog file, applied some markup to it then converted it to a managed byte array via memory stream and jpegencoder. However I don't know how to push my managed byte array to ffmpeg? Also I'm a bit unclear on your code example. I'm currently running this with h264 codec and outputting to h264 file with playback in VLC successfully. However, I'm having hard time understanding the two for loops. First for loop is commented out, which is updating the the frame? When I uncommented and ran code I saw no difference in the video. I'm trying to understand the next for loop below it because if I comment that out I get black screen? Is this first for loop attempt to apply image to frame and second loop attempt to manipulate yuv? I'm wondering if I should be assigning my managed byte array to the unmanaged rgb32data variable? Sorry for all the questions, but I am grateful you posted this code example as the research to convert bitmap files to h264 video has been difficult. |
Hi I'm a c# developer and have managed to port this across into c# as unmanaged code.
I wondered do you have an example of how to convert a bitmap file instead of a generated rbg data please?
Thanks
Michael
The text was updated successfully, but these errors were encountered: