webOS Nation Forums >  webOS apps and software >  webOS development > Video Recording (For Real, no GUI)
Video Recording (For Real, no GUI)

  Reply
 
LinkBack Thread Tools Display Modes
Old 10/23/2009, 10:25 PM   #481 (permalink)
Member
 
acherry's Avatar
 
Join Date: Aug 2009
Location: Rock Hill, SC
Posts: 72
Likes Received: 0
Thanks: 44
Thanked 20 Times in 10 Posts
Default

Quote:
Originally Posted by snazzy View Post
joy i got a working video with sound, thanks to your instructions acherry. I installed the services, restarted the phone, and ran the script. Used prism to convert it and came out nicely, minus the fast video. I'll keep trying for a nice product and will post.
freaking awesome!!!!

My labors were not in vain..

PLEASE post your results asap..

Last edited by acherry; 10/23/2009 at 10:41 PM.
acherry is offline   Reply With Quote
Old 10/23/2009, 10:45 PM   #482 (permalink)
Member
 
ivan1.ruiz's Avatar
 
Join Date: May 2008
Posts: 378
Likes Received: 0
Thanks: 37
Thanked 60 Times in 32 Posts
Default

wow thanks for the info. this is still alpha stages though. I cant wait until we get it by installing patches on the device or apps. OR until palm gives us an update..lol
__________________
Ivan's Themes main thread

Oklahoma Sooner theme

If you would like to because you like my work or you just want to buy me a drink I would really appreciate it.
ivan1.ruiz is offline   Reply With Quote
Old 10/23/2009, 10:50 PM   #483 (permalink)
Member
 
Join Date: Jul 2009
Posts: 27
Likes Received: 0
Thanks: 23
Thanked 7 Times in 6 Posts
Default

I accidentally recorded my video upside down so i recorded another quick one. Its processing on youtube now. I'll post a link once its done.
Still gotta figure out how to sync the audio/video though.

Update: Here's my first half-decent video with sound.
http://www.youtube.com/watch?v=DsLiPeqPdks
Snazzy is offline   Reply With Quote
Thanked By: discolightning
Old 10/23/2009, 11:06 PM   #484 (permalink)
Member
 
acherry's Avatar
 
Join Date: Aug 2009
Location: Rock Hill, SC
Posts: 72
Likes Received: 0
Thanks: 44
Thanked 20 Times in 10 Posts
Default

Quote:
Originally Posted by Snazzy View Post
I accidentally recorded my video upside down so i recorded another quick one. Its processing on youtube now. I'll post a link once its done.
Still gotta figure out how to sync the audio/video though.

Update: Here's my first half-decent video with sound.
YouTube - Palm Pre Video Test 2
Sweeet!!
The issue with the fast framerate has something to do with obtaining the a proper .MP4 container: http://forums.precentral.net/web-os-...ml#post1952967

and

http://forums.precentral.net/web-os-...ml#post1953881

Thanks NickDG

Again, I'm not a developer, I'm just a geek (telecom is my specialty) utilizing my unemployement time. :-(
How I got my video/sound to sync is beyond me. It was a fluke.. But it does show that it CAN work. The rest is up to you coding cats (or Palm,, hmmph..)..

Thanks Snazzy for the post and the kudos..
acherry is offline   Reply With Quote
Thanked By: discolightning
Old 10/23/2009, 11:09 PM   #485 (permalink)
Member
 
acherry's Avatar
 
Join Date: Aug 2009
Location: Rock Hill, SC
Posts: 72
Likes Received: 0
Thanks: 44
Thanked 20 Times in 10 Posts
Default

Quote:
Originally Posted by ivan1.ruiz View Post
wow thanks for the info. this is still alpha stages though. I cant wait until we get it by installing patches on the device or apps. OR until palm gives us an update..lol
As long as we continue proving the concept,, it'll happen..
Didin't they say something like that in Field of Dreams?

LOL.. I crack myself up, I do..
acherry is offline   Reply With Quote
Thanked By: mk3
Old 10/23/2009, 11:51 PM   #486 (permalink)
mk3
Member
 
mk3's Avatar
 
Join Date: Apr 2009
Location: GMT -8
Posts: 575
Likes Received: 1
Thanks: 333
Thanked 55 Times in 44 Posts
Default

Awesome... can't wait!
mk3 is offline   Reply With Quote
Old 10/24/2009, 04:44 AM   #487 (permalink)
Member
 
Join Date: Aug 2009
Posts: 10
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

how did u get video with sound
robert23 is offline   Reply With Quote
Old 10/24/2009, 05:24 AM   #488 (permalink)
Member
 
Join Date: Jul 2009
Posts: 27
Likes Received: 0
Thanks: 23
Thanked 7 Times in 6 Posts
Default

I followed acherry's post #481 just a few above, he explains it with a good amount of detail.
Here are a few things that i feel should be noted though, which some people would already know, but they werent explicitly written and caused me issues.

After installing the videorec app and service (found here) via WebOS Quick Install or however you do it, remember to restart your phone.

Once that's done, then go back in terminal and make sure the Pre is in rw mode before trying to record, so do a
mount -o remount,rw /
otherwise you'll get errors.
The rest is in acherry's very nice tutorial above.
Snazzy is offline   Reply With Quote
Thanked By: josecaguas
Old 10/24/2009, 05:29 AM   #489 (permalink)
Member
 
johncc's Avatar
 
Join Date: Oct 2005
Location: Adelaide, AU,.... (EU Pre 3, TP 32GB, P100UEU 2.1.0)
Posts: 3,910
Likes Received: 87
Thanks: 544
Thanked 453 Times in 331 Posts
Default

@Snazzy

Are you saying that you can consistently get sound?
johncc is offline   Reply With Quote
Old 10/24/2009, 05:38 AM   #490 (permalink)
Member
 
Join Date: Jul 2009
Posts: 27
Likes Received: 0
Thanks: 23
Thanked 7 Times in 6 Posts
Default

So far its been that way in every video i've recorded, a little choppy here and there but decently clear. However its mono, and only plays through my left speaker.

Also, the video for me has been recording at a fast rate (like for many other people) while the sound records normally, so that when i play it back, the video ends while the sound is still playing, hence the sound for the end of the clip is cut off. Once we can figure out a way to have the video record at a normal rate, then that should solve this problem.
Snazzy is offline   Reply With Quote
Thanked By: johncc
Old 10/24/2009, 05:43 AM   #491 (permalink)
Member
 
Join Date: Jul 2009
Posts: 27
Likes Received: 0
Thanks: 23
Thanked 7 Times in 6 Posts
Default

Ok here's another video i put together, my last for tonight.

Here i take a video of my Pre recording a video for more testing purposes. I add in the Pre's recording on top as soon as i run the start command and I adjusted the speed of the Pre's recording so that it ends when i run the kill command. This should make the two videos synced throughout the whole clip. However, they will go out of sync and come back together, meaning the Pre's recording rate seems to change throughout the video. (I highly doubt this is an issue with my video editing software.)

Lemme know what you guys think. Could be due to the fact that i was running the phone app at the same time, but if anything it should slow the recording down, not speed it up like it does in the video.

YouTube - Palm Pre Video Recording Test 2

And i just realized, i think its sick that the phone can record video and run all its other capabilities at the same time with no lag.
Snazzy is offline   Reply With Quote
Thanked By: josecaguas
Old 10/24/2009, 11:50 PM   #492 (permalink)
Member
 
Join Date: Jul 2009
Posts: 15
Likes Received: 0
Thanks: 0
Thanked 2 Times in 2 Posts
Default

The thought came to mind... having the option to record video without preview could be very useful in the recovery of a lost or stolen pre. If you have dyndns set up on it, you could ssh in, start the recording, copy the file, and see what you've picked up. Couple that with the script that pulls your GPS location and throws it up on a google map... oh, this could be fun. *evil genius laugh*
HaDAk is offline   Reply With Quote
Old 10/25/2009, 03:15 PM   #493 (permalink)
Member
 
ipalmpreo's Avatar
 
Join Date: Sep 2009
Location: fort smith, ar
Posts: 78
Likes Received: 0
Thanks: 12
Thanked 1 Time in 1 Post
Default

ok, simple question why cant you use the cameras caption to see wut your shooting, but make it smaller..? an apply it to the video recorder app? can n e one tell me the location of the videorecorder app to modify the code, like..cd /usr/palm/applications/com.palm.app.??

Last edited by ipalmpreo; 10/25/2009 at 03:24 PM.
ipalmpreo is offline   Reply With Quote
Old 10/25/2009, 07:37 PM   #494 (permalink)
Member
 
Join Date: Jul 2009
Posts: 27
Likes Received: 0
Thanks: 23
Thanked 7 Times in 6 Posts
Default

Having the camera app open would be a good way to see what you're recording! I dunno why i never ran that app while shooting.

And as far as i can tell, its not an its own app like the picture camera is. There's no straightforward video camera app or service, which is what's making this so difficult to throw together a quick app for this. Correct me if i'm mistaken, this is just my speculation from whats going on. It seems like Jason and Yokken and them are using a service on the phone called GStreamer along with another service called palmvideoencoder together to make it work. (See available packages here) GStreamer captures all the raw data from the camera while the palmvideoencoder 'roughly' packages it into an mp4 file. The problem is creating a working container/codec to make it playable right on the Pre without having to convert it with another program like Prism or youtube, which is what i think they're working on now. That and the capture rate issue.

Hope that helps.
Snazzy is offline   Reply With Quote
Old 10/26/2009, 01:52 AM   #495 (permalink)
ird
Member
 
Join Date: Jul 2009
Posts: 165
Likes Received: 0
Thanks: 3
Thanked 13 Times in 10 Posts
Default

Gstreamer isn't a service, it's an audio/video framework.
ird is offline   Reply With Quote
Thanked by discolightning, Snazzy
Old 10/26/2009, 03:25 AM   #496 (permalink)
Member
 
Join Date: Jul 2009
Posts: 27
Likes Received: 0
Thanks: 23
Thanked 7 Times in 6 Posts
Default

Thanks ird. As always, if you guys see anything incorrect with anything i post please comment. I'm not really too familiar with all the components in this, but im learning as i go.
Snazzy is offline   Reply With Quote
Old 10/27/2009, 06:45 PM   #497 (permalink)
Member
 
Join Date: Oct 2009
Posts: 15
Likes Received: 0
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Loving this thread!
By page 1, I was intrigued.
By page 5, I had something to test.
By page 15, I was wondering why people didn't seem to be reading the whole thing.
By page 20, I had downloaded the SDK.
By page 25, I am wondering if I could migrate some coding knowledge to assist.

Excellent work guys
osaru is offline   Reply With Quote
Old 10/27/2009, 07:42 PM   #498 (permalink)
Member
 
Join Date: Jul 2009
Posts: 94
Likes Received: 0
Thanks: 8
Thanked 2 Times in 2 Posts
Default

Is the app working on webos1.2.1?
texasjack is offline   Reply With Quote
Old 10/28/2009, 06:30 PM   #499 (permalink)
Member
 
psenecka's Avatar
 
Join Date: Oct 2009
Posts: 6
Likes Received: 0
Thanks: 3
Thanked 0 Times in 0 Posts
Default

This thread was a rollercoaster of emotions.

Thanks to all the developers for spending their free time on this project. I can't wait until a polished version is available
psenecka is offline   Reply With Quote
Old 10/29/2009, 11:55 AM   #500 (permalink)
Member
 
Join Date: Jul 2009
Posts: 127
Likes Received: 1
Thanks: 5
Thanked 430 Times in 44 Posts
Default

Quote:
Originally Posted by Snazzy View Post
Having the camera app open would be a good way to see what you're recording! I dunno why i never ran that app while shooting.

And as far as i can tell, its not an its own app like the picture camera is. There's no straightforward video camera app or service, which is what's making this so difficult to throw together a quick app for this. Correct me if i'm mistaken, this is just my speculation from whats going on. It seems like Jason and Yokken and them are using a service on the phone called GStreamer along with another service called palmvideoencoder together to make it work. (See available packages here) GStreamer captures all the raw data from the camera while the palmvideoencoder 'roughly' packages it into an mp4 file. The problem is creating a working container/codec to make it playable right on the Pre without having to convert it with another program like Prism or youtube, which is what i think they're working on now. That and the capture rate issue.

Hope that helps.
Before I state anything, please understand I'm not doing this to 'correct' you, and I appreciate you trying to explain things to those here. I'm just clarifying for effectiveness.

Gstreamer is a video (or more accurately, media pipeline) framework, as mentioned earlier. palmvideoencoder is not a service, but instead it's an element taken from a proprietary Palm binary gst plugin ('gst-inspect palmvideoencoder' for more info, including element properties). The 'gst-launch' utility is NOT MADE FOR PRODUCTION VIDEO RECORDING. It is simply a debug utility, and use any other way is opposed to what the utility was written for, which is part of the issues some are having. The camsrc element is also Palm written, but the source is released GPLv2 (opensource.palm.com) as it is based on an older version of a v4l2 gst plugin. Although the original plugin was written to produce RAW data, this derivitive does not, in the pure sense. It instead, produces data with very specific capabilities (resolution, framerate, and angle), as well as adds a second pad for the still camera. It is also very old, and has multiple bugs (the main one being the duration/time-stamp issue) which stops muxers from working properly (because they don't know when to start). The other main muxing problem is the lack of the -e switch in this older version of Gstreamer (because then they don't know when to stop). The palmvideoencoder element also DOES NOT package, or contain, or 'mux', anything at all. It simply takes the stream given from camsrc and produces a 'sort of' h264 (or 263, or mpeg4, depending on property chosen) compatible output.

That being said, if you played around enough with some caps, you could probably get your 'current' method of doing things working a little better.

I currently have multiple source driver, encoder, and muxer elements playing fairly well together, enough to start work on a service/application. Just don't expect anything spectacular to start. There's a reason Palm had to write their own camsrc driver and palmvideoencoder encoder, and circumventing these to get good muxing results causes other various issues. But I should have _something_ working very soon.

If anyone has any knowledge on this subject, and wants to help with development, please PM me or go to #webos-internals on freenode.
Prenosicator is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes


LinkBacks (?)
LinkBack to this Thread: http://forums.webosnation.com/webos-development/197022-video-recording-real-no-gui.html
Posted By For Type Date
Gizmodo, the Gadget Guide This thread Refback 05/20/2010 09:01 AM


 


Content Relevant URLs by vBSEO 3.6.0