Hi, Libav developers
I'm not sure this is a bug. But I got some problems with output-example
authentically.
Run output-example like this: ./output-example output.wmv
The example program outputs a '.wmv' file, but this file cannot be played by
some media player, such as Windows Media Player. However, avplay can play it.
If I fix the code like this in order to ignore audio channel, the file
'output.wmv' was played well.
adding
fmt->audio_codec = CODEC_ID_NONE;
before
if (fmt->audio_codec != CODEC_ID_NONE) {
audio_st = add_audio_stream(oc, fmt->audio_codec);
}
If the media file is good, it can be preview when you select the media file in
Windows XP explorer.
Otherwise, no matter what format the example program makes, the
c->coded_frame->pts in write_video_frame() function always be
0x8000000000000000. I'm not sure this reason cause the media file can be played
well. But I still have no way to fix it.
Anyway, if add audio channel, the media file can'nt be played well. If ignore
audio channel, it can be played well. I don't know why.
However, the early version such as ffmpeg-0.5 does not have this problem.
Thanks,
Best Regards!
2012-09-04
Mr. Leung
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api