Motion creating mpeg / avi files as ".mpg" and ".avi"
Question
I'm using the default file name settings for the various
file captures. The captures for snapshot and motion-detection files are being saved properly, but any .avi or .mpg movies are being save without a filename, just .avi and .mpg. Also, it is not saving them in the target directory.
Environment
Motion version: |
3.2.3-1 |
ffmpeg version: |
0.4.9-0.2.20050427.2 |
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
Fedora Core 4 |
--
TWikiGuest - 05 Sep 2005
Answer
Please post your config file as instructed in
SupportGuidelines.
It is impossible to answer "it does not work" questions when you do not give the information needed.
--
KennethLavrsen - 05 Sep 2005
Never mind - I deinstalled the motion .rpm and installed ffmpeg and motion again and all is well!
_It is probably the usual problem that the ffmpeg API changes from time to time. The Motion RPM must match the version of ffmpeg RPM. When you build Motion from sources Motion compiles depending on the ffmpeg version installed. You can also download the source RPM of Motion and rebuild it into a real RPM and then install that. Glad you resolved your problem.
--
KennethLavrsen - 08 Sep 2005_
Question
I'm having the same problem as the person above. I tried also reinstalling the rpms with no luck.
(The captures for snapshot and motion-detection files are being saved properly, but any .avi or .mpg movies are being save without a filename, just .avi and .mpg. Also, it is not saving them in the target directory.) I'm completely helpless.
Environment
Motion version: |
3.2.4-1 |
ffmpeg version: |
0.4.9-0.lvn.0.18.20050801.4 |
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
Fedora Core 4 |
My configuration files are attached.
--
RenatoArruda - 07 Jan 2006
Question
This is a "me too" post. My .avi and .mpg file end up in the root directory (/). I've installed the motion and ffmpeg directly from your download page (motion-3.2.6-1.i386.rpm and ffmpeg-0.4.9-0.lvn.0.20.20051228.4.i386.rpm). It is interesting that the people having this issue all run Fedora Core 4. I also tried ffmpeg-0.4.9-0.lvn.0.21.20051228.4.i386.rpm from Livna directly but the problem remains. Ooops on my part on the file I uploaded. It looks like my motion.conf file overwrote
RenatoArruda's version. I don't know how to get it back. Sorry. Please let me know what I can do on my end to figure out the root cause.
Environment
Motion version: |
3.2.6-1 |
ffmpeg version: |
0.4.9-0.lvn.0.20.20051228.4 |
Libraries: |
ffmpeg |
Server OS: |
Fedora Core 4 |
--
PeterKim - 22 Apr 2006
Answer
Do you have the path on yur system ?
target_dir /usr/local/apache2/htdocs/cam1
This taget does normaly not exist on Fedora where the nornal path would be /var/www/html/ .
If sure the path is correct then also make sure that the user motion is running as have permission to read/write in that path.
--
TheOtherBug - 23 Apr 206
I do have the path "/usr/local/apache2/htdocs/cam1" - I did notice that the rpm downloaded from here made the path and the default motion.conf file did point to it. I can tell you that the path is correct and the *.jpg files are being placed in that location correctly. The problem is only with the movie files. For a temporary fix for the odd Fedora path, I've created a link from /var/www/html/cam1 to the said directory. I believe the permission is correct, otherwise the *.jpg files would have problems too.
--
PeterKim - 27 Apr 2006
I was bitten by this same bug and have created a small patch to 3.2.6. See
SupportQuestion2006x06x19x174238 for the details.
--
MikeKenney - 19 Jun 2006
Closed with the closure of
SupportQuestion2006x06x19x174238
--
KennethLavrsen - 27 Jun 2006
Fix in 3.2.7
--
KennethLavrsen - 20 Oct 2006