[ubuntu-uk] Question on ffmpeg encoding

ByteSoup bytesoup at gmail.com
Fri Jul 23 14:27:45 BST 2010


On 23/07/10 09:41, Simon Greenwood wrote:
>
>
> On 23 July 2010 09:26, ByteSoup <bytesoup at gmail.com 
> <mailto:bytesoup at gmail.com>> wrote:
>
>     Hi,
>
>     Im trying to use ffmpeg to help my kids produce some stopmotion
>     video files. Ive used this FAQ as a good reference:
>
>     http://www.ffmpeg.org/faq.html
>
>     Ive got past the bit where I reliased I needed to rename my files
>     in sequential order and produced a mpg file, covered here
>
>     http://www.ffmpeg.org/faq.html#SEC14
>
>     I got a couple of questions:
>
>     1. the syntax using the "%d" would I be right in saying that
>     pic%06d,jpg means any file from pic000001.jpg through to and
>     including pic999999.jpg?
>
>     2. The mpg output seems to have a fixed frame rate, if I use
>     another frame rate with the -vcodec option for example -vcodec
>     mpeg4, how do i specify the frame rate?
>
>     3. What other methods has anyone used? Are there better
>     suggestions or is ffmpeg the best package to use?
>
>
> 1. Yes
>
> 2. The -r switch specifies the frame rate but I believe that's 24 for 
> any codec as that's the standard for video and any other rate would 
> appear to run fast or slow. That's probably not what you want to achieve.
>
> 3. There are a number of animation programmes in the Software Centre 
> which will at least give you a GUI - I can see stopmotion and KToon 
> but have no experience with them. A quick google also brings up Pencil.
>
> ffmpeg is the standard for video processing and is probably somewhere 
> behind other software.
>
> s/

Thanks Simon,

It turns out changing the -r setting when using another codec doesnt 
really change much, it keeps the same overall film time it just drops 
frames, which isnt what I was looking for. Anyway I spent a little time 
googling around and ended up installing "mencoder" then I used option 3 
on "stopmotion"under the configure UI menu, and it produces a encoder 
line like this

mencoder -ovc lavc -lavcopts vcodec=msmpeg4v2:vpass=1:$opt -mf 
type=jpg:fps=5 -o "$VIDEOFILE" "mf://$IMAGEPATH/*.JPG"

The only part I changed is *fps=* down to 5 from 8. Im assuming the 
input file list is in $opt in that line?

-Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20100723/4b6a5a94/attachment.htm 


More information about the ubuntu-uk mailing list