Re: Using GetNextSample/WriteStreamSample to cut from a wmv file
- From: "Alessandro Angeli" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 6 Mar 2009 10:14:07 +0100
From: "Dazster"
Thanks for that explanation - it would certainly explain
the behaviour I have been seeing. I'm interested to know
more about your suggestion of "re-encoding the video in
between the first 2 keyframes". Can you describe what
this would achieve and do you have some sample code that
I could use for this?
If frame F is a delta frame in between keyframes K1 and K2,
it is not possible to cut more precisely than on K1 or K2
without re-encoding the sequence. If you need frame-precise
cutting, you need to decode the frames from K1 up to K2 - 1
and re-encode the ones from F to K2 - 1, throwing out the
ones from K1 to F - 1. You can do that by re-encoding the
whole clip or by re-encoding only the minimum number of
frames (much faster and with a minimal generational quality
loss).
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
.
- Prev by Date: HD video encoding using WME
- Next by Date: Windows Media Services plugin
- Previous by thread: HD video encoding using WME
- Next by thread: Windows Media Services plugin
- Index(es):
Relevant Pages
|