Creating videos with ffmpeg when FPS is below 25
Problem temporarily solved with earlier ffmpeg version
Hi,
I managed to solve the issue by downgrading to an earlier version of ffmpeg. So ffmpeg is to blame. 0.4.8 works without the -strict parameter. The end result is MPEG2 compliant.
Phil & James: thank you for guiding me to the right direction.
I still do think having a working method of MPEG2 export is essential
I am going to be away for a day or two. I might be able to test the patch as well after I've come back.
Good night,
I managed to solve the issue by downgrading to an earlier version of ffmpeg. So ffmpeg is to blame. 0.4.8 works without the -strict parameter. The end result is MPEG2 compliant.
Phil & James: thank you for guiding me to the right direction.
I still do think having a working method of MPEG2 export is essential
I am going to be away for a day or two. I might be able to test the patch as well after I've come back.
Good night,
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
What is your ffmpeg command line parametres like?jameswilson wrote:i Have done more experiemnts on this and yes i can definetly export mpegs but...
The quality is very poor, very blocky how do i imrove this?
James
I am using -hq -s cif
I guess the -hq for high quality is the most important thing. Im am getting good video with the previous version of ffmpeg.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
good luck phil!
From you previous post would time be better spent (once its working with a version fully (maybe 0.4.) to stick with it and only support that version, unless a real huge reason exits to use newer ones. Or is ffmpeg not the best choice. I dont know im just curious.
JAmes
Cordel: It generates whole videos ok (at poor blocky quality) but wont stream though
From you previous post would time be better spent (once its working with a version fully (maybe 0.4.) to stick with it and only support that version, unless a real huge reason exits to use newer ones. Or is ffmpeg not the best choice. I dont know im just curious.
JAmes
Cordel: It generates whole videos ok (at poor blocky quality) but wont stream though
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I've cracked the issue with ffmpeg CVS. Essentially you have to specify the rate twice once before the input files (giving the input rate) and once afterwards (giving your desired output rate, which you put to say 15). That way it's happy to create valid mpegs no matter what the input rate is.
Unfortunately I've had to change a few other things to support this, in fact I've revamped the whole video generation thing a bit. However if you want to try it yourself then the easiest thing to do is edit zmvideo.pl and add a '-r 25' or similar to the ffmpeg command line near the end of the options and after the -i parameter.
I don't really want to stick to an old version of ffmpeg if possiblae as that prevents improvements in features and speed etc from being able to be used. The CVS version now seems to work ok and I must say it seems pretty speedy to me!
Phil
Unfortunately I've had to change a few other things to support this, in fact I've revamped the whole video generation thing a bit. However if you want to try it yourself then the easiest thing to do is edit zmvideo.pl and add a '-r 25' or similar to the ffmpeg command line near the end of the options and after the -i parameter.
I don't really want to stick to an old version of ffmpeg if possiblae as that prevents improvements in features and speed etc from being able to be used. The CVS version now seems to work ok and I must say it seems pretty speedy to me!
Phil
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK