[GH-ISSUE #165] [BUG] ffplay playback #29

Open
opened 2026-02-27 08:11:30 +03:00 by kerem · 1 comment
Owner

Originally created by @112cxyz on GitHub (Nov 23, 2022).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/165

Describe the bug
Im trying to make a simple spotify player but when ever i use the example ffplay example i get this error

Traceback (most recent call last): File "/home/toby/SpotifyPlayer/main.py", line 61, in <module> ffplay.stdin.write(byte) BrokenPipeError: [Errno 32] Broken pipe

To Reproduce
Use
while True: byte = stream.input_stream.stream().read(1) if byte == -1: break ffplay.stdin.write(byte)

Expected behavior
It should play the song via ffplay

Client Information (please complete the following information):

  • OS: [Ubuntu 20.04]
  • Python Version [3.8.10]
  • Library Version [0.7.1]

Additional context
Add any other context about the problem here.

Originally created by @112cxyz on GitHub (Nov 23, 2022). Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/165 **Describe the bug** Im trying to make a simple spotify player but when ever i use the example ffplay example i get this error `Traceback (most recent call last): File "/home/toby/SpotifyPlayer/main.py", line 61, in <module> ffplay.stdin.write(byte) BrokenPipeError: [Errno 32] Broken pipe` **To Reproduce** Use `while True: byte = stream.input_stream.stream().read(1) if byte == -1: break ffplay.stdin.write(byte)` **Expected behavior** It should play the song via ffplay **Client Information (please complete the following information):** - OS: [Ubuntu 20.04] - Python Version [3.8.10] - Library Version [0.7.1] **Additional context** Add any other context about the problem here.
Author
Owner

@112cxyz commented on GitHub (Nov 23, 2022):

I have found out this is because its using SDL to show and play the music

<!-- gh-comment-id:1324930561 --> @112cxyz commented on GitHub (Nov 23, 2022): I have found out this is because its using SDL to show and play the music
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot-python-kokarare1212#29
No description provided.