> If you want to save mpeg2video in an MPEG PS file, you do not need to > change anything in the encoder: you just need to use a different > output format. > Right now, you are probably using the "mpeg2video" AVOutputFormat; try > using the "mpeg", "vob", "dvd", or "svcd" format instead.
At the moment I am not using libavformat at all. The only two structures I am using to configure the encoder is AVCodecContext and AVCodec and then calling avcodec_encode_video(). The question is do I set AVOutputFormat before the encode or can I do it after when I save it to file? > I am not sure if it is possible to mux mpeg video in asf... > Anyway, I do not think mpeg2 video supports 10fps. > If you want to be compatible with wmp, you should probably > use the "msmpeg4v2" video codec (which, I suspect, supports > 10fps). No, mpeg2 does not support 10fps, mpeg4 does. But I did read you could use some tricky method in mpeg2 to achieve any frame rate with repeat header option. I don't see why it would not be possible to mux mpeg I thought the whole idea of container formats where separate from codecs. But I will probably move to msmpeg4v3 anyway. BTW, the link you gave only uses .avi I read Microsoft's preferred format is .asf. "The Advanced Systems Format (ASF) is the preferred Windows Media file format." http://support.microsoft.com/kb/316992 Quoting Luca Abeni <[EMAIL PROTECTED]>: > Hi Jordan, > > Jordan Dressman wrote: >> I have been trying to play mpeg2video in wmp11 and I have learned that >> the output of the mpeg2video codec is in mpeg-es format and wmp11 needs >> it to be in mpeg-ps format. Is there an easy option I can set in the >> encoder, or do I need to convert mpeg-es to mpeg-ps as I'm saving to >> file using lavf? > > If you already have an MPEG ES file and you want to convert it to a PS, > you can use the "ffmpeg" program (-vcodec copy). > > >> I am a complete beginner on muxing, all I want to achieve is to send >> some encoded data from computer A to B. Then B saves the encoded data >> to a file in a format that wmp11 can play such as mpeg-ps, avi, or asf. > > Have a look at http://ffmpeg.mplayerhq.hu/compat.html > > >> Another side question if I save mpeg2video in asf format is it possible >> to change the frame rate of 10 fps because mpeg2video is limited to >> only a few frame rates that are not useful to me? > > > > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
