[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] SDL_ffmpeg vs ffmpeg



Well I fed black_duck.mov to my Windows build of ffmpeg and got a .avi file out. I don't know if ffmpeg actually understood the codec, or simply swapped wrappers. So I have made the output file available at http://www3.telus.net/len_l/pygame/experimental/black_duck.avi . Here is ffmpeg's output:

>ffmpeg -i black_duck.mov black_duck.avi
FFmpeg version SVN-r18680, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-cross-compile --cross-prefix=i586-mingw32msvc- --targe t-os=mingw32 --prefix=~/pygame/mingw32 --enable-shared --enable-memalign-hack
 libavutil     50. 3. 0 / 50. 3. 0
 libavcodec    52.27. 0 / 52.27. 0
 libavformat   52.32. 0 / 52.32. 0
 libavdevice   52. 2. 0 / 52. 2. 0
 libswscale     0. 7. 1 /  0. 7. 1
 built on Apr 25 2009 15:05:22, gcc: 4.2.1-sjlj (mingw32-2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'black_duck.mov':
 Duration: 00:00:07.50, start: 0.000000, bitrate: 443 kb/s
   Stream #0.0(eng): Video: mjpeg, yuv420p, 320x240, 6 tbr, 6 tbn, 6 tbc
Output #0, avi, to 'black_duck.avi':
Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240, q=2-31, 200 kb/s, 6 tbn, 6 tbc
Stream mapping:
 Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=   45 fps= 28 q=6.5 Lsize=     278kB time=7.50 bitrate= 303.1kbits/s
video:271kB audio:0kB global headers:0kB muxing overhead 2.443930%

I gather it understood it. For some reason ffplay didn't build for Windows. But the linux version I built did play the Motion-JPEG file. So it looks like the format will be supported for free.

Lenard


Alexandre Quessy wrote:
Hi everyone,
Don't worry, Tyler and Lenard. I am glad if I can help you guys
developing a better support for such formats in Pygame. I really think
it worths it for the reason I mentioned earlier.

Here is an example of a motion-JPEG movie file :
http://toonloop.com/static/black_duck.mov It was made with ToonLoop, a
Python application using Pygame. (exporting JPEG and using mencoder to
convert it to Motion-JPEG)

I will most likely set up a Windows box this summer, for
cross-platform development. For now, I only have Linux and Mac
computers around. I can test on those platform any code you ask me to
test. I know C and C++ as well.

Cheers,

a

2009/5/12 Lenard Lindstrom <len-l@xxxxxxxxx>:
Hi Tyler,

If licensing permits, an existing ffplay could be included with Pygame on
Windows. It would likely support more codecs than anything I would build.
For some reason my first build attempt omitted ffplay.

Lenard

Tyler Laing wrote:
Lenard, Rene, and anyone else that is concerned, I was considering that
ffplay could be distributed as a statically built executable, so the movie
module can, in the worst case scenario, fall back on a working movie player
that it knows about, and exactly where it is located. This lessens the need
for the user to have vlc, mplayer, or any other video player installed.

-