[FFmpeg-devel] [PATCH] Fix stream copy
Ramiro Polla
ramiro
Mon Aug 13 01:35:16 CEST 2007
Hello,
I see that FLV cut bug is still there. Now I can send a diff.
copy.diff is what I believe is the correct fix. r_frame_rate has already
been calculated as the best frame rate, so there's no reason to try and
find it again in ffmpeg.c.
copy2.diff is a cleaned up version of the patch Cyrus accepted.
I've tested with avi, mpg and flv.
Both avi and mpg work the same before and after copy.diff, and copy2.diff.
With copy.diff,
./ffmpeg -i input.flv -vcodec copy -acodec copy -t 4 -y cut.flv
behaves the same as with avis and mpgs. The input file is 25fps, so it
copies 100 frames.
With copy2.diff, the same command copies 101 frames to cut.flv.
Ramiro Polla
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: copy.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070812/46d1edeb/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: copy2.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070812/46d1edeb/attachment.txt>
More information about the ffmpeg-devel
mailing list