Page 2 of 9

Re: Hulu (US only)

PostPosted: Fri Jan 13, 2012 12:47 pm
by moltra
I have not had time to do any troubleshooting on my machine at home. Hope to be able to troubleshoot sometime this weekend.

Re: Hulu (US only)

PostPosted: Fri Jan 13, 2012 1:26 pm
by Illico
RTMPDump 2.4 2011-09-25
v2.4
Aside from various minor bugfixes since 2.3, RTMPE type 9 handshakes are now supported.

Version bump
Additional credit for RTMPE 9 keys
Add LIB_RTMP macro
Add RTMPE type 9 handshake signature
Revert "Drop back on the handshake version, avoid rtmpe 9"

Re: Hulu (US only)

PostPosted: Fri Jan 13, 2012 2:32 pm
by zip
Yes, you need 2.4 or get the source from Serviio's download page.

Re: Hulu (US only)

PostPosted: Fri Jan 13, 2012 3:14 pm
by erik
Yes, you need 2.4 or get the source from Serviio's download page.


This solved it for me, Thanks!

Re: Hulu (US only)

PostPosted: Sat Jan 14, 2012 4:20 am
by moltra
erik wrote:
Yes, you need 2.4 or get the source from Serviio's download page.


This solved it for me, Thanks!


How did you get it to update? I have tried 3 times and still get the handshake error.

Re: Hulu (US only)

PostPosted: Sat Jan 14, 2012 5:25 pm
by erik
moltra wrote:
erik wrote:
Yes, you need 2.4 or get the source from Serviio's download page.


This solved it for me, Thanks!


How did you get it to update? I have tried 3 times and still get the handshake error.


What I did was build rtmpdump using the source on the serviio download page, and then I recompiled ffmpeg.

Re: Hulu (US only)

PostPosted: Sat Jan 14, 2012 5:37 pm
by moltra
Did you uninstall ffmpeg first? I compiled rtmpdump using the source from the serviio download page, and then ran the following command.

  Code:
cd ~/src
git clone --depth 1 git://git.videolan.org/ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \
    --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 \
    --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx \
    --enable-librtmp --enable-libxvid
make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no \
  --deldoc=yes --fstrans=no --default

But I am still getting the handshake error.

Re: Hulu (US only)

PostPosted: Sun Jan 22, 2012 8:58 pm
by moltra
Not getting the handshake error now. Getting the below.

  Code:
2012-01-22 15:55:03,566 WARN  [FeedUpdaterThread] An error occured while scanning for online item information, will continue
java.io.IOException: Cannot parse resource from http://www.hulu.com/greys-anatomy. Message: Error during feed parsing : Invalid XML: Error on line 310: The entity name must immediately follow the '&' in the entity reference.
   at org.serviio.library.online.OnlineLibraryManager.findResource(OnlineLibraryManager.java:177)
   at org.serviio.library.online.OnlineLibraryManager.findResourceInCacheOrParse(OnlineLibraryManager.java:184)
   at org.serviio.library.online.metadata.FeedUpdaterThread.getOnlineItems(FeedUpdaterThread.java:158)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:95)

Re: Hulu (US only)

PostPosted: Sun Jan 22, 2012 10:16 pm
by zip
it's because your URL is not a feed URL, but a web page

Re: Hulu (US only)

PostPosted: Sun Jan 22, 2012 11:15 pm
by moltra
Hmmm I tried to copy the rss link and it copied the webpage link.

Now getting this error is it normal?

  Code:
2012-01-22 17:55:00,320 WARN  [FeedUpdaterThread] Failed to retrieve online item information for rtmpe://cp39466.edgefcs.net/ondemand?auth=daEbvbrd7aActbNbIbvdjdRdEdodxdmaxb4-bphjpc-c0-XoMEACt0Jyv&aifp=sll02152008&slist=hulu12/186/50145186;.international=false&hgt=OZU7Pvs7j27-nhteNno7wvVyYGoB-577FaYM6kLfmOS13Egksgn-hSVijwfh6UAu8dilvKWE29KoYqPS4SKGC8XzJ_GzQ5WjnDI41KxqZRNIqDYLBFS2yFRiv8Ocn0RGSY6mncfvQuPMJm8I5pCwT-3soGFMVMpwBAxHpI7gdmyYFt11q-5VK1CCIIdLXYOFaJfuokTWi8UDWXAbrWolsPm00_0MtdPLiAhntMJ-6KWVrSSWfG3LgtWt3OKskTti&hgt_ver=331370278 app=ondemand?auth=daEbvbrd7aActbNbIbvdjdRdEdodxdmaxb4-bphjpc-c0-XoMEACt0Jyv&aifp=sll02152008&slist=hulu12/186/50145186;.international=false&hgt=OZU7Pvs7j27-nhteNno7wvVyYGoB-577FaYM6kLfmOS13Egksgn-hSVijwfh6UAu8dilvKWE29KoYqPS4SKGC8XzJ_GzQ5WjnDI41KxqZRNIqDYLBFS2yFRiv8Ocn0RGSY6mncfvQuPMJm8I5pCwT-3soGFMVMpwBAxHpI7gdmyYFt11q-5VK1CCIIdLXYOFaJfuokTWi8UDWXAbrWolsPm00_0MtdPLiAhntMJ-6KWVrSSWfG3LgtWt3OKskTti&hgt_ver=331370278 playpath=mp4:hulu12/186/50145186/agave50145186_5121638_H264_650.mp4 swfUrl=http://www.hulu.com/player.swf swfVfy=1. It might not play.
java.io.IOException: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:273)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveTechnicalMetadata(FeedUpdaterThread.java:208)
   at org.serviio.library.online.metadata.FeedUpdaterThread.run(FeedUpdaterThread.java:101)
Caused by: org.serviio.library.local.metadata.extractor.InvalidMediaFormatException: Unknown video file type.
   at org.serviio.library.metadata.FFmpegMetadataRetriever.validateCodecsFound(FFmpegMetadataRetriever.java:344)
   at org.serviio.library.metadata.FFmpegMetadataRetriever.retrieveMetadata(FFmpegMetadataRetriever.java:87)
   at org.serviio.library.online.metadata.FeedUpdaterThread.retrieveAVMetadata(FeedUpdaterThread.java:255)
   ... 2 more

Re: Hulu (US only)

PostPosted: Sun Jan 22, 2012 11:30 pm
by zip
you have to post ffmpeg -i "rtmp://......" for a feed that fails like this.

Re: Hulu (US only)

PostPosted: Mon Jan 23, 2012 12:00 am
by djwoodard
Does this plugin stream the subtitles/captions?

For example: http://www.hulu.com/watch/187768/youre- ... s-p4-so-i0

When I watch on hulu.com, I can watch it with subtitles. If I watch it streamed through serviio, I only get the raw video and audio.

Re: Hulu (US only)

PostPosted: Mon Jan 23, 2012 12:09 am
by zip
no, subs are not supported for online

Re: Hulu (US only)

PostPosted: Mon Jan 23, 2012 12:14 am
by djwoodard
I thought that was going to be the case. :)

Thanks for your work on the plugin. It's great for 90% of what we would watch on Hulu.

Re: Hulu (US only)

PostPosted: Mon Jan 23, 2012 12:23 am
by moltra
Looks like I am still getting the handshake error.

  Code:
mark@SMServer:~$ ffmpeg -i "rtmpe://cp39466.edgefcs.net/ondemand?auth=daEbvbrd7aActbNbIbvdjdRdEdodxdmaxb4-bphjpc-c0-XoMEACt0Jyv&aifp=sll02152008&slist=hulu12/186/50145186;.international=false&hgt=OZU7Pvs7j27-nhteNno7wvVyYGoB-577FaYM6kLfmOS13Egksgn-hSVijwfh6UAu8dilvKWE29KoYqPS4SKGC8XzJ_GzQ5WjnDI41KxqZRNIqDYLBFS2yFRiv8Ocn0RGSY6mncfvQuPMJm8I5pCwT-3soGFMVMpwBAxHpI7gdmyYFt11q-5VK1CCIIdLXYOFaJfuokTWi8UDWXAbrWolsPm00_0MtdPLiAhntMJ-6KWVrSSWfG3LgtWt3OKskTti&hgt_ver=331370278 app=ondemand?auth=daEbvbrd7aActbNbIbvdjdRdEdodxdmaxb4-bphjpc-c0-XoMEACt0Jyv&aifp=sll02152008&slist=hulu12/186/50145186;.international=false&hgt=OZU7Pvs7j27-nhteNno7wvVyYGoB-577FaYM6kLfmOS13Egksgn-hSVijwfh6UAu8dilvKWE29KoYqPS4SKGC8XzJ_GzQ5WjnDI41KxqZRNIqDYLBFS2yFRiv8Ocn0RGSY6mncfvQuPMJm8I5pCwT-3soGFMVMpwBAxHpI7gdmyYFt11q-5VK1CCIIdLXYOFaJfuokTWi8UDWXAbrWolsPm00_0MtdPLiAhntMJ-6KWVrSSWfG3LgtWt3OKskTti&hgt_ver=331370278 playpath=mp4:hulu12/186/50145186/agave50145186_5121638_H264_650.mp4"
ffmpeg version git-2012-01-18-e191f1f Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 17 2012 23:13:59 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx --enable-librtmp --enable-libxvid
  libavutil      51. 34.101 / 51. 34.101
  libavcodec     53. 57.100 / 53. 57.100
  libavformat    53. 30.100 / 53. 30.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 59.101 /  2. 59.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    51.  2.100 / 51.  2.100
HandShake: Type mismatch: client sent 6, server answered 9
HandShake: Server not genuine Adobe!

Re: Hulu (US only)

PostPosted: Mon Jan 23, 2012 12:51 am
by moltra
I have rtmpdump V2. installed and still getting the handshake error.

  Code:
 rtmpdump -v
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname

Re: Hulu (US only)

PostPosted: Mon Jan 23, 2012 2:54 am
by moltra
Found this tried it and still handshake error

  Code:
git clone git://git.ffmpeg.org/rtmpdump
cd rtmpdump
make
sudo make install
But the resulting binary still failed with this error message:
 WARNING: HandShake: Type mismatch: client sent 6, server answered 9
WARNING: HandShake: Server not genuine Adobe!
ERROR: RTMP_Connect1, handshake failed.
After a bit of digging it turned out that my new rtmpdump used the old dynamic library. I had to set the rpath of the new binary, so that it used the new version of the library. There are several ways to do this; I choose to recompile with:
 make clean
make XLDFLAGS='-Xlinker -rpath -Xlinker /usr/local/lib'
sudo make instal

Re: Hulu (US only)

PostPosted: Mon Jan 23, 2012 4:34 pm
by zip
the librtmp is probably old. both ffmpeg and rtmpdump and linking the old library.

Re: Hulu (US only)

PostPosted: Mon Jan 23, 2012 4:55 pm
by moltra
yes that is what they are saying on the net about it. When they setup rtmpdump 2.4 for ubuntu they did not set up the new 2.4 dynamic library links.

I will test this tonight and let you know.

Re: Hulu (US only)

PostPosted: Mon Feb 06, 2012 11:05 pm
by bt107
I'm a little confused about this and plugins in general. I downloaded and installed in the plugins directory but I haven't gotten it to work at all.. Is this all I needed to do? Seems like something is missing. I'm running this on a Fedora 14 headless server.

Thanks!