Questions tagged [file-metadata]
Questions about exacting or editing the metadata (creation-date, modified, author etc.) of a file.
116 questions
0
votes
1
answer
140
views
How to insert metadata in audio cd tracks with Linux?
I have created wav files as this
ffmpeg -i 1.wav -codec copy -metadata title="Title1" -metadata author="Author1" -metadata comment="My comment" -y 2.wav
Then I burn the ...
6
votes
2
answers
503
views
Can I use grep or strings to find the previous atime of a file still present on my btrfs?
The metadata of this file which resides on my HDD is written by CoW, therefore can I look for it just by using grep or strings, and the filename?
0
votes
1
answer
67
views
Can I use grep or strings to seach for deleted file name on btrfs?
Months ago, one of my systemd journal files was purged from my btrfs hdd. Because I couldn't use file carving to check if the content is still on the hdd because unfortunately the format is binary and ...
1
vote
1
answer
84
views
Forensics to recover the second-to-last access timestamp of a file on btrfs on HDD
I searched online, to no avail. Is there some way to recover the access timestamp of my file on BTRFS, before the access timestamp which appears currently? Using HDD (not SSD). Please let me know. Is ...
0
votes
0
answers
89
views
Not able to modify inode metadata
I am working on a ext4 file-system tool that aims to delete files such that they are not recoverable later on. My goal is to clear the inode metadata of a deleted file, but despite my efforts, the ...
1
vote
1
answer
150
views
Should we use convert or img2pdf for creating lossless multi-page PDF files out of gray PNM photocopies? And why?
Let's assume that you have 4 scanned pages, created by scanimage -resolution 1200 and postprocessed by GIMP: each page was rotated so that the text lines were horizontal, the bled-through text was ...
1
vote
2
answers
420
views
Copy timestamp and metadata from one file to another
I rotated an MP4-video and in this process lost the correct metadata and timestamp of the file.
Is there a way to copy the metadata and timestamp from the original (not roated) file to the new file. (...
1
vote
1
answer
199
views
EXIF-based CLI renaming/querying tool for video/mp4?
I currently use exiv2 0.28.2 tool to accomplish the same task on my JPEG/TIFF/Raw picture files from the command line. It works really great.
Unfortunately it doesn't work reliably on video/mp4 media ...
-3
votes
2
answers
96
views
Explain to a beginner the meaning of -mtime in simple human language
Of course, I read the meager lines from the manual. I'm still interested in the specifics.
For example, the stat / some_files command
print this:
access 2024 (now)
modified 2022
changeded 2023
...
5
votes
1
answer
202
views
is stat(2) read-after-write consistent with write(2)?
man 2 write states:
POSIX requires that a read(2) that can be proved to occur after a write() has returned will return the new data. Note that not all filesystems are POSIX conforming.
In Linux, is ...
0
votes
0
answers
306
views
macOS Terminal: How do I edit an MP3 file's metadata after renaming?
I have a script using variables already renaming files to the following format:
(track#) - (title) - (artist) - (date).mp3
#! /bin/zsh -
set -o extendedglob
pattern='(#b)*_ \((<0-999>)\)(* )—( *...
0
votes
2
answers
1k
views
Imagemagick, how to print date the photo was taken on the image
Imagemagick 6.9.11-60 on Debian. How to print date & time the photo was taken on the image? (on existing images). I have set this option in camera settings, but it only applies to new photos. The ...
0
votes
1
answer
497
views
Bulk convert from PNG/TIFF to JPG with minimal loss in quality
I need to upload my photos to Shutterfly, but they don't seem to support EXIF data on PNG/BMP images. I need to thus convert to JPG for some prints, but I want to lose as little information as ...
0
votes
1
answer
731
views
How to preserve file creation date when overwriting files?
When I'm overwriting one file with another one, not only it's modification time updates, but also birth time, which is unwanted.
I want to make Dolphin overwrite files that way, so target's birth time ...
1
vote
1
answer
149
views
Convert directory with opus files to CSV or similar?
I have a folder with opus sound files. I would like to convert that folder listing to something I can use in a spreadsheet. I want the result to contain something like file name, length of the sound ...
6
votes
3
answers
659
views
evince opens pdf in "presentation mode"
when opening a particular pdf file, evince decides to open it in "presentation mode".
I see in the man page that evince has -s option to open in presentation mode, but I did not invoke it. I ...
8
votes
2
answers
2k
views
How to automatically set the modification (or creation) time of a Quicktime video file based on its meta data?
In a shell, how to automatically set the modification (or creation) date and time of a Quicktime video file based on the metadata in the file with a single command (or a single command line)? For JPG ...
0
votes
1
answer
145
views
Empty folders without changing folder's Last Modified Date
I wish to delete the contents of around 600 folders on my Linux Mint PC but I want to retain the Last Modified Date of the top-most folder as it existed before deleting the files. This would be ...
0
votes
1
answer
977
views
How do I list the meta-data in a font file?
I have some font file (specifically, a TrueType, .tff, file) which I want to examine. I can run:
file myfont.ttf
and get something like:
TrueType Font data, 15 tables, 1st "OS/2", 24 names, ...
0
votes
5
answers
6k
views
Get list of all files and directories with their permission and owners
I need to generate a list of all files and directories with their permission and owner e.g.
-rw-rw-r-- black www-data foo/
-rw-r--r-- black www-data foo/foo.txt
-rw-rw-r-- black www-...
0
votes
1
answer
165
views
Modification date fields are not up to date in Nemo
I have a big folder containing several folders.
When I open the big folder in Nemo, I noticed that the modification date of several of the subfolders was not up to date, even if files they contain ...
-4
votes
1
answer
121
views
Why don't any Linux distros have a built-in ability to edit media metadata? [closed]
In Windows you can simply right-click a media file and edit its metadata - no additional software needed. Why is this ability absent in Linux? Is there some inherent technical limitation in Linux that ...
0
votes
1
answer
628
views
Add “album_artist” tag to an opus file
I find the opusenc command (from the opus-tools package in Debian) to edit Opus files metadata.
But, according to his man’s synopsis (and other sections in the man) it doesn’t provide a way to edit ...
2
votes
0
answers
1k
views
add/edit custom metadata fields to video files without remuxing?
TL;DR - Looking for a way to edit/add CUSTOM metadata fields to video files without remuxing.
I have some media files that I add custom metadata fields to (mostly mkv files downloaded with yt-dlp but ...
0
votes
1
answer
680
views
`cat` affects last `Access` time but not last `Change` time
On my Ubuntu system, I've created a new file prueba.txt using touch prueba.txt. When I show its file statistics using stat prueba.txt, the output is as follows:
File: prueba.txt
Size: 0 ...
6
votes
1
answer
5k
views
Copy a file and preserve its creation date
I need to copy files and preserve all their metadata, including creation date.
I found ways to use rsync options to preserve modification date, but I also need the creation date to be the same, and ...
0
votes
1
answer
1k
views
How to change the modification date (The Metadata) of multiple files?
I have a gallery folder with multiple images and videos, some of them has their modification date correct, and some of them has the month wrong.
I want to make a script that will change all the files ...
7
votes
2
answers
5k
views
Add image (cover art) to Opus (ogg) audio file using ffmpeg
Question
I have 2 files:
audio.opus (extension also possible: .opus.ogg),
cover.jpg.
How can I use ffmpeg to put cover.jpg as an embedded "cover" image into audio.opus?
Constraints
I don'...
1
vote
2
answers
2k
views
Is there a way to add a "description" field / meta-data that could viewed in ls output (or an alternative to ls)?
I have been using unix systems the majority of my life. I often find myself teaching others about them. I get a lot of questions like "what is the /etc folder for?" from students, and ...
0
votes
0
answers
1k
views
Recovering a filesystem with a large amount of inode checksum errors - ext4 64 bit on debian 11
The situation is as follows: I have a (very old) filesystem - it was created in 2006.
It started off as ext2, got migrated to ext3, then to ext4, then to ext4 with 64bit.
I recently enabled ...
0
votes
1
answer
385
views
How to find out the extra meta data size written by process in linux?
I am currently doing a comparison of fsync vs fdatasync in linux, to see how much more data is written to the disk in fsync.
I have tried using iotops and checked /proc//io file to check if it ...
0
votes
1
answer
169
views
Script for Exporting File Metadata to CSV?
DISCLAIMER: I am not a developer and don't have much knowledge of coding; however, what I want to do seems simple enough.
I use Pro Tools and want to run a terminal script in Mac OS to be able to scan/...
2
votes
1
answer
910
views
Indexing files' metadata
Is there a tool that allows to index (search) files based on their metadata on linux? I've search a bit and found (here) that there are several tools that allow file indexing on linux:
Recoll
mlocate
...
2
votes
0
answers
322
views
File Creation Date Inconsistent Between Windows and Linux
I need to get the creation date for some files on a network share. When accessing the file on Windows it shows the correct date.
When I switch to Linux and run the stat command on the same file it is ...
1
vote
1
answer
1k
views
Set the system attribute on files exported with Samba
I have a Linux server that exports Samba shared folders to a Windows client. From a Linux shell, I need to set the system attribute. On Windows, I would run
attrib +s folder
How can I do this on the ...
2
votes
3
answers
18k
views
How can I find the last 10 modified files
I'm in the root folder and need to find the last 10 modified files of just this folder. Every time I put -mtime like my lecturer said I get 10 days. I need the last 10 modified files, not the last 10 ...
2
votes
3
answers
3k
views
Backup and restore timestamps of files/directories?
We need to backup the a/c/mtime-stamps of files and directories, and have the ability to restore them if necessary.
An example command to back up could be:
$ timestamp backup --all-stamps --incl-dir-...
0
votes
1
answer
132
views
BTRFS: List the Crc's of a file's blocks
How can I output the Crc's of a file's blocks?
I made a copy of a file using reflink, and I want verify if the original and copied contents are still the same. My intent is to compare the Crc's on ...
0
votes
1
answer
533
views
Cannot disable metadata_csum from buildroot configuration
I'm trying to boot STM32MP157A-DK1 with a Buildroot image that I made but I got this error and I cannot disable the metadata_cesum from the Buildroot configuration.
I tried
...
1
vote
1
answer
328
views
Filesystem with "bubbling" directory size
This is just my comment from How to cache or otherwise speed up `du` summaries? formulated as a question of its own:
Are there any extended discussions about creating a filesystem in which the total ...
0
votes
1
answer
348
views
How to set modified file's metadata to equal the created_on value of recovered images?
I recovered images from an android LOST.DIR folder.
The data recovered successfully, now I'd like to set the modified timestamp of the file to be equal to the created on value of the binary data.
I'm ...
0
votes
2
answers
1k
views
Extract jpg property 'keyword' from terminal
Using Ubuntu 20.04, I can right-click on a jpg and select 'properties'. A window will open containing the tab 'image'. In this tab, there is a section called 'Keywords', the content of which I would ...
3
votes
1
answer
1k
views
Question marks in ls metadata output?
I was monitoring a directory containing downloads from Google Chrome with ls -la and got this in the output:
-????????? ? ? ? ? ? 'Unconfirmed 784300.crdownload'
I've never ...
1
vote
1
answer
1k
views
Since when do Unix systems support birth/creation time (btime/crtime) for files and directories?
Does anyone know when Unix supports birth/creation time stamps for files and directories? If possible also when first file manager (GUI) displays it by default for users.
For comparison with Windows, ...
1
vote
0
answers
180
views
tar / pack `a-r` "unreadable" files
If there are files unreadable even to the owner (chmod a-r), tar and other tools will throw errors when creating an archive. However, these files could be updated with chmod u+r before archiving, and ...
2
votes
2
answers
693
views
pdftk does not update PageLabel metadata
I realised that pdftk does not update the PageLabel metadata, when using update_data_utf8. I've got a pdf file (let's call it file.pdf), which contains the metadata
PageLabelBegin
PageLabelNewIndex: 1
...
2
votes
1
answer
514
views
Is it possible to search for a string and replace it with another string in the title tag of multiple mp3 files?
I would like to
search for "ytversion",
replace it with "mqversion"
in the title tag
of multiple mp3 files. I would like this process not edit/delete any other parts of the ...
0
votes
2
answers
186
views
ID3tag - Script for extracting metadata from filename
I have directory of recording with
foo - bar-202009.opus
unix - tilde-2020se.opus
stack - exchange-29328f.opus
I trying to set meta from file name
for foo - bar.202009.opus
(there are some ...
28
votes
4
answers
34k
views
Removing metadata from a PDF
What commands must I issue irreversibly to remove all metadata
from foo.pdf? Assume embedded images are already clean.
I got the impression from
https://gist.github.com/hubgit/6078384
that
exiftool -...
1
vote
1
answer
2k
views
ffmpeg not copying FRONT_COVER image metadata during conversion
When doing an mp3 → mp3 (or flac → mp3) conversion, -map_metadata can be used to copy metadata from the input file to the output file:
ffmpeg -hide_banner -loglevel warning -nostats -i "${source}&...