[vuhung@aoclife tmp]$ time ffmpeg -i ~serendipity/public_html/Dress.avi Dress.flv
FFmpeg version SVN-r13202, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --prefix=/home/vuhung
libavutil version: 49.6.0
libavcodec version: 51.57.0
libavformat version: 52.13.0
libavdevice version: 52.0.0
built on May 20 2008 16:41:31, gcc: 4.1.2 20070626 (Red Hat 4.1.2-14)
Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (2997/125)
Input #0, avi, from '/var/www/home/serendipity/public_html/Dress.avi':
Duration: 01:50:49.10, start: 0.000000, bitrate: 883 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 700x272 [PAR 1:1 DAR 175:68], 23.98 tb(r)
Stream #0.1: Audio: mp3, 44100 Hz, stereo, 112 kb/s
File 'Dress.flv' already exists. Overwrite ? [y/N] y
Output #0, flv, to 'Dress.flv':
Stream #0.0: Video: flv, yuv420p, 700x272 [PAR 1:1 DAR 175:68], q=2-31, 200 kb/s, 23.98 tb(c)
Stream #0.1: Audio: adpcm_swf, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=159365 fps=184 q=31.0 Lsize= 466006kB time=6646.9 bitrate= 574.3kbits/s
video:174077kB audio:287049kB global headers:0kB muxing overhead 1.058247%
real 15m14.908s
user 14m6.105s
sys 0m15.406s
[vuhung@aoclife tmp]$ ls -lh Dress.flv
-rw-rw-r-- 1 vuhung vuhung 456M 5月 20 16:58 Dress.flv
[vuhung@aoclife tmp]$ ls -lh ~serendipity/public_html/Dress.avi
-rw-rw-r-- 1 serendipity serendipity 701M 4月 17 11:58 /var/www/home/serendipity/public_html/Dress.avi
[vuhung@aoclife tmp]$
2008/05/20
2008/05/16
Tip with getrusage
#include
# getrusage is a POSIX funtion
# http://www.opengroup.org/onlinepubs/000095399/functions/getrusage.html
static struct rusage rusage_before;
static struct rusage rusage_after;
void
startTimer(void)
{
getrusage(RUSAGE_SELF, &rusage_before);
}
l_float32
stopTimer(void)
{
l_int32 tsec, tusec;
getrusage(RUSAGE_SELF, &rusage_after);
tsec = rusage_after.ru_utime.tv_sec - rusage_before.ru_utime.tv_sec;
tusec = rusage_after.ru_utime.tv_usec - rusage_before.ru_utime.tv_usec;
return (tsec + ((l_float32)tusec) / 1000000.0);
}
登録:
投稿 (Atom)