zackronixxx / get-flash-videos

Automatically exported from code.google.com/p/get-flash-videos
0 stars 0 forks source link

suggesting a module for telequebec.tv #197

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This is another great source of content from the French Canadian television 
provider Tele-Quebec

I've put this module together using the Tou.tv perl module as a model and great 
help from Sylvail F. again.

Original issue reported on code.google.com by jean.phi...@gmail.com on 23 Nov 2010 at 12:22

Attachments:

GoogleCodeExporter commented 8 years ago
Any clue for that one ?

$ ./get_flash_videos http://video.telequebec.tv/video/1384
Downloading http://video.telequebec.tv/video/1384
Using method 'telequebec' for http://video.telequebec.tv/video/1384
TITLE  = Télé-Québec : Vidéo | Coureurs des bois : Tête de violon
FILE   = Coureurs_des_bois-Tête_de_violon.flv
SWF    = http://video.telequebec.tv/content/flash/lecteur_av_stq.swf
RTMP   = rtmp://207.162.84.52/vod1/_definst_/1365.flv
EM URL = http://video.telequebec.tv/video/1384
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
rtmpdump: ERROR: SWF Age must be non-negative, ignoring
Connecting ...
rtmpdump: ERROR: RTMP_Connect1, handshake failed.
Download failed, no valid file downloaded
Couldn't download any videos.

(TIA!)

Original comment by jcden...@gmail.com on 7 Jun 2011 at 11:54

GoogleCodeExporter commented 8 years ago
I got ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 
6562194879.18 KiB) while trying to get a video from Tele-Quebec.

$ get_flash_videos http://video.telequebec.tv/video/7900
Downloading http://video.telequebec.tv/video/7900
Using method 'telequebec' for http://video.telequebec.tv/video/7900
TITLE  = Télé-Québec : Vidéo | Chartrand, le malcommode : Chartrand, le 
malcommode
FILE   = Chartrand,_le_malcommode-Chartrand,_le_malcommode.flv
SWF    = http://video.telequebec.tv/content/flash/lecteur_av_stq.swf
RTMP   = rtmp://207.162.84.52/vod1/_definst_/7717.flv
EM URL = http://video.telequebec.tv/video/7900
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
rtmpdump: ERROR: SWF Age must be non-negative, ignoring
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:   audiodatarate         64.00
INFO:   creationdate          Wed Aug 17 17:29:44 2011
INFO:   duration              4683.55
INFO:   framerate             29.97
INFO:   height                288.00
INFO:   lastkeyframetimestamp 4680847.00
INFO:   lasttimestamp         4683520.00
INFO:   rating                none
INFO:   title                 Chartrand_01
INFO:   videodatarate         512.00
INFO:   width                 512.00
ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 6562194879.18 KiB)
ERROR: Failed to resume the stream.lcommode.flv: 61% (242758.39 / 394729.09 KiB)
Download may be incomplete (downloaded about 61.50%), try resuming

Download incomplete -- try running again to resume.
Couldn't download any videos.

Original comment by bigras.b...@gmail.com on 17 Oct 2011 at 3:11

GoogleCodeExporter commented 8 years ago
I have this message:

~$ get_flash_videos -p 
"http://video.telequebec.tv/video/12019/gentilly-or-note-to-be-mutations"
Using method 'telequebec' for 
http://video.telequebec.tv/video/12019/gentilly-or-note-to-be-mutations
Downloading 
http://video.telequebec.tv/video/12019/gentilly-or-note-to-be-mutations
TITLE  = T�l�-Qu�bec : Vid�o | Gentilly or not to be : Gentilly or note 
to be (Mutations)
FILE   = Gentilly_or_not_to_be-Gentilly_or_note_to_be_(Mutations).flv
SWF    = 
RTMP   = rtmp://207.162.84.52/vod1/_definst_/11772.flv
EM URL = http://video.telequebec.tv/video/12019/gentilly-or-note-to-be-mutations
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
rtmpdump: invalid option -- '1'
unknown option: ?
rtmpdump: This program dumps the media content streamed over RTMP.
--help|-h               Prints this help screen.
--rtmp|-r url           URL (e.g. rtmp://host[:port]/path)
--host|-n hostname      Overrides the hostname in the rtmp url
--port|-c port          Overrides the port in the rtmp url
--socks|-S host:port    Use the specified SOCKS proxy
--protocol|-l num       Overrides the protocol in the rtmp url (0 - RTMP, 2 - 
RTMPE)
--playpath|-y path      Overrides the playpath parsed from rtmp url
--playlist|-Y           Set playlist before playing
--swfUrl|-s url         URL to player swf file
--tcUrl|-t url          URL to played stream (default: "rtmp://host[:port]/app")
--pageUrl|-p url        Web URL of played programme
--app|-a app            Name of target app on server
--swfhash|-w hexstring  SHA256 hash of the decompressed SWF file (32 bytes)
--swfsize|-x num        Size of the decompressed SWF file, required for 
SWFVerification
--swfVfy|-W url         URL to player swf file, compute hash/size automatically
--swfAge|-X days        Number of days to use cached SWF hash before refreshing
--auth|-u string        Authentication string to be appended to the connect 
string
--conn|-C type:data     Arbitrary AMF data to be appended to the connect string
                        B:boolean(0|1), S:string, N:number, O:object-flag(0|1),
                        Z:(null), NB:name:boolean, NS:name:string, NN:name:number
--flashVer|-f string    Flash version string (default: "LNX 10,0,32,18")
--live|-v               Save a live stream, no --resume (seeking) of live 
streams possible
--subscribe|-d string   Stream name to subscribe to (otherwise defaults to 
playpath if live is specifed)
--flv|-o string         FLV output file name, if the file name is - print 
stream to stdout
--resume|-e             Resume a partial RTMP download
--timeout|-m num        Timeout connection num seconds (default: 30)
--start|-A num          Start at num seconds into stream (not valid when using 
--live)
--stop|-B num           Stop at num seconds into stream
--token|-T key          Key for SecureToken response
--jtv|-j JSON           Authentication token for Justin.tv legacy servers
--hashes|-#             Display progress with hashes, not with the byte counter
--buffer|-b             Buffer time in milliseconds (default: 36000000)
--skip|-k num           Skip num keyframes when looking for last keyframe to 
resume from. Useful if resume fails (default: 0)
--quiet|-q              Suppresses all command output.
--verbose|-V            Verbose command output.
--debug|-z              Debug level command output.
If you don't pass parameters for swfUrl, pageUrl, or auth these properties will 
not be included in the connect packet.
Download failed, no valid file downloaded
Couldn't download any videos.

Original comment by PKsc...@gmail.com on 20 Sep 2012 at 5:02

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
At the end of the script, I changed that line:
swfVfy => $swf_reader,
for this line:
swfVfy => "http://video.telequebec.tv/content/flash/lecteur_av_stq.swf",
Working... of course its not auto-detected so if they change the link it'll 
stop working.

Original comment by iN.Vi...@gmail.com on 12 Oct 2012 at 12:58

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks man :)

Original comment by no1r...@gmail.com on 3 Nov 2012 at 1:44

GoogleCodeExporter commented 8 years ago
May I humbly suggest the following patch so the video player is autodetected.
(I am also attaching the update module for you convenience).

Long description for the curious:
Short description of the modifications:
The video player URL is now hidden within a javascript file called 
"VideoPlayerPath.js". That javascript is downloaded using the browser object. 
If the download fails, we fallback to the current known value. Otherwise, we 
parse the content of VideoPlayerPath.js looking for the URL that contains 
".swf" and use that.

At the moment, the trailing variable that tells us the version of the player 
does not seem to have an effect. I've decided to include it in case it does 
make a difference at one point.

Cheers!

Original comment by evily...@gmail.com on 20 Dec 2012 at 3:44

Attachments:

GoogleCodeExporter commented 8 years ago
Good evening,

This thread has been inactive for nearly one year.  I believe TeleQuébec 
changed its video architecture or enconding since.  When I run the script, I do 
not get a link for the rtmp field and it does not detect the flv file.

This is the link I used:

http://zonevideo.telequebec.tv/media/7397/face-l-ecole-des-beaux-arts/ecoles-a-l
-examen

The same video is also available here:

http://ecolesalexamen.telequebec.tv/emissions/6/l-ecole-des-beaux-arts

Any idea how to fix the script?

Thanks!

---

1 plugin installed:
- Telequebec.pm
Downloading 
http://zonevideo.telequebec.tv/media/7397/face-l-ecole-des-beaux-arts/ecoles-a-l
-examen
-> GET 
http://zonevideo.telequebec.tv/media/7397/face-l-ecole-des-beaux-arts/ecoles-a-l
-examen
<- 200 text/html; charset=utf-8 (10259)
Trying to open plugin ~/.get_flash_videos/plugins/Zonevideo.pm
Trying to open plugin ~/.get_flash_videos/plugins/Telequebec.pm
Using method 'telequebec' for 
http://zonevideo.telequebec.tv/media/7397/face-l-ecole-des-beaux-arts/ecoles-a-l
-examen
-> GET http://video.telequebec.tv/VideoPlayerPath.js
<- 200 application/x-javascript (367)
TITLE  = Face - L'école des beaux-arts | Écoles à l'examen | Zone Vidéo 
Télé-Québec
FILE   = 
SWF    = http://video.telequebec.tv/content/flash/lecteur_av_stq.swf?v1.4
RTMP   = 
EM URL = 
http://zonevideo.telequebec.tv/media/7397/face-l-ecole-des-beaux-arts/ecoles-a-l
-examen
FlashVideo::RTMPDownloader=HASH(0x25f5af8)
Running rtmpdump --verbose --rtmp --pageUrl 
'http://zonevideo.telequebec.tv/media/7397/face-l-ecole-des-beaux-arts/ecoles-a-
l-examen' --flv --swfVfy 
'http://video.telequebec.tv/content/flash/lecteur_av_stq.swf?v1.4' --swfAge '-1'
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
rtmpdump: DEBUG: Parsing...
rtmpdump: ERROR: RTMP URL: No :// in url!
ring
ERROR: You must specify a hostname (--host) or url (-r 
"rtmp://host[:port]/playpath") containing a hostname
Download failed, no valid file downloaded
Couldn't download any videos.

Original comment by jpl...@gmail.com on 18 Oct 2013 at 10:53