Andrew Wason <[EMAIL PROTECTED]> added the comment:

The problem this causes is when encoding 15fps30000fps.mp4
 with mencoder, the resulting file is only 66ms long (instead of 9s) and plays
back only a single frame.  mencoder log attached.

Hmm, 29fps1000fps.mp4 used to have the same issue (resulting file was 6s long,
super fast framerate) but it seems to encode ok with current mencoder. 
15fps30000fps.mp4 still has the above problem encoding though.

Also, you can see ffmpeg is mis-detecting the framerate in gdb:

(gdb) run -i /Volumes/Passport/bugs/framerate/29fps1000fps.mp4
Starting program: /Users/aw/Projects/software/encoding/ffmpeg-svn/ffmpeg_g -i
/Volumes/Passport/bugs/framerate/29fps1000fps.mp4
FFmpeg version SVN-r15216, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration:
--prefix=/Users/aw/Projects/motionbox/encoder/foundation/installed
--extra-cflags=-I/Users/aw/Projects/motionbox/encoder/foundation/installed/include
--extra-ldflags=-L/Users/aw/Projects/motionbox/encoder/foundation/installed/lib
--cpu=pentium-m --disable-ffserver --disable-network --disable-shared
--disable-vhook --disable-liba52 --enable-avfilter --enable-gpl
--enable-hardcoded-tables --enable-libamr-nb --enable-libamr-wb
--enable-libdirac --enable-libfaac --enable-libfaad --enable-libgsm
--enable-libmp3lame --enable-libschroedinger --enable-libtheora
--enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree
--enable-postproc --enable-pthreads --enable-static --enable-swscale
--enable-debug=gdb3 --disable-optimizations
  libavutil     49.10. 0 / 49.10. 0
  libavcodec    51.71. 0 / 51.71. 0
  libavformat   52.22. 0 / 52.22. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 1. 0 /  0. 1. 0
  libswscale     0. 6. 1 /  0. 6. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Sep  5 2008 09:59:12, gcc: 4.0.1 (Apple Inc. build 5484)

Breakpoint 2, av_find_stream_info (ic=0x1803a00) at libavformat/utils.c:2193
2193                        st->r_frame_rate.num = st->codec->time_base.den;
(gdb) n
2194                        st->r_frame_rate.den = st->codec->time_base.num;
(gdb) n
2166        for(i=0;i<ic->nb_streams;i++) {
(gdb) p st->r_frame_rate
$1 = {
  num = 1000, 
  den = 1
}
(gdb) bt
#0  av_find_stream_info (ic=0x1803a00) at libavformat/utils.c:2166
#1  0x0000bed6 in opt_input_file (filename=0xbffff8d8
"/Volumes/Passport/bugs/framerate/29fps1000fps.mp4") at ffmpeg.c:2847
#2  0x0000f468 in parse_options (argc=3, argv=0xbffff7e0, options=0x619780,
parse_arg_function=0xd400 <opt_output_file>) at cmdutils.c:152
#3  0x0000ecee in main (argc=3, argv=0xbffff7e0) at ffmpeg.c:3922

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue622>
______________________________________________________

Reply via email to