[Libav-user] MPEGTS and pts/dts

RichardP tuxbox.guru at gmail.com
Sat Oct 29 13:58:29 CEST 2011

Found the one bug... referenced the Video stream index when setting Audio
data... FAIL :D

        pkt.flags |= AV_PKT_FLAG_KEY;
        pkt.size = rc;
      *  pkt.stream_index= subs_user->transcode->output.video_st->index;*
        pkt.data= subs_user->transcode->output.audio_outbuf;
        int ret = av_write_frame(subs_user->transcode->output.oc, &pkt);

Next is to get Audio/Video synchronised... currently audio is way out .. but
adding the Audio packet buffering should help


View this message in context: http://libav-users.943685.n4.nabble.com/MPEGTS-and-pts-dts-tp3948310p3950665.html
Sent from the libav-users mailing list archive at Nabble.com.

More information about the Libav-user mailing list