I am writing an application, joining fragments of several MPEG2 files into
one.
Basically the main cycle is the following.

while (! all_fragments_processed() ){
  if(av_read_frame(input,&pkt)<0 )
      jump_to_next_fragment();
  av_write_frame(output,&pkt);
}

Currently my app doesn't allow joining of files having bitrate difference
more than 500000 bps.

The result is generally OK.
However, when the bitrate differs somewhat, for example 4.8 Mbps and 5.0
Mbps, and the resulting file is large (more than 1 Gb) Windows media player
has problems with positioning in it. It hangs of freezes the image for
several minutes. I know, it is a buggy application, but, unfortunately,
users of my application use this player, and I must do something with it.
It behaves good on small files (several minutes)

How can I avoid this problem?

-- 
View this message in context: 
http://www.nabble.com/What-is-the-right-way-to-join-several-MPEG2-files--tp20518924p20518924.html
Sent from the libav-users mailing list archive at Nabble.com.

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to