NextLevel / NextLevelSessionExporter

🔄 Export and transcode media in Swift
http://nextlevel.engineering
MIT License
262 stars 49 forks source link

Can't compress a video with no sound #28

Open saulye opened 4 years ago

saulye commented 4 years ago

If I try to compress a video that has no sound in it, it crashes. Also if I try to compress a video recorded on device camera.

eoinoconnell commented 4 years ago

For what its worth I resolved this for myself by first checking if the asset I wanted to compress had an audio track before making one in the final composition.

In my case I wanted to combine multiple videos into one and I came across this issue as I assumed that I would always want an audio track in my composition. Adding a check and only adding an audio track if at lease one of the AVAssets I wanted to combine had an audio track solved it for me.

nyeu commented 2 years ago

I have the same issue, is it possible?