Reputation: 13
Below ffmpeg image conversion works for nokia conformation heic files but not iphone heic images
ffmpeg -i c001.heic -c:v mjpeg -frames:v 1 -pix_fmt rgb48 outs.jpg (works for nokia conformation files https://github.com/nokiatech/heif_conformance/tree/master/conformance_files but not iphone images )
For iphone images ,it throws the below exception [mov,mp4,m4a,3gp,3g2,mj2 @ 0000021bcaba9980] moov atom not found image4.heic: Invalid data found when processing input
Is there anything I'm missing
Upvotes: 1
Views: 1705
Reputation: 29
Not sure this works on images but try this ffmpeg command:
ffmpeg -i c001.heic -c:v mjpeg -frames:v 1 -pix_fmt rgb48 -movflags faststart outs.jpg
The -movflags faststart
argument moves the atom files to the start of the file. This has worked for me for MOV files from iPhone. If that doesn't work in transcoding straight to JPG, first copy the file like so:
ffmpeg -i c001.heic -c:v mjpeg -frames:v 1 -pix_fmt rgb48 -movflags faststart c001_fixed.heic
Then attempt your original command.
Upvotes: 1