[FFmpeg-trac] #5423(avformat:new): Wrong duration_ts from mpeg-ts file by avformat_find_stream_info()
FFmpeg
trac at avcodec.org
Fri Apr 15 15:24:18 CEST 2016
#5423: Wrong duration_ts from mpeg-ts file by avformat_find_stream_info()
-------------------------------------+-------------------------------------
Reporter: | Owner:
Aleksandr_Slobodeniuk | Status: new
Type: defect | Component: avformat
Priority: normal | Resolution:
Version: git-master | Blocked By:
Keywords: mpeg-ts, | Reproduced by developer: 0
estimate_timings, |
estimate_timings_from_pts |
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Aleksandr_Slobodeniuk):
after raising DURATION_MAX_READ_SIZE to 1 Mb :
{{{#define DURATION_MAX_READ_SIZE ( 1024LL * 1024 )}}}
new duration_ts:
{{{duration_ts=320400}}}
{{{
C:\public\ff-new\bin>ffprobe -show_streams e:\data\00000.MTS
ffprobe version 3.0.1 Copyright (c) 2007-2016 the FFmpeg developers
built with gcc 4.9.1 (GCC)
configuration: --enable-cross-compile --arch=x86 --target-os=mingw32
--cross-p
refix=i686-w64-mingw32- --enable-shared --enable-memalign-hack --enable-
debug --
enable-runtime-cpudetect --enable-libmp3lame --enable-libopenh264
--disable-stri
pping --extra-cflags=-I/home/aleksandr/SDK/lame/win32/include --extra-
ldflags='-
L/home/aleksandr/SDK/lame/win32/lib -static' --pkg-config=pkg-config
--pkg-confi
g-flags=--static --prefix=/home/aleksandr/SDK/output/w32
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
Input #0, mpegts, from 'e:\data\00000.MTS':
Duration: 00:00:03.64, start: 1.040000, bitrate: 23995 kb/s
Program 1
Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p,
1920x1
080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz,
stereo
, s16, 1536 kb/s
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_time_base=1/50
codec_tag_string=HDMV
codec_tag=0x564d4448
width=1920
height=1080
coded_width=1920
coded_height=1088
has_b_frames=1
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=40
color_range=N/A
color_space=unknown
color_transfer=unknown
color_primaries=unknown
chroma_location=left
timecode=N/A
refs=2
is_avc=false
nal_length_size=0
id=0x1011
r_frame_rate=25/1
avg_frame_rate=25/1
time_base=1/90000
start_pts=100800
start_time=1.120000
duration_ts=320400
duration=3.560000
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]
[STREAM]
index=1
codec_name=pcm_bluray
codec_long_name=PCM signed 16|20|24-bit big-endian for Blu-ray media
profile=unknown
codec_type=audio
codec_time_base=1/48000
codec_tag_string=HDMV
codec_tag=0x564d4448
sample_fmt=s16
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
id=0x1100
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=93600
start_time=1.040000
duration_ts=327601
duration=3.640011
bit_rate=1536000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
[/STREAM]
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5423#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list