I have a set of old AVI files that I wish to fix using ffmpeg 'mpeg4_unpack_bframes' filter.
I can manually detect them, simply running
ffplay and I'll get a clear message:
[mpeg4 @ 0x55ef7bd90980] Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using the mpeg4_unpack_bframes bitstream filter without encoding but stream copy to fix it.
Then it is easy to fix using:
$ ffmpeg -i packed_bframes.avi -codec copy -bsf:v mpeg4_unpack_bframes unpacked_bframes.avi
My question is: what command line tool can I use on GNU/Linux (eg. Debian) to detect those files and only those (possibly without DISPLAY) ?