<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><BR></DIV>
<DIV>> [Automatic answer: RTFM (read DOCS, FAQ), also read
DOCS/bugreports.html]<BR>> swchen wrote:<BR>> > I
have got a stream encoded with ffmpeg, with file name .m4v,<BR>> > i can
sure it is a raw bitstream without any avi header<BR>> > i can decode it
using ffmpeg, but how to play it using Mplayer??<BR>> > <BR>> >
./mplayer movie.m4v<BR>> > ========= sorry, this file format is not
recognized/supported ====<BR>> > <BR>> > but i can sure it can be
understood by libavcodec, how to solve this<BR>> > problem??<BR>>
<BR>> It may be understood by libavformat, but AFAIK, libavcodec does
encoding <BR>> and decoding of video and audio at the frame or sample level;
it doesn't <BR>> know about stream formats. MPlayer doesn't use libavformat,
since it has <BR>> its own demuxers.</DIV>
<DIV><BR>thank you, i am also sure ffmpeg use libavformat to find the correct
codec to decode it.</DIV>
<DIV> </DIV>
<DIV>Is is possible for Mplayer to support MPEG4-ES decoding, as i know, </DIV>
<DIV>mpeg4 is the same mpeg1/mpeg2 bitstream, they don't need globe header,
</DIV>
<DIV>we can decode mpeg1/2 bitstream start from anywhere in the bitstream,
it will search </DIV>
<DIV>next frame start code and start to decode it. </DIV>
<DIV> </DIV>
<DIV>Why Mplayer can play a MPEG2 elementary stream, but can't play a MPEG4
</DIV>
<DIV>elementary stream?? If at this time, Mplayer can't decode a
MPEG4-ES, we can submit</DIV>
<DIV>patches to it. But i must know is it true first??</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>> You should be able to use ffmpeg itself to put the <BR>>
video in the m4v into an AVI. Then, MPlayer can read it.<BR>> <BR>>
Jonathan Rogers</DIV>
<DIV> </DIV>
<DIV>and if i use ffmpeg to convert the mpeg4-ES into avi, ffmpeg will decode it
first then</DIV>
<DIV>encode it again with avi header . </DIV>
<DIV>(command:--> ffmpeg -i movie.m4v movie.avi) of course, this command
works fine.</DIV>
<DIV>But it is waste time and video quallity will be degraded!</DIV>
<DIV> </DIV>
<DIV>someone tell me to use </DIV>
<DIV>---> ffmpeg -i movie.m4v -vcodec copy movie.avi</DIV>
<DIV>but using this command, it can't played correctly using mplayer, even
ffmpeg itself can't</DIV>
<DIV>decode the copyed movie.avi correclty. It's strange!! I think the avi
header and because</DIV>
<DIV>chunk length is fixed to 2048. </DIV>
<DIV> </DIV>
<DIV>I have asked this in ffmpeg, but it seems no one answer. </DIV>
<DIV>other command usage ?? </DIV>
<DIV> </DIV>
<DIV>swchen</DIV>
<DIV><FONT size=2></FONT> </DIV></BODY></HTML>