You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Galaxy s21 +, various iphone devices (iPhone8, iPhone 12)
Which capture component are you using?
Capture From Camera
Capture mode
Offline
Which output mode are you using?
Video file
Video codecs
H264
Audio source
Unity
Audio codecs
AAC
Any other component configuration
No response
The issue
Hi, I found out that when capturing the video the exact presentation timestamp of the video is not set to the first frame of the video. Currently I am resolving this issue by running an ffmpeg command
which corrects the timestamp. However, if I do not do this processing the first frame of the video shows a black screen with no recording. Happens both in iOS and Android
The culprit here is the audio track. The audio capture has got in first and written data before the first video frame has been sent so the start pts of the file is first audio frame.
Unity Version
2022.03.11f
AVPro Movie Capture Version
5.2.1 - ultra
Which platform(s) are you using?
iOS, Android
Which OS version(s) are you using?
Android 13, iOS 16.7.5
Which rendering API(s) are you using?
Metal, OpenGLES
Hardware
Galaxy s21 +, various iphone devices (iPhone8, iPhone 12)
Which capture component are you using?
Capture From Camera
Capture mode
Offline
Which output mode are you using?
Video file
Video codecs
H264
Audio source
Unity
Audio codecs
AAC
Any other component configuration
No response
The issue
Hi, I found out that when capturing the video the exact presentation timestamp of the video is not set to the first frame of the video. Currently I am resolving this issue by running an ffmpeg command
ffmpeg -i {realVideoPath} -vf \"setpts=PTS-STARTPTS\" -c:v mpeg4 -crf 16 -preset medium -b:v 10000k -af \"asetpts=PTS-STARTPTS\" -c:a aac -b:a 192k -ar 48000 -r 60 {tempVideoPath}
which corrects the timestamp. However, if I do not do this processing the first frame of the video shows a black screen with no recording. Happens both in iOS and Android
### Log output
The text was updated successfully, but these errors were encountered: