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

Android development for Google Nexus One
Moderator: Forum Moderator

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

Postby tommypacker » Sun Sep 08, 2013 3:17 am

Hey Tytung, is 720p recording kernel related because I wasnt able to save the video once it was captured on my Nexus one port. I would hit stop button and the phone would freeze up and gallery would force close.

Sent from my Infuse 4G with Scott's BEANSTALK ROM

Added by tytung:
This post and some related posts were moved from NexusHD2-JellyBean-CM10.2 V3.1 to Hardware video encoding and 720p video playback (this topic).
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: [Sep. 7, 2013][ROM][JB][4.3][720p] NexusHD2-JellyBean-CM10.2 V3.1 [Kernel: tytung_jellybean_r2]

Postby tytung » Sun Sep 08, 2013 6:02 am

tommypacker wrote:Hey Tytung, is 720p recording kernel related because I wasnt able to save the video once it was captured on my Nexus one port. I would hit stop button and the phone would freeze up and gallery would force close.

Sent from my Infuse 4G with Scott's BEANSTALK ROM

Only 720p video playback. No 720p recording.
I think you are talking about hardware video recording. Yes, it's kernel related.
http://forum.xda-developers.com/showpos ... count=3257
http://forum.xda-developers.com/showpos ... count=3523
http://forum.xda-developers.com/showpos ... tcount=429

Update:
For working hardware video recording, a kernel with pmem instead of ion is required.
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: [Sep. 7, 2013][ROM][JB][4.3][720p] NexusHD2-JellyBean-CM10.2 V3.1 [Kernel: tytung_jellybean_r2]

Postby tommypacker » Sun Sep 08, 2013 6:07 am

tytung wrote:Only 720p video playback. No 720p recording.
I think you are talking about hardware video recording. Yes, it's kernel related.
http://forum.xda-developers.com/showpos ... count=3257
http://forum.xda-developers.com/showpos ... tcount=429

Dang, I was hoping maybe that I'd have working video recording on my Nexus One. Btw, I've linked this thread on my xda post and I plan to link your donation link too. Thanks for the hard work, but unfortunately I won't be able to reap all the benefits of it as I have no idea how to modify the kernel to get recording/720.playback working :(

Sent from my Infuse 4G with Scott's BEANSTALK ROM
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: [Sep. 7, 2013][ROM][JB][4.3][720p] NexusHD2-JellyBean-CM10.2 V3.1 [Kernel: tytung_jellybean_r2]

Postby tommypacker » Tue Sep 10, 2013 6:05 am

tytung wrote:Only 720p video playback. No 720p recording.
I think you are talking about hardware video recording. Yes, it's kernel related.
http://forum.xda-developers.com/showpos ... count=3257
http://forum.xda-developers.com/showpos ... count=3523
http://forum.xda-developers.com/showpos ... tcount=429

Update:
For working hardware video recording, a kernel with pmem instead of ion is required.


So I'm using an evervolv kernel that is not using ion. How hard is it to modify the kernel to get hardware playback/video recording? Video recording itself isn't choppy, but the video doesn't save.

Sent from my Nexus One with CM 10.2
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: [Sep. 7, 2013][ROM][JB][4.3][720p] NexusHD2-JellyBean-CM10.2 V3.1 [Kernel: tytung_jellybean_r2]

Postby tytung » Tue Sep 10, 2013 6:18 am

tommypacker wrote:
So I'm using an evervolv kernel that is not using ion. How hard is it to modify the kernel to get hardware playback/video recording? Video recording itself isn't choppy, but the video doesn't save.

Sent from my Nexus One with CM 10.2


Ion memory allocator is newer than pmem memory allocator, but proprietary (close source) camera libs are designed for pmem.
So you need a kernel using pmem memory allocator.

Evervolv kernel should be using pmem before, and then Ion was added by someone.
Thus you might revert some commits to go back pmem.
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: [Sep. 7, 2013][ROM][JB][4.3][720p] NexusHD2-JellyBean-CM10.2 V3.1 [Kernel: tytung_jellybean_r2]

Postby tommypacker » Tue Sep 10, 2013 6:34 am

tytung wrote:
Ion memory allocator is newer than pmem memory allocator, but proprietary (close source) camera libs are designed for pmem.
So you need a kernel using pmem memory allocator.

Evervolv kernel should be using pmem before, and then Ion was added by someone.
Thus you might revert some commits to go back pmem.

Evervolv actually stopped using ion as soon as they started 4.3. I think that's why I was able to get your ROM boot g

Sent from my Infuse 4G with Scott's BEANSTALK ROM
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: [Sep. 7, 2013][ROM][JB][4.3][720p] NexusHD2-JellyBean-CM10.2 V3.1 [Kernel: tytung_jellybean_r2]

Postby tytung » Tue Sep 10, 2013 7:09 am

tommypacker wrote:Evervolv actually stopped using ion as soon as they started 4.3. I think that's why I was able to get your ROM boot g

Sent from my Infuse 4G with Scott's BEANSTALK ROM

If so, you could read those three xda URLs I provided above.
First, you may need to identify if you see the following error in the logcat.
venc_drv_open::224 VENC_DRV_OPEN: FAILURE:venc_ioctl_initialize_done_recved FALSE.
Then try to revert qdsp6 source code.

BTW, which evervolv kernel git do you use for N1?
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: [Sep. 7, 2013][ROM][JB][4.3][720p] NexusHD2-JellyBean-CM10.2 V3.1 [Kernel: tytung_jellybean_r2]

Postby tommypacker » Tue Sep 10, 2013 7:12 am

tytung wrote:If so, you could read those three xda URLs I provided above.
First, you may need to identify if you see the following error in the logcat.
venc_drv_open::224 VENC_DRV_OPEN: FAILURE:venc_ioctl_initialize_done_recved FALSE.
Then try to revert qdsp6 source code.

BTW, which evervolv kernel git do you use for N1?

I just took the Evervolv kernel from their latest nightly. I'll check the logcat tomorrow. One last thing, I probably need to decompile a jar, but do you know why button lights aren't working for me? I changed the Leo lib with the passion one, and yet lights don't seem to work. Other than that your ROM is just pure awesome.

Sent from my Infuse 4G with Scott's BEANSTALK ROM
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: [Sep. 7, 2013][ROM][JB][4.3][720p] NexusHD2-JellyBean-CM10.2 V3.1 [Kernel: tytung_jellybean_r2]

Postby tytung » Tue Sep 10, 2013 8:02 pm

tommypacker wrote:I just took the Evervolv kernel from their latest nightly. I'll check the logcat tomorrow. One last thing, I probably need to decompile a jar, but do you know why button lights aren't working for me? I changed the Leo lib with the passion one, and yet lights don't seem to work. Other than that your ROM is just pure awesome.

Sent from my Infuse 4G with Scott's BEANSTALK ROM

Please type "ls -l /dev | grep pmem" to check if you see pmem or not. If you see them, pmem is used by the evervolv kernel.

Did you use initrd.gz from my NexusHD2 ROM or from a N1 ROM? There're some settings for button lights in the initrd.gz.
Besides, maybe /system/etc/init.d/99_button_light_off can be used by HD2 only.
If you include it in your N1 port, please remove it and try again.
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 Sep 11, 2013 4:59 am

You were right, I just needed to remove the button_light_off script and the buttons tarted working. What is that for anyways?
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

Next

Return to Nexus One Android Development

Who is online

Users browsing this forum: No registered users and 1 guest