Programming :: Low Level Program To Save Mjpeg Stream
Jun 26, 2009
I'll just say I am a complete Linux beginner, but I have done vbs, js, php, html web type stuff so I'm not a complete beginner to programming.However I've been trying to learn C and python but it's not making a huge amount of sense.I am wanting to make a simple low level program that copies an image from a mjpeg stream on 192.168.0.1/videostream.cgi for example to a variable then save that variable to a file on my system.I am aware that there are programs out there that would do this but I still want to make my own.
I want to know what are the advantages and disadvantages for accessing spi(serial peripheral inerface )from kernel level and user level. like methods of doing it, speed ,memeory utilization etc
After login is always volume level set on 100%. Alsactl store and restore works properly. Manually run: sudo /etc/init.d/alsasound reload reset volume level into proper level, but after login to Gnome is always volume level 100%,Here are some logs:
I've looked around and found some programs avaialable in linux to stream video. I'm looking to stream to my PS3 but would like to be able to stream to my other computers. I would like the program to transcode too. I'm really looking for opinions on which one to use. I tried PS3 Media Server, it worked fine but it tended to be a resource hog. Also, I had trouble seeing it on other computers.
I'm running Debian Squeeze on an old AMD 3000+ but that will be updated here in the future. This is all internal personal network. Most computers will be on wired lan.Opinions? Ease of configuration, ease of use, stablilty?
I'm sick of screwing around trying to script a clean solution to burn multiple files and folders to CDs and DVDs with wodim, growisofs and genisoimage.I'm looking for a high level command line program that uses sensible defaults and takes arguments something like this:[program-name] [cd|dvd] /path/to/dir1/ /path/to/dir2/ /path/to/file ...It should then do all the low level copying and ISO generation transparently and just burn the damn disk!Does anyone have any suggestions? I've looked at several programs but it seems there are too many choices to trawl through and not enough information about them online.
Can someone recommend a good app to monitor the OUTPUT of my soundcard? I don't just want to look at the VU meter of my music player - i actually want to see what the soundcard is outputting. Windows drivers for my soundcard (Audiophile 192) had this ability, but I'm not sure what software to use in Linux.
I need help to do a program that emulates the following shell command line:"sort </etc/passwd | less".Using a socket in a connection-oriented setup.First the contents of the file /etc/password are being fed into the sort program. The sort program is then sorting the contents of the file and sending it to another programm called less. Less is paging the results so that you can see one page of the results at a time.I know that i can solve the problem this way:
1. Create a server program that will stream the contents of a file to any client that connects to it 2. Create a client application that will connect to the server and download the contents of the file. The program should then sort the file. After sorting the file the client should connect to the "less" program and send the sorted results 3. Create a server program that will listen for connections and download whatever is sent to it. It will then display that data one page at a time.
When sending data over the socket, the sending socket includes 0x00 after each sent byte. I wonder how this can be avoided -- I just want to transfer the data in the tx_buffer as it is.
# ./serv & [1] 6895 # ./EUG 127.0.0.1 EUG: Data to be transmitted: 0x35 0x32 0x30 0xff 0x03 0x31 EUG: Data - #Bytes transmitted: 6 ./serv: Here is the message: '5'
Last week my ubuntu 8.04 os got a Seamonkey browser update ( 70-80MB totally )which I was happy to get. The down side is the new seamonkey wiped out all of my many different profiles and the many different bookmarks that were in those profiles ( 300-350 or so )!I am wondering, and hoping, that there is linux software program available that could independently hold many easily available bookmarks!!Does anyone know if such a program exists and if they have had any experience
On a Karmic desktop with a Radeon 2600 hd video card, my screen goes black for a couple of seconds when opening an avi (divx or mjpeg).The video starts playing immediatly but I only see a black screen. Using Movie Player, its a black screen window, using vlc or gmplayer or mplayer ,the all screen goes black. It does not happen if I use the ati open source driver (but then flash full screen crashes...). I just installed the latest ati catalyst (10.2) and the problem remains.....
I am new to Linux development and want to know within Linux which is the best IDE for system level programs in C like kernel modules/device drivers and other H/W level programs. I used to use Sun Studio Compiler in Opensolaris world.
I need to stream a webpage to my application and i tried something like this but i get segmentation faults. Is there any example in c and/or gtk that i can peek on.
I first created a fork on github from an existing git repo. Then I made changes to my fork and pushed them to github again. After that the person from who I forked included my changes in his code but made some alterations on it. What I want to do know is having the exact code he has in the repo. This way I am sure that I actually develop on the same code.
I wonder how I should do this. I tried using git mergetool but I had some conflicts. So if I resolve the conflicts and make some mistake here, then I still wouldn't have the code the original repo(the repo where I forked from) has. what is the correct way to do this?
I'm writing some code to speed up some code writing, basically it produces some code I use in every project. I produce the outputs with fstream filestr;, open a file and write to some data to it. However some code has quote marks that I need to output, however I can't use quote marks. EG: filestr<<"#include "Header.h""<<endl;I get round this with some awful filestr.put ('"');However I'm sure there must be a straight forward way to do this. Can anyone advise?
When someone is speaking into the mic, I'd like a "level meter" such as the one that comes with gnome sound recorder, that flashes up and down when a sound is made or somebody talks.This will be done in Javascript, using the brand new "Rainbow API", i.e. inside the browser.I know nothing about audio programming, so - where would I get *started* with something like this? Could anyone tell me at least WHAT to Google?
I've been able to kludge a kill script which finds the correct pid for the kdeserver (or gnome server) after my system comes up in run level 5 so I can drop back to run level 3 mode. Lots of experimentation showed me that using telinit 3 and telinit 5 would occasionally leave the video memory in a mess and I would have the black screen of death.
I set the security parameter setting to autologin for me since I am the only user of my machine, but I still have to kludge the default setting under sysconfig (the DEFAULT_WM) under Window Manager to pick a certain window manager, so it takes time to manually switch the desktop.
Right now I can leave the gui and drop back to cli, but painful experimenting showed me that killing the X server is a no no. Right now I kill the kde server, which sends the SIGTERM to the X windows manager, which then figures out that it has to shut down.
Questions: Is there a better way of doing this? Apparently openSUSE figures that we have multiple users logging into the gui desktop, so the gui is always kept running and a login window with the desktop manager option forces the user to login in. With autologin, this never happens, but no choice of desktop is possible on the fly.
Can some type of script be set up to painlessly enable this to happen? And what is the best way of bringing either the Gnome or KDE desktop manager down gracefully? I do get lots of error messages as the system attempts to recover and X shuts down. It appears that apparently the single user with autologin is left out in the cold.
I want to install a software called TinyOS which is an operating system designed for wireless sensor embedded networks in my account. The problem is it has instructions to install the software as an administrator since i'm not an admin of the department network i can not able to install. Is there any method to install this software as an user level rather than admin level.
How can I adjust the levels at which the battery is considered to be critically low?ight now it seems this is set at 5 or 10%. I want to make it 20 or 25%This is for Gnome. I am using Lucid x86
I've written a simple web page and I want it to display live stream from one of my IP cameras. I admit I've never been interested in HTML ... How should I go about this? I can see the stream in browser using following link [URL]
I run my own icecast2 server. In the near future it looks like, I will be doing some shows. I would like to beable to change my link, so if I am broadcasting, to go to the stream if not pop a box for my schedule.Now from when I was checking to see if my webcam was up or not, i used this.does anyone know haw to change my code for this? I know when I'm not stream it generates a 404 error, in winamp (on windows)
hello everyone, im having a problem when my computer enters in the run level 4 as the default when i start slackware. The strange thing is that it not seems that is a X window problem, it looks like more like a configuration problem in some part of the kde script to initialize the log in, because if i manually start the X service it works fine, i dont know what is the source. Thank you in advance for the help.
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
I wrote a C++ program that uses two different parsers. The first parser is reading program arguments from command line:./mybin arg1 arg2 ...then during program execution there's an interactive prompt asking for more parameters:
... >> (second bunch of arguments here) ...
I'd like to run my program inside a bash script, but I don't know how to give the second level arguments.