Facing a strange problem!
I have a few mov files that I want to convert to SWF. Have a web interface to upload the files, and then php calls ffmpeg to do the conversion. This thing works fine if I upload files from Windows. But if I upload an mov from Mac, it processes most of the file, and then hangs on the last few bytes. The server is Linux where ffmpeg is running.
If I upload the same mov file from Windows, the conversion works fine.
Here’s the output of ffmpeg when it hangs:
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --enable-mp3lame --enable-libogg --enable-vorbis --enable-theora --enable-faadbin --enable-xvid --enable-a52 --enable-a52bin --enable-pp --enable-shared --enable-pthreads --enable-dc1394 --enable-gpl --disable-strip --extra-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -fasynchronous-unwind-tables
libavutil version: 49.0.0
libavcodec version: 51.7.0
libavformat version: 50.3.0
built on Mar 1 2006 05:30:05, gcc: 3.2.3 20030502 (Red Hat Linux 3.2.3-53)
Input #0, mov,mp4,m4a,3gp,3g2, from 'work_3_4.mov':
Duration: 00:00:05.6, start: 0.000000, bitrate: 171 kb/s
Stream #0.0(eng): Audio: qdm2, 22050 Hz, stereo
Stream #0.1(eng), 11.99 fps(r): Video: h263, yuv420p, 240x180
Output #0, swf, to 'work_3_4.swf':
Stream #0.0, 11.99 fps(c): Video: flv, yuv420p, 240x180, q=2-31, 200 kb/s
Stream #0.1: Audio: mp3, 22050 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Press [q] to stop encoding
bad superblock typeize= 134kB time=4.0 bitrate= 274.2kbits/s
bad superblock type
bad superblock type
bad superblock type
I searched for the “bad superblock type” and could find it only in the QDM source. What am I doing wrong?
The mov file plays well on the Mac as such.
hi friend can u tell me code how convert video file in flash in windows
There are many converters available. A Google search for “avi to flv” or similar will turn up many results. If you have the Flash 8 even comes with a FLV video encoder itself.
These are all applications, and not ActionScript codes though.