Hi,
I have a few .avi movies recorded with Bonsai that have an incorrect indicated duration (as written in their header), but contain all the frames past this erroneous "end". This is probably due to an incorrect stop of the workflow by the experimenter. I'm exporting clips from those movies (as in
https://groups.google.com/d/topic/bonsai-users/uiUcQdKxpj4/discussion ), but the clips generated from the files with the wrong duration are just 1 frame long after the supposed "end" of the movie. The same issue occurs in Matlab. A workaround is to open those files in VLC, which isn't fooled by the incorrect duration header, and re-export them. From there the Bonsai workflow works as expected, although the command windows display this error for every extracted clip:
[h264 @ 000000002E354EB0] illegal reordering_of_pic_nums_idc
[h264 @ 000000002E354EB0] decode_slice_header error
I'd like to avoid using the VLC workaround, though, so I'm wondering if there would be any quick way to fix .avi duration.
Any thoughts?
Thanks!