I'm a fairly new user to this program, and have a problem that I can't seem to solve involving converting an animated AVI file into an MPEG using FFMPEG 0.5. I'm capturing weather radar images, then converting them into an AVI file which animates them. That process works perfectly and I end up with an AVI file that is approximately 105 megabytes every time. When I try to convert this AVI to MPEG using FFMPEG, I end up with a file that is only about six MB, has very poor resolution and obviously skips parts of the sequence. I've experimented with the batch commands for a couple of months and nothing seems to change this. The command I'm using is as follows: FFMPEG -i <input filename> -s 640x480 -r 25 -b 1200 -sameq -y <output filename> I've also experimented with a smaller bit rate but it makes no difference. As I said, this command sequence gives me a file about 5% the size of the original AVI and the quality is very bad. Any help would be appreciated. (And yes, I know that you can build an MPEG directly from the images, but i figured I'd better get THIS down before I talked the mysteries of "foo".)
Eddie Owen wrote:
The command I'm using is as follows: FFMPEG -i <input filename> -s 640x480 -r 25 -b 1200 -sameq -y <output filename>
Can you use mpeg4? I suggest: ffmpeg -i video.avi -vcodec mpeg4 -b 2000k -r 25 -s 640x480 -an -y output.mp4 vary bitrate downwards to your quality preference -- Peter
Hi, On Wed, Mar 31, 2010 at 11:02 PM, Eddie Owenwrote:
The command I'm using is as follows: FFMPEG -i <input filename> -s 640x480 -r 25 -b 1200 -sameq -y <output filename>
1200 bits per second is too low for any video. You want 1200000 or 1200k Regards, V?ctor
Victor, thanks for the reply. I upped the bitrate as suggested and get the same result. I still have a 105 Meg AVI that compresses to a poor quality 5 Meg Mpeg no matter what I do. It is almost as if a switch is in place to limit the size of the file, although I see nothing like that. Peter, thanks for your recommendation of mp4, but the software I'm using for playback is proprietary and made for Mpeg2. Any other ideas? Ed On 4/1/2010 2:03 AM, V?ctor Paesa wrote:
Hi,
On Wed, Mar 31, 2010 at 11:02 PM, Eddie Owenwrote:
The command I'm using is as follows: FFMPEG -i<input filename> -s 640x480 -r 25 -b 1200 -sameq -y<output filename>
1200 bits per second is too low for any video. You want 1200000 or 1200k
Regards, V?ctor _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Am 01.04.2010 16:12, schrieb Eddie Owen:
Victor, thanks for the reply. I upped the bitrate as suggested and get the same result. I still have a 105 Meg AVI that compresses to a poor quality 5 Meg Mpeg no matter what I do. It is almost as if a switch is in place to limit the size of the file, although I see nothing like that.
Peter, thanks for your recommendation of mp4, but the software I'm using for playback is proprietary and made for Mpeg2.
Any other ideas?
Ed
On 4/1/2010 2:03 AM, V?ctor Paesa wrote:
Hi,
On Wed, Mar 31, 2010 at 11:02 PM, Eddie Owenwrote:
The command I'm using is as follows: FFMPEG -i<input filename> -s 640x480 -r 25 -b 1200 -sameq -y<output filename> 1200 bits per second is too low for any video. You want 1200000 or 1200k
Regards, V?ctor Ed, can you give us please the output that ffmpeg creates on the console? Walter. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Walter, I got the following during the transition Bitrate - approx 3400KB Q=0,0 FPS=12 And with these the big good loocking file becomes a little NOT so good looking one. I don't mind actually generating my file directly from my JPEG images and bypassing the AVI if someone can point me to a good tutorial that teaches this. The foo stuff in the documentation is Greek to me. On 4/1/2010 9:17 AM, Walter Werner wrote:
Am 01.04.2010 16:12, schrieb Eddie Owen:
Victor, thanks for the reply. I upped the bitrate as suggested and get the same result. I still have a 105 Meg AVI that compresses to a poor quality 5 Meg Mpeg no matter what I do. It is almost as if a switch is in place to limit the size of the file, although I see nothing like that.
Peter, thanks for your recommendation of mp4, but the software I'm using for playback is proprietary and made for Mpeg2.
Any other ideas?
Ed
On 4/1/2010 2:03 AM, V?ctor Paesa wrote:
Hi,
On Wed, Mar 31, 2010 at 11:02 PM, Eddie Owenwrote:
The command I'm using is as follows: FFMPEG -i<input filename> -s 640x480 -r 25 -b 1200 -sameq -y<output filename> 1200 bits per second is too low for any video. You want 1200000 or 1200k
Regards, V?ctor Ed, can you give us please the output that ffmpeg creates on the console? Walter. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Am 01.04.2010 16:30, schrieb Eddie Owen:
Walter, I got the following during the transition Bitrate - approx 3400KB Q=0,0 FPS=12
And with these the big good loocking file becomes a little NOT so good looking one.
I don't mind actually generating my file directly from my JPEG images and bypassing the AVI if someone can point me to a good tutorial that teaches this. The foo stuff in the documentation is Greek to me.
Ed, we are just guessing here what is going on. So if you please just copy the console output starting with the command line until "press Q to quit" we can stop guessing and start understanding what might be the cause. Walter
Will do! Thanks. On 4/1/2010 9:41 AM, Walter Werner wrote:
Am 01.04.2010 16:30, schrieb Eddie Owen:
Walter, I got the following during the transition Bitrate - approx 3400KB Q=0,0 FPS=12
And with these the big good loocking file becomes a little NOT so good looking one.
I don't mind actually generating my file directly from my JPEG images and bypassing the AVI if someone can point me to a good tutorial that teaches this. The foo stuff in the documentation is Greek to me.
Ed, we are just guessing here what is going on. So if you please just copy the console output starting with the command line until "press Q to quit" we can stop guessing and start understanding what might be the cause. Walter
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
On 4/1/2010 9:41 AM, Walter Werner wrote:
Bitrate - approx 3400KB Q=0,0 FPS=12
And with these the big good loocking file becomes a little NOT so good looking one.
I don't mind actually generating my file directly from my JPEG images and bypassing the AVI if someone can point me to a good tutorial that teaches this. The foo stuff in the documentation is Greek to me.
Ed, we are just guessing here what is going on. So if you please just copy the console output starting (The following was taken from a screen capture while the batch file ran.)
c:\ffmpeg-0.5>FFMPEG -i c:\weather\pah\radars\pah.avi -s 640x4890 -r 25 -b 1200k -sameq -y c:\weather\pah\radars\pahradar.mpg FFmpeg version 0.5. Copyright (c) 2000-2009 Fabrice Bellard, et. al. configuration: --enable-gpl --enable-postproc --enable-swscalc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac --enable-libfaad --enable-libmp3lane --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-nemalign-hack libavutil 49.15.0 / 49.15. 0 libavcodec 52.20.0/52.20.0 libavformat 52.31.0/52.31.0 libavdevice 52.1.0/52.1.0 libavfilter 0.4.0/0.4.0 libswscale 0.7.1/0.7.1 libpostproc 51.2.0/51.2.0 built on Mar 16 2009 16:09:18, gcc: 4.2.4 [Sherpya] Input #0, avi, from 'c:\weather\pah\radars\pah.avi': Duration: 00:00:14.49, start: 0.000000, bitrate: 58985 kb/s Stream #0.0: Video: rawvideo, rgb32, 640x480, 6 tbr, 6 tbn, 6 tbc Output #0, mpeg, to 'c:\weather\pah\radars\pahradar.mpg': Stream #0.0: Video: mpeg1video, yuv420p, 640x480, q=2-31, 1200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 71 fps= 10 q=0.0 size= 1208kb time=2.80 bitrate=3534.3kbits/s (End of screen cap) Is the word 'mpeg1' thats in this thing a problem?
Am 01.04.2010 18:17, schrieb Eddie Owen:
On 4/1/2010 9:41 AM, Walter Werner wrote:
Bitrate - approx 3400KB Q=0,0 FPS=12
And with these the big good loocking file becomes a little NOT so good looking one.
I don't mind actually generating my file directly from my JPEG images and bypassing the AVI if someone can point me to a good tutorial that teaches this. The foo stuff in the documentation is Greek to me.
Ed, we are just guessing here what is going on. So if you please just copy the console output starting (The following was taken from a screen capture while the batch file ran.)
c:\ffmpeg-0.5>FFMPEG -i c:\weather\pah\radars\pah.avi -s 640x4890 -r 25 -b 1200k -sameq -y c:\weather\pah\radars\pahradar.mpg FFmpeg version 0.5. Copyright (c) 2000-2009 Fabrice Bellard, et. al. configuration: --enable-gpl --enable-postproc --enable-swscalc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac --enable-libfaad --enable-libmp3lane --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-nemalign-hack libavutil 49.15.0 / 49.15. 0 libavcodec 52.20.0/52.20.0 libavformat 52.31.0/52.31.0 libavdevice 52.1.0/52.1.0 libavfilter 0.4.0/0.4.0 libswscale 0.7.1/0.7.1 libpostproc 51.2.0/51.2.0 built on Mar 16 2009 16:09:18, gcc: 4.2.4 [Sherpya] Input #0, avi, from 'c:\weather\pah\radars\pah.avi': Duration: 00:00:14.49, start: 0.000000, bitrate: 58985 kb/s Stream #0.0: Video: rawvideo, rgb32, 640x480, 6 tbr, 6 tbn, 6 tbc Output #0, mpeg, to 'c:\weather\pah\radars\pahradar.mpg': Stream #0.0: Video: mpeg1video, yuv420p, 640x480, q=2-31, 1200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 71 fps= 10 q=0.0 size= 1208kb time=2.80 bitrate=3534.3kbits/s
(End of screen cap)
Is the word 'mpeg1' thats in this thing a problem?
Ed, I would try next to specify a -vcodec mpeg2video to make sure you get mpeg2 and omit -sameq (you already specified a bitrate) and to specify the correct size 640x480, maybe your typing error makes some trouble, I don't know. Walter.
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Hi, On Fri, Apr 2, 2010 at 9:56 AM, Walter Wernerwrote:
Am 01.04.2010 18:17, schrieb Eddie Owen:
On 4/1/2010 9:41 AM, Walter Werner wrote:
Bitrate - approx 3400KB Q=0,0 FPS=12
And with these the big good loocking file becomes a little NOT so good looking one.
I don't mind actually generating my file directly from my JPEG images and bypassing the AVI if someone can point me to a good tutorial that teaches this. ?The foo stuff in the documentation is Greek to me.
Take a look at the FAQ.
Ed, we are just guessing here what is going on. So if you please just copy the console output starting
(The following was taken from a screen capture while the batch file ran.)
c:\ffmpeg-0.5>FFMPEG -i c:\weather\pah\radars\pah.avi -s 640x4890 -r 25 -b 1200k -sameq -y c:\weather\pah\radars\pahradar.mpg FFmpeg version 0.5. Copyright (c) 2000-2009 Fabrice Bellard, et. al. configuration: --enable-gpl --enable-postproc --enable-swscalc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac --enable-libfaad --enable-libmp3lane --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-nemalign-hack libavutil ? ? ? ?49.15.0 / 49.15. 0 libavcodec ? ?52.20.0/52.20.0 libavformat ? ?52.31.0/52.31.0 libavdevice ? ?52.1.0/52.1.0 libavfilter ? ? ? ?0.4.0/0.4.0 libswscale ? ? ? 0.7.1/0.7.1 libpostproc ? ?51.2.0/51.2.0 built on Mar 16 2009 16:09:18, gcc: 4.2.4 [Sherpya] Input #0, avi, from 'c:\weather\pah\radars\pah.avi': Duration: 00:00:14.49, start: 0.000000, bitrate: 58985 kb/s Stream #0.0: Video: rawvideo, rgb32, 640x480, 6 tbr, 6 tbn, 6 tbc Output #0, mpeg, to 'c:\weather\pah\radars\pahradar.mpg': Stream #0.0: Video: mpeg1video, yuv420p, 640x480, q=2-31, 1200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 71 fps= 10 q=0.0 size= 1208kb time=2.80 bitrate=3534.3kbits/s
(End of screen cap)
Is the word 'mpeg1' thats in this thing a problem?
Ed, I would try next to specify a -vcodec mpeg2video to make sure you get mpeg2 and omit -sameq (you already specified a bitrate) and to specify the correct size 640x480, maybe your typing error makes some trouble, I don't know.
And - f vob if you want a MPEG2 container (the suffix .mpg implies a MPEG1 container). And if your input is 6 frames per second, I would use -r 30, instead of -r 25 (so that output rate is an exact multiple of input rate) Regards, V?ctor
2010/4/2 V?ctor Paesa <victorpaesa at googlemail.com>:
Hi,
On Fri, Apr 2, 2010 at 9:56 AM, Walter Wernerwrote:
Am 01.04.2010 18:17, schrieb Eddie Owen:
On 4/1/2010 9:41 AM, Walter Werner wrote:
Bitrate - approx 3400KB Q=0,0 FPS=12
And with these the big good loocking file becomes a little NOT so good looking one.
I don't mind actually generating my file directly from my JPEG images and bypassing the AVI if someone can point me to a good tutorial that teaches this. ?The foo stuff in the documentation is Greek to me.
Take a look at the FAQ.
Ed, we are just guessing here what is going on. So if you please just copy the console output starting
(The following was taken from a screen capture while the batch file ran.)
c:\ffmpeg-0.5>FFMPEG -i c:\weather\pah\radars\pah.avi -s 640x4890 -r 25 -b 1200k -sameq -y c:\weather\pah\radars\pahradar.mpg FFmpeg version 0.5. Copyright (c) 2000-2009 Fabrice Bellard, et. al. configuration: --enable-gpl --enable-postproc --enable-swscalc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac --enable-libfaad --enable-libmp3lane --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-nemalign-hack libavutil ? ? ? ?49.15.0 / 49.15. 0 libavcodec ? ?52.20.0/52.20.0 libavformat ? ?52.31.0/52.31.0 libavdevice ? ?52.1.0/52.1.0 libavfilter ? ? ? ?0.4.0/0.4.0 libswscale ? ? ? 0.7.1/0.7.1 libpostproc ? ?51.2.0/51.2.0 built on Mar 16 2009 16:09:18, gcc: 4.2.4 [Sherpya] Input #0, avi, from 'c:\weather\pah\radars\pah.avi': Duration: 00:00:14.49, start: 0.000000, bitrate: 58985 kb/s Stream #0.0: Video: rawvideo, rgb32, 640x480, 6 tbr, 6 tbn, 6 tbc Output #0, mpeg, to 'c:\weather\pah\radars\pahradar.mpg': Stream #0.0: Video: mpeg1video, yuv420p, 640x480, q=2-31, 1200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 71 fps= 10 q=0.0 size= 1208kb time=2.80 bitrate=3534.3kbits/s
(End of screen cap)
Is the word 'mpeg1' thats in this thing a problem?
Ed, I would try next to specify a -vcodec mpeg2video to make sure you get mpeg2 and omit -sameq (you already specified a bitrate) and to specify the correct size 640x480, maybe your typing error makes some trouble, I don't know.
And - f vob if you want a MPEG2 container (the suffix .mpg implies a MPEG1 container).
And if your input is 6 frames per second, I would use -r 30, instead of -r 25 (so that output rate is an exact multiple of input rate)
Regards, V?ctor _______________________________________________
What do you nned to produce an mpeg or a DVD compatible file try this FFMPEG -i <input filename> -target dvd -y <output filename> to test or FFMPEG -i <input filename> -s 640x480 -r 25 -qscale 3 -y <output filename>
Am 06.04.2010 10:48, schrieb Mike Martin:
2010/4/2 V?ctor Paesa<victorpaesa at googlemail.com>:
Hi,
On Fri, Apr 2, 2010 at 9:56 AM, Walter Wernerwrote:
Am 01.04.2010 18:17, schrieb Eddie Owen:
On 4/1/2010 9:41 AM, Walter Werner wrote:
Bitrate - approx 3400KB Q=0,0 FPS=12
And with these the big good loocking file becomes a little NOT so good looking one.
I don't mind actually generating my file directly from my JPEG images and bypassing the AVI if someone can point me to a good tutorial that teaches this. The foo stuff in the documentation is Greek to me.
Take a look at the FAQ.
Ed, we are just guessing here what is going on. So if you please just copy the console output starting
(The following was taken from a screen capture while the batch file ran.)
c:\ffmpeg-0.5>FFMPEG -i c:\weather\pah\radars\pah.avi -s 640x4890 -r 25 -b 1200k -sameq -y c:\weather\pah\radars\pahradar.mpg FFmpeg version 0.5. Copyright (c) 2000-2009 Fabrice Bellard, et. al. configuration: --enable-gpl --enable-postproc --enable-swscalc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac --enable-libfaad --enable-libmp3lane --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-nemalign-hack libavutil 49.15.0 / 49.15. 0 libavcodec 52.20.0/52.20.0 libavformat 52.31.0/52.31.0 libavdevice 52.1.0/52.1.0 libavfilter 0.4.0/0.4.0 libswscale 0.7.1/0.7.1 libpostproc 51.2.0/51.2.0 built on Mar 16 2009 16:09:18, gcc: 4.2.4 [Sherpya] Input #0, avi, from 'c:\weather\pah\radars\pah.avi': Duration: 00:00:14.49, start: 0.000000, bitrate: 58985 kb/s Stream #0.0: Video: rawvideo, rgb32, 640x480, 6 tbr, 6 tbn, 6 tbc Output #0, mpeg, to 'c:\weather\pah\radars\pahradar.mpg': Stream #0.0: Video: mpeg1video, yuv420p, 640x480, q=2-31, 1200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 71 fps= 10 q=0.0 size= 1208kb time=2.80 bitrate=3534.3kbits/s
(End of screen cap)
Is the word 'mpeg1' thats in this thing a problem?
Ed, I would try next to specify a -vcodec mpeg2video to make sure you get mpeg2 and omit -sameq (you already specified a bitrate) and to specify the correct size 640x480, maybe your typing error makes some trouble, I don't know.
And - f vob if you want a MPEG2 container (the suffix .mpg implies a MPEG1 container).
And if your input is 6 frames per second, I would use -r 30, instead of -r 25 (so that output rate is an exact multiple of input rate)
Regards, V?ctor _______________________________________________
What do you nned to produce an mpeg or a DVD compatible file try this
FFMPEG -i<input filename> -target dvd -y<output filename> to test
"dvd" is not a valid parameter to -target option! It should read -target pal-dvd or ntsc-dvd
or
FFMPEG -i<input filename> -s 640x480 -r 25 -qscale 3 -y<output filename>
This will most likely produce unwanted results. ffmpeg tries to determine the container and codec format from the filename extension. It is much better to specify codecs and formats explicitely or use the -target option Walter.
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Walter, I got the following during the transition Bitrate - approx 3400KB Q=0,0 FPS=12
And with these the big good loocking file becomes a little NOT so good looking one.
I don't mind actually generating my file directly from my JPEG images and bypassing the AVI if someone can point me to a good tutorial that teaches this. The foo stuff in the documentation is Greek to me. It will be easier for everyone reading on this list if you put your reply below the text you are replying to. Posting to the top of a message is called "top-posting", and is consider bad behavior on this
On 04/01/2010 10:30 AM, Eddie Owen wrote: list. ;) Regarding your question, if your number your images in a sequence like this: 0001.jpg 0002.jpg 0003.jpg ... 1498.jpg 1499.jpg 1500.jpg etc. Then you can do something like this: ffmpeg -r 25 -i %04d.jpg -s 640x480 -vcodec mpeg2video -b 1200k final.mpg -r 25 is the framerate you want the images to be processed in, -i %04d.jpg indicates that your images are numbered as the example I gave above, and the rest should be pretty obvious. I think the trickiest part will just be get your images numbered appropriately if they are not already. Note, ffmpeg starts number sequences at 1 so keep that in mind when naming your files.
Eddie Owen wrote:
Peter, thanks for your recommendation of mp4, but the software I'm using for playback is proprietary and made for Mpeg2.
ffmpeg.exe -i input.avi -vcodec mpeg2video -b 2000k -r 25 -s 640x480 -an -y output.mpg -- Peter
participants (6)
-
abu_hurayrah@hidayahonline.org -
eowen@wkag.com -
pscientist@inbox.com -
redtux1@googlemail.com -
victorpaesa@googlemail.com -
walter.werner@vol.at