Where are jpeg/mpeg files stored?
Question
Motion seems to be working well! I can see live video on the monitor of the Ubuntu box, from the connected camera.
But I'd like to see if Motion has captured jpegs or mpegs, that could be viewed or played back later. Where would Motion store these files?
Paste in your error messages, config settings, terminal window output etc in this text field.
Environment
Motion version: |
3.2.11 |
ffmpeg version: |
|
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
|
--
MotionNoob - 22 Jan 2009
Answer
All it's explained in motion guide.
http://www.lavrsen.dk/twiki/bin/view/Motion/ConfigOptionTargetDir
http://www.lavrsen.dk/twiki/bin/view/Motion/ConfigOptionMovieFilename
http://www.lavrsen.dk/twiki/bin/view/Motion/ConfigOptionJpegFilename
--
AngelCarpintero - 22 Jan 2009
Thank you, that first link answered it.
Now when I changed the target_dir to /home/myname/Videos/motionvids , no files were created in that directory. I saved the changes made to the motion.conf file, and stopped and restarted motion, but no files were created in that directory.
So I changed the target_dir back to /tmp/motion, and now jpgs and swfs are created fine.
I tried changing the permissions on the motionvids folder to 'Create and delete files' for the 'Others' user, but I didn't change any permissions on the parent folders (Videos, myname, home.)
First, am I setting the right permissions for the right user, and if so, do I need to set them for each folder in the whole path?
There're many ways to do it ... depens how paranoid you want to be :
chmod 777 /home/myname/Videos/motionvids
or more secure ( set that directory for user used to run motion ) :
chown -R motion_user:motion_user /home/myname/Videos/motionvids
chmod -R 755 /home/myname/Videos/motionvids
--
AngelCarpintero - 31 Jan 2009