Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

Capture "long" non-live YT streaming

(http://stream-recorder.com/forum/showthread.php?t=14004)

ycrcb422 10-11-2012 12:11 PM

Capture "long" non-live YT streaming


 
Trying to capture "longish" youtube video that is likely being streamed, but is not a live stream. Video Download helper does not recognize and as such will not "download".

http://www.youtube.com/watch?v=Yg3YDN5gTX0&hd=1

So I tried several of the URLs presented in the Net web console, but always get:
"Invalid data found when processing input" from ffmpeg (see a full output at end of post)

FWIW, I used the same methods as described in this thread: http://stream-recorder.com/forum/cap...ffmpeg+youtube

But have not had success yet.

Any insight?

Code:

$ ffmpeg -i "http://www.youtube.com/player_204?el=detailpage&scoville=1&partnerid=35&v=Yg3YDN5gTX0&fmt=35&st=0&plid=AATLzGYoGf1e2i78&sprot=1&event=streaming&rt=1.322&sl=1.320&fv=LNX%2011,2,202,243&fexp=927104,922401,912706,912806,920704,927201,913546,901419,900816,920201,913556,925109,919003" -c copy out.ts
ffmpeg version 0.10.5 Copyright (c) 2000-2012 the FFmpeg developers
  built on Oct  4 2012 19:17:43 with gcc 4.7.2 20120921 (Red Hat 4.7.2-2)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil      51. 35.100 / 51. 35.100
  libavcodec    53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter    2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample  0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
http://www.youtube.com/player_204?el=detailpage&scoville=1&partnerid=35&v=Yg3YDN5gTX0&fmt=35&st=0&plid=AATLzGYoGf1e2i78&sprot=1&event=streaming&rt=1.322&sl=1.320&fv=LNX%2011,2,202,243&fexp=927104,922401,912706,912806,920704,927201,913546,901419,900816,920201,913556,925109,919003: Invalid data found when processing input
[~]$


chap 10-11-2012 12:33 PM

Re: Capture "long" non-live YT streaming


 
use getflv

karlo2105 10-11-2012 05:53 PM

Re: Capture "long" non-live YT streaming


 
This is what I get

Code:

rtmpdump -r "rtmpe://v24.nonxt6.c.youtube.com/videoplayback" -a "videoplayback" -f "WIN 11,4,402,287" -W "http://s.ytimg.com/yt/swfbin/watch_as3-vflVJZw7d.swf" -p "http://www.youtube.com/watch?v=Yg3YDN5gTX0&hd=1" -y "sparams=gcr%2Cid%2Citag%2Crtmpe%2Csource%2Cexpire&fexp=919109%2C904822%2C929201%2C927104%2C922401%2C920704%2C912806%2C913546%2C913556%2C925109%2C919003%2C920201%2C912706%2C900816%2C911112&key=yt1&itag=35&sver=3&source=youtube&gcr=BE&expire=1349999546&signature=48B8697C73C0A93A63C7A4E0E28DB980A0A35915.8C7B33B33E4F1E408A7EB7D91DE4D9D77AF28EE0&rtmpe=yes&id=620dd80cde604d7d?ptchn=BBCWorldwide&ptk=bbcworldwide" -o "12-10-12_01-47-29_sparams=gcr%2Cid%2Citag%2Crtmpe%2Csource%2Cexpire&fexp=919109%2C904822%2C929201%2C927104%2C922401%2C920704%2C912806%2C913546%2C913556%2C925109%2C919003%2C920201%2C912706%2C900816%2C911112&key=yt1&itag=35&sver=3&source=youtube&gcr=BE&expire=1349999546&signature=48B8697C73C0A93A63C7A4E0E28DB980A0A35915.8C7B33B33E4F1E408A7EB7D91DE4D9D77AF28EE0&rtmpe=yes&id=620dd80cde604d7d.flv
Even with rtmpsuck, I can't download it.

Code:

WARNING: HandShake: Type mismatch: client sent 6, server answered 10
WARNING: HandShake: Server not genuine Adobe!
ERROR: RTMP_Connect1, handshake failed.

I thought BBC used to be public tv station financed by tv fee.

ycrcb422 10-12-2012 07:53 AM

Re: Capture "long" non-live YT streaming


 
Thanks for the replies all...

I let the video run with web console running and notice that every minute or more a new "GET http://s.youtube.com/..." and/or "GET http://s2.youtube.com/..." occurs. I won't post the log as it's rather large.

svnpenn: The result of rtmpdump is interesting. Had not though to check that, so thanks for that info.

Getflv, if capable of "getting" a "protected" video like this, must be doing something that we too can accomplish on linux.

If anyone has any other insights, please post.

In the mean time, I'm going to continue to hack at this and do some homework. Getflv and windows is not a solution for me.

Thanks.


All times are GMT -6. The time now is 09:13 AM.