I would like to convert my video source, in lenght 07 min 40 sec frame rate 30 per second to a frame rate of 60 per second without adding new frames, that means the duration will be the half. I did try ffmpeg -r 30 -i input_mjpg.avi -r 60 -vcodec copy -an test.avi and does not change the frame rate. Can anybody suggest me the correct command line? thank you D
I have about 10.000 still frames (computer generated) i would like to convert in a movie. I use happily the command ffmpeg -i still%04d.jpg -vcodec mjpeg -qscale 1 -r 30 -an out_mjpg.avi Then i get the video stream (1.5gb) with a small problem: The animation (maybe due to high detail) sometimes flicker and sometimes the movement is not "constant" but seems to go faster or slower a little bit. maybe there is some optical or perceptual impression, or the decoder is not fast enough. My questions: 1. is by default mjpeg material interlaced or not interlaced ? Is there a way to check the file via command line? single screenshot seems not interlaced 2. is there a filter to "blur" the still images, to avoid flickering? Thank you
IMHO FFmpeg does not change speed/duration of movie. Use MEncoder with -speed option. d r wrote:
I would like to convert my video source, in lenght 07 min 40 sec frame rate 30 per second to a frame rate of 60 per second without adding new frames, that means the duration will be the half.
I did try ffmpeg -r 30 -i input_mjpg.avi -r 60 -vcodec copy -an test.avi and does not change the frame rate.
Can anybody suggest me the correct command line?
thank you D
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Hi, d r said:
I would like to convert my video source, in lenght 07 min 40 sec frame rate 30 per second to a frame rate of 60 per second without adding new frames, that means the duration will be the half.
I did try ffmpeg -r 30 -i input_mjpg.avi -r 60 -vcodec copy -an test.avi and does not change the frame rate.
Can anybody suggest me the correct command line?
Try: ffmpeg -i input_mjpg.avi -f image2pipe -vcodec copy - </dev/null | \ ffmpeg -r 60 -f image2pipe -vcodec mjpeg -i - -vcodec copy -an test.avi Regards, V?ctor
The frame rate of your source may be constant or variable. If frame rate of your source is constant, You can just type the following: ffmpeg -r "60" -i "input.avi" -vcodec "copy" "output.avi" Here I assume that that the input video is with the file name of “input.avi” and output video is with the file name of “output.avi”; this video does not have an audio track.Basically, frame rate as an input option will make ffmpeg ignores the original frame rate of the video and use the designated frame rate without adding or dropping frames.If the frame rate of your source is variable, the above method may work but the video may speed up or slow down intermittently due to variable nature of the frame rate. In other words, if you change the frame rate from one to another by adding/dropping frames without changing the playback speed or the length of the video, the video may be out of sync with the audio. One way of mitigating the effect of variable frame rate is to re-encode the video to constant frame rate.Say the average frame rate of the source is 30 FPS; the frame rate is variable. Lossy encoding will inevitably result in “generation loss”. To reduce the quality loss, you can use lossless encoding in the process; then choose the lossy encoding of appropriate level instead of choosing lossy encoding while editing the videos.Basically, converting video to a series of image sequence will force the frame rate to be constant. mkdir "frames" ffmpeg -i "input.avi" -r "30" "frames\f_%%1d.png" ffmpeg -r "60" -i "frames\f_%%1d.png" -vcodec "libx264" -crf "0" "output-crf0.mkv" rmdir /s /q "frames" “output-crf0.mkv” is of lossless encoding. You can choose the appropriate compression level you see fit. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/change-frame-rate-tp939542p4660111.... Sent from the FFmpeg-users mailing list archive at Nabble.com.
thljcl <jiachielee <at> live.com> writes:
ffmpeg -r "60" -i "input.avi" -vcodec "copy" "output.avi"
As said, while this may work in some situations, the suggested way of changing speed of videos is using the setpts filter. Unrelated: Please do not revive ancient threads. Carl Eugen
Carl Eugen Hoyos wrote:
Unrelated: Please do not revive ancient threads.
Why not? I think it's OK to reply to an old thread if you can contribute new information or insights in the context of that thread that might be useful for others. Best regards Oliver --
participants (6)
-
Carl Eugen Hoyos -
info@danielerossi.net -
Oliver Fromme -
pscientist@inbox.com -
thljcl -
wzrlpy@arsystel.com