View Full Version : Unpacking a packed bitstream w/o reencode


k0r0n4
4th November 2004, 02:05
Is there a way to unpack a packed Xvid bitstream without reencoding and losing quality? Normally it wouldn't matter except playback is somewhat jerky when the bitstream is packed.

I *did* find a temporary solution by serving the video via AviSynth, but that caused the audio to become desynchronized. However I was able to regain synch when I put the audio through the DS filter and the video through the VFW codec. The script looks like this:

AudioDub(AviSource("video.avi"),DirectShowSource("video.avi"))


However it's rather inconvienient to have to write an AVS file every time I want to watch a video file with a packed bitstream. So I guess my question is, will opening the previous script in VDub and remuxing into a new file via direct stream copy A) fix the frame order by "unpacking" the bitstream and B) not cause any loss in quality.

I'm pretty confident that there won't be any loss in quality (except maybe in the audio, and I'd instead just use "AviSource("video.avi")" when fixing the frame order and hope synch isn't lost), but I'm not so sure if the frame order would be fixed. Thanks in advance!

Krismen
4th November 2004, 02:27
Is there a way to unpack a packed Xvid bitstream without reencoding and losing quality?
Look for MPEG4 Modifier (http://forum.doom9.org/showthread.php?s=&threadid=78050&highlight=mpeg4+and+modifier).

k0r0n4
4th November 2004, 02:42
Thanks, it works very well :D