PyavOutput and VLC compatibility #1320
Replies: 1 comment
-
I'm not sure I fully understand the code. I can see that you're writing to the PyavOutput from the initial CircularOutput2 "circ", but what is the "clone" doing? If you take that out do you still have the same problem? It might be worth taking a little time to create the simplest example you can that shows the problem. For example, is that "clone" necessary? Can you remove the audio? Presumably the tuning file changes aren't relevant? Probably the streaming_output is not relevant either, so that could be removed? If you can create a slightly simpler example, I'd be happy to take a look. If I had to guess, it might be that updating the capture_encoder's outputs while it's running isn't safe, but let's see if we can do anything to pin down the cause of the problem first. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks... do you have any tips to improve compatibility with VLC or other media players? I'm working on a "wildlife" camera for the birds that frequent my window.
Previously I was recording .mjpeg files and later converting them to .mp4 with ffmpeg, and those files would play fine on macOS, even in QuickLook. Then I wanted to fix the inaccurate timestamps/framerate issue due to MJPEG not having support for variable frame durations, and somewhere along the line I discovered PyavOutput.
Now I'm using PyavOutput to make .mp4 files directly from H264Encoder and CircularOutput2, and I was even able to add audio for free. Nice! Not to mention I don't have to transfer the large .mjpeg files to the PC for the intensive processing anymore. However, playback only seems to work in IINA.app (and ffplay) on macOS. Both QuickTime and the latest version of VLC (3.0.21) can't play them.
I appreciate any suggestions.
More info:
I tried changing format from YUV420 to RGB888 but it didn't help.
The VLC 'Messages' window shows one error:
and a few hundred warnings, all the same:
Couldn't find an answer to that.
My setup code looks like this:
And for capture I have basically this:
(Thank you so much btw for all the example codes that have helped me so much!)
Beta Was this translation helpful? Give feedback.
All reactions