Open jpage4500 opened 1 year ago
I figured out a fix for this.. feel free to close the issue but hopefully it might help someone else:
I listed the encoders for this device (Pixel 7) and picked this one:
--video-codec=h264 --video-encoder='OMX.google.h264.encoder'
mind you the default one worked just fine -- only the resulting video displayed the Quicktime error and the one above didn't.
~/working/istresearch/pulse-android/scripts$ scrcpy --list-encoders
scrcpy 2.0 <https://github.com/Genymobile/scrcpy>
/opt/homebrew/Cellar/scrcpy/2.0_1/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 72.6 MB/s (52867 bytes in 0.001s)
[server] INFO: List of video encoders:
--video-codec=h264 --video-encoder='c2.exynos.h264.encoder'
--video-codec=h264 --video-encoder='c2.android.avc.encoder'
--video-codec=h264 --video-encoder='OMX.google.h264.encoder'
--video-codec=h265 --video-encoder='c2.exynos.hevc.encoder'
--video-codec=h265 --video-encoder='c2.android.hevc.encoder'
[server] INFO: List of audio encoders:
--audio-codec=opus --audio-encoder='c2.android.opus.encoder'
--audio-codec=aac --audio-encoder='c2.android.aac.encoder'
--audio-codec=aac --audio-encoder='OMX.google.aac.encoder'
mind you the default one worked just fine -- only the resulting video displayed the Quicktime error and the one above didn't.
That's unexpected :/
Are you sure that it is not the audio Opus stream which causes issues?
I thought maybe audio recording might be the issue so I disabled it but still got the same result.
With scrcpy --no-audio --record=file.mp4
?
You could also test scrcpy --audio-codec=aac --record=file.mp4
.
@rom1v that's not the issue, I've tried --no-audio, issue it's still there.
Environment
Describe the bug I'm not sure what changed or if this is even an issue with scrcpy, but just recently when capturing videos from my Pixel7 I've noticed the following popup on Quicktime when opening them.
I've never seen this before using scrcpy and the same mac OS (13.1). I should note that hitting Continue still opens the video and it plays back fine.
Any ideas if there's something I can do in scrcpy to prevent this? Again, it might just be a Mac/Quicktime issue but I figured I'd have better luck seeing if anyone else has also seen this too?
Here's how I'm launching scrcpy:
I thought maybe audio recording might be the issue so I disabled it but still got the same result.
Here's what Quicktime is reporting for video details