nhanlt187
Posts: 5
Joined: Thu Mar 06, 2014 2:52 am

Re: RaspiMJPEG

Fri Mar 28, 2014 6:56 pm

I got
Error: Invalid arguments
when run simple command
raspimjpeg -w 640 -h 360 -d 5 -q 70 -of /tmp/image.jpg
. My version when run --version is 4.1, I also tried another path directory. Please help!

silvanmelchior
Posts: 76
Joined: Mon Nov 25, 2013 5:56 pm

Re: RaspiMJPEG

Mon Mar 31, 2014 8:51 am

RaspiMJPEG >= 4.0 uses a config-file for all settings. Just save and modify my default-configfile (https://raw.githubusercontent.com/silva ... raspimjpeg) at /etc/raspimjpeg and then run raspimjpeg without any parameters. Or even simpler: install my demonstration-project: http://www.raspberrypi.org/phpBB3/viewt ... 91#p468491

gefangenimnetz
Posts: 4
Joined: Mon Mar 31, 2014 11:29 pm

Re: RaspiMJPEG

Mon Mar 31, 2014 11:38 pm

Hi silvanmelchior,

thank you very much for your work and effort into this project. I want to include the mjpeg stream in a little node.js project. For that to happen I really want to use the stripped down version without you web interface (apache, autostart), just the ‘good old’ raspimjpeg with parameters.

I compiled the latest version from userland but unfortunately as you stated before (http://www.raspberrypi.org/phpBB3/viewt ... 21#p528221) I have to use the config file to make things work – since version 4.

Any chance to have raspimjpeg optionally running with parameters again? If you are not planning to implement this, where can I find an older version?

Again, thank you very much for your work,
Florian

P.S.: FYI, I will use the mjpeg stream get a live preview through my telescope + taking pictures.

gefangenimnetz
Posts: 4
Joined: Mon Mar 31, 2014 11:29 pm

Re: RaspiMJPEG

Mon Mar 31, 2014 11:53 pm

Hi silvanmelchior,
you are doing awesome work here.

I want to integrate the mjpeg stream into a node.js project. Is there any chance that we are are seeing the parameters come back to raspimjpeg? I compiled it from your userland branch because I do not want to use apache or the web interface at all.

Unfortunately since v4 you dropped the params in favor to a config file (http://www.raspberrypi.org/phpBB3/viewt ... 21#p528221)

I just need plain raspimjpeg -param1 -param2, etc. Setting the parameters via a config file is nice but i'd really prefer if this would be optional.

If you are not planning to bring the parameters back to life is there a way for me to get on older version somehow?

Thank you for your efforts,
Florian

P.S.: I had to post this again, my first comment just never made it through somehow. Sorry If this results in a double post.

User avatar
jbeale
Posts: 3471
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

Re: RaspiMJPEG

Tue Apr 01, 2014 5:05 am

The last 4 months the project has been on github, you can see each change in the source here: https://github.com/silvanmelchior/userl ... its/master
So all versions of RaspiMJPEG.c for the past 4 months are still available through github. A change labelled "config file possible" is labelled just one week ago, so before that I think the program still had command line arguments (?) anyway, certainly 4 months ago, it did.

chiruru
Posts: 17
Joined: Sun Apr 20, 2014 8:56 am

Re: RaspiMJPEG

Sun Apr 20, 2014 9:04 am

Hello,
I can not excute raspimjpeg as below.
What can i do? Please...

pi@raspberrypi ~ $ raspimjpeg -w 320 -h 240 -d 5 -of /path/to/image.jpg
Error: Invalid arguments

chiruru
Posts: 17
Joined: Sun Apr 20, 2014 8:56 am

Re: RaspiMJPEG

Tue Apr 22, 2014 3:10 am

I found the answer as above.
Thanks.

partach
Posts: 3
Joined: Wed May 07, 2014 7:16 am

Re: RaspiMJPEG

Thu May 08, 2014 1:35 pm

Hi

Am using raspimjpeg for a few weeks. It worked fine until I started to experiment with the night exposure setting.
Something broke after that and I have been trying for days to fix it. Sadly unsuccessful so far.
I have 3 new PIs (B) with camera's of which two now have this issue (both I tried to play with night exposure)

I get "Could not enable connection camera -> video converter" as error message.
This happens if motion is seen by the camera.
So if motion is switched off, no issues. If switched on still no issue until motion is detected.
In the motion log it just stops at: "Resizing pre_capture buffer to 1 items". No further error messages at all.

Motion is still a running process but raspimjpeg is no longer running when this happens. A reboot is needed to start again.

Could any one please help me how to move further?

What I did:
- tried different firmwares (am now on 3.12.18+ #679)
- changed motion.conf (reset)
- changed settings in raspimjpeg config file
- doubled checked and played around with mount (/var/www/media is located on a nas)
- went through many many posts trying to find a solution

Thanks, Partach

noctividus
Posts: 4
Joined: Fri Jun 06, 2014 7:47 pm

Re: RaspiMJPEG

Fri Jun 06, 2014 8:06 pm

Silvan,

Great job getting this working. I used it in conjunction with a Chrome Packaged App to get video and telemetry from my quadcopter.

The next phase of my project involves NDVI. I'm basically using a Pi NoIR camera with a filter to capture NIR+RGB data. I'd like the Pi to process that data realtime into a NDVI image. NDVI is calculated pixel by pixel and outputs a gray-scale image that can then be false colored. I'm wondering where the best place to implement this would be?

1. As an effect in raspimjpeg?
2. As a python script that executes every time on the saved jpg?
3. In Javascript, which would push processing to the client?

If it could be included as a button, you'd make a lot of people very happy. Let me know where I should focus my efforts.

Also, what's the best way to get a live preview out of the SD video out? Open up a webpage on the rPi?

ealcantara
Posts: 1
Joined: Thu Jun 26, 2014 2:10 am

Re: RaspiMJPEG

Thu Jun 26, 2014 2:24 am

What are the raspijpeg setting for the http://www.youtube.com/watch?v=k4CiDx53EJc . I can't seem to get mine to run like the video, theres lag...please help

mattjakob
Posts: 2
Joined: Tue Dec 17, 2013 1:38 pm

Re: RaspiMJPEG

Mon Jul 14, 2014 2:09 pm

Hello,
I need to use RaspiMJPEG (needed for the RPi Cam Web interface: http://www.raspberrypi.org/forums/viewtopic.php?t=63276) along with a TFT display from Adafruit (https://learn.adafruit.com/adafruit-pit ... stallation)

The problem is that after I install the TFT kernel I cannot run RaspiMJPEG anymore as I get the following error:

Code: Select all

Could not set inline flag
Any idea ?

Nicoinn
Posts: 2
Joined: Sun Sep 07, 2014 10:25 am

Re: RaspiMJPEG

Sun Sep 07, 2014 10:37 am

Hi

I'd like to use RaspiMJPEG for motion detection AND time-lapse simultaneously.

echo-ing "md 1" followed by "tl x" doesn't seem to work.

I have had some success running motion manually (to trigger recording with "ca 1") and running a script in parallel that echoes "im" when I want to take a frame of the timelapse.

This works fine for a few minutes, but then RaspiMJPEG crashes.
I haven't been able to figure out why and when this happens as when I run the different commands manually, everything works fine.


Any clue to help me ?

LjA1210113
Posts: 1
Joined: Sat Sep 27, 2014 10:00 am

Re: RaspiMJPEG

Sat Sep 27, 2014 10:08 am

hi guys i am a relative noob so any help would be appreciated.
i am trying to get raspimjpeg to run with mjpg-streamer but simiar to many other posts about the lack of parameters, i get the error

Code: Select all

Error: Invalid Argument
when trying to run

Code: Select all

raspimjpeg -w 320 -h 240 -d 5 -q 70 -of /tmp/stream/pic.jpg
I realise that its suppose to be used with a config file, but i cant find where it is in the userland directory, and if i need to make the /etc/raspimjpeg config file where should i put it? i have no idea how to get an older version where parameters would work either. Knowing me there probably an obvious solution, in which case someone pointing it out would be greatly appreciated!

Arcanic568
Posts: 10
Joined: Thu Mar 14, 2013 3:46 pm

Re: RaspiMJPEG

Tue Oct 21, 2014 5:52 pm

Hello,
I wanted to use your programm with a Qtprogramm to bypass the temporary lack of direct Camera support.
Sadly when i start it, it complains about not being able to open files...

Code: Select all

root@raspberrypi:~/Desktop/untitled# raspimjpeg
MJPEG streaming, ready to receive commands
Error: Could not open mjpeg-destination
It already complained about not being able to open status file and PIPE, but i could bypass that by manually creating that files.
Does anyone has a clue for me what to look at?

€: Ok after creating all files manually and setting Image and Video output to a static file it works now. Still i do wonder what the problem was.

gregd72002_
Posts: 49
Joined: Mon Apr 14, 2014 8:50 am

Re: RaspiMJPEG

Fri Nov 28, 2014 10:09 am

I was struggling to get raspimjpeg to work so created a clean version and fixed a bug or two.

You can easily cross-compile it or just compile it straight on RPi.

https://github.com/rpicopter/raspimjpeg

louloizides
Posts: 3
Joined: Sun Jan 12, 2014 5:06 pm

Re: RaspiMJPEG

Thu Jan 08, 2015 6:39 pm

Hi, I'm a noob - trying to run raspimjpeg for the RPi_Cam_Web_Interface and I keep getting the error "cannot set annotation" when starting it. I'm tempted to comment it out of the code and rebuild, but would like to find out why this is happening first. I'm using the camera with Raspbian and a B+.

rahlquist
Posts: 149
Joined: Tue Jan 21, 2014 1:02 pm

Re: RaspiMJPEG

Sat Mar 07, 2015 1:13 am

silvanmelchior,

I know you seem to be very busy, would it be at all possible to get you to update raspimjpeg to incorporate all the latest changes?

http://www.raspberrypi.org/forums/viewt ... 72#p701272

silvanmelchior
Posts: 76
Joined: Mon Nov 25, 2013 5:56 pm

Re: RaspiMJPEG

Mon Mar 09, 2015 7:03 am

Yes, I'm going to have some free time in April, so I plan an update then ;).

btidey
Posts: 1615
Joined: Sun Feb 17, 2013 6:51 pm

Re: RaspiMJPEG

Fri Mar 13, 2015 10:21 am

silvanmelchior wrote:Yes, I'm going to have some free time in April, so I plan an update then ;).
I have made a few changes to the excellent raspimjpeg in my userland fork of your code https://github.com/roberttidey/userland. So far these have been mainly to support some extra functionality in the web side (thumbnails, naming schemes etc) https://github.com/roberttidey/RPi_Cam_Web_Interface

I have been planning to address the issue of delay in video capture by incorporating the circular buffer scheme built into raspivid and extended a bit by ethanol100 https://github.com/ethanol100/userland Using this the plan was to have circular buffer active all the time and then capture triggers (or maybe just motion capture triggers) would use that to prepend the buffer. That then gives a pre-trigger start and gives 0 or even negative delay in the video.

Let me know if we can co-ordinate and help your efforts here.

silvanmelchior
Posts: 76
Joined: Mon Nov 25, 2013 5:56 pm

Re: RaspiMJPEG

Mon Mar 16, 2015 6:03 am

Well, if you find the time, something really useful would be a push-request for a circular buffer in RaspiMJPEG. I imagine something like this:

- It's always active
- The buffered time can be configured through the pipe
- If a "ca 1" - cmd is received, the contnet of the buffer will be included into the video-file

So if you or anybody else has some spare time, I think this would make the RPi Cam Web Interface much better than now :)

User avatar
JeremPi
Posts: 24
Joined: Tue May 05, 2015 1:33 pm

Re: RaspiMJPEG

Wed Jun 10, 2015 12:42 pm

I have discovered Raspimjpeg few days ago.
I followed those commands :

Code: Select all

sudo apt-get install cmake
git clone https://github.com/silvanmelchior/userland.git
cd userland
./buildme

sudo ln -s /opt/vc/bin/raspimjpeg /usr/bin/raspimjpeg

mkdir -p /var/www/media
mkdir -p /dev/shm/mjpeg
mknod /var/www/FIFO p
chmod 666 /var/www/FIFO
I get a copy of this config file (in /etc/raspimjpeg) and I commented the lines which posed problems with a "# "
The only error I get now is :

Code: Select all

pi@raspberrypi:~$ raspimjpeg 
Segmentation fault
But, I wouldn't be here if it works, so what's the problem ?

User avatar
JeremPi
Posts: 24
Joined: Tue May 05, 2015 1:33 pm

Re: RaspiMJPEG

Thu Jun 11, 2015 9:24 am

btidey wrote:Edit: You were also cloning from the silvanmelchior version of userland. The current 'official' version as worked on by silvan and myself is hosted at https://github.com/roberttidey/userland
Hi !
As said btidey I tryed his version too but I still have troubles :?
I did :

Code: Select all

git clone https://github.com/silvanmelchior/userland.git
git clone https://github.com/rpicopter/raspimjpeg
cp raspimjpeg/* userland/
cd userland/ 
make
and I get :

Code: Select all

g++ -c -I/opt/vc/include/interface/vcos/ -I/opt/vc/include/interface/vcos/pthrea
ds/ -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos
/ -I/opt/vc/include/interface/vcos/pthreads/ -I/opt/vc/include/interface/vmcs_ho
st/linux RaspiMJPEG.c -o RaspiMJPEG.o                                           
RaspiMJPEG.c:64:22: fatal error: bcm_host.h: No such file or directory          
compilation terminated.                                                         
Makefile:21: recipe for target 'RaspiMJPEG.o' failed                            
make: *** [RaspiMJPEG.o] Error 1
I saw that bcm_host.h made trouble so I just did :

Code: Select all

sudo cp /opt/vc/include/bcm_host.h bcm_host.h
make

And still have error:

Code: Select all

g++ -c -I/opt/vc/include/interface/vcos/ -I/opt/vc/include/interface/vcos/pthrea
ds/ -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos
/ -I/opt/vc/include/interface/vcos/pthreads/ -I/opt/vc/include/interface/vmcs_ho
st/linux RaspiMJPEG.c -o RaspiMJPEG.o
In file included from bcm_host.h:46:0,
                 from RaspiMJPEG.c:64:
interface/vmcs_host/vc_dispmanx.h:33:33: fatal error: interface/vcos/vcos.h: No 
such file or directory
compilation terminated.
Makefile:21: recipe for target 'RaspiMJPEG.o' failed
make: *** [RaspiMJPEG.o] Error 1
But this time the file interface/vcos/vcos.h exist, so I don't know what to do.. :?:

Piero1978
Posts: 16
Joined: Tue Sep 01, 2015 3:20 pm

Re: RaspiMJPEG

Wed Oct 07, 2015 11:57 am

After installed I've used this command line to run the program:

raspimjpeg -w 320 -h 240 -d 5 -of /dev/shm/image.jpg

but there is an error:

Error: Could not open PIPE
Missing Macro definition

Can anyone help me?
Thanks!

btidey
Posts: 1615
Joined: Sun Feb 17, 2013 6:51 pm

Re: RaspiMJPEG

Mon Oct 12, 2015 8:27 am

Piero1978 wrote:After installed I've used this command line to run the program:

raspimjpeg -w 320 -h 240 -d 5 -of /dev/shm/image.jpg

but there is an error:

Error: Could not open PIPE
Missing Macro definition

Can anyone help me?
Thanks!
raspimjpeg is normally used in conjunction with the RPi_Cam_Web_Interface web project. This sets up the infrastructure including the PIPE (typically at /var/www/FIFO) that raspimjpeg expects to read from for its commands.

Also I don't know which version of raspimjpeg you are using but it sounds like you may be using the original which hasn't been updated in a while. Check out the wiki to get further details and links to later raspimjpeg. http://elinux.org/index.php?title=RPi-Cam-Web-Interface

rpiuser2016
Posts: 75
Joined: Tue Jan 12, 2016 1:53 pm

Re: RaspiMJPEG

Sat Mar 17, 2018 1:34 pm

Good day! Greate software respect to author!

I have several question:

1) How can I turn off red led of the camera?
2) Why output format of video files are H264? It is better then mjpeg4?
3) That is the correct way to reboot raspimjpeg?
This
./RPi_Cam_Web_Interface_Installer.sh start
gives that system stopped, started, but web interface does not "wake up"
Attachments
rpwebcamreb.JPG
rpwebcamreb.JPG (22.78 KiB) Viewed 1698 times

Return to “Camera board”