Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OGG file playing skips continuously after several seconds #1435

Closed
3 tasks done
Saboe opened this issue May 3, 2024 · 11 comments
Closed
3 tasks done

OGG file playing skips continuously after several seconds #1435

Saboe opened this issue May 3, 2024 · 11 comments

Comments

@Saboe
Copy link

Saboe commented May 3, 2024

  • I have checked the FAQ for answers.
  • I have checked the Changelog that the issue is not already fixed.
  • I believe this issue is a bug, and not a general technical issue, question or feature requests that can be discussed on the forum.

Describe the bug
When playing an OGG file, the playback begins to skip after several seconds and then it skips continuously.

To Reproduce

  • add a Ogg-Vorbis sound file to the playlist, the sound file will or should be directly played back
  • wait several seconds, perhaps 10 seconds or jump directly with the progress slider to somewhere in de sound file

Expected behavior
playback should never skip

Screenshots:
./.

System Information:

  • Operating system: Arch Linux
  • Strawberry Version 1.0.23

Additional context
Probably this issue is more or less the same issue #1422

@jonaski
Copy link
Member

jonaski commented May 19, 2024

Does it skip if you play the file with this command?

gst-play-1.0 --use-playbin3 --audiosink="alsasink" file:///path/filename

Replace alsasink with pulsesink if you are using pulseaudio.

@Saboe
Copy link
Author

Saboe commented May 20, 2024

No skips, neither with with --audiosink="alsasink" nor with --audiosink="pulsesink".
The same file added to the playlist lets strawberry "gets confused" while playing which means, it skips endless.

@jonaski
Copy link
Member

jonaski commented May 23, 2024

I can't reproduce this. Is this one specific file, or all Ogg Vorbis files?
What's the buffer settings under backend settings set to? Are any features such as audio normalization, equalizer or bs2b enabled?

@Saboe
Copy link
Author

Saboe commented May 27, 2024

As far as I know this issue I have with all OGG's.
How can I find out what the buffer settings are? And the rest of your question regarding audio normalization, bs2b (what's it?)?

@jonaski
Copy link
Member

jonaski commented May 27, 2024

On the file menu: Tools / Settings / Backend.

@Saboe
Copy link
Author

Saboe commented May 28, 2024

Tools / Settings / Backend

Audio Output
Engine: GStreamer
Output: Send audio/video to pipewire
Output: Automatically select

Options
Enable volume control: enabled
Upmix / downmix to ...: disabled
Improve headphone listening ....: disabled
Enable HTTP/s for strewaming: disabled
Use strict SSL mode: disabled

Buffer
Buffer duration: 4000 ms
Low watermark: 0,33
High watermark: 1,00

Audio normalization
No audio normalization: disabled

Replay Gain
Use Replay Gain metadata if it is available: enabled
Replay Gain mode: Radio (equal loudness for all tracks)
Pre-amp -0,9 dB
Fallback-gain +0,0 dB
Apply compression to prevent clipping: enabled

EBU R 128 Loudness Normalization
Perform track loudness normalization: disabled

Fading
Fade out when stopping a track: enabled
Cross-fade ....: both disabled
Fading duration: 2000 ms
Fade out ...: disabled

As far as I know are these the defaults except the fade out when stopping. I've changed this month's ago.

@jonaski
Copy link
Member

jonaski commented May 28, 2024

High watermark set to 1,0 is not the default, it's 0,99.

Please try these buffer settings:

Buffer duration: 8000 ms
Low watermark: 0,10
High watermark: 0,99

@Saboe
Copy link
Author

Saboe commented May 30, 2024

High watermark set to 1,0 is not the default, it's 0,99.

Yes, after I pressed "default" it changed to 0,99. I also changed the buffer duration to 8000 ms. Now I can play an OGG file but may not jump when it's playing. When I jump forward by 10 seconds with the right cursor key, the skipping begins immediately. When I jump back by 10 seconds (cursor left) then it gets much more ugly and during the first try Strawberry crashed few seconds later. During a second try I got the following pop-up error message:

Strawberry error - The stream is in the wrong format.
../gstreamer/subprojects/gst-plugins-base/gst/audioconvert/gstaudioconvert.c(910): gst_audio_convert_transform (): /GstPlayBin3:pipeline-1-pipeline/GstPlaySink:playsink/GstBin:abin/GstBin:audiobin/GstAudioConvert:pipeline-1-audioqueueconverter: failed to map output buffer

I don't believe that (stream format wrong) because when I listening to that file with mplayer mp3/mymusic.ogg, I don't experience any issues. The same with gst-play-1.0 --use-playbin3 --audiosink="pulsesink" mp3/mymusic.ogg.

Ok, I've started Strawberry from the command line with strawberry --verbose. After the OGG plays I hitted enter in the terminal window to get an empty line and then inside strawberry I jumped few seconds forward, skipping begins and then I jumped somewhere else and then strawberry crashed after few seconds. In the terminal windows I got this:

02:49:06.551 ERROR logging:84(GStreamer) gst_buffer_resize_range: assertion 'gst_buffer_is_writable (buffer)' failed
02:49:06.551 ERROR logging:84(GStreamer-Audio) gst_audio_buffer_map: assertion 'GST_IS_BUFFER (gstbuffer)' failed
02:49:06.551 ERROR GstEnginePipeline:1348 ErrorMessageReceived ID: 1 Domain: 3279 Code: 11 Error: "The stream is in the wrong format."
02:49:06.551 ERROR GstEnginePipeline:1349 ErrorMessageReceived ID: 1 Domain: 3279 Code: 11 Debug: "../gstreamer/subprojects/gst-plugins-base/gst/audioconvert/gstaudioconvert.c(910): gst_audio_convert_transform (): /GstPlayBin3:pipeline-1-pipeline/GstPlaySink:playsink/GstBin:abin/GstBin:audiobin/GstAudioConvert:pipeline-1-audioqueueconverter:\nfailed to map output buffer"
02:49:06.552 ERROR logging:84(GStreamer) gst_mini_object_unref: assertion 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed
02:49:06.552 ERROR GstEngine:560 GStreamer error: 3279 11 "The stream is in the wrong format."
Segmentation fault (core dumped)

Perhaps it hepls.

@jonaski
Copy link
Member

jonaski commented May 30, 2024

I'm not sure what's causing this, since no-one else seem to experience these errors.
Could you share one of the ogg files with me, if you don't want to share it publicly you can share the file from dropbox or similar and send a link to my e-mail, my e-mail is listed on my profile.

@jonaski
Copy link
Member

jonaski commented May 30, 2024

Please make sure you set Output to PulseAudio, not Pipewire in the backend settings. Currently there are issues with Pipewire and GStreamer that are not solved, specifically this issue: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/2240

@jonaski
Copy link
Member

jonaski commented Jun 2, 2024

Is this still an issue with PulseAudio output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants