Title basically, I need to parse the date modified, the time and seconds in order to reconstruct the filenames in the format of an android phone’s camera roll.
I should be able to make the script once I know how to parse the metadata is all
- sibloure ( @sibloure@beehaw.org ) English2•1 year ago
I’ve been using ChatGPT to help come up with bash scripts like this. Make sure you test the script out on a folder of dummy files first if you’re not sure.
There’s a nice tool called media info that can get that for you for video (and audio files) as for images, I’d check if imagemagick has a tool for it.
- db2 ( @db2@lemmy.one ) English1•1 year ago
Use ffprobe to get video info, it makes it dead easy. Practically a one liner.
- PoisonedPrisonPanda ( @PoisonedPrisonPanda@discuss.tchncs.de ) English1•1 year ago
Chatgpt is your friend here. ;)
- Mechanize ( @Mechanize@feddit.it ) English5•1 year ago
Probably I’m misreading it, but isn’t this kind of answer basically saying “google it”?
I don’t want to sound rude, but my english is kind of failing me, I’m just curious, but what’s the point?
One of the reasons of this kind of public forum is to share knowledge and experiences. ChatGPT is a closed, private, garden where the answer will just die.
I could get a “I don’t really know the answer but I used ChatGPT and it gave me this:” followed by a script, or something like that.
I know, this is off-topic and I’m sorry, I’m just really interested in Why, considering it’s said multiple times in this comment section.
- Gutless2615 ( @Gutless2615@ttrpg.network ) English0•1 year ago
It literally is. This is a great use case for going down the chat gpt approach. Or we’ll help you throw together a script for this quickly.
- PoisonedPrisonPanda ( @PoisonedPrisonPanda@discuss.tchncs.de ) English1•1 year ago
yeah but in 80% of the time the less complex solutions are more quickly resolved using chatgpt.
waiting for another human is not instantaneous.