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

Olympic official streaming videos, i'm going crazy, i can't download it! help

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

pankyk86 08-23-2012 11:39 AM

Re: Olympic official streaming videos, i'm going crazy, i can't download it! help


 
i downloaded builds "static" but this program is like arabic for me, i don't understand how to play, i click on ffmpeg icon but it appears just for 1 second a black window......

nwtim 08-23-2012 01:16 PM

Re: Olympic official streaming videos, i'm going crazy, i can't download it! help


 
Quote:

Originally Posted by pankyk86 (Post 53231)
i downloaded builds "static" but this program is like arabic for me, i don't understand how to play, i click on ffmpeg icon but it appears just for 1 second a black window......

ffmpeg.exe by itself will not do anything. That's why you're seeing a black window pop open and then close. It's an executable that needs arguments. You can see a listing of all the arguments it can deal with by opening a command window, navigate to a folder containing ffmpeg.exe, and type ffmpeg --help at the command prompt. It'll race by, so you could use the |more pipe (eg. ffmpeg --help|more) or just scroll back up to the command to read from the top.

I find the easiest way to deal with this kind of command line executable is to write a batch file, especially when dealing with lots of text like some of the URLs we have to deal with.

Do to this, I create a new text file with a line of text starting with the letters rem (remark) with a comment about the use of the file - usually just the subject of the video to be processed. On the next line I type in the ffmpeg command line that I wish to process. You don't have to, but I often put a last line in the file with the pause command so I can see any feedback in the command window before it closes. Then I save it as a batch file (eg. file.bat) and place it in the same folder as ffmpeg.exe. Make sure you have room for the new video file there, or else add a path to the output filename (spaces require that the output name is surrounded in quotes) where you know there's enough free space.

Code:

rem - 2012 Olympics Track & Field Men's 100 Meter Final
ffmpeg.exe -i "http://www.youtube.com/api/manifest/hls_playlist/id/.../key/ck1/file/index.m3u8" -c copy newvideo.ts
pause

Once you've got a batch file in the folder you've chose for ffmpeg and the video, you will not need to use the command prompt window. Just double-click on the batch file.

Does that make sense?

pankyk86 08-23-2012 03:01 PM

Re: Olympic official streaming videos, i'm going crazy, i can't download it! help


 
Quote:

Originally Posted by nwtim (Post 53237)
ffmpeg.exe by itself will not do anything. That's why you're seeing a black window pop open and then close. It's an executable that needs arguments. You can see a listing of all the arguments it can deal with by opening a command window, navigate to a folder containing ffmpeg.exe, and type ffmpeg --help at the command prompt. It'll race by, so you could use the |more pipe (eg. ffmpeg --help|more) or just scroll back up to the command to read from the top.

I find the easiest way to deal with this kind of command line executable is to write a batch file, especially when dealing with lots of text like some of the URLs we have to deal with.

Do to this, I create a new text file with a line of text starting with the letters rem (remark) with a comment about the use of the file - usually just the subject of the video to be processed. On the next line I type in the ffmpeg command line that I wish to process. You don't have to, but I often put a last line in the file with the pause command so I can see any feedback in the command window before it closes. Then I save it as a batch file (eg. file.bat) and place it in the same folder as ffmpeg.exe. Make sure you have room for the new video file there, or else add a path to the output filename (spaces require that the output name is surrounded in quotes) where you know there's enough free space.

Code:

rem - 2012 Olympics Track & Field Men's 100 Meter Final
ffmpeg.exe -i "http://www.youtube.com/api/manifest/hls_playlist/id/.../key/ck1/file/index.m3u8" -c copy newvideo.ts
pause

Once you've got a batch file in the folder you've chose for ffmpeg and the video, you will not need to use the command prompt window. Just double-click on the batch file.

Does that make sense?

thanks, it remains difficult to understand for me because i don't have a "great" experience in this :/ but for example in this video http://www.youtube.com/watch?v=78btYWiv_xM where is the ..api/manifest....? how can i take this link? i'm sorry, i'm a disaster!! maybe the best solution is someone who download video for me and then upload on a file sharging site :D

nwtim 08-23-2012 05:10 PM

Re: Olympic official streaming videos, i'm going crazy, i can't download it! help


 
Quote:

Originally Posted by pankyk86 (Post 53241)
thanks, it remains difficult to understand for me because i don't have a "great" experience in this :/ but for example in this video http://www.youtube.com/watch?v=78btYWiv_xM where is the ..api/manifest....? how can i take this link? i'm sorry, i'm a disaster!! maybe the best solution is someone who download video for me and then upload on a file sharging site :D

The URL for such programs often have an expiration date and they can be machine specific. I've found that to be the case with all the NBCOlympics videos that are served in 5-second chunks.

You won't be able to download/transcode (that's pretty much what ffmpeg is doing) the video without the proper URL, but there are numerous tools to do this. It's not completely trivial, as sometimes you have refresh the page and/or restart the video in order for the URL to be detected, but for these Olympics videos you're looking for the URL that ends in .m3u8. There are many ways to grab that URL. I happen to use the web console in Firefox (ctrl-shift-k) and enter m3u8 in the filter box in the upper right corner. The URL generally pops up right at the beginning of the video and that's all you need.

Don't give up - you're about to get this and then you'll be helping others.

pankyk86 08-23-2012 05:33 PM

Re: Olympic official streaming videos, i'm going crazy, i can't download it! help


 
Quote:

Originally Posted by nwtim (Post 53244)
The URL for such programs often have an expiration date and they can be machine specific. I've found that to be the case with all the NBCOlympics videos that are served in 5-second chunks.

You won't be able to download/transcode (that's pretty much what ffmpeg is doing) the video without the proper URL, but there are numerous tools to do this. It's not completely trivial, as sometimes you have refresh the page and/or restart the video in order for the URL to be detected, but for these Olympics videos you're looking for the URL that ends in .m3u8. There are many ways to grab that URL. I happen to use the web console in Firefox (ctrl-shift-k) and enter m3u8 in the filter box in the upper right corner. The URL generally pops up right at the beginning of the video and that's all you need.

Don't give up - you're about to get this and then you'll be helping others.

thanks for all your help and patience, i'm looking for the m3u8

pankyk86 08-23-2012 05:37 PM

Re: Olympic official streaming videos, i'm going crazy, i can't download it! help


 
now i have this 3 :
http://www.youtube.com/api/manifest/...ile/index.m3u8 [HTTP/1.1 200 OK 141ms]

[01:34:54.805] GET http://www.youtube.com/api/manifest/...ile/index.m3u8 [HTTP/1.1 200 OK 150ms]

--
[01:35:10.479] GET http://www.youtube.com/api/manifest/...ile/index.m3u8 [HTTP/1.1 200 OK 136ms]

what is the most important and what is the next step now?

quackeroats 08-24-2012 07:24 PM

Re: Olympic official streaming videos, i'm going crazy, i can't download it! help


 
Code:

ffmpeg -i http://www.youtube.com/api/manife
st/hls_variant/upn/BAK-PHP-zoU/sparams/id%2Cip%2Cipbits%2Cmaudio%2Cplaylist_type
%2Cpmbypass%2Cexpire/playlist_type/CLEAN/maudio/1/ip/209.197.20.248/ipbits/8/sig
nature/525A248DB3E26B0667C8A52013007E37840DC7FB.D52F09F1B969DED333C040DCE9E3E8E0
A1227A46/sver/3/source/yt_live_broadcast/expire/1345881156/key/yt1/pmbypass/yes/
id/016fd0b7d484de1f/file/index.m3u8 -c copy out.ts
ffmpeg version N-35709-g7d531e8, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 12 2011 13:50:00 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec  53. 43. 0 / 53. 43. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter  2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[http @ 01CAF100] Key 'pb' not found.
[http @ 01CAF100] Error parsing options string ,ipbits,expire,id,itag,source,rat
ebypass,cmbypass,playlist_type,maudio,pmbypass/signature/6BA0E95DF9DA4DB1652A499
C146790C8CDE1082F.3843FAE1174BDB5492E92A7834A9E7E0B6E3691F/key/ck1/file/index.m3
u8
http://www.youtube.com/api/manifest/...arams/id%2Cip%
2Cipbits%2Cmaudio%2Cplaylist_type%2Cpmbypass%2Cexpire/playlist_type/CLEAN/maudio
/1/ip/209.197.20.248/ipbits/8/signature/525A248DB3E26B0667C8A52013007E37840DC7FB
.D52F09F1B969DED333C040DCE9E3E8E0A1227A46/sver/3/source/yt_live_broadcast/expire
/1345881156/key/yt1/pmbypass/yes/id/016fd0b7d484de1f/file/index.m3u8: Not enough
 space

anyone has this issue>?

nwtim 08-24-2012 10:46 PM

Re: Olympic official streaming videos, i'm going crazy, i can't download it! help


 
Quote:

Originally Posted by pankyk86 (Post 53247)
now i have this 3 :
http://www.youtube.com/api/manifest/...ile/index.m3u8 [HTTP/1.1 200 OK 141ms]

[01:34:54.805] GET http://www.youtube.com/api/manifest/...ile/index.m3u8 [HTTP/1.1 200 OK 150ms]

--
[01:35:10.479] GET http://www.youtube.com/api/manifest/...ile/index.m3u8 [HTTP/1.1 200 OK 136ms]

what is the most important and what is the next step now?

I usually take the last one, as it's the one that pops up the moment I click on the 1080p HD option of the quality gear in the video.

nwtim 08-24-2012 10:51 PM

Re: Olympic official streaming videos, i'm going crazy, i can't download it! help


 
Quote:

Originally Posted by quackeroats (Post 53291)
Code:

ffmpeg -i http://www.youtube.com/api/manife
st/hls_variant/upn/BAK-PHP-zoU/sparams/id%2Cip%2Cipbits%2Cmaudio%2Cplaylist_type
%2Cpmbypass%2Cexpire/playlist_type/CLEAN/maudio/1/ip/209.197.20.248/ipbits/8/sig
nature/525A248DB3E26B0667C8A52013007E37840DC7FB.D52F09F1B969DED333C040DCE9E3E8E0
A1227A46/sver/3/source/yt_live_broadcast/expire/1345881156/key/yt1/pmbypass/yes/
id/016fd0b7d484de1f/file/index.m3u8 -c copy out.ts
ffmpeg version N-35709-g7d531e8, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 12 2011 13:50:00 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec  53. 43. 0 / 53. 43. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter  2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[http @ 01CAF100] Key 'pb' not found.
[http @ 01CAF100] Error parsing options string ,ipbits,expire,id,itag,source,rat
ebypass,cmbypass,playlist_type,maudio,pmbypass/signature/6BA0E95DF9DA4DB1652A499
C146790C8CDE1082F.3843FAE1174BDB5492E92A7834A9E7E0B6E3691F/key/ck1/file/index.m3
u8
http://www.youtube.com/api/manifest/...arams/id%2Cip%
2Cipbits%2Cmaudio%2Cplaylist_type%2Cpmbypass%2Cexpire/playlist_type/CLEAN/maudio
/1/ip/209.197.20.248/ipbits/8/signature/525A248DB3E26B0667C8A52013007E37840DC7FB
.D52F09F1B969DED333C040DCE9E3E8E0A1227A46/sver/3/source/yt_live_broadcast/expire
/1345881156/key/yt1/pmbypass/yes/id/016fd0b7d484de1f/file/index.m3u8: Not enough
 space

anyone has this issue>?

I did when I ran out of free space on the drive I was writing to.

pankyk86 08-25-2012 09:25 AM

Re: Olympic official streaming videos, i'm going crazy, i can't download it! help


 
Quote:

Originally Posted by nwtim (Post 53296)
I usually take the last one, as it's the one that pops up the moment I click on the 1080p HD option of the quality gear in the video.

ok the last one, and now? what i have to do with this link? next step?


All times are GMT -6. The time now is 01:42 AM.