[FFmpeg-user] H264 IP-camera dump causes wrong duration/bitrate
kenji at shirase.tk
Mon May 18 09:06:57 CEST 2015
I got H264 livestream dump from my IP-camera with ffmpeg.
The movies get shorter than real time in night time, although the length
is correct in day time.
The command line I did is below.
I used segment function with segment time = 60.
So, I expect the duration of each mp4 file is about 60 seconds.
-y -vcodec copy \
-loglevel verbose \
-movflags faststart+empty_moov \
-f segment \
-segment_atclocktime 1 \
-segment_time 60 \
-reset_timestamps 1 \
-strftime 1 \
%y%m%d%H%M.mp4 < /dev/zero 2> dump.log
The files below is the sample files and console log.
This file is a sample in day time.
The duration of this file is 00:01:07.20.
This file is a sample in night time.
The duration is 00:00:24.00.
I posted this problem to ffmpeg forum before. (
But I could not get any solution.
I also asked about "h264 : data partitioning" to ffmpeg-devel after I
found this message.
But it's not my trouble.
More information about the ffmpeg-user