sorry, I made a mistake for explanation of ffencoder_audio, the third param of ffencoder_audio is the sample count not the buffer size in bytes.
if you want to encode 800 audio sample, you should pass 800, not 800 * 4.
And for the recording of ffnes, I also found it was desync after taking a long time. I am trying to fix this bug.
On some low price computer, when using ffnes recording video, the cpu usage is high. It causes audio noise when play games.
Due to the complexity of the H264 encoding, it will spend lots of CPU resource. And in ffnes, I do audio/video rendering and encoding in the same single thread, making thread busy, when audio buffers could not rendered coutinous to wave out device, there will be noise.
two ways can improve this:
1. using another video encode type H263, MPEG2, ...
2. using multi-threads, create a new thread for encoding.
3. for desync issue, if set frame rate 60Hz in ffencoder params, should encode 800 sample(48000/60) audio on each frame.
Recording and streaming emu frames
Moderator: Moderators