You should check AVPacket flags carefully.
Full explanation is here: https://trac.ffmpeg.org/ticket/6343

Regards,
Yurii

сб, 6 нояб. 2021 г. в 19:25, william keeling <[email protected]>:

> why does AAC return -1024 for the first packet back from the AAC encoder?
> The frames send to the encoder have valid PTS.  Second packet has 0 PTS and
> then normally increasing.
>
> What should be done with this packets? Should I be doing anything
> different to have "correct" PTS from frame 1?
>
> Thanks,
> William
> _______________________________________________
> Libav-user mailing list
> [email protected]
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> [email protected] with subject "unsubscribe".
>
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to