libopenshot icon indicating copy to clipboard operation
libopenshot copied to clipboard

rendered videos' audio does not import to iMovie

Open ckirmse opened this issue 5 years ago • 2 comments

Using libopenshot, if I render out a video using FFmpegWriter with standard h.264 & aac streams, iMovie for some reason fails to import the audio stream. After a bunch of testing, it appears to be correlated with the audio stream not having a start time of 0. I found this code in FFmpegWriter.cpp around line 966-968

` // Since the PTS can change during encoding, set the value again. This seems like a huge hack,

		// but it fixes lots of PTS related issues when I do this.

		pkt.pts = pkt.dts = write_audio_count;`

which dates from 2012 and as far as I can tell is not a good thing to be doing, from logging the values there. I removed the hack and it solved my problem; I think perhaps other audio bugs have been fixed over the years so this hack might now cause more harm than good? I'd love to know if there's any additional reasoning behind it.

ckirmse avatar Feb 12 '21 22:02 ckirmse

Interesting. I'm also seeing issues with QuickTime video previews which is also caused by the video start_time not being set to 0. Related ticket here: #644

jeffski avatar Mar 14 '21 22:03 jeffski

Thank you so much for submitting an issue to help improve OpenShot Video Editor. We are sorry about this, but this particular issue has gone unnoticed for quite some time. To help keep the OpenShot GitHub Issue Tracker organized and focused, we must ensure that every issue is correctly labelled and triaged, to get the proper attention.

This issue will be closed, as it meets the following criteria:

  • No activity in the past 90 days
  • No one is assigned to this issue

We'd like to ask you to help us out and determine whether this issue should be reopened.

  • If this issue is reporting a bug, please can you attempt to reproduce on the latest daily build to help us to understand whether the bug still needs our attention.
  • If this issue is proposing a new feature, please can you verify whether the feature proposal is still relevant.

Thanks again for your help!

stale[bot] avatar Jun 13 '21 10:06 stale[bot]