Smart, Gary wrote:
> 
> Sorry - I forgot to say.  I'm not using write frame OR interleaved frame. 
> This is because I don't actually want to decode the data if I can help it. 
> Instead, I am doing...
> 
>   Av_open this and that...
> 
>     while(av_read_frame(ipFormatCtx, &ipPacket)>=0) 
>     {
>       // Update the packet dts/pts
>       ipPacket.pts += (ipLastTs[VIL_f-1] - ipFirstTs[VIL_f-1]);
>       ipPacket.dts = ipPacket.pts;
>       
>       opFormatCtx->oformat->write_packet(opFormatCtx, &ipPacket);
> 
>       // Free the ipPacket that was allocated by av_read_frame
>       av_free_packet(&ipPacket);
> 
>     } // end while reading frames
> 
>   av_write_trailer(opFormatCtx);
>   
>   url_fclose(opFormatCtx->pb);
> 
>   av_free(opFormatCtx);
> 
> 

You're doing incorrectly.
You must use av_write_frame() or av_interleaved_write_frame(). These
functions don't decode or encode data, they write them, as said in their
names. 
The second issue, there are av_close_input_stream() and
av_close_input_file() functions which do some other work besides closing a
file.
-- 
View this message in context: 
http://www.nabble.com/Concatenating-movie-files---duration-not-updated-tp25488632p25530593.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