[FFmpeg-trac] #1937(undetermined:open): cdxl: wrong duration
FFmpeg
trac at avcodec.org
Wed Dec 12 09:22:41 CET 2012
#1937: cdxl: wrong duration
-------------------------------------+-------------------------------------
Reporter: ami_stuff | Owner:
Type: defect | Status: open
Priority: normal | Component:
Version: git-master | undetermined
Keywords: cdxl | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 1
-------------------------------------+-------------------------------------
Comment (by cehoyos):
Replying to [comment:2 ami_stuff]:
> the correct duration shoud be calculated like this:
>
> int64_t filesize = avio_size(s->pb);
>
> st->duration = (filesize /* - audiotrack_size */ ) / video_size /
calculated_fps;
If "video_size" and "calculated_fps" are known, wouldn't it be much easier
to set the bitrate?
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1937#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list