Demuxed packet's position is not being updated

Questions involving a Windows version of FFmpeg.
Post Reply
rkhali
Posts: 4
Joined: Mon Mar 12, 2018 10:58 am

Demuxed packet's position is not being updated

Post by rkhali » Mon Mar 12, 2018 11:13 am

Hi,

I am using ffmpeg version version 2.5 to demux an "AVI file having CineForm & PCM" in it.

Some calculation as below is being used to calculate the % of file processed and based on that progress bar gets updated.
***
int retbyte = av_read_frame( m_pInputSource, &pkt );
if (pkt.pos > 0)
m_current_pkt_pos[m_file_index] = (double)pkt.pos;

BytesDemuxed = m_current_pkt_pos[0];
ret_pct = (int) ((BytesDemuxed/(double)m_fileSizeInBytes_metaData)*100);\
****
However for this file pkt.pos is always 0.
Any idea how should I deal with this issue?

Thanks,
Rohit Khali

Post Reply