Kodi Community Forum
[RELEASE] Justin.tv (Video) Plugin - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Justin.tv (Video) Plugin (/showthread.php?tid=51981)



RE: [RELEASE] Justin.tv (Video) Plugin - TTTT6 - 2013-03-21

Seems like sound actually is an issue. I need to get this speex audio codec to work. Are there any updates on that? I found this thread:
http://forum.xbmc.org/showthread.php?tid=148895


RE: [RELEASE] Justin.tv (Video) Plugin - Fademan - 2013-03-31

Hi all,

The streams weren't opening so I checked my log file - it was coming up with "invalid option jtv",
so I found a version https://dl.dropbox.com/u/477050/librtmp.so.0

as the instructions didn't work from the author on page 92 (the "make" step generated errors and no file).

When selecting a stream, my xbmc shut down...er......help? :-)

Error log is now

20:00:31 T:2816416624 NOTICE: -->Python Interpreter Initialized<--
20:00:35 T:2816416624 NOTICE: -->Python Interpreter Initialized<--
20:00:40 T:2816416624 NOTICE: -->Python Interpreter Initialized<--
20:00:44 T:2975853424 WARNING: JpegIO: Error 54: Not a JPEG file: starts with 0x%02x 0x%02x
20:00:46 T:2816416624 NOTICE: -->Python Interpreter Initialized<--
20:00:48 T:6475360 NOTICE: DVDPlayer: Opening: rtmp://199.9.254.140/app/jtv_KStD2UVz9yo2W7WB jtv=f259ea30d5000f7a9ce6fb5debbab6b91cc6152c:{\22swfDomains\2$
20:00:48 T:6475360 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
20:00:48 T:3066035056 NOTICE: Creating InputStream
20:00:48 T:3066035056 ERROR: Unable to load librtmp.so.0, reason: libssl.so.1.0.0: cannot open shared object file: No such file or directory


RE: [RELEASE] Justin.tv (Video) Plugin - divingmule - 2013-03-31

Hi Fademan, what version of xbmc? what OS are you using? Most recent versions of xbmc have a librtmp that knows about the jtv option.


RE: [RELEASE] Justin.tv (Video) Plugin - henryperu77 - 2013-04-02

Hi

I installed the last version and some version of librtmp.dll that i found online but i still have problems, the video stops after 1 minute.., please could someone post an updated librtmp that worksHuh im on Windows 7 64 bits with Frodo


RE: [RELEASE] Justin.tv (Video) Plugin - divingmule - 2013-04-02

For Windows, Frodo 12 -12.1, no hacks are needed. The stock librtmp handles the jtv option. Revert your changes, or if you overwrote the original delete the file you added and re-install xbmc.

If you still have trouble post a link to your log.


RE: [RELEASE] Justin.tv (Video) Plugin - crymsonfyre - 2013-04-06

(2012-08-18, 15:51)johnadams Wrote: I would love toget this going on my first gen apple tv as well. If there is any way you could guide me and or send more detailed instructions that would be awesome. Email: [email protected]
Thanks man if u could help
Walter

Hi All,

I have an AppleTV 1st Gen and *really* wanted to get this plugin to work with in in XBMC. After a bunch of running around, I managed to make it work and thought I'd try and share what I did? Your mileage may vary. It took a bunch of playing around to do this and finally I had some success, so trying to remember it all has been kinda hard....

What I needed was git and Xcode on my iMac that was running Mountain Lion so I could compile this from source.

I think I went to http://rtmpdump.mplayerhq.hu/ and downloaded the latest code. I think I used git and did:

git clone git://git.ffmpeg.org/rtmpdump

I then changed directories into the rtmpdump/librtmp directory. Don't try and compile rtmpdump. I tried and failed miserably, but then realized I don't need that, I only needed the library file. That's why I went straight to the librtmp directory.

In the librtmp directory edited the Makefile to have:

#SYS=posix
SYS=darwin

... and added just below that...

MACOSX_DEPLOYMENT_TARGET=10.4


I then did from my command prompt:

export MACOSX_DEPLOYMENT_TARGET=10.4

I then compiled stuff with this command:

make CXXFLAGS="-arch i386 -arch x86_64" CFLAGS="-arch i386 -arch x86_64" LDFLAGS="-arch i386 -arch x86_64"

.... *all* on one line.

I then took the compiled/resulting librtmp.0.dylib and put it on my ATV under
/Applications/XBMC.app/Contents/Resources/XBMC/system/players/dvdplayer with
the same perms as anything else in there.

I then tried to use divingmule's JTV plugin and XBMC would keep crashing.
After reading the xbmc.log it turns out that it was looking for some other
libraries under /usr/lib. I did some sym links to fix that:

sudo ln -s /mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Frameworks/libssl.0.9.8.dylib /usr/lib/libssl.0.9.8.dylib

sudo ln -s /mnt/Scratch/Users/frontrow/Applications/XBMC.app/Contents/Frameworks/libcrypto.0.9.8.dylib /usr/lib/libcrypto.0.9.8.dylib

... (there's *two* sudo lines there, and each line is all one long command) .... because in my log file XBMC I could see it was complaining about these being missing. It probably has to do with the way I compiled it on my iMac. The XBMC Eden app already had these libraries on my ATV, I just needed to put them where the newly compiled librtmp.0.dylib could see them is all and a symlink did that.

I then fired up the JTV app in XBMC and tried it... POOF, we're up.

I thought about trying to upload a copy of the librtmp.0.dylib I compiled so others could just jump to the part about putting it the dvdplayers directory on their ATV1 and then doing the symbolic links, but I'm not used to this forum and don't see a way to upload it anywhere?

Hopefully the info above helps someone else? I *know* the ATV1 is old and slow and stuff, but XBMC runs great on it!

Big props to divingmule for making this addon! Thank you for all your hard work! I've been enjoying JTV thanks to you! :-)



RE: [RELEASE] Justin.tv (Video) Plugin - Nyber - 2013-04-06

(2012-03-21, 18:02)divingmule Wrote: Doesn't look like there's going to be a way to fix this on the add-on side of things. It seems to be an audio codec problem.

If you look at the Metadata in the log you'll notice most of these broadcasters are using this XSplit software.
Code:
07:50:21 T:4784  NOTICE:   audiocodecid          11.00
07:50:21 T:4784  NOTICE:   audiodatarate         100.00
07:50:21 T:4784  NOTICE:   bufferSize            1000k
07:50:21 T:4784  NOTICE:   frameRate             400000
07:50:21 T:4784  NOTICE:   maxBitrate            1000k
07:50:21 T:4784  NOTICE:   videoDevice           XSplitBroadcaster
07:50:21 T:4784  NOTICE:   xsplitBroadcasterVersion1.2.1.91
07:50:21 T:4784  NOTICE:   xsplitCoreVersion     1.0.1201.0504 Public Beta 6
07:50:21 T:4784  NOTICE:   xsplitGameSourceVersion1.1.0.18
07:50:21 T:4784  NOTICE:   xsplitMediaLibVersion 2.0.0.88

Notice the audiocodecid.

If the stream plays, it will have no audio -
Code:
07:43:57 T:1096  NOTICE: Opening audio stream: 1 source: 256
07:43:57 T:1096  NOTICE: Finding audio codec for: 86054
07:43:57 T:1096   DEBUG: FactoryCodec - Audio: FFmpeg - Opening
07:43:57 T:3980   DEBUG: Thread CDVDPlayerVideo start, auto delete: 0
07:43:57 T:3980  NOTICE: running thread: video_thread
07:43:57 T:1096   DEBUG: CDVDAudioCodecFFmpeg::Open() Unable to find codec 86054
07:43:57 T:1096   DEBUG: FactoryCodec - Audio: FFmpeg - Failed

If the stream doesn't play -
Code:
WARNING: could not find codec parameters
ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer


However this stream played without issue, notice the audiocodecid -
Code:
08:01:50 T:3636  NOTICE:   audiocodecid          mp4a
08:01:50 T:3636  NOTICE:   audiodatarate         187.50
08:01:50 T:3636  NOTICE:   bufferSize            3700k
08:01:50 T:3636  NOTICE:   frameRate             181818
08:01:50 T:3636  NOTICE:   maxBitrate            3700k
08:01:50 T:3636  NOTICE:   videoDevice           XSplitBroadcaster
08:01:50 T:3636  NOTICE:   xsplitBroadcasterVersion1.3.0.9
08:01:50 T:3636  NOTICE:   xsplitCoreVersion     1.0.1203.1602 Public Beta 7.1
08:01:50 T:3636  NOTICE:   xsplitGameSourceVersion1.1.0.21
08:01:50 T:3636  NOTICE:   xsplitMediaLibVersion 2.0.0.100

I also dumped some video to a file, from a stream that would not play, and it played without any audio in XBMC and VLC.

Was there ever a fix for codecid 11.0 (Speex)? My machine has both codecs (Opus/Speex) installed via FFMpeg yet it fails on every stream.

Code:
openelec:~ # ffmpeg -codecs
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
built on Apr 4 2013 23:06:09 with gcc 4.7.2 (GCC)
configuration: --prefix=/usr --cpu=btver1 --arch=x86_64 --enable-cross-compile --cross-prefix=/home/openelec/OpenELEC.tv/build.OpenELEC-Fusion.x86_64-devel/toolchain/bin/x86_64-openelec-linux-gnu- --sysroot=/home/openelec/OpenELEC.tv/build.OpenELEC-Fusion.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/sysroot --sysinclude=/home/openelec/OpenELEC.tv/build.OpenELEC-Fusion.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/sysroot/usr/include --target-os=linux --nm=/home/openelec/OpenELEC.tv/build.OpenELEC-Fusion.x86_64-devel/toolchain/bin/x86_64-openelec-linux-gnu-nm --ar=/home/openelec/OpenELEC.tv/build.OpenELEC-Fusion.x86_64-devel/toolchain/bin/x86_64-openelec-linux-gnu-ar --as=/home/openelec/OpenELEC.tv/build.OpenELEC-Fusion.x86_64-devel/toolchain/bin/x86_64-openelec-linux-gnu-gcc --cc=/home/openelec/OpenELEC.tv/build.OpenELEC-Fusion.x86_64-devel/toolchain/bin/x86_64-openelec-linux-gnu-gcc --ld=/home/openelec/OpenELEC.tv/build.OpenELEC-Fusion.x86_64-devel/toolchain/bin/x86_64-openelec-linux-gnu-gcc --host libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
..A.L. speex Speex
..A.L. opus Opus (Opus Interactive Audio Codec)

Code:
22:49:54 T:140392690665280 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
22:49:54 T:140392690665280 NOTICE: CXBMCRenderManager::ResetRenderBuffer - using 5 render buffers
22:49:54 T:140391376201472 NOTICE: Thread CDVDPlayer start, auto delete: false
22:49:54 T:140391376201472 NOTICE: Creating InputStream
22:49:56 T:140391376201472 NOTICE: Creating Demuxer
22:49:56 T:140391376201472 NOTICE: Metadata:
22:49:56 T:140391376201472 NOTICE: author
22:49:56 T:140391376201472 NOTICE: copyright
22:49:56 T:140391376201472 NOTICE: description
22:49:56 T:140391376201472 NOTICE: keywords
22:49:56 T:140391376201472 NOTICE: rating
22:49:56 T:140391376201472 NOTICE: title
22:49:56 T:140391376201472 NOTICE: presetname Custom
22:49:56 T:140391376201472 NOTICE: creationdate Sun March 24 21:14:47 2013
22:49:56 T:140391376201472 NOTICE: videodevice XSplitBroadcaster
22:49:56 T:140391376201472 NOTICE: framerate 15.00
22:49:56 T:140391376201472 NOTICE: width 1280.00
22:49:56 T:140391376201472 NOTICE: height 720.00
22:49:56 T:140391376201472 NOTICE: videocodecid avc1
22:49:56 T:140391376201472 NOTICE: avclevel 31.00
22:49:56 T:140391376201472 NOTICE: avcprofile 100.00
22:49:56 T:140391376201472 NOTICE: videodatarate 390.62
22:49:56 T:140391376201472 NOTICE: videokeyframe_frequency0.20
22:49:56 T:140391376201472 NOTICE: audiodevice VHAudioCustom
22:49:56 T:140391376201472 NOTICE: audiosamplerate 16000.00
22:49:56 T:140391376201472 NOTICE: audiochannels 1.00
22:49:56 T:140391376201472 NOTICE: audioinputvolume 100.00
22:49:56 T:140391376201472 NOTICE: audiocodecid 11.00
22:49:56 T:140391376201472 NOTICE: audiodatarate 27.15
22:49:56 T:140391376201472 NOTICE: bufferSize 1000k
22:49:56 T:140391376201472 NOTICE: maxBitrate 600k
22:49:56 T:140391376201472 NOTICE: xsplitBroadcasterVersion1.3.0.95
22:49:56 T:140391376201472 NOTICE: xsplitCoreVersion 1.2.1303.0101 Version 1.2
22:49:56 T:140391376201472 NOTICE: xsplitGameSourceVersion1.1.1.30
22:49:56 T:140391376201472 NOTICE: xsplitMediaLibVersion 2.0.0.209
22:49:57 T:140391376201472 NOTICE: Opening video stream: 0 source: 256
22:49:57 T:140391376201472 NOTICE: Creating video codec with codec id: 28
22:49:57 T:140391376201472 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
22:49:57 T:140392263571200 NOTICE: Thread CVideoReferenceClock start, auto delete: false
22:49:57 T:140391376201472 NOTICE: Creating video thread
22:49:57 T:140391399421696 NOTICE: Thread CDVDPlayerVideo start, auto delete: false
22:49:57 T:140391376201472 NOTICE: Opening audio stream: 1 source: 256
22:49:57 T:140391376201472 NOTICE: Finding audio codec for: 86052
22:49:57 T:140391376201472 ERROR: Unsupported audio codec
22:49:57 T:140391376201472 WARNING: OpenAudioStream - Unsupported stream 1. Stream disabled.



RE: [RELEASE] Justin.tv (Video) Plugin - divingmule - 2013-04-06

Hi, XBMC uses it own internal ffmpeg. There may be a way to use external ffmpeg via advancedsettings.xml or something, I think* there may be an option when compiling xbmc. Thats where I would start my research.

Let us know if you figure something out.


RE: [RELEASE] Justin.tv (Video) Plugin - crymsonfyre - 2013-04-08

Sorry didn't mean to post that many


RE: [RELEASE] Justin.tv (Video) Plugin - anarckie - 2013-04-09

It seems the Get Channel Archives now only displays Highlights videos.

Can you make it so you can view the Past Broadcasts instead? Or possibly an option for both.


RE: [RELEASE] Justin.tv (Video) Plugin - divingmule - 2013-04-09

I'll look into it, but it may be a bit before I can get to it Confused


RE: [RELEASE] Justin.tv (Video) Plugin - zerofreeze - 2013-04-09

Has anyone noticed that the JustinTV add-on categories is no longer working? It appears no matter what category selected brings you to all the videos instead of just that category. If anyone knows a quick fix? I am assuming something was changed on the website hence this new problem?


RE: [RELEASE] Justin.tv (Video) Plugin - RedPenguin - 2013-04-09

Divingmule did you ever implement an "access code" function in the URL for your plugin?

For example:

plugin://plugin.video.jtv.archives/?mode=2&amp;name=

to put into the LiveStreams plugin and not constantly have to put in password or press enter for memorized password.


RE: [RELEASE] Justin.tv (Video) Plugin - divingmule - 2013-04-11

(2013-04-09, 20:07)zerofreeze Wrote: Has anyone noticed that the JustinTV add-on categories is no longer working? It appears no matter what category selected brings you to all the videos instead of just that category. If anyone knows a quick fix? I am assuming something was changed on the website hence this new problem?

I'm not seeing that behavior. Maybe is was something temporaryHuh

(2013-04-09, 22:16)RedPenguin Wrote: Divingmule did you ever implement an "access code" function in the URL for your plugin?

For example:

plugin://plugin.video.jtv.archives/?mode=2&amp;name=

to put into the LiveStreams plugin and not constantly have to put in password or press enter for memorized password.

Replace your jtv default.py with this one -> http://ubuntuone.com/40RUkUdK4axT2bF0iMECKG

Try, plugin://plugin.video.jtv.archives/?mode=2&amp;play=True&amp;password=YOUR_PASSWORD

Let me know how it goes.


RE: [RELEASE] Justin.tv (Video) Plugin - zerofreeze - 2013-04-11

Just got a chance to check it today, also appears back to normal on my systems, glad it was just a temp thing, thanks