User Tools

Site Tools


ffprobe

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ffprobe [2020-12-16 19:35:47]
mi [ffprobe]
ffprobe [2023-06-08 15:10:59] (current)
mi [Show video format]
Line 13: Line 13:
 ===== Show video format===== ===== Show video format=====
  
-  ffprobe -v quiet -select_streams v -show_entries stream=codec_name,​height,​width,​pix_fmt -of csv=p=0 "​$in"​+  ffprobe -v warning ​-select_streams v -show_entries stream=codec_name,​height,​width,​pix_fmt -of csv=p=0 "​$in"​
  
 +===== Has alpha channel? =====
 +
 +https://​stackoverflow.com/​questions/​69029439/​a-good-way-to-detect-alpha-channel-in-a-video-using-ffmpeg-ffprobe
 +
 +<code bash>for f in *.mov; do
 +  pixfmt=$(ffprobe -v 0 -select_streams v:0 -show_entries stream=pix_fmt -of compact=p=0:​nk=1 "​$f"​)
 +  alpha=$(ffprobe -v 0 -show_entries pixel_format=name:​flags=alpha -of compact=p=0 ​ | grep "​$pixfmt|"​ | grep -oP "​(?<​=alpha=)\d"​)
 +  if (( alpha )); then echo "$f : yes, has alpha";​ else echo "$f : NO"; fi
 +done
 +</​code>​
 ===== List audio tracks ===== ===== List audio tracks =====
  
/docs/dokuwiki/data/attic/ffprobe.1608143747.txt.gz ยท Last modified: 2020-12-16 19:35:47 by mi