ffmpeg not work
ffmpeg not work
Hi, first of all I congratulate for your work!, I have installed ZoneMinder and I have a problem, I can see the streaming in mozilla in monitor and in the events but when I try to generate the mpeg video always say "generation failed", I have compiled ffmeg and in the Options of ZoneMinder I choose to use ffmpeg. BUT IT FAIL.
I have to try ffmpeg -hq -i events/nº event/files.jpg prueba.mpg in command line i get "Unknow format"
if i try ffmpeg -formats get:
Output audio/video file formats: mpeg vcd vob mpegts crc image imagepipe mp2 ac3 h263 m4v h264 mpeg1video mjpeg s16le s16be u16le u16be s8 u8 mulaw alaw rawvideo null rm asf asf_stream avi wav swf au gif mpjpeg singlejpeg dv flv yuv4mpegpipe ffm audio_device rtp
Input audio/video file formats: mpeg mpegts image imagepipe mp3 ac3 h263 m4v h264 mpegvideo mjpeg s16le s16be u16le u16be s8 u8 mulaw alaw rawvideo rm asf avi wav swf au gif mov dv 4xm flv yuv4mpegpipe ffm video4linux audio_device dv1394 rtsp redir sdp rtp
Output image formats: pbm pgm ppm pam pgmyuv yuv png jpeg gif
Input image formats: pnm pam pgmyuv yuv png jpeg gif
Codecs:
Encoders: ac3 mp2 mpeg1video h263 h263p flv rv10 mpeg4 msmpeg4v1 msmpeg4v2 msmpeg4 wmv1 wmv2 mjpeg ljpeg huffyuv asv1 ffv1 rawvideo pcm_s16le pcm_s16be pcm_u16le pcm_u16be pcm_s8 pcm_u8 pcm_alaw pcm_mulaw adpcm_ima_qt adpcm_ima_wav adpcm_ms adpcm_4xm
Decoders: rawvideo h263 mpeg4 msmpeg4v1 msmpeg4v2 msmpeg4 wmv1 wmv2 h263i flv rv10 svq1 svq3 wmav1 wmav2 indeo3 mpegvideo dvvideo dvaudio mjpeg mjpegb mp2 mp3 mace3 mace6 huffyuv ffv1 cyuv h264 vp3 asv1 vcr1 cljr 4xm ac3 real_144 real_288 pcm_s16le pcm_s16be pcm_u16le pcm_u16be pcm_s8 pcm_u8 pcm_alaw pcm_mulaw adpcm_ima_qt adpcm_ima_wav adpcm_ms adpcm_4xm
Supported file protocols: file: pipe: udp: rtp: tcp: http:
Frame size, frame rate abbreviations: ntsc pal film ntsc-film sqcif qcif cif 4cif
Motion estimation methods: zero(fastest) full(slowest) log phods epzs(default) x1
Thanks a lot
I have to try ffmpeg -hq -i events/nº event/files.jpg prueba.mpg in command line i get "Unknow format"
if i try ffmpeg -formats get:
Output audio/video file formats: mpeg vcd vob mpegts crc image imagepipe mp2 ac3 h263 m4v h264 mpeg1video mjpeg s16le s16be u16le u16be s8 u8 mulaw alaw rawvideo null rm asf asf_stream avi wav swf au gif mpjpeg singlejpeg dv flv yuv4mpegpipe ffm audio_device rtp
Input audio/video file formats: mpeg mpegts image imagepipe mp3 ac3 h263 m4v h264 mpegvideo mjpeg s16le s16be u16le u16be s8 u8 mulaw alaw rawvideo rm asf avi wav swf au gif mov dv 4xm flv yuv4mpegpipe ffm video4linux audio_device dv1394 rtsp redir sdp rtp
Output image formats: pbm pgm ppm pam pgmyuv yuv png jpeg gif
Input image formats: pnm pam pgmyuv yuv png jpeg gif
Codecs:
Encoders: ac3 mp2 mpeg1video h263 h263p flv rv10 mpeg4 msmpeg4v1 msmpeg4v2 msmpeg4 wmv1 wmv2 mjpeg ljpeg huffyuv asv1 ffv1 rawvideo pcm_s16le pcm_s16be pcm_u16le pcm_u16be pcm_s8 pcm_u8 pcm_alaw pcm_mulaw adpcm_ima_qt adpcm_ima_wav adpcm_ms adpcm_4xm
Decoders: rawvideo h263 mpeg4 msmpeg4v1 msmpeg4v2 msmpeg4 wmv1 wmv2 h263i flv rv10 svq1 svq3 wmav1 wmav2 indeo3 mpegvideo dvvideo dvaudio mjpeg mjpegb mp2 mp3 mace3 mace6 huffyuv ffv1 cyuv h264 vp3 asv1 vcr1 cljr 4xm ac3 real_144 real_288 pcm_s16le pcm_s16be pcm_u16le pcm_u16be pcm_s8 pcm_u8 pcm_alaw pcm_mulaw adpcm_ima_qt adpcm_ima_wav adpcm_ms adpcm_4xm
Supported file protocols: file: pipe: udp: rtp: tcp: http:
Frame size, frame rate abbreviations: ntsc pal film ntsc-film sqcif qcif cif 4cif
Motion estimation methods: zero(fastest) full(slowest) log phods epzs(default) x1
Thanks a lot
Re: ffmpeg not work
what does /tmp/zmvideo.log show?
-
- Posts: 33
- Joined: Tue Dec 16, 2003 1:51 pm
Re: ffmpeg not work
i seem to have a similar problem...
Starting pending process, zmc -d 1
'zmc -d 1' started at 03/12/16 15:41:15
'zmc -d 1' starting at 03/12/16 15:41:15, pid = 4634
'zmc -d 1' crashed at 03/12/16 15:41:15, exit status 255
Starting pending process, zmfilter.pl -m 3 -e -1
'zmfilter.pl -m 3 -e -1' started at 03/12/16 15:44:57
'zmfilter.pl -m 3 -e -1' starting at 03/12/16 15:44:57, pid = 4796
Can't locate Archive/Zip.pm in @INC (@INC contains: /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/local/bin/zmfilter.pl line 72.
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 72.
'zmfilter.pl -m 3 -e -1' crashed at 03/12/16 15:44:57, exit status 2
Starting pending process, zmc -d 1
'zmc -d 1' started at 03/12/16 15:41:15
'zmc -d 1' starting at 03/12/16 15:41:15, pid = 4634
'zmc -d 1' crashed at 03/12/16 15:41:15, exit status 255
Starting pending process, zmfilter.pl -m 3 -e -1
'zmfilter.pl -m 3 -e -1' started at 03/12/16 15:44:57
'zmfilter.pl -m 3 -e -1' starting at 03/12/16 15:44:57, pid = 4796
Can't locate Archive/Zip.pm in @INC (@INC contains: /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/local/bin/zmfilter.pl line 72.
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 72.
'zmfilter.pl -m 3 -e -1' crashed at 03/12/16 15:44:57, exit status 2
- tech_fixer
- Posts: 132
- Joined: Tue Jul 29, 2003 3:07 pm
Re: ffmpeg not work
Kim,
Seems like you are missing a perl module.
Follow this link to go to a thread where I explain an easy way to install Perl Modules on a Linux machine.
http://www.zoneminder.com/forum_install ... ba6e1c50d5
Regards,
Jose Rodriguez
Seems like you are missing a perl module.
Follow this link to go to a thread where I explain an easy way to install Perl Modules on a Linux machine.
http://www.zoneminder.com/forum_install ... ba6e1c50d5
Regards,
Jose Rodriguez
-
- Posts: 33
- Joined: Tue Dec 16, 2003 1:51 pm
Re: ffmpeg not work
Thx. for that. i installed al the modules that it requierd... but it did not help. and i caht get it to show stils either, nor does it show any pictures when i edit zones
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: ffmpeg not work
The perl module is a red herring in this case as it's nothing to do with the vide production. As Ian suggested above try looking in the video log (usually /tmp/zmvideo.log) and seeing if there is anything in there. Alternatively you can create videos from the command line which might make it easier to debug. Just type 'zmvideo.pl' to get the options you can use.
Make sure you run it as root or your web user to avoid problems with permissions.
Phil,
Make sure you run it as root or your web user to avoid problems with permissions.
Phil,
Re: ffmpeg not work
THANKS FOR ALL! I have resolve the problem:
In Debian the apache user is www-data no apache (as redhat), so the browser can't read the files (access denied). To resolve this, I changed in /etc/apache/httpd.conf
User: www-data
Group: www-data
TO
User: apache
Group: apache
AND ALL WORKS FINE
Thanks a lot for your work!
In Debian the apache user is www-data no apache (as redhat), so the browser can't read the files (access denied). To resolve this, I changed in /etc/apache/httpd.conf
User: www-data
Group: www-data
TO
User: apache
Group: apache
AND ALL WORKS FINE
Thanks a lot for your work!
-
- Posts: 33
- Joined: Tue Dec 16, 2003 1:51 pm
Re: ffmpeg not work
it turned out to be a premission problem with mysql... sorted it out and it works ok.. now if i only would get a picture in "Zones" just shows an X ... any iadeas?
-
- Posts: 33
- Joined: Tue Dec 16, 2003 1:51 pm
Re: ffmpeg not work
i was a little to haysty... MySql premissions sorted out the zones problem to al i had to do was to turn it back on again. :)
Re: ffmpeg not work
[quote="djesus"]THANKS FOR ALL! I have resolve the problem:
Well, I still have a problem. Distribution is the latest ZM Live cd and zmvideo.log tells the following story:
Creating video file Event-89680.mpg for event 89680
/usr/bin/ffmpeg -y -hq -intra -r 12.84 -s 320x240 -i %03d-capture.jpg Event-896
80.mpg > mpeg.log
Input #0, image, from '%03d-capture.jpg':
Duration: 00:00:02.5, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj444p, 320x240, 12.84 fps
Output #0, mpeg, to 'Event-89680.mpg':
Stream #0.0: Video: mpeg1video (hq), 320x240, 12.84 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
Error: 139 at /usr/local/bin/zmvideo.pl line 260.
/tmp/zmvideo.log lines 1-12/12 (END)
Any guesses?
Elias
Well, I still have a problem. Distribution is the latest ZM Live cd and zmvideo.log tells the following story:
Creating video file Event-89680.mpg for event 89680
/usr/bin/ffmpeg -y -hq -intra -r 12.84 -s 320x240 -i %03d-capture.jpg Event-896
80.mpg > mpeg.log
Input #0, image, from '%03d-capture.jpg':
Duration: 00:00:02.5, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj444p, 320x240, 12.84 fps
Output #0, mpeg, to 'Event-89680.mpg':
Stream #0.0: Video: mpeg1video (hq), 320x240, 12.84 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
Error: 139 at /usr/local/bin/zmvideo.pl line 260.
/tmp/zmvideo.log lines 1-12/12 (END)
Any guesses?
Elias
Re: ffmpeg not work
>Well, I still have a problem. Distribution is the latest ZM Live cd and
...I forgot to tell that ZM has been upgraded to 1.19.4
Elias
...I forgot to tell that ZM has been upgraded to 1.19.4
Elias