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

Omxplayer ends early #27

Closed
basvdheijden opened this issue Aug 5, 2013 · 5 comments
Closed

Omxplayer ends early #27

basvdheijden opened this issue Aug 5, 2013 · 5 comments

Comments

@basvdheijden
Copy link

Omxplayer always ends early (about 40-60%) when using certain streams as input.

mkfifo /tmp/stream
wget -O /tmp/stream [URL]
omxplayer -r /tmp/stream

Any idea?

Apparently torarin already fixed the ([issue 23 (https://github.com/huceke/pull/24))

I don't know the ties between the different omxplayer repo's, but has this commit been merged back into popcornmix/omxplayer/master yet?

@popcornmix
Copy link
Owner

This branch contains every commit from huceke.

Does it only fail when using a fifo, or will the same file stop early when played as a normal file?

Are you sure your internet download speed is sufficient. If the fifo runs empty, it will probably look like an EOF, and the stream will quit.

@basvdheijden
Copy link
Author

I'm positive my download speed is sufficient. Problem is: I can't play the stream as a normal file. omxplayer only works when using the fifo trick.

Is there another method I could try?

@popcornmix
Copy link
Owner

Do you have a link to an online file that behaves like this?

@blakee
Copy link

blakee commented Aug 8, 2013

Here's another test case for what I believe to be the same issue. I've compiled omxplayer myself from git master, and am using http://db.tt/hDoOG5KT to test playback. On the 2 systems I've tested (both Raspbian minimal installs) the song is played fine, but omxplayer doesn't terminate when the song finishes. In this case there is a discrepancy in the duration reported of the mp3: mediainfo shows it as 2m1s CBR, omxplayer --info shows 00:02:05.98.

Please let me know if you need debug logs.

@basvdheijden
Copy link
Author

@popcornmix: It's not too easy to give you a direct URL, as the stream URL's are session based and can only be requested once. I've tested it with a small bash script though instead of running the commands within Node.js and it seems to work now, although I have to test it a couple of times to be sure (run a video with a length exceeding 1 hr)

Then it's probably a node child_process related issue instead of omxplayer related. Thanks for the quick replies though.

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