Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

FileGlobLivestream Using 100% of all CPU Cores #74

Closed

Description

@kylejbrk

Describe the bug
When I start streaming it works fine, but after about a minute (maybe when going to the next file?) my CPU usage maxes out and causes the stream to buffer.

The only setting I changed in the pylivestream.ini is the preset to ultrafast, which didn't seem to help.

I'm also getting this error when starting the stream. Not sure if its related:


ERROR:root:FPS not available: /home/kyle/Documents/myStream/audio/Aviscerall - Nostalgia Infinite - 04 Scattered Dreams.mp3. Is it a video/audio file?

 ffmpeg -loglevel error -re -filter_complex movie=/home/kyle/Documents/myStream/video/publicDomainEarth.mp4:loop=0,setpts=N/FRAME_RATE/TB -i /home/kyle/Documents/myStream/audio/Aviscerall - Nostalgia Infinite - 04 Scattered Dreams.mp3 -codec:v libx264 -pix_fmt yuv420p -preset ultrafast -b:v 800k -r 30.0 -g 60.0 -codec:a aac -b:a 128k -ar 44100 -maxrate 800k -bufsize 400k -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/bju6-a2q1-cf73-61z8-619f 

System Parameters
FileGlobLivestream ~/Documents/myStream/audio/ youtube -glob "*.mp3" -image ~/Documents/myStream/video/publicDomainEarth.mp4 -shuffle -loop

  • Operating system: Ubuntu
  • FFmpeg version: 4.3.1

Activity

  1. scivision commented on Oct 18, 2021

    @scivision
    Owner

    This is probably an issue with the media file or FFmpeg. I would try copy-pasting the command line you've noted above without using PyLivestream to see if the same issue happens.

  2. Repository owner locked and limited conversation to collaborators on Dec 1, 2022
  3. converted this issue into a discussion #95 on Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ffmpegIssue that may be due to FFmpeg itself

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions