Seven7Lemons
IImmich
•Created by TastesLikeShit on 10/31/2024 in #help-desk-support
Invalid data found when processing input Error: ffprobe exited with code 1
It's my python script to use the API, you can use the methods listed here -- https://immich.app/docs/api/get-asset-info
14 replies
IImmich
•Created by TastesLikeShit on 10/31/2024 in #help-desk-support
Invalid data found when processing input Error: ffprobe exited with code 1
Sure thing, if the file sizes are not small then yea you can assume that. Just take a peak into one of the assets either with the API(easier) or logging in the database to query the asset info. If you need a script template for the API, its simple. This is how I found out the troublesome files,
~/p/d/i/scripts> python immich_getAssetInfo.py
As you can see even though "livePhotoVideoId": null,
the file was a live photo, I just used the "originalFileName"
and did a file or extension search in web immihc and deleted the file. I'm sure there are better ways of handling that that I don't know of but that worked for me.
If you want to poke around the databse (which they don't recommend), after logging in the docker,
sudo docker exec -it immich_postgres /bin/bash
and logging in using -- psql -U your_username -d your_database_name
, defaults are postgres
and immich
respectively.
And then listing your tables with \dt
Then finding the details or file name about that asset:
SELECT * FROM assets WHERE id = '<asset_id>';
Then search the filename in immich or your shell and see the troublesome file.14 replies
IImmich
•Created by TastesLikeShit on 10/31/2024 in #help-desk-support
Invalid data found when processing input Error: ffprobe exited with code 1
If its not those two, Its going to be annoying to fix. That moov atom could end up at the end of the video file rendering it corrupt. Now you can try and fix that individual file with some tools like untrunc - https://github.com/ponchio/untrunc
Either way you will need to get or access the specific file from the asset name. I personally use the API and use the
getAssetInfo
method. you can refer the API documentation. Then either getting the file name and searching in immich and then deleting it or trying to fix the corrupt video. I made a script that gets the filename from the assetname and then just delete the live photos.14 replies
IImmich
•Created by TastesLikeShit on 10/31/2024 in #help-desk-support
Invalid data found when processing input Error: ffprobe exited with code 1
Ahh, a classic. From my experience it could be one of two options,
1. The video file is corrupted when ffmpeg tries to encode it.
The moov
atom is a unique component of the file that specifies the timeline, duration, display properties, and sub-atoms carrying data for each track in the video
2. Its a live photo or a motion photo which might have been perceived as a video file by immich.14 replies