Opened 11 years ago

Last modified 11 years ago

#3392 open enhancement

FFmpeg does not show video bitrates for H.264 video

Reported by: Atarikid Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: h264
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When using ffmpeg -i file.mkv , FFmpegdoes not display the video bitrate of .mkv files
All other containers seems to work fine.

Attachments (2)

Starship_Troopers.mkv (1.2 MB ) - added by Atarikid 11 years ago.
Starship_Troopers2.mkv (2.1 MB ) - added by Atarikid 11 years ago.

Change History (17)

comment:1 by Carl Eugen Hoyos, 11 years ago

Component: ffmpegundetermined
Resolution: needs_more_info
Status: newclosed
Version: 2.1.3unspecified

Please reopen this ticket if your issue is reproducible with current FFmpeg git head and if you can provide a sample and the complete, uncut console output of ffmpeg -i that shows the problem.

comment:2 by Atarikid, 11 years ago

Resolution: needs_more_info
Status: closedreopened
Summary: Ffmopeg does not show video bitrates for MKV filesFFmopeg does not show video bitrates for MKV files

Same happens with the latest GIT:

ffmpeg -i /Volumes/Data/Movies\ Test/matroska+h264+eac3++x264_Overflow_Sample.mkv

ffmpeg version N-60689-g8309171-tessus Copyright (c) 2000-2014 the FFmpeg developers

built on Feb 16 2014 19:49:23 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)
configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-libmodplug --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --enable-runtime-cpudetect
libavutil 52. 64.100 / 52. 64.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 9.101 / 55. 9.101
libavfilter 4. 1.102 / 4. 1.102
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100

Input #0, matroska,webm, from '/Volumes/Data/Movies Test/matroska+h264+eac3++x264_Overflow_Sample.mkv':

Metadata:

encoder : libebml v0.7.7 + libmatroska v0.8.1
creation_time : 2007-06-24 12:00:01

Duration: 00:00:41.46, start: 0.000000, bitrate: 6630 kb/s

Stream #0:0: Video: h264 (High), yuv420p, 1280x528, SAR 31:32 DAR 155:66, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:

title : x264 1280x528 3783 kb/s

Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
Metadata:

title : English Dolby Digital Plus English 5.1 (1.5m)

At least one output file must be specified

As you can see, the Video stream does not displays the Video bitrate. Audio stream does - as the global bitrate.
Happens with any MKV container.
Using probesize and/or analyzeduration doesn't fix this.

comment:3 by Carl Eugen Hoyos, 11 years ago

Did you upload a sample?

comment:4 by Atarikid, 11 years ago

No, but this occurs with any mkv file you try.

comment:5 by Carl Eugen Hoyos, 11 years ago

Why do you think video bitrate information is available for "any mkv file"?

comment:6 by Atarikid, 11 years ago

For any mkv container with a video stream that is.
Will upload a mkv later today.

by Atarikid, 11 years ago

Attachment: Starship_Troopers.mkv added

comment:7 by Atarikid, 11 years ago

See attachment.
This example doesn't even show the audio bitrate. Although most MKV (with audio stream) do show the bitrate.
The video bitrate is never shown (tried on a lot of mov files).

by Atarikid, 11 years ago

Attachment: Starship_Troopers2.mkv added

comment:8 by Atarikid, 11 years ago

Added a second example. This one does show the audio bitrate, but still no video bitrate.

comment:9 by Atarikid, 11 years ago

On a side note: the total bitrate is always shown (audio + video)

comment:10 by Carl Eugen Hoyos, 11 years ago

Which application does show the video bitrate for one of the files you attached?
I only tested mkvinfo which doesn't show it (or do I miss it)?

comment:11 by Hendrik, 11 years ago

If the video stream does not contain bitrate information in its headers, then there is nothing for FFmpeg to show, its as simple as that.

comment:12 by Carl Eugen Hoyos, 11 years ago

Resolution: invalid
Status: reopenedclosed

Please reopen if there is an application that shows the video bitrate for the samples you uploaded.

comment:13 by Carl Eugen Hoyos, 11 years ago

Keywords: mkv added

comment:14 by Atarikid, 11 years ago

Resolution: invalid
Status: closedreopened

Mediainfo shows the video bitrate. Here is the output of Mediainfo for the second attached example.

General
Unique ID : 96413284063479173392440430446561344295 (0x488885E8AA95C388F1C35F9675CE3B27)
Complete name : /Volumes/Data/Downloads/Starship_Troopers2.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 2.06 MiB
Duration : 5s 119ms
Overall bit rate : 3 375 Kbps
Writing application : Lavf55.19.104
Writing library : Lavf55.19.104

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : V_MPEG4/ISO/AVC
Bit rate : 3 180 Kbps
Nominal bit rate : 3 625 Kbps
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 138 r2358 9e941d1
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x132 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=8 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=cbr / mbtree=1 / bitrate=3625 / ratetol=1.0 / qcomp=0.60 / qpmin=3 / qpmax=51 / qpstep=4 / vbv_maxrate=3625 / vbv_bufsize=1450 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : No

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 5s 119ms
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : 1mn 5s
Stream size : 80.0 KiB (4%)
Default : Yes
Forced : No

comment:15 by Carl Eugen Hoyos, 11 years ago

Component: undeterminedavcodec
Keywords: h264 added; mkv removed
Priority: normalwish
Status: reopenedopen
Summary: FFmopeg does not show video bitrates for MKV filesFFmpeg does not show video bitrates for H.264 video
Type: defectenhancement
Version: unspecifiedgit-master
Note: See TracTickets for help on using tickets.