On Apr 28, 2005, at 10:46 AM, Vito Pinto wrote:
Rodrigo Severo ha scritto:
Hi,
I'm enconding some raw yuv video with ffmpeg but my final video has a horizontal sync issue (it slides to the right) and really strange colors (it's almost completely black&white with a few strips of bright colors in the top area).
I create the raw yuv video with transcode:
/usr/local/transcode-beta/bin/transcode -i /dados01/videos/originais/globo_20050414_155300_160800.avi -y raw,null --ext none -o /dados01/videos/clipes/temp.yuv -c 00:00:35-00:02:36,00:04:16-00:05:20
Here is a selection of transcode's output:
transcode v1.0.0beta3 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg [transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms [transcode] auto-probing source /dados01/videos/originais/globo_20050414_155300_160800.avi (ok) [transcode] V: import format | DivX RIFF data, AVI (V=ffmpeg|A=mp3) [transcode] V: import frame | 320x240 1.33:1 [transcode] V: bits/pixel | 1.562 [transcode] V: decoding fps,frc | 15.000,13 [transcode] V: Y'CbCr | YV12/I420 . . . [export_raw.so] codec=YV12, fps=15.000, width=320, height=240
I want to encode this video with ffmpeg. I'm using:
/usr/local/ffmpeg-cvs/bin/ffmpeg -f rawvideo -pix_fmt yuv420p -s 320x240 -r 15 -i /dados01/videos/clipes/temp.yuv -an -vcodec msmpeg4 -f avi /dados01/videos/clipes/final.avi
Here is ffmpeg's output:
ffmpeg version 0.4.9-pre1, build 4752, Copyright (c) 2000-2004 Fabrice Bellard configuration: --prefix=/usr/local/ffmpeg-cvs --enable-mp3lame --enable-faad --enable-faac --enable-xvid --enable-gpl built on Apr 7 2005 13:57:09, gcc: 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) Input #0, rawvideo, from '/dados01/videos/clipes/temp.yuv': Duration: N/A, bitrate: N/A Stream #0.0: Video: rawvideo, yuv420p, 320x240, 15.00 fps Output #0, avi, to '/dados01/videos/clipes/final.avi': Stream #0.0: Video: msmpeg4, 320x240, 15.00 fps, q=2-31, 200 kb/s Stream mapping: Stream #0.0 -> #0.0 [msmpeg4 @ 0x8363174]removing common factors from framerate Press [q] to stop encoding [msmpeg4 @ 0x8363174]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x8363174]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x8363174]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x8363174]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x8363174]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x8363174]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x8363174]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x8363174]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x8363174]warning, cliping 2 dct coefficents to -127..127 [msmpeg4 @ 0x8363174]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x8363174]warning, cliping 1 dct coefficents to -127..127 frame= 2775 q=0.0 Lsize= 6223kB time=185.0 bitrate= 275.6kbits/s video:6152kB audio:0kB global headers:0kB muxing overhead 1.152064%
What's wrong with my commands?
Rodrigo Severo
-------------------------------------------------------------
Don't anthropomorphize computers, they don't like it!
-------------------------------------------------------------
Rodrigo Severo F?brica de Id?ias rodrigo at fabricadeideias.com SBS - Ed. Empire Center - Sala 1301 - Cobertura CEP: 70070-904 Fone: (61) 321 1357 Fax: (61) 223 1712
-------------------------------------------------------------
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
I got the same issue coding some raw video file . I solved it specifing -f yuv4mpegpipe as input format in ffmpeg.
yuv4mpeg != raw. Feeding raw video to -f yuv4mpegpipe should not be possible. yuv4mpeg is a really nice format; if transcode supports it use it instead of raw. Otherwise I cannot see any errors in your command prompt. Try playing the raw .yuv file with mplayer and see if it plays OK. Also you can try wrapping it in an avi container instead of using raw. /Roine