Maxsmi
10th December 2010, 10:01
I'm trying to partally reencode a file with WMV1 video and have some difficulties:
after merging reencoded part with the source file part, the second part can't be correctly decoded.
I used 2 following decoders for tests
1) WMVideo 9 Encoder DMO (which is a part of Windows Media Format 9 Runtime, windows XP)
2) WMVideo 7/8 Encoder DMO (wmf12 runtime, Windows 7)
Using ffmpeg I found that the key frame picture header includes the parameter "slice count"(located in 8th to 12th bits from the beginning of the header; msmpeg4.c ), which is the quantity of slices in current gop's frames,
and this parameter is critical for the decoder to play the file.
The first encoder produce the stream with only 1 slice, but the second encoder gives 4 slices.
So the first question:
Is there any ability to set this parameter to the encoder DMO( and also retrieve it somehow from the decoder or demuxer )?
And one more thing is that this parameter is included in every key frame(and should be applied to the current GOP, I think).
However the decoder seems to ignore all the following key-frame picture header values of this parameter except the very first key-frame (the very first value applied to the whole file).
The next question:
are there any encoder parameters that would force the decoding DMO to read and apply "Slice count" value for current GOP?
after merging reencoded part with the source file part, the second part can't be correctly decoded.
I used 2 following decoders for tests
1) WMVideo 9 Encoder DMO (which is a part of Windows Media Format 9 Runtime, windows XP)
2) WMVideo 7/8 Encoder DMO (wmf12 runtime, Windows 7)
Using ffmpeg I found that the key frame picture header includes the parameter "slice count"(located in 8th to 12th bits from the beginning of the header; msmpeg4.c ), which is the quantity of slices in current gop's frames,
and this parameter is critical for the decoder to play the file.
The first encoder produce the stream with only 1 slice, but the second encoder gives 4 slices.
So the first question:
Is there any ability to set this parameter to the encoder DMO( and also retrieve it somehow from the decoder or demuxer )?
And one more thing is that this parameter is included in every key frame(and should be applied to the current GOP, I think).
However the decoder seems to ignore all the following key-frame picture header values of this parameter except the very first key-frame (the very first value applied to the whole file).
The next question:
are there any encoder parameters that would force the decoding DMO to read and apply "Slice count" value for current GOP?