why doesn't ffmpeg have a xvid decoder? it has an xvid encoder but how can I decode the stream? The file I'm referring to is 'libavcodec/xvidff.c', or is the decoder somewhere else? and please, CC me, I'm not on this list. tom
Tomas Carnecky wrote:
why doesn't ffmpeg have a xvid decoder? it has an xvid encoder but how can I decode the stream?
The file I'm referring to is 'libavcodec/xvidff.c', or is the decoder somewhere else?
and please, CC me, I'm not on this list.
tom
FFmpeg has a mpeg4-asp decoder which xvid is an implementation of. So ffmpeg can decode xvid encoded material. So try to descibe your problem if any in more detail. MvH Benjamin Larsson -- "incorrect information" is an oxymoron. Information is, by definition, factual, correct.
Benjamin Larsson wrote:
Tomas Carnecky wrote:
why doesn't ffmpeg have a xvid decoder? it has an xvid encoder but how can I decode the stream?
FFmpeg has a mpeg4-asp decoder which xvid is an implementation of. So ffmpeg can decode xvid encoded material. So try to descibe your problem if any in more detail.
I'm saving the video stream in my own file format, the first eight bytes of the file are '(uint64_t) CODEC_ID_XXX' and the decoder takes this ID and tries to create the decoder. This fails if the stream was created with CODEC_ID_XVID because there is no decoder for this codec. It works fine with CODEC_ID_MPEG4 or CODEC_ID_FFV1 and a few others I've tested so far. tom
Tomas Carnecky wrote:
Benjamin Larsson wrote:
Tomas Carnecky wrote:
why doesn't ffmpeg have a xvid decoder? it has an xvid encoder but how can I decode the stream?
FFmpeg has a mpeg4-asp decoder which xvid is an implementation of. So ffmpeg can decode xvid encoded material. So try to descibe your problem if any in more detail.
I'm saving the video stream in my own file format, the first eight bytes of the file are '(uint64_t) CODEC_ID_XXX' and the decoder takes this ID and tries to create the decoder. This fails if the stream was created with CODEC_ID_XVID because there is no decoder for this codec. It works fine with CODEC_ID_MPEG4 or CODEC_ID_FFV1 and a few others I've tested so far.
tom
Maybe you need to use enable-gpl when you configure the ffmpeg code. MvH Benjamin Larsson -- "incorrect information" is an oxymoron. Information is, by definition, factual, correct.
Benjamin Larsson wrote:
Tomas Carnecky wrote:
Benjamin Larsson wrote:
Tomas Carnecky wrote: FFmpeg has a mpeg4-asp decoder which xvid is an implementation of. So ffmpeg can decode xvid encoded material. So try to descibe your problem if any in more detail.
I'm saving the video stream in my own file format, the first eight bytes of the file are '(uint64_t) CODEC_ID_XXX' and the decoder takes this ID and tries to create the decoder. This fails if the stream was created with CODEC_ID_XVID because there is no decoder for this codec. It works fine with CODEC_ID_MPEG4 or CODEC_ID_FFV1 and a few others I've tested so far.
Maybe you need to use enable-gpl when you configure the ffmpeg code.
AFAICS there is no decoder for CODEC_ID_XVID, so enable-gpl won't help. If XVID and MPEG4 are compatible, I should be fine to open the MPEG4 decoder if I see that the stream has been encoded using XVID, right? tom
Tomas Carnecky wrote:
Benjamin Larsson wrote:
[...]
AFAICS there is no decoder for CODEC_ID_XVID, so enable-gpl won't help. If XVID and MPEG4 are compatible, I should be fine to open the MPEG4 decoder if I see that the stream has been encoded using XVID, right?
tom
I think so, try. MvH Benjamin Larsson -- "incorrect information" is an oxymoron. Information is, by definition, factual, correct.
sorry for the confusion benjamin, xvid produces equally bad video. The problem is that MPEG4 crashes when I don't specify the framerate, whereas all other codecs I've tried work fine, and when I specify the framerate the quality goes down, and setting `c->bitrate = 400000` doesn't help at all. tom
participants (2)
-
banan@student.ltu.se -
tom@dbservice.com