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;
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?
Questions involving a Windows version of FFmpeg.
1 post • Page 1 of 1