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.

getting info from ffprobe...

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

getting info from ffprobe...

Postby armight29 » Fri Oct 21, 2016 6:02 pm

Hello all. Im using Ubuntu 16.04 LTS on an intel asus mobo and learning about cli ffmpeg;I'm trying to write a script to help me with encodes and I need a way for the script to print out ONLY the track info about ENGLISH audio and subtitles if there is even a way to do this I would appreciate any input. Here is example output ffmpeg gives when I give it the input:

ffmpeg version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from 'MYBDRIP.mkv':
Metadata:
ENCODER : Lavf56.40.101
Duration: 01:47:24.60, start: 0.000000, bitrate: 15192 kb/s
Chapter #0:0: start 0.000000, end 212.253000
Metadata:
title : 2029 a.D./Main Title
Chapter #0:1: start 212.253000, end 318.151000
Metadata:
title : ONE
Chapter #0:2: start 318.151000, end 391.015000
Metadata:
title : TWO
Chapter #0:3: start 391.015000, end 698.322000
Metadata:
title : THREE
Chapter #0:4: start 698.322000, end 825.324000
Metadata:
title : FOUR
Chapter #0:5: start 825.324000, end 911.827000
Metadata:
title : FIVE
Chapter #0:6: start 911.827000, end 1244.618000
Metadata:
title : SIX
Chapter #0:7: start 1244.618000, end 1369.618000
Metadata:
title : SEVEN
Chapter #0:8: start 1369.618000, end 1789.787000
Metadata:
title : EIGHT
Chapter #0:9: start 1789.787000, end 1995.034000
Metadata:
title : NINE
Chapter #0:10: start 1995.034000, end 2327.116000
Metadata:
title : TEN
Chapter #0:11: start 2327.116000, end 2485.191000
Metadata:
title : ELEVEN
Chapter #0:12: start 2485.191000, end 2866.488000
Metadata:
title : TWELVE
Chapter #0:13: start 2866.488000, end 3039.995000
Metadata:
title : THIRTEEN
Chapter #0:14: start 3039.995000, end 3281.569000
Metadata:
title : FOURTEEN
Chapter #0:15: start 3281.569000, end 3544.916000
Metadata:
title : FIFTEEN
Chapter #0:16: start 3544.916000, end 3833.538000
Metadata:
title : SIXTEEN
Chapter #0:17: start 3833.538000, end 4177.548000
Metadata:
title : SEVENTEEN
Chapter #0:18: start 4177.548000, end 4448.986000
Metadata:
title : EIGHTEEN
Chapter #0:19: start 4448.986000, end 4500.078000
Metadata:
title : NINETEEN
Chapter #0:20: start 4500.078000, end 4638.800000
Metadata:
title : TWENTY
Chapter #0:21: start 4638.800000, end 4710.372000
Metadata:
title : TWENTY ONE
Chapter #0:22: start 4710.372000, end 4980.892000
Metadata:
title : TWENTY TWO
Chapter #0:23: start 4980.892000, end 5184.721000
Metadata:
title : TWENTY THREE
Chapter #0:24: start 5184.721000, end 5422.583000
Metadata:
title : TWENTY FOUR
Chapter #0:25: start 5422.583000, end 5539.367000
Metadata:
title : TWENTY FIVE
Chapter #0:26: start 5539.367000, end 5752.121000
Metadata:
title : TWENTY SIX
Chapter #0:27: start 5752.121000, end 5993.862000
Metadata:
title : TWENTY SEVEN
Chapter #0:28: start 5993.862000, end 6018.721000
Metadata:
title : TWENTY EIGHT
Chapter #0:29: start 6018.721000, end 6049.334000
Metadata:
title : TWENTY NINE
Chapter #0:30: start 6049.334000, end 6192.895000
Metadata:
title : THIRTY
Chapter #0:31: start 6192.895000, end 6446.475000
Metadata:
title : End Credits
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1040 [SAR 1:1 DAR 24:13], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
title : BDRip -- STarankov
LANGUAGE : eng
DURATION : 01:47:24.562000000
Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(fre): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(eng): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4977
BPS-eng : 4977
DURATION : 02:27:13.901000000
DURATION-eng : 02:27:13.901000000
NUMBER_OF_FRAMES: 1548
NUMBER_OF_FRAMES-eng: 1548
NUMBER_OF_BYTES : 5496700
NUMBER_OF_BYTES-eng: 5496700
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(fre): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4136
BPS-eng : 4136
DURATION : 02:27:29.788000000
DURATION-eng : 02:27:29.788000000
NUMBER_OF_FRAMES: 1423
NUMBER_OF_FRAMES-eng: 1423
NUMBER_OF_BYTES : 4576031
NUMBER_OF_BYTES-eng: 4576031
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(ger): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4453
BPS-eng : 4453
DURATION : 02:27:30.748000000
DURATION-eng : 02:27:30.748000000
NUMBER_OF_FRAMES: 1436
NUMBER_OF_FRAMES-eng: 1436
NUMBER_OF_BYTES : 4927436
NUMBER_OF_BYTES-eng: 4927436
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:7(tur): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 3870
BPS-eng : 3870
DURATION : 02:27:14.773000000
DURATION-eng : 02:27:14.773000000
NUMBER_OF_FRAMES: 1418
NUMBER_OF_FRAMES-eng: 1418
NUMBER_OF_BYTES : 4274111
NUMBER_OF_BYTES-eng: 4274111
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:8(eng): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 20797
BPS-eng : 20797
DURATION : 02:28:31.190000000
DURATION-eng : 02:28:31.190000000
NUMBER_OF_FRAMES: 3472
NUMBER_OF_FRAMES-eng: 3472
NUMBER_OF_BYTES : 23166056
NUMBER_OF_BYTES-eng: 23166056
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Metadata:
DURATION : 01:47:24.598000000
At least one output file must be specified


I just want the track number and info on the english audio tracks and subtitle tracks..I've seen examples with awk and sed and exiftool but none really did the trick...TIA
armight29
 
Posts: 7
Joined: Fri Jun 10, 2016 6:41 pm

Re: getting info from ffprobe...

Postby llogan » Fri Oct 21, 2016 9:36 pm

Not exactly what you're looking for, but this will display info for all streams, regardless of stream type, that contain language=eng metadata.
Code: Select all
ffprobe -v error -select_streams m:language:eng -show_streams input.mkv

Next time please use the code button to format your post.
Get an answer more quickly by providing your actual ffmpeg command and the complete console output. Use the code button to format your command and output or your question will be ignored.
llogan
 
Posts: 2354
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska

extract info from ffmpeg...

Postby armight29 » Fri Oct 21, 2016 9:37 pm

Hello all. Im using Ubuntu 16.04 LTS on an intel asus mobo and learning about cli ffmpeg;I'm trying to write a script to help me with encodes and I need a way for the script to print out ONLY the track info about ENGLISH audio and subtitles if there is even a way to do this I would appreciate any input. Here is example output ffmpeg gives when I give it the input:

ffmpeg version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from 'MYBDRIP.mkv':
Metadata:
ENCODER : Lavf56.40.101
Duration: 01:47:24.60, start: 0.000000, bitrate: 15192 kb/s
Chapter #0:0: start 0.000000, end 212.253000
Metadata:
title : 2029 a.D./Main Title
Chapter #0:1: start 212.253000, end 318.151000
Metadata:
title : ONE
Chapter #0:2: start 318.151000, end 391.015000
Metadata:
title : TWO
Chapter #0:3: start 391.015000, end 698.322000
Metadata:
title : THREE
Chapter #0:4: start 698.322000, end 825.324000
Metadata:
title : FOUR
Chapter #0:5: start 825.324000, end 911.827000
Metadata:
title : FIVE
Chapter #0:6: start 911.827000, end 1244.618000
Metadata:
title : SIX
Chapter #0:7: start 1244.618000, end 1369.618000
Metadata:
title : SEVEN
Chapter #0:8: start 1369.618000, end 1789.787000
Metadata:
title : EIGHT
Chapter #0:9: start 1789.787000, end 1995.034000
Metadata:
title : NINE
Chapter #0:10: start 1995.034000, end 2327.116000
Metadata:
title : TEN
Chapter #0:11: start 2327.116000, end 2485.191000
Metadata:
title : ELEVEN
Chapter #0:12: start 2485.191000, end 2866.488000
Metadata:
title : TWELVE
Chapter #0:13: start 2866.488000, end 3039.995000
Metadata:
title : THIRTEEN
Chapter #0:14: start 3039.995000, end 3281.569000
Metadata:
title : FOURTEEN
Chapter #0:15: start 3281.569000, end 3544.916000
Metadata:
title : FIFTEEN
Chapter #0:16: start 3544.916000, end 3833.538000
Metadata:
title : SIXTEEN
Chapter #0:17: start 3833.538000, end 4177.548000
Metadata:
title : SEVENTEEN
Chapter #0:18: start 4177.548000, end 4448.986000
Metadata:
title : EIGHTEEN
Chapter #0:19: start 4448.986000, end 4500.078000
Metadata:
title : NINETEEN
Chapter #0:20: start 4500.078000, end 4638.800000
Metadata:
title : TWENTY
Chapter #0:21: start 4638.800000, end 4710.372000
Metadata:
title : TWENTY ONE
Chapter #0:22: start 4710.372000, end 4980.892000
Metadata:
title : TWENTY TWO
Chapter #0:23: start 4980.892000, end 5184.721000
Metadata:
title : TWENTY THREE
Chapter #0:24: start 5184.721000, end 5422.583000
Metadata:
title : TWENTY FOUR
Chapter #0:25: start 5422.583000, end 5539.367000
Metadata:
title : TWENTY FIVE
Chapter #0:26: start 5539.367000, end 5752.121000
Metadata:
title : TWENTY SIX
Chapter #0:27: start 5752.121000, end 5993.862000
Metadata:
title : TWENTY SEVEN
Chapter #0:28: start 5993.862000, end 6018.721000
Metadata:
title : TWENTY EIGHT
Chapter #0:29: start 6018.721000, end 6049.334000
Metadata:
title : TWENTY NINE
Chapter #0:30: start 6049.334000, end 6192.895000
Metadata:
title : THIRTY
Chapter #0:31: start 6192.895000, end 6446.475000
Metadata:
title : End Credits
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1040 [SAR 1:1 DAR 24:13], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
title : BDRip -- STarankov
LANGUAGE : eng
DURATION : 01:47:24.562000000
Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(fre): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(eng): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4977
BPS-eng : 4977
DURATION : 02:27:13.901000000
DURATION-eng : 02:27:13.901000000
NUMBER_OF_FRAMES: 1548
NUMBER_OF_FRAMES-eng: 1548
NUMBER_OF_BYTES : 5496700
NUMBER_OF_BYTES-eng: 5496700
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(fre): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4136
BPS-eng : 4136
DURATION : 02:27:29.788000000
DURATION-eng : 02:27:29.788000000
NUMBER_OF_FRAMES: 1423
NUMBER_OF_FRAMES-eng: 1423
NUMBER_OF_BYTES : 4576031
NUMBER_OF_BYTES-eng: 4576031
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(ger): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4453
BPS-eng : 4453
DURATION : 02:27:30.748000000
DURATION-eng : 02:27:30.748000000
NUMBER_OF_FRAMES: 1436
NUMBER_OF_FRAMES-eng: 1436
NUMBER_OF_BYTES : 4927436
NUMBER_OF_BYTES-eng: 4927436
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:7(tur): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 3870
BPS-eng : 3870
DURATION : 02:27:14.773000000
DURATION-eng : 02:27:14.773000000
NUMBER_OF_FRAMES: 1418
NUMBER_OF_FRAMES-eng: 1418
NUMBER_OF_BYTES : 4274111
NUMBER_OF_BYTES-eng: 4274111
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:8(eng): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 20797
BPS-eng : 20797
DURATION : 02:28:31.190000000
DURATION-eng : 02:28:31.190000000
NUMBER_OF_FRAMES: 3472
NUMBER_OF_FRAMES-eng: 3472
NUMBER_OF_BYTES : 23166056
NUMBER_OF_BYTES-eng: 23166056
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Metadata:
DURATION : 01:47:24.598000000
At least one output file must be specified


That's the output but I don't want all that--just want the track number and info on the english audio tracks and subtitle tracks TIA
armight29
 
Posts: 7
Joined: Fri Jun 10, 2016 6:41 pm

Re: getting info from ffprobe...

Postby armight29 » Sat Oct 22, 2016 12:05 pm

thanks for reply--not what I'm looking for but thanks for telling me about formatting. :) Here is my question again..

Hello all. Im using Ubuntu 16.04 LTS on an intel asus mobo and learning about cli ffmpeg;I'm trying to write a script to help me with encodes and I need a way for the script to print out ONLY the track info about ENGLISH audio and subtitles if there is even a way to do this I would appreciate any input. Here is example output ffmpeg gives when I give it the input:

Code: Select all
ffmpeg version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from 'MYBDRIP.mkv':
Metadata:
ENCODER : Lavf56.40.101
Duration: 01:47:24.60, start: 0.000000, bitrate: 15192 kb/s
Chapter #0:0: start 0.000000, end 212.253000
Metadata:
title : 2029 a.D./Main Title
Chapter #0:1: start 212.253000, end 318.151000
Metadata:
title : ONE
Chapter #0:2: start 318.151000, end 391.015000
Metadata:
title : TWO
Chapter #0:3: start 391.015000, end 698.322000
Metadata:
title : THREE
Chapter #0:4: start 698.322000, end 825.324000
Metadata:
title : FOUR
Chapter #0:5: start 825.324000, end 911.827000
Metadata:
title : FIVE
Chapter #0:6: start 911.827000, end 1244.618000
Metadata:
title : SIX
Chapter #0:7: start 1244.618000, end 1369.618000
Metadata:
title : SEVEN
Chapter #0:8: start 1369.618000, end 1789.787000
Metadata:
title : EIGHT
Chapter #0:9: start 1789.787000, end 1995.034000
Metadata:
title : NINE
Chapter #0:10: start 1995.034000, end 2327.116000
Metadata:
title : TEN
Chapter #0:11: start 2327.116000, end 2485.191000
Metadata:
title : ELEVEN
Chapter #0:12: start 2485.191000, end 2866.488000
Metadata:
title : TWELVE
Chapter #0:13: start 2866.488000, end 3039.995000
Metadata:
title : THIRTEEN
Chapter #0:14: start 3039.995000, end 3281.569000
Metadata:
title : FOURTEEN
Chapter #0:15: start 3281.569000, end 3544.916000
Metadata:
title : FIFTEEN
Chapter #0:16: start 3544.916000, end 3833.538000
Metadata:
title : SIXTEEN
Chapter #0:17: start 3833.538000, end 4177.548000
Metadata:
title : SEVENTEEN
Chapter #0:18: start 4177.548000, end 4448.986000
Metadata:
title : EIGHTEEN
Chapter #0:19: start 4448.986000, end 4500.078000
Metadata:
title : NINETEEN
Chapter #0:20: start 4500.078000, end 4638.800000
Metadata:
title : TWENTY
Chapter #0:21: start 4638.800000, end 4710.372000
Metadata:
title : TWENTY ONE
Chapter #0:22: start 4710.372000, end 4980.892000
Metadata:
title : TWENTY TWO
Chapter #0:23: start 4980.892000, end 5184.721000
Metadata:
title : TWENTY THREE
Chapter #0:24: start 5184.721000, end 5422.583000
Metadata:
title : TWENTY FOUR
Chapter #0:25: start 5422.583000, end 5539.367000
Metadata:
title : TWENTY FIVE
Chapter #0:26: start 5539.367000, end 5752.121000
Metadata:
title : TWENTY SIX
Chapter #0:27: start 5752.121000, end 5993.862000
Metadata:
title : TWENTY SEVEN
Chapter #0:28: start 5993.862000, end 6018.721000
Metadata:
title : TWENTY EIGHT
Chapter #0:29: start 6018.721000, end 6049.334000
Metadata:
title : TWENTY NINE
Chapter #0:30: start 6049.334000, end 6192.895000
Metadata:
title : THIRTY
Chapter #0:31: start 6192.895000, end 6446.475000
Metadata:
title : End Credits
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1040 [SAR 1:1 DAR 24:13], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
title : BDRip -- STarankov
LANGUAGE : eng
DURATION : 01:47:24.562000000
Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(fre): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(eng): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4977
BPS-eng : 4977
DURATION : 02:27:13.901000000
DURATION-eng : 02:27:13.901000000
NUMBER_OF_FRAMES: 1548
NUMBER_OF_FRAMES-eng: 1548
NUMBER_OF_BYTES : 5496700
NUMBER_OF_BYTES-eng: 5496700
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(fre): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4136
BPS-eng : 4136
DURATION : 02:27:29.788000000
DURATION-eng : 02:27:29.788000000
NUMBER_OF_FRAMES: 1423
NUMBER_OF_FRAMES-eng: 1423
NUMBER_OF_BYTES : 4576031
NUMBER_OF_BYTES-eng: 4576031
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(ger): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4453
BPS-eng : 4453
DURATION : 02:27:30.748000000
DURATION-eng : 02:27:30.748000000
NUMBER_OF_FRAMES: 1436
NUMBER_OF_FRAMES-eng: 1436
NUMBER_OF_BYTES : 4927436
NUMBER_OF_BYTES-eng: 4927436
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:7(tur): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 3870
BPS-eng : 3870
DURATION : 02:27:14.773000000
DURATION-eng : 02:27:14.773000000
NUMBER_OF_FRAMES: 1418
NUMBER_OF_FRAMES-eng: 1418
NUMBER_OF_BYTES : 4274111
NUMBER_OF_BYTES-eng: 4274111
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:8(eng): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 20797
BPS-eng : 20797
DURATION : 02:28:31.190000000
DURATION-eng : 02:28:31.190000000
NUMBER_OF_FRAMES: 3472
NUMBER_OF_FRAMES-eng: 3472
NUMBER_OF_BYTES : 23166056
NUMBER_OF_BYTES-eng: 23166056
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Metadata:
DURATION : 01:47:24.598000000
At least one output file must be specified


That's the output but I don't want all that--just want the track number and info on the english audio tracks and subtitle tracks TIA
Re: getting info from ffprobe...
Post by llogan » Fri Oct 21, 2016 3:36 pm

Not exactly what you're looking for, but this will display info for all streams, regardless of stream type, that contain language=eng metadata.
CODE: SELECT ALL
ffprobe -v error -select_streams m:language:eng -show_streams input.mkv

Next time please use the code button to format your post.
getting info from ffprobe...
Post by armight29 » Fri Oct 21, 2016 12:02 pm

Hello all. Im using Ubuntu 16.04 LTS on an intel asus mobo and learning about cli ffmpeg;I'm trying to write a script to help me with encodes and I need a way for the script to print out ONLY the track info about ENGLISH audio and subtitles if there is even a way to do this I would appreciate any input. Here is example output ffmpeg gives when I give it the input:

ffmpeg version 2.8.8-0ubuntu0.16.04.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from 'MYBDRIP.mkv':
Metadata:
ENCODER : Lavf56.40.101
Duration: 01:47:24.60, start: 0.000000, bitrate: 15192 kb/s
Chapter #0:0: start 0.000000, end 212.253000
Metadata:
title : 2029 a.D./Main Title
Chapter #0:1: start 212.253000, end 318.151000
Metadata:
title : ONE
Chapter #0:2: start 318.151000, end 391.015000
Metadata:
title : TWO
Chapter #0:3: start 391.015000, end 698.322000
Metadata:
title : THREE
Chapter #0:4: start 698.322000, end 825.324000
Metadata:
title : FOUR
Chapter #0:5: start 825.324000, end 911.827000
Metadata:
title : FIVE
Chapter #0:6: start 911.827000, end 1244.618000
Metadata:
title : SIX
Chapter #0:7: start 1244.618000, end 1369.618000
Metadata:
title : SEVEN
Chapter #0:8: start 1369.618000, end 1789.787000
Metadata:
title : EIGHT
Chapter #0:9: start 1789.787000, end 1995.034000
Metadata:
title : NINE
Chapter #0:10: start 1995.034000, end 2327.116000
Metadata:
title : TEN
Chapter #0:11: start 2327.116000, end 2485.191000
Metadata:
title : ELEVEN
Chapter #0:12: start 2485.191000, end 2866.488000
Metadata:
title : TWELVE
Chapter #0:13: start 2866.488000, end 3039.995000
Metadata:
title : THIRTEEN
Chapter #0:14: start 3039.995000, end 3281.569000
Metadata:
title : FOURTEEN
Chapter #0:15: start 3281.569000, end 3544.916000
Metadata:
title : FIFTEEN
Chapter #0:16: start 3544.916000, end 3833.538000
Metadata:
title : SIXTEEN
Chapter #0:17: start 3833.538000, end 4177.548000
Metadata:
title : SEVENTEEN
Chapter #0:18: start 4177.548000, end 4448.986000
Metadata:
title : EIGHTEEN
Chapter #0:19: start 4448.986000, end 4500.078000
Metadata:
title : NINETEEN
Chapter #0:20: start 4500.078000, end 4638.800000
Metadata:
title : TWENTY
Chapter #0:21: start 4638.800000, end 4710.372000
Metadata:
title : TWENTY ONE
Chapter #0:22: start 4710.372000, end 4980.892000
Metadata:
title : TWENTY TWO
Chapter #0:23: start 4980.892000, end 5184.721000
Metadata:
title : TWENTY THREE
Chapter #0:24: start 5184.721000, end 5422.583000
Metadata:
title : TWENTY FOUR
Chapter #0:25: start 5422.583000, end 5539.367000
Metadata:
title : TWENTY FIVE
Chapter #0:26: start 5539.367000, end 5752.121000
Metadata:
title : TWENTY SIX
Chapter #0:27: start 5752.121000, end 5993.862000
Metadata:
title : TWENTY SEVEN
Chapter #0:28: start 5993.862000, end 6018.721000
Metadata:
title : TWENTY EIGHT
Chapter #0:29: start 6018.721000, end 6049.334000
Metadata:
title : TWENTY NINE
Chapter #0:30: start 6049.334000, end 6192.895000
Metadata:
title : THIRTY
Chapter #0:31: start 6192.895000, end 6446.475000
Metadata:
title : End Credits
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1040 [SAR 1:1 DAR 24:13], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
title : BDRip -- STarankov
LANGUAGE : eng
DURATION : 01:47:24.562000000
Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(fre): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp
Metadata:
BPS : 339122
BPS-eng : 339122
DURATION : 02:33:26.208000000
DURATION-eng : 02:33:26.208000000
NUMBER_OF_FRAMES: 431541
NUMBER_OF_FRAMES-eng: 431541
NUMBER_OF_BYTES : 390253999
NUMBER_OF_BYTES-eng: 390253999
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(eng): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4977
BPS-eng : 4977
DURATION : 02:27:13.901000000
DURATION-eng : 02:27:13.901000000
NUMBER_OF_FRAMES: 1548
NUMBER_OF_FRAMES-eng: 1548
NUMBER_OF_BYTES : 5496700
NUMBER_OF_BYTES-eng: 5496700
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:5(fre): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4136
BPS-eng : 4136
DURATION : 02:27:29.788000000
DURATION-eng : 02:27:29.788000000
NUMBER_OF_FRAMES: 1423
NUMBER_OF_FRAMES-eng: 1423
NUMBER_OF_BYTES : 4576031
NUMBER_OF_BYTES-eng: 4576031
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:6(ger): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 4453
BPS-eng : 4453
DURATION : 02:27:30.748000000
DURATION-eng : 02:27:30.748000000
NUMBER_OF_FRAMES: 1436
NUMBER_OF_FRAMES-eng: 1436
NUMBER_OF_BYTES : 4927436
NUMBER_OF_BYTES-eng: 4927436
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:7(tur): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 3870
BPS-eng : 3870
DURATION : 02:27:14.773000000
DURATION-eng : 02:27:14.773000000
NUMBER_OF_FRAMES: 1418
NUMBER_OF_FRAMES-eng: 1418
NUMBER_OF_BYTES : 4274111
NUMBER_OF_BYTES-eng: 4274111
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:8(eng): Subtitle: dvd_subtitle, 1920x1080
Metadata:
BPS : 20797
BPS-eng : 20797
DURATION : 02:28:31.190000000
DURATION-eng : 02:28:31.190000000
NUMBER_OF_FRAMES: 3472
NUMBER_OF_FRAMES-eng: 3472
NUMBER_OF_BYTES : 23166056
NUMBER_OF_BYTES-eng: 23166056
_STATISTICS_WRITING_APP: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v9.2.0 ('Photograph') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-07-07 08:16:12
_STATISTICS_WRITING_DATE_UTC-eng: 2016-07-07 08:16:12
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Metadata:
DURATION : 01:47:24.598000000
At least one output file must be specified


I just want the track number and info on the english audio tracks and subtitle tracks..I've seen examples with awk and sed and exiftool but none really did the trick...TIA
armight29
 
Posts: 7
Joined: Fri Jun 10, 2016 6:41 pm

Re: getting info from ffprobe...

Postby llogan » Sat Oct 22, 2016 4:52 pm

You really don't need to ask the same question three times.
Get an answer more quickly by providing your actual ffmpeg command and the complete console output. Use the code button to format your command and output or your question will be ignored.
llogan
 
Posts: 2354
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska


Return to ffprobe

Who is online

Users browsing this forum: No registered users and 1 guest