On 8/22/07, David McNab <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Further to earlier announcement of the 'framerate' script (a bit of
> python glue which does some plumbing on yuvmotionfps and ffmpeg to give
> a front end which lets you convert video of one format with one
> framerate to same or different format with different framerate, with
> motion interpolation).
>
> The version I posted earlier had a bug, resulting from me failing to
> drain the stderr streams of the processes in-flight. This was causing
> big conversion jobs to hang.
>
> New version with this bug fixed is up at:
>
>   www.freenet.org.nz/misc/framerate.py
>
> Cheers
> David
>

Hi,

First of all, many thanks for finding this and explaining how to use
it. I used your instructions to great effect yesterday to smooth a 10
fps animation into 25 fps and the results are remarkable. I have tried
your python script also but I couldn't figure out how to get it
working.

Thanks,
goibhniu

In case you have time to look into it, here's the output:

$ framerate.py -v -r 25 -b 2000 -f mov -vcodec mpeg4 input.avi outfile.mov

process 1 command:
  ffmpeg -i input.avi -f yuv4mpegpipe -b 5000 -vcodec pgmyuv - |
yuvmotionfps -r 25:1 -b 8 -p 8 -t 50 -s 8 -v
process 2 command:
  ffmpeg -y -i - -b 2000 -r 25.0 -vcodec mpeg4 -f mov outfile.mov
Converting video: .
____________
Process1 Error Output:
_______________
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib64
--shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-static
--enable-shared --cc=x86_64-pc-linux-gnu-gcc --disable-altivec
--disable-debug --disable-v4l --disable-v4l2 --disable-dv1394
--disable-network --disable-opts --enable-libmp3lame
--enable-libvorbis --enable-libogg --enable-libtheora --enable-libogg
--enable-x11grab --enable-libogg --enable-gpl --enable-pp
--disable-strip
  libavutil version: 49.4.0
  libavcodec version: 51.40.2
  libavformat version: 51.11.0
  built on Apr 14 2007 23:14:12, gcc: 4.1.1 (Gentoo 4.1.1-r3)
Input #0, avi, from 'input.avi':
  Duration: 00:00:07.2, start: 0.000000, bitrate: 18890 kb/s
  Stream #0.0: Video: mjpa / 0x61706A6D, 720x576, 10.00 fps(r)
Output #0, yuv4mpegpipe, to 'pipe:':
  Stream #0.0: Video: pgmyuv, yuv420p, 720x576, q=2-31, 5 kb/s, 10.00 fps(c)
Stream mapping:
  Stream #0.0 -> #0.0
Unsupported codec (id=0) for input stream #0.0
   INFO: [yuvmotionfps] -------------------------------------------------
   INFO: [yuvmotionfps]    Motion-Compensating-Frame-Rate-Converter
   INFO: [yuvmotionfps] -------------------------------------------------
   INFO: [yuvmotionfps] New Frame rate 25:1
   INFO: [yuvmotionfps] Block size: 8
   INFO: [yuvmotionfps] Search radius 8
   INFO: [yuvmotionfps] Approximation threshold 50
   INFO: [yuvmotionfps] Scene change threshold: 800 percent
   INFO: [yuvmotionfps] SETTING EXTENDED MMX for MOTION!
**ERROR: [yuvmotionfps] Couldn't read YUV4MPEG header: system error
(failed read/write)!

Process2 Error Output:
_______________
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --libdir=/usr/lib64
--shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-static
--enable-shared --cc=x86_64-pc-linux-gnu-gcc --disable-altivec
--disable-debug --disable-v4l --disable-v4l2 --disable-dv1394
--disable-network --disable-opts --enable-libmp3lame
--enable-libvorbis --enable-libogg --enable-libtheora --enable-libogg
--enable-x11grab --enable-libogg --enable-gpl --enable-pp
--disable-strip
  libavutil version: 49.4.0
  libavcodec version: 51.40.2
  libavformat version: 51.11.0
  built on Apr 14 2007 23:14:12, gcc: 4.1.1 (Gentoo 4.1.1-r3)
pipe:: Unknown format

_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Reply via email to