LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2018, 12:19 PM   #5191
Redbullsnation
LQ Newbie
 
Registered: Jun 2014
Posts: 21

Rep: Reputation: Disabled

BTW, is anyone having success getting alternative audio? I'm not to sure why I'm not getting another audio other than the TV feed
 
Old 05-14-2018, 06:09 PM   #5192
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by Redbullsnation View Post
BTW, is anyone having success getting alternative audio? I'm not to sure why I'm not getting another audio other than the TV feed
Yes it works fine, apart from the fact that sometimes the radio audio is a little out of sync. Probably you are not using ffmpeg-4, or have an insufficiently recent version of streamlink.
 
Old 05-14-2018, 06:24 PM   #5193
x-9er
LQ Newbie
 
Registered: Mar 2018
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by chrisVV View Post
Yes it works fine, apart from the fact that sometimes the radio audio is a little out of sync. Probably you are not using ffmpeg-4, or have an insufficiently recent version of streamlink.
Using "--hls-audio-select", '"*"' in your play.py? Or another method?
 
Old 05-14-2018, 06:29 PM   #5194
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by x-9er View Post
Using "--hls-audio-select", '"*"' in your play.py? Or another method?
I do not know what you man by 'play.py' - I use mlbplay.py. Possibly you are using the wrong program. Try mlbplay.py and see if that works.

For what it is worth, my streamlink_args are
Quote:
--ffmpeg-ffmpeg /usr/bin/ffmpeg40 --hls-audio-select 'English Radio'
/usr/bin/ffmpeg40 is a script which starts ffmpeg-4.0, which is installed in /opt/ffmpeg40 - you don't want to interfere with your distribution's version.
 
Old 05-14-2018, 06:39 PM   #5195
x-9er
LQ Newbie
 
Registered: Mar 2018
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by chrisVV View Post
I do not know what you man by 'play.py' - I use mlbplay.py. Possibly you are using the wrong program. Try mlbplay.py and see if that works.

For what it is worth, my streamlink_args are

/usr/bin/ffmpeg40 is a script which starts ffmpeg-4.0, which is installed in /opt/ffmpeg40 - you don't want to interfere with your distribution's version.
There is no mlbplay.py in the current mlbstreamer package... mlbplay.py was part of the old, no longer functioning mlbviewer.
 
Old 05-14-2018, 06:54 PM   #5196
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by x-9er View Post
There is no mlbplay.py in the current mlbstreamer package... mlbplay.py was part of the old, no longer functioning mlbviewer.
OK I see at least part of what you are doing wrong. The python script installed in /usr/bin is /usr/bin/mlbplay, not /usr/bin/mlbplay.py (my mistake on that). You should be starting /usr/bin/mlbplay, not trying to invoke play.py directly. More generally, read the README.md file in the mlbstreamer package which tells you how to set up and start the program.

You also need to set your streamlink_args in $HOME/.config/mlbstreamer/config.yaml and you need to have a ffmpeg-4.0 binary in your path or identified by the --ffmpeg-ffmpeg option, and the ffmpeg-4.0 libraries in a directory appearing in /etc/ld.so.conf or set LD_LIBRARY_PATH (which is what my /usr/bin/ffmpeg40 script does).
 
1 members found this post helpful.
Old 05-14-2018, 07:25 PM   #5197
x-9er
LQ Newbie
 
Registered: Mar 2018
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by chrisVV View Post
OK I see at least part of what you are doing wrong. The python script installed in /usr/bin is /usr/bin/mlbplay, not /usr/bin/mlbplay.py (my mistake on that). You should be starting /usr/bin/mlbplay, not trying to invoke play.py directly. More generally, read the README.md file in the mlbstreamer package which tells you how to set up and start the program.

You also need to set your streamlink_args in $HOME/.config/mlbstreamer/config.yaml and you need to have a ffmpeg-4.0 binary in your path or identified by the --ffmpeg-ffmpeg option, and the ffmpeg-4.0 libraries in a directory appearing in /etc/ld.so.conf or set LD_LIBRARY_PATH (which is what my /usr/bin/ffmpeg40 script does).
That's... exactly what I am already doing. There should not be a functional difference between editing the config file streamlink_args and doing it directly in play.py, which gets called by the linked binary anyway.

Either way, you're right in that adding

Code:
streamlink_args: '--ffmpeg-ffmpeg /usr/local/bin/ffmpeg --ffmpeg-verbose --hls-audio-select "English Radio"'
to config.yaml does result in a somewhat different output, however, --hls-audio-select "*" returns nothing at all but the bash prompt. But I could already get one alternate audio channel by putting it in play.py.
 
Old 05-14-2018, 07:38 PM   #5198
x-9er
LQ Newbie
 
Registered: Mar 2018
Posts: 24

Rep: Reputation: Disabled
OK, I see one of the problems. The Spanish language radio is titled "Radio Espaņola" in the playlist, which results in python reporting thusly

"UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 108: ordinal not in range(128)"

position 108 is the ņ...
 
Old 05-14-2018, 08:49 PM   #5199
x-9er
LQ Newbie
 
Registered: Mar 2018
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by x-9er View Post
OK, I see one of the problems. The Spanish language radio is titled "Radio Espaņola" in the playlist, which results in python reporting thusly

"UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 108: ordinal not in range(128)"

position 108 is the ņ...
Code:
streamlink_args:  '-l debug --ffmpeg-ffmpeg /usr/local/bin/ffmpeg --ffmpeg-verbose --hls-audio-select "English Radio,Natural Sound"'
Will get you TV, radio, and natural sound.
 
Old 05-15-2018, 03:33 AM   #5200
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by x-9er View Post
OK, I see one of the problems. The Spanish language radio is titled "Radio Espaņola" in the playlist, which results in python reporting thusly

"UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 108: ordinal not in range(128)"

position 108 is the ņ...
There is a streamlink patch for this near the end of https://github.com/tonycpsu/mlbstreamer/issues/1 which doesn't seem to have found it's way into git . Or you could use python-3 instead of python-2.7. Or you could mux in only the english radio stream, which is what I do and which your subsequent posting does.
 
Old 05-15-2018, 11:06 AM   #5201
x-9er
LQ Newbie
 
Registered: Mar 2018
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by chrisVV View Post
There is a streamlink patch for this near the end of https://github.com/tonycpsu/mlbstreamer/issues/1 which doesn't seem to have found it's way into git . Or you could use python-3 instead of python-2.7. Or you could mux in only the english radio stream, which is what I do and which your subsequent posting does.
oh jeez i see people already went through everything i was discussing above. i feel pretty dumb for not checking that now.
 
Old 05-15-2018, 12:08 PM   #5202
x-9er
LQ Newbie
 
Registered: Mar 2018
Posts: 24

Rep: Reputation: Disabled
After re-building streamlink using python3 and with the streamlink_args of

streamlink_args: -l debug --ffmpeg-ffmpeg /usr/local/bin/ffmpeg --ffmpeg-verbose --hls-audio-select "*"

I successfully got all audio channels, however,

[mpegts @ 0x7f8b7780ac00] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[aac @ 0x7f8b7b81dc00] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[aac @ 0x7f8b7c019000] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[aac @ 0x7f8b7c004c00] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[download][LAA.ts] Written 16.1 MB (2s @ 7.9 MB/s)

It froze after this. Will have to look into this later
 
Old 05-15-2018, 01:24 PM   #5203
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by x-9er View Post
oh jeez i see people already went through everything i was discussing above. i feel pretty dumb for not checking that now.
Well it was me who reported the issue. I didn't think it was your problem here, because you said that you could only receive the TV feed. If you run up against python-2.7's difficulty with unicode, you get nothing at all: it just crashes. It doesn't bother me because I am not interested in the spanish feed.

Edit: I have never tried the patch, so I cannot comment on your freeze.

Edit2: Try it without debugging enabled. That may be the cause of the problem.

Last edited by chrisVV; 05-15-2018 at 01:30 PM.
 
Old 05-15-2018, 02:10 PM   #5204
x-9er
LQ Newbie
 
Registered: Mar 2018
Posts: 24

Rep: Reputation: Disabled
Honestly after rebuilding everything to use python3 it has stopped working more or less entirely if I have any streamlink_args at all, now it just freezes. Works fine without them, though, which will have to suffice for me now.
 
Old 05-15-2018, 03:39 PM   #5205
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by x-9er View Post
Honestly after rebuilding everything to use python3 it has stopped working more or less entirely if I have any streamlink_args at all, now it just freezes. Works fine without them, though, which will have to suffice for me now.
You wrote:

Code:
streamlink_args:  '-l debug --ffmpeg-ffmpeg /usr/local/bin/ffmpeg --ffmpeg-verbose --hls-audio-select "English Radio,Natural Sound"'
Try:

Code:
streamlink_args: --ffmpeg-ffmpeg /usr/local/bin/ffmpeg --ffmpeg-verbose --hls-audio-select 'English Radio,Natural Sound'
Your additional quotes may be causing a parsing error.
 
  


Reply

Tags
help, install, installation, instructions, seek, vlc, windows



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mlb.com gameday audio stream statmobile Linux - Newbie 6 05-06-2008 10:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration