maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   N900 720p Video Capture? (https://talk.maemo.org/showthread.php?t=57881)

jakiman 2010-07-18 12:07

Re: N900 720p Video Capture?
 
Quote:

Originally Posted by jaimex2 (Post 755692)
Such a great phone completely gimped. Everything in it gives the impression the people responsible spent enough time on each feature with an attitude of "It kinda works, that'll do... next".

I actually agree with you there. So many are 'it kinda works' category:
- Maps (you know why)
- Media Player (such weak features and options)
- Email (same here)
- Video recording (my N95 8GB was better)
- Phone app (super basic with twitchy rotation)

I'm glad there are so many good apps made by the community to ease the pain somewhat.
N900 is awesome But it could be sooo much better if Nokia really cared about it after its release.

Anyways. We know hardware can do 720p video record and playback.
But will we ever get the N900 to do it? Hmm. I think it's a bit tougher than overclocking.
I would love it to at least be able to play 720p videos...

efekt 2010-07-18 12:08

Re: N900 720p Video Capture?
 
Quote:

Originally Posted by jaimex2 (Post 755692)
What are the chances NITDroid/Meego will redeem the n900?

What are the chances you'll ask this question in its appropriate thread, and not try to snatch or divert the current thread's subject?

ndi 2010-07-18 16:53

Re: N900 720p Video Capture?
 
Quote:

Originally Posted by te37v (Post 749427)
@ndi: Sounds like you have detected the problem! We're one step closer! (Or at least you are :P)

I am, still running tests, but so far it's almost perfect. Especially since such a load on a multitasking phone is never camera-smooth.

Quote:

Originally Posted by jaimex2 (Post 755692)
Short of over clocking my n900 to 1.5 Ghz I'm out of ideas

If you would have read the whole thread you'd know it will not help. This is a storage/conflict issue. If it were a power issue, 640x480 would have worked fine. Also, 600 Mhz to almost 1200 would have helped. It doesn't.

Quote:

Originally Posted by ankit255 (Post 755666)
Why this capability wasn't included by default baffles me. Its there on omnia HD with 3440(almost identical SOC)

Because N900 has issues with recording, and adding more strain would have broken recording.

I am 100 percent confident it can be done with N900. Needs to be done by Nokia, most likely. Might be a driver limitation.

shadowjk 2010-07-18 17:15

Re: N900 720p Video Capture?
 
Well, find a codec that can compress 720p in realtime..

damion 2010-07-18 20:27

Re: N900 720p Video Capture?
 
Isn't /dev/video and various ioctl()s fairly standard? Surely the max IO of the internal flash is enough for a weak/no encoded userspace dump? You can root level nice -19 the job, nice +20 the others, perhaps even send a SIGSTOP to a few likely culprets like the thm indexer? I notice somebody tried ffmpeg, but what caused the resolution limitation?

ndi 2010-07-18 20:33

Re: N900 720p Video Capture?
 
Possibly. It's also possible that at the same bitrate, the jump from 400K to 900K video the loss is bigger by compression than by optics. Artifacts could be bad enough that we get a clearer image at 800x480.

Why this isn't configurable is beyond me. I'm thinking driver?

jakiman 2010-07-19 04:38

Re: N900 720p Video Capture?
 
From attempting to play 720p files via mplayer and vlc:

VLC says:
"Video Acceleration Driver does not support the required resoution 1280x720 pixels.
The maximum supported resolution is 864x648. Video output acceleration will be disabled."

mplayer says:
"Source image dimensions are too high: 1280x720 (maximum is 864x648)
FATAL: Cannot initialize video driver"

To me, this sounds like a video driver limitation and may be related to the video recording also?
Is there a way to remove the maximum resolution limit for hardware gpu acceleration?

titi974 2010-07-19 10:28

Re: N900 720p Video Capture?
 
i see that there is some progress here, no ?

ndi 2010-07-19 23:12

Re: N900 720p Video Capture?
 
Quote:

Originally Posted by jakiman (Post 756385)
From attempting to play 720p files via mplayer and vlc:

Those are both decoder issues. For a decoder to accelerate video it needs a known, supported profile. It does not necessarily exclude encoder's abilities. It's just very, very likely. Trying to stay positive. It's possible that, because the screen was 800x480 that the decoder was intentionally limited.

Software encoding is out of the question, so, either they let us have it or we're boned.

shadowjk 2010-07-20 12:50

Re: N900 720p Video Capture?
 
I've understood that the IVA2 component of the omap3 CPU is entirely undocumented, and that there are some third parties which have been supplied documentation on it, and have created an enhanced decoder capable of 720p decode, and is selling it at enormously high cost.

Quote:

Surely the max IO of the internal flash is enough for a weak/no encoded userspace dump?
Uncompressed 720p requires about 40 megabytes per second. The flash certainly can't handle that, and I don't even know if the bus that the camera is connected to can handle that much :)

ankit255 2010-07-20 13:06

Re: N900 720p Video Capture?
 
Quote:

Originally Posted by shadowjk (Post 757810)
I've understood that the IVA2 component of the omap3 CPU is entirely undocumented, and that there are some third parties which have been supplied documentation on it, and have created an enhanced decoder capable of 720p decode, and is selling it at enormously high cost.



Uncompressed 720p requires about 40 megabytes per second. The flash certainly can't handle that, and I don't even know if the bus that the camera is connected to can handle that much :)

I hope you meant 40 megabits per second(Mbps) and not megabytes(MBps).

shadowjk 2010-07-20 13:32

Re: N900 720p Video Capture?
 
1280 pixels * 720 pixels * 30 frames per second * 12 bits per pixel (this would be 24 if the camera sends data in RGB and not YUV, that is, double) = 331776000 bits per second
Divide by 8: 41472000 bytes/second
divide by 1024*1024: 39.55... megabytes/second
Double that if it's RGB..

ndi 2010-07-20 23:23

Re: N900 720p Video Capture?
 
That would be correct for a raw sensor dump - it never leaves the camera, as it actively works differently in video and camera mode. It delivers a partially compressed stream in whatever mode that is, otherwise there would be no HD cameras, at 250M/s the data is too much for any portable storage system (even a SSD).

Also, there is no way that tiny unshielded connector phone cameras or video cameras have can take 250M/s. that would mean at least a 2Gb link.

Not even DSLRs deliver uncompressed raw data, all real life RAW formats I know are compressed. My A200, e.g., delivers 10M at 12 b/plane (48 bit, 6 byte), that's at least 60 MB of data, in a RAW 5-10 MB in size.

It's not entirely impossible to do it like that but I don't know of a single device (other than dedicated capture systems) that delivers raw data like that. Actually, I do, but it's way, way beyond the scope of this discussion.

jakiman 2010-07-21 00:03

Re: N900 720p Video Capture?
 
Compression does not mean loss of data. So there is no need to pump out uncompressed raw data to storage directly. It's all compressed and decompressed on the fly usually by a dedicated image processor of some sort.

We already know that N900's hardware is capable of much more than what Nokia made it do. Obviously they didn't want the N900 to be their HD capable phones. That's reserved for the upcoming N8 and later models.

ndi 2010-07-21 00:54

Re: N900 720p Video Capture?
 
No, not necessarily. Though I don't expect any lossless compression from such a compact and low powered device. Also, it's entirely possible this wasn't a Nokia decision, it could be a restriction by manufacturer.

airjaff 2010-08-02 11:47

Re: N900 720p Video Capture?
 
htc desire got an update of android yday. and now can record 720p. surely this is possible with n900. is this being developed? or is it not possible? the hd recording on the desire looks really good

jaimex2 2010-08-02 11:53

Re: N900 720p Video Capture?
 
Quote:

Originally Posted by airjaff (Post 772959)
htc desire got an update of android yday. and now can record 720p. surely this is possible with n900. is this being developed? or is it not possible? the hd recording on the desire looks really good

Can only hope Nokia give a toss but release 1.2 is most likely the last well hear from Nokia.

Kevven 2010-08-02 21:30

Re: N900 720p Video Capture?
 
I still find it very odd that my N9 could record video stutter-free, but my N900 with better HW cannot. I didnt expect the quality to be superb, but to record a video without lag shouldt really be an issue.. It makes me sad.

mattiviljanen 2010-08-02 21:46

Re: N900 720p Video Capture?
 
IMHO the video recording is stuttering even now with stock speeds (haven't really stress tested with PR1.2), so unless there is underutilized hardware, or worse, not utilized at all, and an update from Nokia, there is not much to do. The hardware can do only so much...

Kevven 2010-08-02 22:22

Re: N900 720p Video Capture?
 
True. But the N900 hardware should at least give us stutter-free recording with the stock res.

msa 2010-08-02 23:39

Re: N900 720p Video Capture?
 
i dont think this will happen until maemo gets completely revamped.
but i guess in this case its easier to start completely over than fix whats broken, hence meego... i hope meego will feature a fluid UI and smooth video-recording.

ndi 2010-08-04 02:08

Re: N900 720p Video Capture?
 
Did you read back and try my tracker/indexer disabling? In my case, N900 delivered smooth recording on eMMC with tracker off.

dof250 2010-08-04 09:21

Re: N900 720p Video Capture?
 
Quote:

Originally Posted by ndi (Post 774907)
Did you read back and try my tracker/indexer disabling? In my case, N900 delivered smooth recording on eMMC with tracker off.

Could you please write a super small tutorial? the Tracker tool has A LOT of options, which ones to disable and what to leave on?

Netweaver 2010-08-04 09:30

Re: N900 720p Video Capture?
 
I second this :)

ndi 2010-08-04 10:20

Re: N900 720p Video Capture?
 
Disable indexing and watching, reboot.
Shoot video.

--

In theory, it's the watching that triggers index and thumbnailing whan shooting, but indexing could kick in, too. Also, due to memory fragmentation bug, high uptime (48h is "high") can hit performance. Make sure it's fresh.

maxximuscool 2010-10-12 01:31

Re: N900 720p Video Capture?
 
Spark up the debate of 720p :D

sygys 2010-12-01 09:05

Re: N900 720p Video Capture?
 
Quote:

Originally Posted by ndi (Post 758546)
That would be correct for a raw sensor dump - it never leaves the camera, as it actively works differently in video and camera mode. It delivers a partially compressed stream in whatever mode that is, otherwise there would be no HD cameras, at 250M/s the data is too much for any portable storage system (even a SSD).

SSD connected to PCI-e allready has speeds of up to 650 MB a second. so you should leave that storage device out of the picture here.

JorgeFX 2010-12-04 08:05

Re: N900 720p Video Capture?
 
Quote:

Originally Posted by ndi (Post 775245)
In theory, it's the watching that triggers index and thumbnailing whan shooting, but indexing could kick in, too. Also, due to memory fragmentation bug, high uptime (48h is "high") can hit performance. Make sure it's fresh.

I was reading about the fragmentation problem, but where do you read it was 48hrs exactly? I know the N900 becomes slow with high uptime but didn't know there was a number

ndi 2010-12-04 09:36

Re: N900 720p Video Capture?
 
Quote:

Originally Posted by JorgeFX (Post 888934)
I was reading about the fragmentation problem, but where do you read it was 48hrs exactly? I know the N900 becomes slow with high uptime but didn't know there was a number

There is a lengthy discussion in bugs.maem.org, a bug about audio chopping and high cpu usage after unlocking. I'm on the road now, so it's tedious and expensive, but if you can't find it I'll link later tonight (my timezone).

S0urcerr0r 2010-12-10 07:07

Re: N900 720p Video Capture?
 
Quote:

Originally Posted by shadowjk (Post 757810)
I've understood that the IVA2 component of the omap3 CPU is entirely undocumented, and that there are some third parties which have been supplied documentation on it, and have created an enhanced decoder capable of 720p decode, and is selling it at enormously high cost.

actually, this might be sufficiently proper documentation:
http://focus.ti.com/dsp/docs/dspsupp...ocCategoryId=6
for example:
http://www.ti.com/litv/pdf/spru732j (C64x+ DSP CPU and Instruction Set Reference Guide)

or it may as well not be sufficient.

im not sure what IVA2 represents... if its software or hardware based?
maybe its TI's name for a software suite for the C64+ DSP?
maybe its standalone silicon in the SoC?

personally i think IVA2 mostly reffers to TI's software that comes bundled with the C64+ DSP - everything ranging from compilers/SDK's to pre-built codecs (coded with those SDK's).
but like u said - it seems quite undocumented, unless the link above provides some info reffering to the IVA2.

im still investigating if its worth undertaking the task to create a clean "Camera OS" for the N900, and code some lightweight capture codecs...
Im not even sure that i can learn all relevant documents, since its so much.

...about undertaking the task to coding a new codec:

* the DSP have very limited cache resources and it cant process a complete 1280x720 picture in one sweep (of course).
* if regular RAM is used instead - it will hog the BUS.

therefore, i think the best approach is to compress each frame - segment by segment (which will cause blockiness), and save them one by one to RAM... writing to the eMMC will have to wait until the video is finished.
Using this approach, will put a time-limit on how long the recorded videos can become, but it will atleast provide plenty of resources/speed for capturing in HQ and high fps.


...still i know too little to make qualified judgements - so all of the above should be taken with a grain of salt... we'll see if i manage to learn enough to undertake this task.

blackjack4it 2011-07-01 12:37

Re: N900 720p Video Capture?
 
Any good news about 720p encoding?
I've seen that Nitdroid drivers can play 720p and 1080p with a bit of frameskip..if we can take a look inside the Nitdroid drivers, we can achieve new results ;)?

Did anyone tried again to ask Nokia for the source code of the drivers? :(:(:(

marmistrz 2011-07-01 12:43

Re: N900 720p Video Capture?
 
It'd be great if running fluently


All times are GMT. The time now is 17:31.

vBulletin® Version 3.8.8