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 Odysseus » Fri Sep 13, 2013 4:58 am

I was referring to this, "Also, the zip says Desire, is that a mistake?" Before posting I reread his previous post, the link he gave was named "Desire.... Zip."
Current device: HTC Amaze 4G
Bootloader: HTC - Dev unlocked, S-on
Recovery: 4ext - smart flash enabled
ROM: CM-10 - Compiled and customized by me - thanks spostsstar89 - CM - Team Nightmare
Xposed framework - rovo89
GravityBox - C3C076

Previous device: HTC HD2 (TMOUS - LEO1024)
Final ROM: NexusHD2-JellyBean-CM10.1.3 v2.7 - Tytung
Had more lives than a cat, best handset I ever owned
Lesson: If it ain't broke, don't fix it!
RIP
User avatar
Odysseus
Recognized Contributor
 
Posts: 117
Joined: Sun Jul 07, 2013 10:44 pm
Location: Miami, FL
Country: United States (us)
Has thanked: 89 times
Been thanked: 132 times

Advertisement
 

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

Postby tommypacker » Fri Sep 13, 2013 7:00 am

Odysseus wrote:I was referring to this, "Also, the zip says Desire, is that a mistake?" Before posting I reread his previous post, the link he gave was named "Desire.... Zip."

This is a Nexus one project not Desire project

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: Hardware video encoding (video recording) and decoding (720p video playback)

Postby Odysseus » Fri Sep 13, 2013 7:29 am

tommypacker wrote:This is a Nexus one project not Desire project

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

I understand I've been following since this conversation started on the other thread. Like I said in a previous post, the desire, nexus one, and hd2 have similar hardware. In fact, the desire is more closely related internally to the nexus than the HD2 is.
Current device: HTC Amaze 4G
Bootloader: HTC - Dev unlocked, S-on
Recovery: 4ext - smart flash enabled
ROM: CM-10 - Compiled and customized by me - thanks spostsstar89 - CM - Team Nightmare
Xposed framework - rovo89
GravityBox - C3C076

Previous device: HTC HD2 (TMOUS - LEO1024)
Final ROM: NexusHD2-JellyBean-CM10.1.3 v2.7 - Tytung
Had more lives than a cat, best handset I ever owned
Lesson: If it ain't broke, don't fix it!
RIP
User avatar
Odysseus
Recognized Contributor
 
Posts: 117
Joined: Sun Jul 07, 2013 10:44 pm
Location: Miami, FL
Country: United States (us)
Has thanked: 89 times
Been thanked: 132 times

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

Postby tytung » Fri Sep 13, 2013 2:24 pm

tommypacker wrote:
When I try uploading to that website, I get this error
Traceback (most recent call last):
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 716, in __call__
handler.post(*groups)
File "/base/data/home/apps/logcatbin/1.350841285131101349/main.py", line 91, in post
logcat.put()
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 1070, in put
return datastore.Put(self._entity, **kwargs)
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/api/datastore.py", line 602, in Put
return PutAsync(entities, **kwargs).get_result()
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 612, in get_result
return self.__get_result_hook(self)
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/datastore/datastore_rpc.py", line 1601, in __put_hook
self.check_rpc_success(rpc)
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/datastore/datastore_rpc.py", line 1234, in check_rpc_success
rpc.check_success()
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 578, in check_success
self.__rpc.CheckSuccess()
File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/api/apiproxy_rpc.py", line 133, in CheckSuccess
raise self.exception
OverQuotaError: The API call datastore_v3.Put() required more quota than is available.



Also, the zip says Desire, is that a mistake?

Okey. http://logcat.miui.us/ had the quota issue. I ever saw it before. Google App Engine has limited quota per day. Maybe try it at another day or use your previous website.

Well, HD2 can only use m4v encoding, not h264.
So I change the zip file to distinguish that it is not for HD2.

I ever provided a CM10.1 zip patch for Desire forum at XDA, so I used the similar file name for CM10.2.
It can be used by Desire and Nexus One.
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 MarkAtHome » Sun Sep 15, 2013 6:15 pm

Odysseus wrote:I could be wrong, but it's probably not a mistake. Remember the HD2 isn't a native Android phone. Much of the development for it, especially early development, was lifted directly from the Desire and Nexus One. They have similar hardware so their setup will also be similar.

That, in part, is true (ports for the HD2 were based upon the Desire and Nexus), but when the HD2 was released in China, it arrived, out of the box, running Android, not WM. So I say native, shmative... let's not quibble... ;-)
Image
User avatar
MarkAtHome
Forum Moderator
 
Posts: 97
Joined: Mon Jun 24, 2013 10:17 pm
Has thanked: 60 times
Been thanked: 65 times

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

Postby tommypacker » Tue Sep 17, 2013 6:46 am

Sorry I couldn't post to logcat.miui.us, but I seem to be getting that same error on every browser I try so here it is on pastebin
http://pastebin.com/hJuVQ44B

I flashed your fix, but still no dice unfortunately. I then tried replacing the two files in the original rom, but nope.
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 » Tue Sep 17, 2013 5:01 pm

tommypacker wrote:Sorry I couldn't post to logcat.miui.us, but I seem to be getting that same error on every browser I try so here it is on pastebin
http://pastebin.com/hJuVQ44B

I flashed your fix, but still no dice unfortunately. I then tried replacing the two files in the original rom, but nope.


Thanks.
You need to remove this line in the media_codecs.xml. It's a software encoder.
<MediaCodec name="AVCEncoder" type="video/avc" />

I/SoftAVCEncoder( 129): Construct SoftAVCEncoder
I/OMXCodec( 129): [OMX.google.h264.encoder] setVideoInputFormat width=640, height=480

I also updated this download.
NexusOne-Desire_HW_video_decoding_and_encoding-h264_for_CM-10.2_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 t80u » Tue Sep 17, 2013 7:17 pm


I've been following this thread and I tried your latest file, but still no luck... http://pastebin.com/RDy0Zxie
PS: logcat.miui.us doesn't work
t80u
Junior Member
 
Posts: 6
Joined: Tue Sep 17, 2013 6:27 pm
Country: United States (us)
Has thanked: 2 times
Been thanked: 0 time

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

Postby tommypacker » Wed Sep 18, 2013 12:17 am

Here's the logcat for the new zip you provided me. I included it in the rom, but still doesn't work. I noticed the software encoder still seems to be active
http://pastebin.com/WJFX7xWm
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 Sep 18, 2013 8:39 pm

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.
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

PreviousNext

Return to Nexus One Android Development

Who is online

Users browsing this forum: No registered users and 0 guests