[Ffmpeg-devel] Bug in FLV video size recognition?
deadhead
deadhead
Thu Jan 25 15:54:57 CET 2007
2007/1/23, Michael Niedermayer <michaelni at gmx.at>:
> Hi
...snip...
First of all thank you for all your answers .
Unfortunately I'm not so skilled to fully understand what have you proposed :P
The fact that the video is misrecognized, due to some bad info in the
file make me happy because at least now I know where the problem is:
in the program that has generated that video.
That fact make me even unhappy because from this video I have to
generate 2 other videos. One with reduced quality and the other with
an impressed logo, done using imlib2.
I create the low quality version with
ffmpeg -y -i 1172.flv -acodec mp3 -ar 22050 -ab 48 -b 256k 1172_lowq.flv
http://deadhead.altervista.org/ffmpeg/1172_lowq.flv
and this is the response from ffmpeg
ffmpeg -i 1172_lowq.flv
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
configuration: --prefix=/usr/local --enable-mp3lame --enable-faac
--enable-faad --enable-gpl --enable-pp --enable-pthreads
--cpu=pentium4 --disable-altivec --disable-bktr --disable-debug
--disable-dv1394 --disable-v4l --disable-v4l2 --disable-audio-oss
--disable-audio-beos --disable-mpegaudio-hp --disable-ipv6
libavutil version: 49.2.0
libavcodec version: 51.28.0
libavformat version: 51.7.0
built on Jan 20 2007 10:49:07, gcc: 4.1.2 20061028 (prerelease)
(Debian 4.1.1-19)
Seems stream 0 codec frame rate differs from container frame rate:
1000.00 (1000/1) -> 25.00 (25/1)
Input #0, flv, from '1172_lowq.flv':
Duration: 00:00:17.4, start: 0.000000, bitrate: 48 kb/s
Stream #0.0: Video: flv, yuv420p, 384x384, 25.00 fps(r)
Stream #0.1: Audio: mp3, 22050 Hz, mono, 48 kb/s
As you can see the output alway show the wrong size, but from the web,
the view of this video is perfect.
Different affair is the video with logo: I create it with:
ffmpeg -y -i 1172.flv -vhook '/usr/local/lib/vhook/imlib2.so -x
W-112-2 -y 2 -i /tmp/watermark.png' -acodec mp3 -ar 22050 -ab 48 -b
320k 1172_logo.flv
http://deadhead.altervista.org/ffmpeg/1172_logo.flv
And this is the info from ffmpeg:
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
configuration: --prefix=/usr/local --enable-mp3lame --enable-faac
--enable-faad --enable-gpl --enable-pp --enable-pthreads
--cpu=pentium4 --disable-altivec --disable-bktr --disable-debug
--disable-dv1394 --disable-v4l --disable-v4l2 --disable-audio-oss
--disable-audio-beos --disable-mpegaudio-hp --disable-ipv6
libavutil version: 49.2.0
libavcodec version: 51.28.0
libavformat version: 51.7.0
built on Jan 20 2007 10:49:07, gcc: 4.1.2 20061028 (prerelease)
(Debian 4.1.1-19)
Seems stream 0 codec frame rate differs from container frame rate:
1000.00 (1000/1) -> 25.00 (25/1)
Input #0, flv, from '1172_logo.flv':
Duration: 00:00:17.4, start: 0.000000, bitrate: 96 kb/s
Stream #0.0: Video: flv, yuv420p, 384x384, 25.00 fps(r)
Stream #0.1: Audio: mp3, 44100 Hz, mono, 96 kb/s
As you can see, the fact that the input video present borked header
info, make the video_logo appear ... borked too!
According to you is there any way to get a normal video-with-logo,in
this situation?
cheers
deadhead
More information about the ffmpeg-devel
mailing list