Jump to content

Ubuntu Emby + TuneIn Won't play


th3_d0c

Recommended Posts

This is the error I am getting from the ffmpeg log when I try to play tune-in from Kodi:

Application version: 3.2.32.0

http://192.168.1.7:8096/audio/e20d7b3e3fdef3c51ff24c2711a506a0/stream?Params=;uuid:8e71635b-679c-69ca-2c14-087235fa365c;e20d7b3e3fdef3c51ff24c2711a506a0;false;;;;;;;;;;;0;;;;;;;;;e20d7b3e3fdef3c51ff24c2711a506a0;false;;;false;;false;;false;false;ContainerNotSupported

{"Protocol":"Http","Id":"ffd79ecbbe8d27ec27330540cc248d8b","Path":"http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-einws","Type":"Default","Container":"mp3","Name":"ffd79ecbbe8d27ec27330540cc248d8b","IsRemote":true,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":false,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"EnableMpDecimate":false,"RequiresLooping":false,"MediaStreams":[{"Codec":"mp3","DisplayTitle":"MP3 2 ch","IsInterlaced":false,"BitRate":128000,"Channels":2,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false}],"Formats":[],"Bitrate":128000,"RequiredHttpHeaders":{}}

/usr/src/ffmpeg/ffmpeg -i "http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-einws" -threads 0 -vn -ac 2 -id3v2_version 3 -write_id3v1 1 -y "/var/lib/emby-server/transcoding-temp/a29048c676859251ad8a708fb6ff54ce"

ffmpeg version N-87347-gbba9c1c Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.3)
  configuration: 
  libavutil      55. 75.100 / 55. 75.100
  libavcodec     57.106.101 / 57.106.101
  libavformat    57. 82.101 / 57. 82.101
  libavdevice    57.  8.101 / 57.  8.101
  libavfilter     6.105.100 /  6.105.100
  libswscale      4.  7.103 /  4.  7.103
  libswresample   2.  8.100 /  2.  8.100
[mp3 @ 0x13342a0] Skipping 125 bytes of junk at 0.
Input #0, mp3, from 'http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-einws':
  Metadata:
    icy-name        : bbc_world_service_news_internet
    icy-public      : 0
    StreamTitle     : 
  Duration: N/A, start: 0.000000, bitrate: 56 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 56 kb/s
[NULL @ 0x133a320] Unable to find a suitable output format for '/var/lib/emby-server/transcoding-temp/a29048c676859251ad8a708fb6ff54ce'
/var/lib/emby-server/transcoding-temp/a29048c676859251ad8a708fb6ff54ce: Invalid argument
ffmpeg version N-87347-gbba9c1c Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.3)
  configuration: 
  libavutil      55. 75.100 / 55. 75.100
  libavcodec     57.106.101 / 57.106.101
  libavformat    57. 82.101 / 57. 82.101
  libavdevice    57.  8.101 / 57.  8.101
  libavfilter     6.105.100 /  6.105.100
  libswscale      4.  7.103 /  4.  7.103
  libswresample   2.  8.100 /  2.  8.100
[mp3 @ 0x13342a0] Skipping 45 bytes of junk at 0.
Input #0, mp3, from 'http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-einws':
  Metadata:
    icy-name        : bbc_world_service_news_internet
    icy-public      : 0
    StreamTitle     : 
  Duration: N/A, start: 0.000000, bitrate: 56 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 56 kb/s
[NULL @ 0x133a320] Unable to find a suitable output format for '/var/lib/emby-server/transcoding-temp/a29048c676859251ad8a708fb6ff54ce'
/var/lib/emby-server/transcoding-temp/a29048c676859251ad8a708fb6ff54ce: Invalid argument

When I run the ffmpeg command directly in a terminal (ssh into the kodi box), it, not surprisingly, says the same thing.

 

 

And this is the error when I try to play tunein from the web client, local playback (chrome + OSX):


2017-09-28 23:36:26.226 Info HttpClient: HttpClientManager GET: http://opml.radiotime.com/Tune.ashx?id=s25419&formats=mp3,aac&partnerId=uD1X52pA&serial=364ec52604c3484cbb9491c5ec9baf9a&formats=mp3,aac
2017-09-28 23:36:26.270 Debug TuneInChannel: FILE NAME : pls.pls
2017-09-28 23:36:26.270 Debug TuneInChannel: URL : http://open.live.bbc.co.uk/mediaselector/5/select/mediaset/http-icy-mp3-a/vpid/bbc_radio_fourfm/format/pls.pls
2017-09-28 23:36:26.270 Debug TuneInChannel: Extension : .pls
2017-09-28 23:36:26.271 Info HttpClient: HttpClientManager GET: http://open.live.bbc.co.uk/mediaselector/5/select/mediaset/http-icy-mp3-a/vpid/bbc_radio_fourfm/format/pls.pls
2017-09-28 23:36:26.885 Debug TuneInChannel: COUNT : 2
2017-09-28 23:36:26.885 Debug TuneInChannel: FILE : 2 - HTTP://BBCMEDIA.IC.LLNWD.NET/STREAM/BBCMEDIA_RADIO4FM_MF_Q?S=1506659786&E=1506674186&H=75776C2E9A2FF3CC5CD2B279194CBFE9
2017-09-28 23:36:26.886 Debug TuneInChannel: FILE : 2 - HTTP://BBCMEDIA.IC.LLNWD.NET/STREAM/BBCMEDIA_RADIO4FM_MF_Q?S=1506659786&E=1506674186&H=75776C2E9A2FF3CC5CD2B279194CBFE9
2017-09-28 23:36:26.893 Info App: User policy for USER. EnableAudioPlaybackTranscoding: True
2017-09-28 23:36:26.893 Info App: RemoteClientBitrateLimit: 5000000, RemoteIp: 192.168.1.8, IsInLocalNetwork: True
2017-09-28 23:36:26.893 Info App: Profile: Unknown Profile, No direct play profiles found for Path: http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_q?s=1506659786&e=1506674186&h=75776c2e9a2ff3cc5cd2b279194cbfe9
2017-09-28 23:36:26.894 Info App: User policy for USER. EnableAudioPlaybackTranscoding: True
2017-09-28 23:36:26.894 Info App: RemoteClientBitrateLimit: 5000000, RemoteIp: 192.168.1.8, IsInLocalNetwork: True
2017-09-28 23:36:26.894 Info App: Profile: Unknown Profile, No direct play profiles found for Path: http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_q?s=1506659786&e=1506674186&h=75776c2e9a2ff3cc5cd2b279194cbfe9
2017-09-28 23:36:26.900 Debug JsonSerializer: Deserializing file /var/lib/emby-server/metadata/channels/af71c681da609e9be4975068f35e0328/8a9d3cf47ac50cd6f6c2852d293b0f1e/channelmediasources.json
2017-09-28 23:36:26.908 Info HttpServer: HTTP Response 200 to 192.168.1.8. Time: 690ms. http://192.168.1.7:8096/emby/Audio/8a9d3cf47ac50cd6f6c2852d293b0f1e/universal?UserId=ecd7f042ee4a423aa6dd998fcac33753&DeviceId=f93f3c05d3e6b494287a59facaad0b8d98c54ba1&MaxStreamingBitrate=140000000&Container=opus,mp3|mp3,aac,m4a|aac,flac,webma,webm,wav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1506663185021&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false 
2017-09-28 23:36:26.923 Info HttpServer: HTTP GET http://192.168.1.7:8096/emby/Audio/8a9d3cf47ac50cd6f6c2852d293b0f1e/universal?UserId=ecd7f042ee4a423aa6dd998fcac33753&DeviceId=f93f3c05d3e6b494287a59facaad0b8d98c54ba1&MaxStreamingBitrate=140000000&Container=opus,mp3|mp3,aac,m4a|aac,flac,webma,webm,wav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1506663185021&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false. UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
2017-09-28 23:36:26.930 Debug JsonSerializer: Deserializing file /var/lib/emby-server/metadata/channels/af71c681da609e9be4975068f35e0328/8a9d3cf47ac50cd6f6c2852d293b0f1e/channelmediasources.json
2017-09-28 23:36:26.937 Info App: User policy for USER. EnableAudioPlaybackTranscoding: True
2017-09-28 23:36:26.937 Info App: RemoteClientBitrateLimit: 5000000, RemoteIp: 192.168.1.8, IsInLocalNetwork: True
2017-09-28 23:36:26.937 Info App: Profile: Unknown Profile, No direct play profiles found for Path: http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_q?s=1506659786&e=1506674186&h=75776c2e9a2ff3cc5cd2b279194cbfe9
2017-09-28 23:36:26.938 Info App: User policy for USER. EnableAudioPlaybackTranscoding: True
2017-09-28 23:36:26.938 Info App: RemoteClientBitrateLimit: 5000000, RemoteIp: 192.168.1.8, IsInLocalNetwork: True
2017-09-28 23:36:26.938 Info App: Profile: Unknown Profile, No direct play profiles found for Path: http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_q?s=1506659786&e=1506674186&h=75776c2e9a2ff3cc5cd2b279194cbfe9
2017-09-28 23:36:26.942 Debug JsonSerializer: Deserializing file /var/lib/emby-server/metadata/channels/af71c681da609e9be4975068f35e0328/8a9d3cf47ac50cd6f6c2852d293b0f1e/channelmediasources.json
2017-09-28 23:36:26.954 Info HttpServer: HTTP Response 200 to 192.168.1.8. Time: 31ms. http://192.168.1.7:8096/emby/Audio/8a9d3cf47ac50cd6f6c2852d293b0f1e/universal?UserId=ecd7f042ee4a423aa6dd998fcac33753&DeviceId=f93f3c05d3e6b494287a59facaad0b8d98c54ba1&MaxStreamingBitrate=140000000&Container=opus,mp3|mp3,aac,m4a|aac,flac,webma,webm,wav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1506663185021&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false 
2017-09-28 23:36:26.962 Info HttpServer: HTTP GET http://192.168.1.7:8096/emby/Audio/8a9d3cf47ac50cd6f6c2852d293b0f1e/live.m3u8?UserId=ecd7f042ee4a423aa6dd998fcac33753&DeviceId=f93f3c05d3e6b494287a59facaad0b8d98c54ba1&MaxStreamingBitrate=140000000&Container=opus,mp3|mp3,aac,m4a|aac,flac,webma,webm,wav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1506663185021&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false&SegmentContainer=ts&TranscodeReasons=ContainerNotSupported. UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
2017-09-28 23:36:26.964 Error HttpServer: Could not find handler for /emby/Audio/8a9d3cf47ac50cd6f6c2852d293b0f1e/live.m3u8
2017-09-28 23:36:26.965 Info HttpServer: HTTP Response 404 to 192.168.1.8. Time: 4ms. http://192.168.1.7:8096/emby/Audio/8a9d3cf47ac50cd6f6c2852d293b0f1e/live.m3u8?UserId=ecd7f042ee4a423aa6dd998fcac33753&DeviceId=f93f3c05d3e6b494287a59facaad0b8d98c54ba1&MaxStreamingBitrate=140000000&Container=opus,mp3|mp3,aac,m4a|aac,flac,webma,webm,wav&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1506663185021&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false&SegmentContainer=ts&TranscodeReasons=ContainerNotSupported 
2017-09-28 23:36:26.973 Info HttpServer: HTTP POST http://192.168.1.7:8096/emby/Sessions/Playing. UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
2017-09-28 23:36:26.978 Info HttpServer: HTTP GET http://192.168.1.7:8096/emby/Users/ecd7f042ee4a423aa6dd998fcac33753/Items/8a9d3cf47ac50cd6f6c2852d293b0f1e. UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
2017-09-28 23:36:26.980 Info HttpServer: HTTP GET http://192.168.1.7:8096/emby/Items/8a9d3cf47ac50cd6f6c2852d293b0f1e/Images/Primary?height=140&tag=e07ace9498617e2da2f5cc3892e3f189&quality=90. UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
2017-09-28 23:36:26.985 Debug JsonSerializer: Deserializing file /var/lib/emby-server/metadata/channels/af71c681da609e9be4975068f35e0328/8a9d3cf47ac50cd6f6c2852d293b0f1e/channelmediasources.json
2017-09-28 23:36:26.991 Debug JsonSerializer: Deserializing file /var/lib/emby-server/metadata/channels/af71c681da609e9be4975068f35e0328/8a9d3cf47ac50cd6f6c2852d293b0f1e/channelmediasources.json
2017-09-28 23:36:27.010 Info HttpServer: HTTP Response 200 to 192.168.1.8. Time: 33ms. http://192.168.1.7:8096/emby/Users/ecd7f042ee4a423aa6dd998fcac33753/Items/8a9d3cf47ac50cd6f6c2852d293b0f1e 
2017-09-28 23:36:27.010 Info HttpServer: HTTP Response 204 to 192.168.1.8. Time: 37ms. http://192.168.1.7:8096/emby/Sessions/Playing 
2017-09-28 23:36:27.068 Info HttpResultFactory: Transmit file /var/lib/emby-server/cache/temp/543a0f12df8742c5b6704fb15f37156e.webp
2017-09-28 23:36:27.070 Info HttpServer: HTTP Response 200 to 192.168.1.8. Time: 90ms. http://192.168.1.7:8096/emby/Items/8a9d3cf47ac50cd6f6c2852d293b0f1e/Images/Primary?height=140&tag=e07ace9498617e2da2f5cc3892e3f189&quality=90 
2017-09-28 23:36:27.078 Info HttpServer: HTTP POST http://192.168.1.7:8096/emby/Sessions/Playing/Stopped. UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
2017-09-28 23:36:27.081 Debug App: ReportPlaybackStopped PlaySessionId: 1506663185021
2017-09-28 23:36:27.082 Info SessionManager: Playback stopped reported by app Emby Mobile 3.2.32.0 playing BBC
  

** I am also having issues with music playback on the webclient, but I'll make a new post about that later.

 

Thanks for the help!

Edited by th3_d0c
Link to comment
Share on other sites

If I play this address in chrome:

2017-09-28 23:36:26.937 Info App: Profile: Unknown Profile, No direct play profiles found for Path: http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_q?s=1506659786&e=1506674186&h=75776c2e9a2ff3cc5cd2b279194cbfe9

 
 
Everything plays just fine.
Link to comment
Share on other sites

Ok.  Got it working in the web player - the errors changed today to something along the lines of:

Automatic encoder selection failed for output stream #0:0. Default encoder for format mp3 (codec mp3) is probably disabled. Please choose an encoder manually.
Error selecting an encoder for stream 0:0

Which made it a lot easier to understand.....  **Note: not really sure why the errors changed but followed these commands to fix it (basically reinstalled ffmpeg):

# cd /my/path/where/i/keep/compiled/stuff
# git clone git://source.ffmpeg.org/ffmpeg.git
# cd ffmpeg
# ./configure --enable-gpl --enable-libx264 --enable-libmp3lame --enable-nonfree --enable-libfdk-aac
# make
# sudo make install
# sudo make ldconfig

Now the kodi playback is getting closer, but I am not getting a kodi error when I try to play the files.

00:18:57 T:2901693472  NOTICE: -->Python Interpreter Initialized<--
00:18:58 T:2901693472  NOTICE: EMBY.default -> plugin.video.emby started
00:18:58 T:2901693472  NOTICE: EMBY.default -> Parameter string: ?id=fe8a5e0d0da39a031080061559b5f463&mode=play params: {'id': ['fe8a5e0d0da39a031080061559b5f463'], 'mode': ['play']}
00:18:58 T:2901693472  NOTICE: EMBY.playbackutils -> Play called.
00:18:58 T:2901693472  NOTICE: EMBY.playutils -> Could not get file path for embyfilename window prop
00:18:58 T:2901693472  NOTICE: EMBY.playutils -> File protocol is http.
00:18:58 T:2901693472  NOTICE: EMBY.default -> plugin.video.emby stopped
00:18:58 T:3032526848  NOTICE: CDVDPlayer::CloseFile()
00:18:58 T:3032526848  NOTICE: DVDPlayer: waiting for threads to exit
00:18:58 T:3032526848  NOTICE: DVDPlayer: finished waiting
00:18:58 T:3032526848  NOTICE: DVDPlayer: Opening: http://192.168.1.7:8096/emby/Audio/fe8a5e0d0da39a031080061559b5f463/stream&api_key=59fe9ecc8cd1480c8b24968d9a43d68d
00:18:58 T:3021992992  NOTICE: Thread DVDPlayer start, auto delete: false
00:18:58 T:3021992992  NOTICE: Creating InputStream
00:18:58 T:3021992992   ERROR: CCurlFile::Open failed with code 404 for http://192.168.1.7:8096/emby/Audio/fe8a5e0d0da39a031080061559b5f463/stream&api_key=59fe9ecc8cd1480c8b24968d9a43d68d
00:18:58 T:3021992992   ERROR: Open - failed to open source <http://192.168.1.7:8096/emby/Audio/fe8a5e0d0da39a031080061559b5f463/stream&api_key=59fe9ecc8cd1480c8b24968d9a43d68d>
00:18:58 T:3021992992   ERROR: CDVDPlayer::OpenInputStream - error opening [http://192.168.1.7:8096/emby/Audio/fe8a5e0d0da39a031080061559b5f463/stream&api_key=59fe9ecc8cd1480c8b24968d9a43d68d]
00:18:58 T:3021992992  NOTICE: CDVDPlayer::OnExit()
00:18:58 T:3032526848   ERROR: Playlist Player: skipping unplayable item: 12, path [plugin://plugin.video.emby/?id=fe8a5e0d0da39a031080061559b5f463&mode=play]
00:18:58 T:2901693472 WARNING: CPythonInvoker(53, /home/ubuntu/.kodi/addons/plugin.video.emby/default.py): the python script "/home/ubuntu/.kodi/addons/plugin.video.emby/default.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE
Link to comment
Share on other sites

Angelblue05

I'm trying to figure out where it's coming from in the addon. It's def not imported that way into the Kodi database, it's hardcoded to be stream.ext?static=true.

 

I don't add the api key anywhere either...

Link to comment
Share on other sites

I'm trying to figure out where it's coming from in the addon. It's def not imported that way into the Kodi database, it's hardcoded to be stream.ext?static=true.

 

I don't add the api key anywhere either...

 

Could this be it?

 

https://github.com/MediaBrowser/plugin.video.emby/blob/708d3d7f3972d874f224360a7e30ec4f4ca1d052/resources/lib/playutils.py#L124-L129

 

The code is always starting with &api_key=xxx, but the first param should be ? instead of &

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...