webOS Nation Forums > webOS apps and software > webOS development > Video Recording (For Real, no GUI)
First ... 2 7 8 9 10 11 12 13 14 15 16 17 22  ... Last
Legend: Jason Robitaille
at: 11:54 AM 09/26/2009
Originally Posted by ohenebajoy:
Jason I install the video recording ipk and recorded something but when I try to play it on the pre, the player started and gave me an error playing back.
It won't run in the default player unfortunately.

Originally Posted by BINNY42:
You have done it again jason!!! great work on the videocam service!!! I downloaded the zip file then downloaded both ipk files thru webos quick install.restarted luna and everything worked great..no sound just like everyone else but thats okay. I used mediacoder to convert to 3gp so i can watch my recordings thru my pre and so far so good. The quality of the videos are impressing... Once again thanks for your imprssive comminment on all pre and webos related items..its people like you that change the world one baby step at a time..... Thank you jason robitaille!
Don't thank for this one, thank the people earlier on in the thread who found the commandline solution. I just adapted it.

Originally Posted by cashen:
YouTube - 09 26 09 11 21 19

Installed both files, uploaded files directly to youtube. The stop video did not work, only stopped after i plugged it in.
O.o The file uploads to youtube fine, without conversion needed?! If so, I could try to see about adding a direct-upload feature for youtube (not ideal as you can't preview the video, but it's a start.


I'll have a new build with a different attempt at video stopping and audio with the video.

Also, if a mod could rename this thread to "Video Recording: A Work In Progress" or something similar, it'd be appreciated
Reply
Member: cbellevie
at: 12:03 PM 09/26/2009
Originally Posted by turbobo:
I had the same issue (fast video). I had to install the optionnal CODECs that comes with SMplayer.
I rebooted my machine and the vids now appear to be running fine so was likely just a matter with the codecs :-) Thanks for mentioning the above!

To all involved, thanks so much for this! Aside from a really good Brightkite app, this was #1 on my want list and lack of video was almost a reason to pass on the Pre, even though I'd held off on getting a new phone in anticipation of the it since WebOS was announced.
Reply
Member: cashen
at: 12:26 PM 09/26/2009
YouTube - Second Palm Pre Video

another video. I tried to test some close ups.

I think the recording stopped when the screen timed out.
Reply
Legend: Jason Robitaille
at: 12:36 PM 09/26/2009
Originally Posted by cashen:
YouTube - Second Palm Pre Video

another video. I tried to test some close ups.

I think the recording stopped when the screen timed out.
I gotta confirm, this was uploaded to youtube without any conversion first?
Reply
Member: cashen
at: 12:36 PM 09/26/2009
Originally Posted by Jason Robitaille:
It won't run in the default player unfortunately.


Don't thank for this one, thank the people earlier on in the thread who found the commandline solution. I just adapted it.


O.o The file uploads to youtube fine, without conversion needed?! If so, I could try to see about adding a direct-upload feature for youtube (not ideal as you can't preview the video, but it's a start.


I'll have a new build with a different attempt at video stopping and audio with the video.

Also, if a mod could rename this thread to "Video Recording: A Work In Progress" or something similar, it'd be appreciated
Yes, youtube takes it just fine. Also, after you upload to youtube you can download the mp4 file and it plays fine in everything I've tested, even the pre.

The original file was 9.61 MB and the converted file from youtube was 1.96 MB.
Reply
Member: cashen
at: 12:39 PM 09/26/2009
Originally Posted by Jason Robitaille:
I gotta confirm, this was uploaded to youtube without any conversion first?
Yes,

copied to desktop and then used youtube.com to upload the file. It took about 30 seconds to upload and it took about 2 minutes for youtube to "process" the file. no clue what it does when it says this.
Reply
Member: xxvandalxx
at: 01:35 PM 09/26/2009
This is pretty kick ***! And is coming along great! Thanks for the option to now record my terrible life choices!
Reply
Member: ratchetjaw
at: 01:46 PM 09/26/2009
that video looked really good. Its coming along nicely
Reply
Legend: Jason Robitaille
at: 01:57 PM 09/26/2009
Hi all,

Here's the new zip.

Only the service ipk was updated (so you only need to update that i**** already have the app ipk installed).

It contains the 2 changes Rod recommended as well as changed [Start Rec Alt1], [Start Rec Alt2] and [Stop Rec] buttons scripts, so with the new service, be sure to try those out again

One we figure out how to get the stop button working, I'll look at adding direct youtube upload ability to the service
Attached: video-cam-test.zip (24.0 KB) 
Reply
Member: Prenosicator
at: 02:10 PM 09/26/2009
Ridiculous question from me Jason, but by poking around, have you considered trying to use kill INT instead of killall HUP? That may fix your stopping issues. INT mimics ctrl+c, which works when running the same script in the terminal.
Reply
Member: ericizzy1
at: 02:17 PM 09/26/2009
Originally Posted by Jason Robitaille:
Hi all,

Here's the new zip.

Only the service ipk was updated (so you only need to update that i**** already have the app ipk installed).

It contains the 2 changes Rod recommended as well as changed [Start Rec Alt1], [Start Rec Alt2] and [Stop Rec] buttons scripts, so with the new service, be sure to try those out again

One we figure out how to get the stop button working, I'll look at adding direct youtube upload ability to the service

great work, but, any sound yet?
Reply
Member: phreakish
at: 02:28 PM 09/26/2009
stop button still doesnt seem to work. Only when I go to USB mode does it stop recording.
Reply
Member: Pardoe
at: 02:37 PM 09/26/2009
for anybody using the media-convert.com
all you have to do it just go to upload
choose your pre video
and dont change what the file type is
its going to say it can be different files just leave as is then go down and choose what file type you want it to be converted into and then click the button
Reply
Member: alvin319
at: 02:42 PM 09/26/2009
Originally Posted by phreakish:
stop button still doesnt seem to work. Only when I go to USB mode does it stop recording.

Yeah same here.
Reply
Legend: Jason Robitaille
at: 02:42 PM 09/26/2009
Originally Posted by ericizzy1:
great work, but, any sound yet?
You tell me . [Start Rec Alt1] and [Start Rec Alt2] have always be tests to include sound. I updated those in the latest service ipk. Either work?
Reply
Member: Palmac06
at: 02:44 PM 09/26/2009
I got a question... is it possible to make it HD video recording or the phone isnt able to produce HD quality... btw jus by lookin at the vidz on youtube they seem pretty close to "HD-like" but yea... just wondering if its possible to have HD video recording? thanks
Reply
Member: alvin319
at: 02:50 PM 09/26/2009
Originally Posted by Jason Robitaille:
You tell me . [Start Rec Alt1] and [Start Rec Alt2] have always be tests to include sound. I updated those in the latest service ipk. Either work?

[Start Rec Alt1] - Video but no sound

[Start Rec Alt2] - Will not record. No file when you go into USB mode.
Reply
Member: phreakish
at: 02:53 PM 09/26/2009
Originally Posted by alvin319:
[Start Rec Alt1] - Video but no sound

[Start Rec Alt2] - Will not record. No file when you go into USB mode.
+1
Reply
Member: turbobo
at: 03:00 PM 09/26/2009
Still no sound
Can't stop the recording

[Start Rec Alt1] - ERROR invalid command

[Start Rec Alt2] - Will not record. No file when you go into USB mode.
Reply
Member: pEEf
at: 03:00 PM 09/26/2009
Yes indeed, using this seems to kill it reliably:

[CODE]/usr/bin/killall -I -s INT gst-launch-0.10
[/CODE]

I've written a simple app. It uses the silver button to stop it, as well as firing up the LED in stages. Here is my entire script:

[CODE]#!/bin/sh

luna-send -n 1 palm://com.palm.vibrate/vibrate {\"period\":250,\"duration\":500\}

FILE="`date +%m`_`date +%d`_`date +%y`_`date +%H`_`date +%M`_`date +%S`.mts"
gst-launch camsrc ! palmvideoencoder ! filesink location=/media/internal/VIDEO/Recordings/$FILE &

luna-send -n 1 palm://com.palm.applicationManager/running {} > /tmp/psctest 2>&1
pid=$(cat /tmp/psctest | sed 's/.*camcorder\", \"[a-z]*\"\: \(\"[0-9]*\"\) }.*/\1/')
rm /tmp/psctest

sleep 1
echo -n 1 >/sys/class/i2c-adapter/i2c-2/2-0033/avin
echo -n 50mA >/sys/class/i2c-adapter/i2c-2/2-0033/torch_current
echo -n torch >/sys/class/i2c-adapter/i2c-2/2-0033/mode
sleep 1
echo -n 1 >/sys/class/i2c-adapter/i2c-2/2-0033/avin
echo -n 75mA >/sys/class/i2c-adapter/i2c-2/2-0033/torch_current
echo -n torch >/sys/class/i2c-adapter/i2c-2/2-0033/mode
sleep 1
echo -n 1 >/sys/class/i2c-adapter/i2c-2/2-0033/avin
echo -n 100mA >/sys/class/i2c-adapter/i2c-2/2-0033/torch_current
echo -n torch >/sys/class/i2c-adapter/i2c-2/2-0033/mode
sleep 1
echo -n 1 >/sys/class/i2c-adapter/i2c-2/2-0033/avin
echo -n 100mA >/sys/class/i2c-adapter/i2c-2/2-0033/torch_current
echo -n torch >/sys/class/i2c-adapter/i2c-2/2-0033/mode

cat /dev/input/keypad1 | read -n1

/usr/bin/killall -I -s INT gst-launch-0.10

luna-send -n 1 palm://com.palm.vibrate/vibrate {\"period\":0,\"duration\":250\}

luna-send -n 1 palm://com.palm.applicationManager/close {\"processId\":$pid}

echo -n shutdown >/sys/class/i2c-adapter/i2c-2/2-0033/mode
echo -n 0mA >/sys/class/i2c-adapter/i2c-2/2-0033/torch_current
echo -n 0 >/sys/class/i2c-adapter/i2c-2/2-0033/avin

[/CODE]

My app calls this script, then presents a message "Camcorder started - To stop recording, press the silver button".

Once the silver button is pressed, it stops the recording, turns off the LED, then terminates the application.

Now I'd like to figure out how you got sound to work? I can't seem to make it happen.
Reply
First ... 2 7 8 9 10 11 12 13 14 15 16 17 22  ... Last
webOS Nation Forums > webOS apps and software > webOS development > Video Recording (For Real, no GUI)