dank074 / Discord-video-stream

Experiment for making video streaming work for discord selfbots.
178 stars 34 forks source link

Audio Async #104

Open Abruccii opened 12 hours ago

Abruccii commented 12 hours ago

Hey there,

I try to play files from my Jellyfin Mediaserver to Discord. As there is no better way to do that then directstream the media files with something like this project i have installed the example project from this repo on my jellyfin server. So Media Files are directly accessed.

Media Files are mostly .mkv Movie Files. Currently i used 1 .mkv File to test everything. I copied the details (resolution, bitrate, fps) from the .mkv file to .env so that this values are correct (later ill directly read and set them via ffprobe). Everything seems to work fine and quality is great except that the audio has a few seconds delay to the video. Any idea why that is?

I start the file with command $play-live ./movies/example.mkv

Abruccii commented 11 hours ago

When using custom-copy-codec with the mkv i only get audio, no video. Any parameters i need to modify in ffmpeg?

dank074 commented 2 hours ago

Disable readAtNativeFps which is enabled by default. It is known to cause issues in certain streams and I still don't know why. Still enabled by default though because it is more accurate than controlling the fps with setTimeout and it doesn't always break the audio/video sync