Youtube streaming to Bravia

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Youtube streaming to Bravia

Postby vixtor » Mon Sep 14, 2009 10:11 pm

Hello,

I have successfully (well, almost, otherwise I wouldn't ask) installed the 1.11.356 version on ubuntu 9.04, using mencoder 1.0~rc3+svn20090804-0jaunty1. It seems that the only successful transcoding is performed by mencoder (vlc is not working, but I wasn't interested anyway).

The problem seems to be with youtube - I am seeing in the logs that the PS3MS runs mencoder having the youtube page itself as argument, like:
Code: Select all
[New I/O server worker #1-2] TRACE 00:08:19.709 Starting transcode/remux of Invisible Children and DILF Bloopers! (Ep.13)
[New I/O server worker #1-2] DEBUG 00:08:18.850 Opened handler on socket /193.226.149.68:61464 // Sony Bravia 5500 Series
[New I/O server worker #1-2] DEBUG 00:08:18.850 Handler infos: HTTP/1.1 : HEAD : get/0$4$3$0$0/Invisible+Children+and+DILF+Bloopers%21+%28Ep.13%29
[New I/O server worker #1-2] DEBUG 00:08:18.850 Received on socket: getcontentFeatures.dlna.org: 1
[New I/O server worker #1-2] DEBUG 00:08:18.850 Received on socket: Host: 193.226.149.66:5001
[New I/O server worker #1-2] DEBUG 00:08:18.850 Received on socket: Pragma: getIfoFileURI.dlna.org
[New I/O server worker #1-2] DEBUG 00:08:18.850 Received on socket: transferMode.dlna.org: Streaming
[New I/O server worker #1-2] INFO  00:08:18.851 HTTP: get/0$4$3$0$0/Invisible+Children+and+DILF+Bloopers%21+%28Ep.13%29 / 0-0
[New I/O server worker #1-2] DEBUG 00:08:18.851 Searching for objectId: 0$4$3$0$0 with children option: false
[New I/O server worker #1-2] INFO  00:08:18.851 Retrieving http://www.youtube.com/watch?v=jJ98NE84vQA
[New I/O server worker #1-2] DEBUG 00:08:19.709 Asked stream chunk [0-0] timeseek: 0.0 of Invisible Children and DILF Bloopers! (Ep.13) and player MEncoder Web
[New I/O server worker #1-2] TRACE 00:08:19.709 Starting transcode/remux of Invisible Children and DILF Bloopers! (Ep.13)
[mkfifo] INFO  00:08:19.710 Starting mkfifo --mode=777 /tmp/javaps3media/mencoder1252962499709
[mencoder] INFO  00:08:19.761 Starting mencoder http://www.youtube.com/watch?v=jJ98NE84vQA -prefer-ipv4 -nocache -quiet -oac lavc -of lavf -lavfopts format=dvd -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=4096:threads=2:acodec=ac3:abitrate=128 -ofps 24000/1001 -o /tmp/javaps3media/mencoder1252962499709
[mencoder] INFO  00:08:19.789 Reading pipe: /tmp/javaps3media/mencoder1252962499709
[mencoder] DEBUG 00:08:19.789 Opening file /tmp/javaps3media/mencoder1252962499709 for reading...
[New I/O server worker #1-2] DEBUG 00:08:25.811 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-2] DEBUG 00:08:26.312 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-2] DEBUG 00:08:26.813 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-2] DEBUG 00:08:27.313 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-2] DEBUG 00:08:27.813 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-2] DEBUG 00:08:28.314 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-2] DEBUG 00:08:28.814 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-2] DEBUG 00:08:29.315 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-2] DEBUG 00:08:29.815 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-2] DEBUG 00:08:30.316 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-2] DEBUG 00:08:30.818 Sent to socket: Connection: keep-alive
[New I/O server worker #1-2] DEBUG 00:08:30.818 Sent to socket: Content-Length: 0
[New I/O server worker #1-2] DEBUG 00:08:30.818 Sent to socket: Content-Type: video/mpeg
[New I/O server worker #1-2] DEBUG 00:08:30.818 Sent to socket: ContentFeatures.DLNA.ORG: DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000
[New I/O server worker #1-2] DEBUG 00:08:30.818 Sent to socket: Server: Linux-i386-2.6.28-15-generic, UPnP/1.0, PMS/1.11.356
[New I/O server worker #1-2] DEBUG 00:08:30.818 Sent to socket: TransferMode.DLNA.ORG: Streaming
[New I/O server worker #1-1] DEBUG 00:08:30.831 Opened handler on socket /193.226.149.68:61465 // Sony Bravia 5500 Series
[New I/O server worker #1-1] DEBUG 00:08:30.870 Handler infos: HTTP/1.1 : GET : get/0$4$3$0$0/Invisible+Children+and+DILF+Bloopers%21+%28Ep.13%29
[New I/O server worker #1-1] DEBUG 00:08:30.870 Received on socket: getcontentFeatures.dlna.org: 1
[New I/O server worker #1-1] DEBUG 00:08:30.870 Received on socket: Host: 193.226.149.66:5001
[New I/O server worker #1-1] DEBUG 00:08:30.871 Received on socket: Pragma: getIfoFileURI.dlna.org
[New I/O server worker #1-1] DEBUG 00:08:30.871 Received on socket: Range: bytes=0-
[New I/O server worker #1-1] DEBUG 00:08:30.871 Received on socket: transferMode.dlna.org: Streaming
[New I/O server worker #1-1] INFO  00:08:30.871 HTTP: get/0$4$3$0$0/Invisible+Children+and+DILF+Bloopers%21+%28Ep.13%29 / 0-100000000000
[New I/O server worker #1-1] DEBUG 00:08:30.871 Searching for objectId: 0$4$3$0$0 with children option: false
[New I/O server worker #1-1] INFO  00:08:30.872 Retrieving http://www.youtube.com/watch?v=jJ98NE84vQA
[New I/O server worker #1-1] DEBUG 00:08:31.682 Asked stream chunk [0-100000000000] timeseek: 0.0 of Invisible Children and DILF Bloopers! (Ep.13) and player MEncoder Web
[New I/O server worker #1-1] DEBUG 00:08:31.682 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-1] DEBUG 00:08:32.183 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-1] DEBUG 00:08:32.683 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-1] DEBUG 00:08:33.184 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-1] DEBUG 00:08:33.684 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-1] DEBUG 00:08:34.185 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-1] DEBUG 00:08:34.685 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-1] DEBUG 00:08:35.186 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-1] DEBUG 00:08:35.686 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-1] DEBUG 00:08:36.186 External inputstream instance is null... sounds not good, waiting 500ms
[New I/O server worker #1-1] DEBUG 00:08:36.687 Sent to socket: Connection: keep-alive
[New I/O server worker #1-1] DEBUG 00:08:36.688 Sent to socket: Content-Length: 0
[New I/O server worker #1-1] DEBUG 00:08:36.688 Sent to socket: Content-Range: bytes 0-99999999999/100000000000
[New I/O server worker #1-1] DEBUG 00:08:36.688 Sent to socket: Content-Type: video/mpeg
[New I/O server worker #1-1] DEBUG 00:08:36.688 Sent to socket: ContentFeatures.DLNA.ORG: DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000
[New I/O server worker #1-1] DEBUG 00:08:36.688 Sent to socket: Server: Linux-i386-2.6.28-15-generic, UPnP/1.0, PMS/1.11.356
[New I/O server worker #1-1] DEBUG 00:08:36.688 Sent to socket: TransferMode.DLNA.ORG: Streaming


but the problem is that in fact mencoder cannot work like this even from command line:
Code: Select all
victor@victor-laptop:~/pms-linux-1.11.356$ mencoder http://www.youtube.com/watch?v=jJ98NE84vQA -prefer-ipv4 -nocache -quiet -oac lavc -of lavf -lavfopts format=dvd -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=4096:threads=2:acodec=ac3:abitrate=128 -ofps 24000/1001 -o /tmp/javaps3media/mencoder1252962499709
MEncoder SVN-r29476-Ubuntu-RVM (C) 2000-2009 MPlayer Team
Resolving www.youtube.com for AF_INET...
Connecting to server www.youtube.com[209.85.129.102]: 80...
Cache size set to 0 KBytes
success: format: 0  data: 0x0 - 0x0
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
Stream not seekable!
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.


For URLs that are directly video streams (not webpages) it works flawlessly - even for those great HD streams from Alaska.. Am I missing something regarding youtube support? Is mencoder expected to understand youtube web pages and extract video from them? If so, how, as I'm running the latest mencoder build?
vixtor
 
Posts: 1
Joined: Mon Sep 14, 2009 10:03 pm

Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 8 guests