raspberry pi motion webcam "premature end of data" [closed] - raspberry-pi

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am trying to get my webcam running on the raspberry pi. I am using a logictech quickcam for notebooks. Via lsusb I see that the device is connected.
When i am starting motion I am getting this error "corrupt JPEG data: premature end of data segment".
I tried fswebcam as well but I just get black pictures out of it.
any advice? (should i use another programme/doesn´t work with raspberry?)
thanks in advance

I also had problems with my oldish Logitech QuickCam Express, but a different one. First make sure you have at least one scenario where your webcam does work. You've asked about other programs. Try e.g.
mplayer tv://
or
cheese
or
guvcview
from your X desktop. I got errors which indicated video4linux v2 did not support my cam, only v1, for which I had to add
LD_PRELOAD=/usr/lib/arm-linux-gnueabihf/libv4l/v4l1compat.so
before launching the commands that failed. (I found it at http://ubuntuforums.org/showthread.php?t=1476423.) However, again, I did not get the same error as you (mine was tumbling over palette formats). But different webcams may trigger different symptoms, even if the root of the problem is the same or similar.

I had that with my cheap webcam. The error went away when I selected a different image size to be captured.

I am not sure if you still need help on this. I found that:
A) Using the verified peripherals list for Pi was the first key: I had a crappy no-name webcam and it just wouldn't work. I ended up using a microsoft HD3000.
B) A powered USB hub was necessary and cleared up a lot of issues.
In the default motion.conf file you will note that the default resolution is something like 352x288. It does run at 640 but puts a big load on the little pi. In the end I turned the resolution back down to default until I had every other piece working and then turned it back up when I was ready to sit back and capture video.

If you haven't done so already I suggest browsing the Raspberry Pi forum. Many others have struggled with this before. Start with the smallest possible resolution and experiment with different palettes. It may also be that you are running in USB related issues (see the USB redux thread in the linked forum for further discussions). Make sure to have the latest firmware.

Related

Pepper's tablet default [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
I'm new about Pepper robot. At the first beginning of Pepper using it's tablet shows three circles include Retail,Office and tourism. Now, the Pepper's tablet just show something such as screensavers. How I can change it's tablet's mode to first configuration?
I also did reset factory but It doesn't return to my desire mode instead of showing screensavers.
if you installed all application back after factory reset then the application should be available in Choregraph among the Robot Applications List. (if the Application is configured for your Robot in the Aldebaran Store) Unfortunately i have not seen your application before, so i cant guess which one it is. You can try to start each one.
On the other Hand the Application might also be an android app.
To check that option start the Robot Application
j-tablet-browser
Now you should be able to see the standart Android on the Tablet.
You can check now what Android Apps are installed.
This first application was probably installed by your reseller, you can ask him to give you the details. But pepper normal operation mode is what you call the screensaver. Then it's up to you to develop the activities specific to your case. See http://doc.aldebaran.com/2-5/

coding help for physical drum machines

Me and some people are making and selling some physical drum machines, where if you press a button on a board, a related sound is played. Now I'm familiar with Microsoft Small basic and visual and html, however I'm not sure on programming the physical button to play an mp3 audio file, and set it so that you can choose a category of sounds too, thus If you press
Say a number on the machine, then the sounds played will be different. How would I go about doing this? I'm thinking of using a raspberry pi. Also if you could leave an email too, as I may need future help.
You should check out a Chumby Hacker board instead of a raspberry pi as they have audio inputs and inputs included.
This site will tell you all you need to know about the required code for the button.
https://learn.adafruit.com/playing-sounds-and-using-buttons-with-raspberry-pi/overview
While I hour this helps, please keep in mind that this site is for people who have already tried to solve their problem and failed. I produced this answer with a Google search and 5 minutes of reading.

Emulate video source in GTV device (Revue)? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
School is having a science fair where we will present a Google TV app, but the problem is that there are no cable lines to connect to, and GTV emulators can't communicate with Anymote protocol(Which we need to multiscreen).
Our only way was to at least emulate a channel lineup into the real device(Revue), but is there a way to do it? I heard the channel list is acheived from the ContentsProvider, can one push the Emulated Channel List into the real device? We don't need to show a show or some thing, we just need to get the channel list and change it like the emulator
Just to clarify the scope of this answer:
This will NOT play any content, the "TV-Signal" will be a blank screen.
All this does is to properly populate the channel line up content providers so that an application will see a "valid" set of channels.
As a side-benefit - This will also show a current list of shows and movies in the "TV&Movies" application for demo purposes. Of course when you select to play a channel, the rule above applies, and you will see a black screen.
With those expectations... here's how you do it:
Go to System Settings
Select Video Input
Chose Add device manually
At this point you see a window which reads "You should see your TV signal playing above". Naturally, since you don/t have a settop box connected, this will be a black window.
When asked to confirm that you see your TV signal playing, chose Next
On the next screen you select the radio box for option "Cable box, Satellite Receiver" then chose Next
The next screen gives you a list of satellite and cable providers in your area (depending on your ZIP code, make sure you set a valid ZIP code before, or change in Settings->location)
Select an available provider - my favourite in my area is "Dish Networks". They have a lot of options.
Depending on the provider, the next screen may let you chose a "basic" or "full" integration. Given this choice, chose "basic". (Full integration will actually require a 2-way communication with the settop box!)
On the next screen titled "IR Blaster Setup" you configure a fake settop box. Chose for example the following options:
Device Type: Cable/IPTV
Manufacturer: General Instruments
Model: DCT1000
Command Set: C0476 (or whatever is offered in the choices)
Next up you see a screen where you can test the "channel up/down", ignore and just say "Next"
Finish the setup - congratulations, you have now configured a "fake" Set-top Box with your Google TV.
The Channel Lineup content provider will return the channel information for the provider you have chosen.
Note: The choices of available services and line-ups may vary geographicaly. If the choices above are not available for you, use other locally available service providers.
The only real key is to select a "basic" integration, since then the Google TV device does not receive any feedback from the settop box, and has no way of knowing if it is actually connected to a "real" settop box.
Bonus Feature: If you demo this, you may simply connect the HDMI input to a DVD player or any other device (e.g. a Laptop HDMI out). This way you can at least have some video playing for demos even if the channel change does not have any effect. I use this setup frequently when demonstrating Google TV in locations without "live" video signal.

iPhone: To develop log module persistently and use for upload [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Is there a log sample developed in any of the iPhone project? I am developing an iPhone application and we want to have logging string stored line by line basis persistently somewhere and use it for upload to our server etc. it should keep logging behind the scene when my application does syncing under thread etc. I don't know how to develop this efficiently. Could someone please share me link or samples?
Thank you.
NSLogger
NSLogger is a high perfomance logging utility which displays traces emitted by client applications running on Mac OS X or iOS (iPhone OS). It replaces your usual NSLog()-based traces and provides powerful additions like display filtering, image and binary logging, traces buffering, timing information, etc.
NSLogger feature summary:
View logs using the Mac OS X desktop viewer, accept connections from
local network clients (using Bonjour) or remote clients connecting
directly over the internet
Online (application running and connected to NSLogger) and offline
(saved logs) log viewing
Buffer all traces in memory or in a file, send them over to viewer
when a connection is acquired
Secure logging (connections use SSL by default)
Advanced log filtering options
Save viewer logs to share them and/or review them later
Export logs to text files
Open raw buffered traces files that you brought back from client
applications not directly connected to the log viewer

Shutdown IPhone when an application hangs [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
My application hangs. Pressing the home button doesn't return to the springboard anymore. Additionally pressing the power button for 10 seconds doesn't turn the iphone off at all.
Is there any way to force a shutdown?
1 - To 'Force Quit' an iPhone application, hold down the Home button for up to 5 seconds.
2 - To force a reset (in rare occassions when 1 does not work), hold down the Power and Home buttons together for 10 seconds.
(this is documented in a Apple Support article - http://support.apple.com/kb/HT1430)
To force shutdown the iPhone 3G, just press down the power button first, followed by the home button. Hold the 2 buttons down until your screen changes.
That's it... A simple, but undocumented solution. Oh well. So far my iPhone has crashed in a few ways and this worked all the time.
If your application reproducibly hangs the phone, please file a bug report at bugreport.apple.com and attach a copy of your application. This is something Apple would be very interested in debugging. Thanks!
My iPhone hanged during boot when it tried to reset & erase all the iphoe contents.
Following are the steps to get your iPhone booting in Recovery Mode:
Step 1: Before getting the iphone in recovery mode, Open iTunes on your MAC or PC & attach the cable to iPhone.
Step 2: Hold down the Power & Home buttom simultaneously until the screen changes (around 10 secs.).
Step 3: Release the Power Button and keep pressing the Home Button for at least 30 secs.
Folow the instructions on your iTunes to restore the firmware of iPhone.
Hope, that this solution works for all who had problems like me.
Thankfully my problem is Solved.