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

MP4 Demux #271

Open
blarwick opened this issue Jun 16, 2020 · 2 comments
Open

MP4 Demux #271

blarwick opened this issue Jun 16, 2020 · 2 comments

Comments

@blarwick
Copy link

I'm using pafy and vlc to pull down music off of a youtube video.

Example of a particular URL causing problems:

import pafy, vlc

instance = vlc.Instance()
player = instance.media_player_new()

pafy.new('https://www.youtube.com/watch?v=7jaN9B5zLzQ')
best = video.getbestaudio()
playurl = best.url
media = instance.media_new(playurl)
media.get_mrl()
player.set_media(media)
player.play

When I issue those python commands, stderr starts kicking out the following errors:

[113c5d68] mp4 demux: Fragment sequence discontinuity detected 1 != 0
[113c58e8] mp4 demux: Fragment sequence discontinuity detected 1 != 0
[113c58e8] mp4 demux: Fragment sequence discontinuity detected 1 != 2
[113c58e8] mp4 demux: Fragment sequence discontinuity detected 1 != 2
[10ba7aa0] main decoder error: buffer deadlock prevented
[113c58e8] mp4 demux: Fragment sequence discontinuity detected 1 != 2
[10ba8298] avcodec decoder: Using D3D11VA (Intel(R) UHD Graphics 620, vendor 8086(Intel), device 3ea0, revision 2) for hardware decoding
[113c58e8] mp4 demux: Fragment sequence discontinuity detected 1 != 2
[113c58e8] mp4 demux: Fragment sequence discontinuity detected 1 != 2
[113c58e8] mp4 demux: Fragment sequence discontinuity detected 1 != 2
[113c58e8] mp4 demux: Fragment sequence discontinuity detected 1 != 2
[113c58e8] mp4 demux: Fragment sequence discontinuity detected 1 != 2
[113c58e8] mp4 demux: Fragment sequence discontinuity detected 1 != 2

Is there any way to either:
a) fix this so the music plays as originally desired
b) catch these errors so that I can skip the song instead of dealing with 4 minutes of console error reporting while the song "finishes playing"

@hillt03
Copy link

hillt03 commented Jul 23, 2020

I ran into this issue a while ago. I found a way to somewhat mitigate the issue, but not completely get rid of it. IIRC it just makes it less spammy, but I'm not able to test right now since my YouTube projects aren't working because of API issues.

Anyways, here's what I did in my VLCYT project:
I changed self.vlc_player.set_mrl(song_url) to self.vlc_player.set_mrl(song_url, ":no-video")

Other than that I submitted a post on StackOverflow a while ago and received no response.

@DIvkov575
Copy link

Old discussion, but I was wondering what is the
[00007ff82eb74560] mp4 demux: Fragment sequence discontinuity detected 1 != 0 error
should I be concerned?
or can I try to catch & ignore it?
I am not fetching url's in my code even though I originally downloaded the audio off youtube

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

No branches or pull requests

3 participants