I'm having a terrible time getting one single line of metadata from ffprobe.
I'm running this command:
ffprobe -show_entries 'stream_tags : format_tags=com.apple.quicktime.creationdate' -loglevel error IMG_9931.MOV
And I get this output
[STREAM]
TAG:creation_time=2022-05-14T20:24:55.000000Z
TAG:language=und
TAG:handler_name=Core Media Video
TAG:encoder=H.264
[/STREAM]
[STREAM]
TAG:creation_time=2022-05-14T20:24:55.000000Z
TAG:language=und
TAG:handler_name=Core Media Audio
[/STREAM]
[STREAM]
TAG:creation_time=2022-05-14T20:24:55.000000Z
TAG:language=und
TAG:handler_name=Core Media Metadata
[/STREAM]
[STREAM]
TAG:creation_time=2022-05-14T20:24:55.000000Z
TAG:language=und
TAG:handler_name=Core Media Metadata
[/STREAM]
[STREAM]
TAG:creation_time=2022-05-14T20:24:55.000000Z
TAG:language=und
TAG:handler_name=Core Media Metadata
[/STREAM]
[FORMAT]
TAG:com.apple.quicktime.creationdate=2022-05-14T16:24:55-0400
[/FORMAT]
But the only thing I want returned is
com.apple.quicktime.creationdate=2022-05-14T16:24:55-0400
I've searched and searched but I can't find any examples of pulling a single specific value of metadata.
In actuality, I really just want the value of com.apple.quicktime.creationdate... ie "2022-05-14T16:24:55-0400"
I know I can grep and awk my way through it, but it seems like there should be a way to do it with ffprobe alone given all of the options it has. I just can't figure out how.
How can I do this? Any help would be appreciated.