You are not logged in.

#1 2024-09-22 16:25:58

originCVII
Member
Registered: 2024-09-04
Posts: 11

issues with playback of m4a files

some, but not all .m4a files are not able to be played back by either strawberry or quod libet, the ones not able to be played back yield the following error;

internal data stream error. ../gstreamer/subprojects/gst-plugins-good/gst/isomp4/qtdemux.c(7423): gst_qtdemux_loop (): /GstPlayBin3:pipeline-1-pipeline/GstURIDecodeBin3:uridecodebin3/GstURISourceBin:urisourcebin0/GstParseBin:parsebin0/GstQTDemux:qtdemux0: streaming stopped, reason not-negotiated (-4)

i already have the faad2 and fdk-aac gst plugins installed, that are mentioned to be a prerequisite for m4a playback.

my system is up to date, and this issue has persisted over multiple system updates, as well as a strawberry update.

i have the following gst plugins installed on my pc as of now;

gst-libav
..gtk
..libcamera
..mssdk
..onnx
..opencv
..pipewire
..qml6
..qmlgl
..qsv
..va
..wpe
..bad
..bad-libs
..base
..base-libs
..espeak
..good
..ugly
..python
..vaapi
..lib32-base
..lib32-base-libs
..lib32-good

PS:i don't know what the preferred site i should host my files to share them here is, but i can say that these files have been downloaded from youtube.

there are three classes of issues with the files present;
1-said files do not start playback and show the before-mentioned error.
2-said files start playback, but are stuttery and staticky, and so much so that the audio can't be discerned.
3-said files start playback flawlessly, but stop completely partway through.

any assistance would be appreciated.

Offline

#2 2024-09-22 20:15:34

seth
Member
Registered: 2012-09-03
Posts: 58,243

Re: issues with playback of m4a files

PS:i don't know what the preferred site i should host my files to share them here is, but i can say that these files have been downloaded from youtube.

Downloaded how? yt-dlp?

yt-dlp -f140 'https://www.youtube.com/watch?v=v2AC41dglnM'
file AC⧸DC\ -\ Thunderstruck\ \(Official\ Video\)\ \[v2AC41dglnM\].m4a
mpv AC⧸DC\ -\ Thunderstruck\ \(Official\ Video\)\ \[v2AC41dglnM\].m4a
gst-play-1.0 AC⧸DC\ -\ Thunderstruck\ \(Official\ Video\)\ \[v2AC41dglnM\].m4a

Notice that for legal reasons it's not allowed to press ctrl+c while the song is playing, you'll hear it twice while writing your reply.

Offline

#3 2024-09-23 10:01:07

originCVII
Member
Registered: 2024-09-04
Posts: 11

Re: issues with playback of m4a files

seth wrote:

PS:i don't know what the preferred site i should host my files to share them here is, but i can say that these files have been downloaded from youtube.

Downloaded how? yt-dlp?

affirmative, i downloaded them form yt-dlp.

seth wrote:
yt-dlp -f140 'https://www.youtube.com/watch?v=v2AC41dglnM'
file AC⧸DC\ -\ Thunderstruck\ \(Official\ Video\)\ \[v2AC41dglnM\].m4a
mpv AC⧸DC\ -\ Thunderstruck\ \(Official\ Video\)\ \[v2AC41dglnM\].m4a
gst-play-1.0 AC⧸DC\ -\ Thunderstruck\ \(Official\ Video\)\ \[v2AC41dglnM\].m4a

Notice that for legal reasons it's not allowed to press ctrl+c while the song is playing, you'll hear it twice while writing your reply.

could you please elaborate on what you mean by this

Offline

#4 2024-09-23 10:24:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,074

Re: issues with playback of m4a files

You should run that to check whether the same issue exists with a different video (since seth doesn't do anything all day than to listen to thunderstruck, he probably verified it to be working on his machine). Ultimately the test is whether it's limited to that specific sample you have or whether other files also have issues (and generally whether it's a gstreamer bug or the file generally works, which is why the suggestion for mpv is thiere)

FWIW I have no issues here, so there must be some peculiarity to your system, the actual files in question. What do these give you when running the file/mediainfo command on them and how do the working ones differ from the not working ones?

Offline

#5 2024-09-23 11:04:34

originCVII
Member
Registered: 2024-09-04
Posts: 11

Re: issues with playback of m4a files

V1del wrote:

You should run that to check whether the same issue exists with a different video (since seth doesn't do anything all day than to listen to thunderstruck, he probably verified it to be working on his machine). Ultimately the test is whether it's limited to that specific sample you have or whether other files also have issues (and generally whether it's a gstreamer bug or the file generally works, which is why the suggestion for mpv is there)

sorry for fumbling up the quote tag, i meant the text below the code block, not the code itself; ie, why isn't it legal to press ctrl-c, but on second thought after seeing your reply, it might be because he likes that song so much.

it works flawlessly on both mpv and gstreamer, as in a case 4.

V1del wrote:

FWIW I have no issues here, so there must be some peculiarity to your system, the actual files in question. What do these give you when running the file/mediainfo command on them and how do the working ones differ from the not working ones?

error shown for case 1;

Errors                                   : Missing ID_END
Conformance errors                       : 1
 AAC                                     : Yes
  General compliance                     : Bitstream parsing ran out of data to read before the end of the syntax was reached, most probably the bitstream is malformed (frame [0..12]+[14..15]+[17..30]+32+34+[37..38]+[42..45]+[48..49]+51+[55..67]+70+[72..73]+75+[79..80]+82+[84..87]+[89..91]+[93..97]+100+[103..106]+[108..113]+[115..116]+[118..121]+[123..133], time [-00:00:00.023..00:00:00.255]+[00:00:00.302..00:00:00.325]+[00:00:00.372..00:00:00.673]+00:00:00.720+00:00:00.766+[00:00:00.836..00:00:00.859]+[00:00:00.952..00:00:01.022]+[00:00:01.091..00:00:01.115]+00:00:01.161+[00:00:01.254..00:00:01.533]+00:00:01.602+[00:00:01.649..00:00:01.672]+00:00:01.718+[00:00:01.811..00:00:01.834]+00:00:01.881+[00:00:01.927..00:00:01.997]+[00:00:02.043..00:00:02.090]+[00:00:02.136..00:00:02.229]+00:00:02.299+[00:00:02.368..00:00:02.438]+[00:00:02.485..00:00:02.601]+[00:00:02.647..00:00:02.670]+[00:00:02.717..00:00:02.786]+[00:00:02.833..00:00:03.065], offset [0x730B..0x8B5C]+[0x9870..0x8BEE]+[0x94D4..0xB76B]+0xBDA9+0xD320+[0xD5DB..0xD923]+[0xD409..0xE2C6]+[0xE4F5..0xF244]+0xE9A2+[0x10419..0x1125D]+0x12644+[0x13210..0x12279]+0x127C4+[0x1351D..0x14545]+0x1466C+[0x13F85..0x154A8]+[0x152CC..0x150DD]+[0x15B36..0x159D9]+0x166F0+[0x17C0F..0x17D87]+[0x18159..0x19760]+[0x1861D..0x19DD9]+[0x19FE4..0x1A824]+[0x1AD71..0x1CAF3])

case 2;

Errors                                   : Missing ID_END
Conformance errors                       : 1
 AAC                                     : Yes
  General compliance                     : Bitstream parsing ran out of data to read before the end of the syntax was reached, most probably the bitstream is malformed (frame [0..3]+[5..11]+[13..15]+[17..19]+[21..24]+[26..30]+[32..37]+[39..43]+[48..62]+[64..67]+[69..70]+[72..77]+[80..82]+[84..86]+[91..92]+[94..96]+[98..109]+[111..114]+[117..118]+[121..126], time [-00:00:00.023..00:00:00.046]+[00:00:00.093..00:00:00.232]+[00:00:00.279..00:00:00.325]+[00:00:00.372..00:00:00.418]+[00:00:00.464..00:00:00.534]+[00:00:00.580..00:00:00.673]+[00:00:00.720..00:00:00.836]+[00:00:00.882..00:00:00.975]+[00:00:01.091..00:00:01.416]+[00:00:01.463..00:00:01.533]+[00:00:01.579..00:00:01.602]+[00:00:01.649..00:00:01.765]+[00:00:01.834..00:00:01.881]+[00:00:01.927..00:00:01.974]+[00:00:02.090..00:00:02.113]+[00:00:02.159..00:00:02.206]+[00:00:02.252..00:00:02.508]+[00:00:02.554..00:00:02.624]+[00:00:02.694..00:00:02.717]+[00:00:02.786..00:00:02.902], offset [0xBD0F..0xC304]+[0xC761..0xC560]+[0xDC83..0xE2DC]+[0xE743..0xEE71]+[0xEB25..0xFA5C]+[0xFF6A..0x10A6F]+[0x10F90..0x11448]+[0x120B4..0x12DF5]+[0x13673..0x16904]+[0x16DAF..0x1739C]+[0x17CF4..0x17570]+[0x18734..0x195E6]+[0x1A475..0x1A847]+[0x1B026..0x1B5E6]+[0x1C633..0x1C407]+[0x1D028..0x1CE5B]+[0x1DB11..0x205B7]+[0x20AED..0x21711]+[0x21D24..0x21A87]+[0x22B28..0x23E9E])

case 3;

Conformance errors                       : 2
 mdat                                    : Yes
  General compliance                     : Element size 37664 is more than maximal permitted size 23044 (offset 0x183EC)
 MPEG-4                                  : Yes
  General compliance                     : File size 122352 is less than expected size 136972 (offset 0x183EC)

Offline

#6 2024-09-23 11:07:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,074

Re: issues with playback of m4a files

This basically shows these files are broken in some shape or form, have you tried redownloading them? Do you have the same issues when using mpv for playback instead of gstreaamer?

Offline

#7 2024-09-23 13:07:26

originCVII
Member
Registered: 2024-09-04
Posts: 11

Re: issues with playback of m4a files

i redownloaded them, and now most seem to work, but a handful still show the gstreamer error. and those don't work with mpv either, but behave like case 2 instead of 1 in mpv.

Offline

#8 2024-09-23 13:43:45

seth
Member
Registered: 2012-09-03
Posts: 58,243

Re: issues with playback of m4a files

Some network error?
Though also two are AAC streams an one is an mpeg4 container.

What file url did you download w/ yt-dlp how exactly? And did you get any errors during the download?
In what location do you downloads the files? locale drive, remote FS  or a tmpfs?

on second thought after seeing your reply, it might be because he likes that song so much

Welcome to my dictatorship tongue

Offline

#9 2024-09-23 18:31:58

tdtooke
Member
Registered: 2023-04-11
Posts: 163

Re: issues with playback of m4a files

So sorry, I literally can't help myself, but I have to correct an earlier post here:

yt-dlp -f140 'https://www.youtube.com/watch?v=h8xNn4td37k'

Offline

#10 2024-09-23 21:04:13

seth
Member
Registered: 2012-09-03
Posts: 58,243

Re: issues with playback of m4a files

Ah, AC⚡DC from 1977. Their disco phase …

mpv 'https://www.youtube.com/watch?v=OrlWWrSwaB8'

Offline

Board footer

Powered by FluxBB