ffmpeg - Why does av_write_trailer fails? -


i processing video file. use ffmpeg read each packet.

if audio packet, write packet output video file using av_interleaved_write_frame.

if video packet, decode packet, data of video frame, process image, , compress packet. write processed video frame packet output video file using av_interleaved_write_frame.

through debugging, read audio packets , video packets correctly. however, when goes "av_write_trailer", exits. output video file exists.

the error information is:

*** glibc detected *** /opencv_videoflatten_20130507/debug/opencv_videoflatten_20130507: corrupted double-linked list: 0x000000000348dfa0 *** 

using movie player (in ubuntu), output video file can plays audio correctly, without video signals. using vlc player, can show first video frame (keep same video picture), , play audio correctly.

i tried debug "av_write_trailer", since in ffmpeg library, not detailed information wrong.

another piece of information: previous version of project process video frame, without adding audio stream; , works well.

any hint or clue?

i found solution. did not use rescale set pts based on stream's time_base. related code in example muxing.c.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -