Opened 4 years ago

Last modified 4 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 4 years ago.
Starship_Troopers2.mkv (2.1 MB) - added by Atarikid 4 years ago.

Change History (17)

comment:1 Changed 4 years ago by cehoyos

  • Component changed from ffmpeg to undetermined
  • Resolution set to needs_more_info
  • Status changed from new to closed
  • Version changed from 2.1.3 to unspecified

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 Changed 4 years ago by Atarikid

  • Resolution needs_more_info deleted
  • Status changed from closed to reopened
  • Summary changed from Ffmopeg does not show video bitrates for MKV files to FFmopeg 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 Changed 4 years ago by cehoyos

Did you upload a sample?

comment:4 Changed 4 years ago by Atarikid

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

comment:5 Changed 4 years ago by cehoyos

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

comment:6 Changed 4 years ago by Atarikid

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

Changed 4 years ago by Atarikid

comment:7 Changed 4 years ago by Atarikid

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).

Changed 4 years ago by Atarikid

comment:8 Changed 4 years ago by Atarikid

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

comment:9 Changed 4 years ago by Atarikid

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

comment:10 Changed 4 years ago by cehoyos

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 Changed 4 years ago by heleppkes

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 Changed 4 years ago by cehoyos

  • Resolution set to invalid
  • Status changed from reopened to closed

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

comment:13 Changed 4 years ago by cehoyos

  • Keywords mkv added

comment:14 Changed 4 years ago by Atarikid

  • Resolution invalid deleted
  • Status changed from closed to reopened

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 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords h264 added; mkv removed
  • Priority changed from normal to wish
  • Status changed from reopened to open
  • Summary changed from FFmopeg does not show video bitrates for MKV files to FFmpeg does not show video bitrates for H.264 video
  • Type changed from defect to enhancement
  • Version changed from unspecified to git-master
Note: See TracTickets for help on using tickets.