Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE


This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

MP4; cannot find "title"-tag value of an audio stream

Discussions about problems encountered using ffprobe.
Forum rules
FFmpeg is in a state of perpetual development and we do not currently have the person power to backport fixes to official releases. As such, if you wish to query or report a bug, you must try with the latest development branch revision of FFmpeg to confirm the issue still exists. The latest FFmpeg can be downloaded from here: http://www.ffmpeg.org/download.html

MP4; cannot find "title"-tag value of an audio stream

Postby Roger Wilco » Thu Mar 23, 2017 8:55 pm

Hi,

I have a question on how to use ffprobe (properly). I habe a MKV with a title-tag set on an audio stream (see *1).
After converting the MKV to MP4 (see *2) the title-tag value is stored somewhere inside the MP4 file, as VLC as well as mediainfo can display it (see *3). But with ffprobe I am not able to display it.

What options would ffprobe need to display the tag value?

*1: This is the ffprobe output for the MKV file. The displayed stream has title="Regiekommentar"
Code: Select all
$ ffprobe -show_streams -select_streams a:2 -show_entries stream=tags -print_format json in.mkv
ffprobe version git-2017-02-11-25d9cb4 Copyright (c) 2007-2017 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.38)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-25d9cb4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-indev=qtkit --enable-libfdk-aac --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-nonfree --enable-vda
  libavutil      55. 46.100 / 55. 46.100
  libavcodec     57. 78.100 / 57. 78.100
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
{
<snip>
    "streams": [
        {
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0
            },
            "tags": {
                "language": "eng",
                "title": "Regiekommentar",
                "BPS": "192000",
                "BPS-eng": "192000",
                "DURATION": "01:40:08.736000000",
                "DURATION-eng": "01:40:08.736000000",
                "NUMBER_OF_FRAMES": "187773",
                "NUMBER_OF_FRAMES-eng": "187773",
                "NUMBER_OF_BYTES": "144209664",
                "NUMBER_OF_BYTES-eng": "144209664",
                "_STATISTICS_WRITING_APP": "mkvmerge v9.9.0 ('Pick Up') 64bit",
                "_STATISTICS_WRITING_APP-eng": "mkvmerge v9.9.0 ('Pick Up') 64bit",
                "_STATISTICS_WRITING_DATE_UTC": "2017-03-19 21:49:32",
                "_STATISTICS_WRITING_DATE_UTC-eng": "2017-03-19 21:49:32",
                "_STATISTICS_TAGS": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES",
                "_STATISTICS_TAGS-eng": "BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES"
            }
        }
    ]
}


*2: This is how I've converted the MKV to MP4. As I've read somewhere that there is no dedicated Title-tag for streams defined in MP4 and people use therefore the handler_name-tag, I gave it a try:
Code: Select all
ffmpeg -i in.mkv -map 0:v -map 0:a -map_metadata 0 -sn -c:v libx264 -preset medium -tune film -profile:v high -level 4.0 -metadata:s:a:2 handler="asd" -f mp4 out.m4v


*3: This is the mediainfo output for the MP4. Both values are displayed in "Title" ("asd" from the handler_name-tag as well as "Regiekommentar"):
Code: Select all
mediainfo out.m4v
<snip>
Audio #3
ID                                       : 4
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 12 s 246 ms
Bit rate mode                            : Constant
Bit rate                                 : 132 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Stream size                              : 198 KiB (13%)
Title                                    : asd / Regiekommentar
Language                                 : English
Default                                  : No
Alternate group                          : 1
Encoded date                             : UTC 2017-03-19 21:49:32
Tagged date                              : UTC 2017-03-19 21:49:32
Menus                                    : 5
Roger Wilco
 
Posts: 5
Joined: Sat Aug 15, 2015 9:46 pm

Return to ffprobe

Who is online

Users browsing this forum: No registered users and 1 guest