[FFmpeg-trac] #259(undetermined:new): framerate detection does not work properly.
FFmpeg
trac at avcodec.org
Sat Jun 4 06:28:30 CEST 2011
#259: framerate detection does not work properly.
--------------------------------------+---------------------------
Reporter: mbosner | Owner:
Type: defect | Status: new
Priority: normal | Component: undetermined
Version: unspecified | Resolution:
Keywords: false framerate detection | Blocked By:
Blocking: | Reproduced: 0
Analyzed: 0 |
--------------------------------------+---------------------------
Comment (by mbosner):
The sample file is ofc just the first 10 MB of 17 GB. If you need more
please tell me.
Maybe i should explain what i am doing:
I try to batch convert video files using some script code that i wrote.
Normaly everything works fine or i can workaround problems. But with this
file ffmpeg guesses the wrong frame rate and i convert the file from 24fps
to ~29.97fps which lead to stutter movie playback. Audio and Video is in
sync. But since i detect the wrong fps with ffmpeg -i i convert it to the
wrong framerate:
I am getting informations about the file using ffmpeg:
ffmpeg -i "temporary_filename000.mkv" 2>&1
FFMPEG OUT: ffmpeg version git-N-30444-geb5a3ab, Copyright (c) 2000-2011
the FFmpeg developers
FFMPEG OUT: built on Jun 1 2011 16:42:49 with gcc 4.5.2
FFMPEG OUT: configuration: --enable-gpl --enable-version3 --enable-
nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-
libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-
libvorbis --enable-libx264 --enable-libxvid
FFMPEG OUT: libavutil 51. 3. 0 / 51. 3. 0
FFMPEG OUT: libavcodec 53. 6. 1 / 53. 6. 1
FFMPEG OUT: libavformat 53. 2. 0 / 53. 2. 0
FFMPEG OUT: libavdevice 53. 1. 0 / 53. 1. 0
FFMPEG OUT: libavfilter 2. 11. 0 / 2. 11. 0
FFMPEG OUT: libswscale 0. 14. 0 / 0. 14. 0
FFMPEG OUT: libpostproc 51. 2. 0 / 51. 2. 0
FFMPEG OUT: [matroska,webm @ 0x23c5420] Estimating duration from bitrate,
this may be inaccurate
FFMPEG OUT: Input #0, matroska,webm, from 'temporary_filename000.mkv':
FFMPEG OUT: Duration: 01:47:42.18, start: 0.000000, bitrate: 1984 kb/s
FFMPEG OUT: Stream #0.0: Video: vc1 (Advanced), yuv420p, 1920x1080
[PAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default)
FFMPEG OUT: Stream #0.1: Audio: eac3, 48000 Hz, 5.1, s16, 1536 kb/s
(default)
FFMPEG OUT: Stream #0.2: Audio: eac3, 48000 Hz, 5.1, s16, 448 kb/s
FFMPEG OUT: At least one output file must be specified
i extract the audio(...)
and i convert the video:
ffmpeg -i 'temporary_filename000.mkv' -flags ilme -an -pix_fmt yuv420p -f
rawvideo -vcodec rawvideo -| x264 --preset veryslow --fps 29.970 --crf 18
-o track1.mp4 - --input-res 1920x1080
i can playback the original file without problems using xbmc. I am not
sure if this is the only file with the problem but it is the first one
where i noticed the problem.
--
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/259#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list