Bug 474883 - Videos exported from Kdenlive cannot be pulled into iPhone Photos App due to the Codec ID. (hev1 vs hvc1)
Summary: Videos exported from Kdenlive cannot be pulled into iPhone Photos App due to ...
Status: REPORTED
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (show other bugs)
Version: 23.08.1
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-26 03:18 UTC by Chris
Modified: 2023-09-26 03:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2023-09-26 03:18:49 UTC
SUMMARY

I was having a hard time figuring out why I was not able to pull any video rendered from KdenLive from Telegram right into my iPhone camera roll. This is a workflow thing I use to upload shorts to YouTube because they only let you choose the thumbnail for the video if it is uploaded from your mobile device. 

I made sure first the problem was coming from Kdenlive, and I did detailed comparisons and analysis using mediainfo. I determined that KdenLive exports H265 videos with the hev1 Codec ID and I noticed that my other video editor exported H265 with the hvc1 Codec ID. 

Any and all videos I exported so far with Kdenlive are not able to be downloaded from Telegram into iPhone Photos App. They do however play in Telegram and the videos themselves are fine, this is just a compatibility problem that might be specific to iOS (QuickTime). 

After running this FFMPEG command on a H265 video exported in KdenLive:
 ffmpeg -i <inputfile>.mov -c:v copy -tag:v hvc1 -c:a copy <output-hvc1>.mov

Then uploaded the new file to Telegram, I can now pull it into the iPhone camera roll like usual. 

STEPS TO REPRODUCE

1. Export a H265 video from Kdenlive (the issue is not specific to H265 I also experienced the same with H264 but my preferred render codec is hevc_nvenc).
2. Upload it to Telegram Saved Messages in order to pull the video into iPhone camera roll 
3. Save the video into your iPhone camera roll. 

OBSERVED RESULT
If the video does not appear in camera roll, this is the problem I was experiencing. 

EXPECTED RESULT

After changing the Codec ID using the ffmpeg command, it now works to grab the file from Telegram into the iPhone Photos app. 

SOFTWARE/OS VERSIONS
Not specific to the OS but I am on Windows 11. 

ADDITIONAL INFORMATION

Stack overflow article that helped me solve it: https://stackoverflow.com/questions/32152090/encode-h265-to-hvc1-codec