[MPlayer-dev-eng] [PATCH] NuppelVideo 3-pass encoding with mencoder
Arpi
arpi at thot.banki.hu
Mon Sep 30 23:12:55 CEST 2002
Hi,
> this litle patch fixes two following bugs/problems:
>
> (1) PROBLEM: When using 'frameno.avi' (3-pass encoding process) with
> NuppelVideo files, the demuxer reads audio packets, but noone uses
> them, thus after ~47sec the buffer gets full and encoding is aborted.
> (perhaps other file formats may also have this problem)
>
> SOLUTION: demuxer->audio->id is set to -2 when using 'frameno.avi', so
> in that case, just skip audio packets.
actually every demuxer should skip every packet if demuxer->aidio (or video)
-> id != packet_id (but set 'id' to first packet's id if 'id' was -1)
> (2) PROBLEM: When processing NuppelVideo files with mencoder,
> remaining time, estimated size, etc. fields are not computed.
>
> SOLUTION: Update demuxer->filepos variable when reading the packets.
correct
patch applied
> + int want_audio = (demuxer->audio)&&(demuxer->audio->id!=-2);
demuxer->audio will never be NULL, no need to check
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
More information about the MPlayer-dev-eng
mailing list