Hardware video encoding (video recording) and decoding (720p video playback)

Android development for Google Nexus One
Moderator: Forum Moderator

Re: Hardware video encoding (video recording) and decoding (720p video playback)

Postby tommypacker » Wed Sep 18, 2013 11:50 pm

tytung wrote:Thanks.
Did you check the file media_codecs.xml to see if the content is changed correctly after flashing the new file?
I don't understand why the avc video encoder [OMX.qcom.video.encoder.avc] is not used first.
I will develop a lib for displaying the full debug info when I have time.


Yeah I checked the media_codes.xml file and the line was removed. Thanks for the effort you put into this, it's greatly appreciated.
tommypacker
Junior Member
 
Posts: 41
Joined: Tue Sep 03, 2013 4:55 am
Country: United States (us)
Has thanked: 22 times
Been thanked: 10 times

Advertisement
 

Re: Hardware video encoding (video recording) and decoding (720p video playback)

Postby tytung » Thu Sep 19, 2013 9:26 pm

tommypacker wrote:Yeah I checked the media_codes.xml file and the line was removed. Thanks for the effort you put into this, it's greatly appreciated.


I have enable the debug info for libstagefright.so
Please flash NexusOne-Desire_HW_video_decoding_and_encoding-h264_for_CM-10.2_debug_update.zip and post the logcat.

If h264 is still not working, please try m4v config and the debug-enabled libstagefright.so.
NexusOne-Desire_HW_video_decoding_and_encoding-m4v_for_CM-10.2_debug_update.zip
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: Hardware video encoding (video recording) and decoding (720p video playback)

Postby tommypacker » Fri Sep 20, 2013 12:15 am

tytung wrote:
I have enable the debug info for libstagefright.so
Please flash NexusOne-Desire_HW_video_decoding_and_encoding-h264_for_CM-10.2_debug_update.zip and post the logcat.

If h264 is still not working, please try m4v config and the debug-enabled libstagefright.so.
NexusOne-Desire_HW_video_decoding_and_encoding-m4v_for_CM-10.2_debug_update.zip


Here's the log, I only copied part of it because the rest of it is just a repetition
http://pastebin.com/index.php?e=1

For the 2nd zip you provided, gallery froze after I stopped recording
http://pastebin.com/4hdAgTvN
tommypacker
Junior Member
 
Posts: 41
Joined: Tue Sep 03, 2013 4:55 am
Country: United States (us)
Has thanked: 22 times
Been thanked: 10 times

Re: Hardware video encoding (video recording) and decoding (720p video playback)

Postby tytung » Fri Sep 20, 2013 4:49 pm

tommypacker wrote:
Here's the log, I only copied part of it because the rest of it is just a repetition
http://pastebin.com/index.php?e=1

For the 2nd zip you provided, gallery froze after I stopped recording
http://pastebin.com/4hdAgTvN


I cannot access h264's logcat (the first link you provided). Your link doesn't work.

Regarding the m4v's logcat (the second link you provided), the qcom's hardware mpeg4 encoder is used.
V/OMXCodec( 2047): [OMX.qcom.video.encoder.mpeg4] onStateChange 2
V/OMXCodec( 2047): [OMX.qcom.video.encoder.mpeg4] Now Idle.
E/VideoencOMX( 2047): send_command::728 sending command MSG_ID_STATE_CHANGE: 2 state => 3 state
E/VideoencOMX( 2047): process_state_change::2633 go to OMX_StateExecuting
E/VideoencDEV( 2047): venc_drv_open::224 VENC_DRV_OPEN: FAILURE:venc_ioctl_initialize_done_recved FALSE
E/VideoencDEV( 2047): venci_process_command_start::2832 VENC_DRV_OPEN: failed synchrnously!
E/VideoencDEV( 2047): venc_drv_ioctl::464 VENC_DRV_IOCTL: FAILURE:venc_ioctl_rc_config_done_recved FALSE
E/VideoencDEV( 2047): venci_process_command_start::2861 VENC_DRV_IOCTL returns synchronous error for RC config cmd
E/VideoencDEV( 2047): venc_drv_ioctl::393 VENC_DRV_IOCTL: FAILURE:venc_ioctl_intra_refresh_done_recved FALSE
E/VideoencDEV( 2047): venci_process_command_start::2881 VENC_DRV_IOCTL returns synchronous error for IR config cmd

V/OMXCodec( 2047): [OMX.qcom.video.encoder.mpeg4] onStateChange 3
V/OMXCodec( 2047): [OMX.qcom.video.encoder.mpeg4] Now Executing.
W/CameraSource( 2047): Failed to set video buffer count to 4 due to -38

But you need to patch the N1 kernel to fix the below error to make video recording working.
venc_drv_open::224 VENC_DRV_OPEN: FAILURE:venc_ioctl_initialize_done_recved FALSE
The solution was already posted in the second post of this topic.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: Hardware video encoding (video recording) and decoding (720p video playback)

Postby tommypacker » Mon Sep 23, 2013 4:01 am

tytung wrote:
I cannot access h264's logcat (the first link you provided). Your link doesn't work.

Regarding the m4v's logcat (the second link you provided), the qcom's hardware mpeg4 encoder is used.

But you need to patch the N1 kernel to fix the below error to make video recording working.
venc_drv_open::224 VENC_DRV_OPEN: FAILURE:venc_ioctl_initialize_done_recved FALSE
The solution was already posted in the second post of this topic.


Here's the link to the first logcat http://pastebin.com/T63jKWv4 . I've been busy so sorry about the late reply. Also what commits do I need to make to the kernel? I'm having trouble figuring out how to apply the patch
tommypacker
Junior Member
 
Posts: 41
Joined: Tue Sep 03, 2013 4:55 am
Country: United States (us)
Has thanked: 22 times
Been thanked: 10 times

Re: Hardware video encoding (video recording) and decoding (720p video playback)

Postby tytung » Mon Sep 23, 2013 6:42 am

tommypacker wrote:
Here's the link to the first logcat http://pastebin.com/T63jKWv4 . I've been busy so sorry about the late reply. Also what commits do I need to make to the kernel? I'm having trouble figuring out how to apply the patch


Your logcat is not completed.
It seems that the software video encoder [OMX.google.h264.encoder] was used.
Could you provide a logcat when you start recording a video?
Note: You don't need to reply to me immediately. Just do it when you have free time. :)

According to kali7's research, you need intersectRaven's kernel commit, where he solved the h/w video encoding issues long time ago:
https://github.com/intersectRaven/ir-ke ... 5571bad194

You might also need to compare the whole source code among the following three git repositories.
Then "manually" modify the source code of your used Evervolv's android_kernel_htc_qsd8k.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: Hardware video encoding (video recording) and decoding (720p video playback)

Postby tommypacker » Wed Feb 26, 2014 6:45 am

Hey Tytung, I'm back.

Now that we have kitkat roms, has anything changed pertaining to video recording?
tommypacker
Junior Member
 
Posts: 41
Joined: Tue Sep 03, 2013 4:55 am
Country: United States (us)
Has thanked: 22 times
Been thanked: 10 times

Re: Hardware video encoding (video recording) and decoding (720p video playback)

Postby tytung » Wed Feb 26, 2014 4:01 pm

tommypacker wrote:Hey Tytung, I'm back.

Now that we have kitkat roms, has anything changed pertaining to video recording?

No, I used the same patch for both JB and KK.
Paste your logcat to GitHub Gist or any similar websites, and link it in your post if you need any help. (Don't forget to tell us your HD2 setup/configuration.)

Device: HTC HD2 (LEO512)
HSPL: 2.08.HSPL
Radio: Leo_RADIO_2.15.50.14
Bootloader: MAGLDR v1.13
Recovery: ClockworkMod Recovery 5.0.2.6

My work for Android on HD2:
Image
User avatar
tytung
Site Admin
 
Posts: 588
Joined: Sun Jun 09, 2013 2:12 pm
Country: Taiwan (tw)
Has thanked: 204 times
Been thanked: 1349 times

Re: Hardware video encoding (video recording) and decoding (720p video playback)

Postby ukanth » Wed Feb 26, 2014 4:03 pm

I guess we didn't make it work because Evervolv integrated ion in 4.x kernel. As mentioned by tytung, we need to revert back the changes to make it work.
ukanth
Newly Registered Member
 
Posts: 2
Joined: Wed Feb 26, 2014 3:57 pm
Country: India (in)
Has thanked: 0 time
Been thanked: 1 time

Re: Hardware video encoding (video recording) and decoding (720p video playback)

Postby kostelo » Wed Feb 26, 2014 9:09 pm

Hi there, first post here as I am an HTC Desire user. Please could you help up have at least 720p HW video decoding as you have provided for us in CM10.1 thread? I have found a patch you posted earlier but unfortunately is not working in our KK builds (neither evervolv nor CM/beanstalk/carbon/etc...). :( Maybe if you have time, could you take a look? Thanks in advance. :)
kostelo
Newly Registered Member
 
Posts: 2
Joined: Wed Feb 26, 2014 9:02 pm
Country: Greece (gr)
Has thanked: 1 time
Been thanked: 0 time

PreviousNext

Return to Nexus One Android Development

Who is online

Users browsing this forum: No registered users and 0 guests