PDA

View Full Version : VP7 problems


trevorjharris
2nd May 2007, 15:12
I have used Virtualdub and the VP7 codec to encode an avi file. This plays correctly in the TrueCast player but Windows Media Player just plays a blank screen.

Please can you tell me how I convert the flv avi file to an flv file.

regards trevor

shae
5th May 2007, 16:54
Is the problem playing back the file in WMP, or creating an FLV that works with Flash?

Flash cannot play VP7, it's VP6 that is supported.

To convert an AVI to FLV you can try remultiplexing it with ffmpeg.

Stat
15th June 2007, 19:47
you have to mux the vp7 video into an flv container...u can do this(????) with ffmpeg...but I have yet to successfully complete a VP6/7 flv. My attempts resulted in an flv which displays nothing but a blank screen of proper dimensions. I think it has to do with improper labeling of the decoder within the media stream. Encoding an fla using ffmpeg and Spark returns playable results however, I would like to instead use vp6/7. Earlier this morning I made multiple attempts with On2's Flix for Flash video (http://www.on2.com/products/flix/) and obtained really bad results. I am using an avs script to stream an ImageSource composed of 900 3dsmax stills at 30fps, of which may have been an issue for flix however, I also made an attempt with an intermediate Huffy avi. If anyone has any suggestions, I'd greatly appreciate them.

Resources:
Procedure (http://sh0dan.blogspot.com/2006/09/command-line-flash-8-flv-encoding.html)
Troubleshooting (http://forum.doom9.org/showthread.php?t=123788&highlight=vp7+flv)

Edit:
The archive available on sh0dan's blog of ffmpeg with the flv patch is corrupt, so I've been using the latest win32 build found on the sites listed below. If time permits, I may attempt a compile from source and include the flv patch. Is the flv mux patch already incorporated in the latest ffmpeg builds??
most recent (http://ffdshow.faireal.net/mirror/ffmpeg/)
recent (http://arrozcru.no-ip.org/ffmpeg_builds/)

Yong
15th June 2007, 20:18
i think its already incorporated with ffmpeg,
http://svn.mplayerhq.hu/ffmpeg/trunk/libavformat/flvenc.c?r1=7382&r2=7399&sortby=date
rev 7399

Stat
15th June 2007, 20:29
Would you suggest I attempt an encode using ffmpeg and vp6/7 instead of writing out an avi and then muxing it into an flv container?

Borked (sh0dan's procedure):
1) encode video to a vp6 avi
2) mux vp6 stream to flv by:
ffmpeg -ab 128 -ac 2 -ar 44100 -y -i "temp.avi" -vcodec copy -i "example.avs" "example.flv"

New'n'Improved (1pass):
ffmpeg -i "example.avs" -f flv -vcodec vp6 -b xxx "example.flv"

Notes:
I butchered that ffmpeg command line...just filling in the blanks from what I remember doing the other night. Earlier I attempted an ffmpeg vp6, vp6f, and vp7 encode similar to that listed above and was prompted with an error which I cant remember off hand...I'll post it when I return home.

Edit:
"Unsupported codec for output stream #0.0"

Sirber
17th June 2007, 18:01
@Stat

IIRC libav only have vp6 decoder, not encoder.