Pixel mp4 sample description errors blocking the edits

Started by Rajat98, May 20, 2025, 05:23:47 AM

Previous topic - Next topic

Rajat98

Hello, I have been using exiftool since a couple of months now. Great tool, solved a lot of my problems related to organising my photos and videos.

However, when trying to edit Pixel mp4 files I am getting the error - "Error: No data reference for sample description 0 for Track1"

I have read in another post that this has been resolved with version 12.41. But I am using version 13.16, but still getting this error.

Below is the command that I was trying to execute -

exiftool -overwrite_original '-DateTimeOriginal<${filename}' -ext MP4 PXL*

Error -

Warning: [minor] The ExtractEmbedded option may find more tags in the media data [x8] - PXL_20230505_002240540.TS.mp4
Error: No data reference for sample description 0 for Track1 - PXL_20230505_002240540.TS.mp4

exiftool -ver
13.16

StarGeek

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype


Phil Harvey

The sample you provided does not show this issue with the current version of ExifTool.

Also, you should be setting CreateDate and not DateTimeOriginal in MP4 videos.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

And if you're using Apple devices, I believe you should also set Keys:CreationDate.

Due to the fact that most video time stamps are supposed to be in UTC, you probably also want to add the -api QuickTimeUTC option.

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Rajat98

Thanks it works with latest version 13.29. Also thanks for suggesting Keys:CreationDate. I was using it for mov files, it has local time with timezone which is exactly what I want. But somehow I got fixated on DateTimeOriginal for mp4 files as I was using DateTimeOriginal for jpg as well. Now it makes more sense to me to use Keys:CreationDate for all my videos and DateTimeOriginal for images.

I am uploading my images and videos on Apple Photos app and I want to see the local time and timezone where the videos were taken, so CreateDate doesn't work for me as it depends on location data to show the correct timezone. For videos where location data is not available, it resolved into my system timezone, which is not correct.