Hi,

"C:\Program Files (x86)\FFMPEG\bin\ffprobe" -i "C:\test.mov" prints out the information below about a file. I would like to only get the name of the codec. So in this case Apple ProRes 422 HQ. I know that I can save the output to a text file and parse through it in the command line. But I also know that when I want to only get the width of a video stream I can do this: "C:\Program Files (x86)\FFMPEG\bin\ffprobe" -v error -of default=nokey=1:noprint_wrappers=1 -select_streams v:0 -show_entries stream=width "input.mov"
So my guess is I can also only get the codec name?

Cheers,
Martin

ffprobe version N-69375-g4155f2d Copyright (c) 2007-2015 the FFmpeg developers
  built on Jan 28 2015 22:14:02 with gcc 4.9.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 18.100 / 54. 18.100
  libavcodec     56. 21.101 / 56. 21.101
  libavformat    56. 19.100 / 56. 19.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5.  9.101 /  5.  9.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\test.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2015-09-13 18:19:30
  Duration: 00:09:28.94, start: 0.000000, bitrate: 193440 kb/s
Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2015-09-13 18:19:31
      handler_name    : Apple Alias Data Handler
Stream #0:1(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 191888 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc (default)
    Metadata:
      creation_time   : 2015-09-13 18:19:31
      handler_name    : Apple Alias Data Handler
      encoder         : Apple ProRes 422 (HQ)

--
www.herrschmidt.tv

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to