Search found 1 match

by crindu
Sun Mar 18, 2018 5:22 pm
Forum: Developement with FFmpeg
Topic: Adjust PTS and DTS before mp4 video creation
Replies: 0
Views: 654

Adjust PTS and DTS before mp4 video creation

I'm retrieving raw h264 compressed frames from usb camera to create an mp4 video. This is my simple code: for(int i = 0; i<120;i++) { AVPacket pkt; av_init_packet(&pkt); ret = av_read_frame(inputFormatCtx, &pkt); pkt.pts = pkt.dts = i; pkt.pts = av_rescale_q(pkt.pts, inputStream->time_base, outputSt...
'