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

How to use iView (ABC Australia) downloaders

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

Yansky 03-04-2011 03:07 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by mce (Post 25762)
I tried the above before and after the little coding mod.

Before:

Got the Save As... box, hit enter but no rtmpdump window.

After:

Got the Save As... box, but notepad didn't appear either.

I ran the firefox Error Console and and got the following error after pressing the Enter key for Save As...

Code:

Error: fwindowTypeSplit is not defined
Source File: file:///C:/Users/mypc/AppData/Roaming/Mozilla/Firefox/Profiles/o1446y93.mypc/extensions/iViewFox@forboden.com/modules/iv.jsm
Line: 267

Question.

With debug turned on, does it go to a file or just the Error Console?

Thanks that helps a lot. fwindowTypeSplit should actually be fTypeSplit.

I wasn't encountering that error because that code is only run when you're downloading from hostworks (which I don't, I'm on edgefcs.net)

The debug mode actually just adds the "-z" parameter to rtmpdump, so it doesn't really help with the javascript code.

I've been realising lately that I really need to change the way I code. I need to put more try/catch/throw's in my code to make it easier to debug.

ok, lets try this again, 1.2.7 is the latest: https://addons.mozilla.org/en-US/fir...wfox/versions/

(thanks mce :) )

Anywho 03-04-2011 05:20 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by Yansky (Post 25765)
ok, lets try this again, 1.2.7 is the latest: https://addons.mozilla.org/en-US/fir...wfox/versions/

Yay! Itsa Mario :D

Working now, mate :cool:

gxdata 03-09-2011 01:37 AM

Re: How to use iView (ABC Australia) downloaders


 
An rtmpdump question: when it's capturing the stream, I see output that indicates the total duration expected (metadata stored in the show being streamed).
Can I capture that piece of data (eg, it is 301.08 for Peppa Pig S2E9)?

Reason: it would be nice to have real size and duration - quite a number are hugely inaccurate as stored in the iView index/catalog/json files.

trojan 03-10-2011 08:24 AM

Re: How to use iView (ABC Australia) downloaders


 
1.2.7 fixed it for me too :cool:

gxdata 03-11-2011 12:22 AM

Re: How to use iView (ABC Australia) downloaders


 
Fri 11March2011 @ 6:20PM (Sydney time):
The iView page works fine, but iViewNapper / Batch Downloader cannot get the catalog/index file.

I guess I need to sniff the iView page http://www.abc.net.au/iview/#/recent

The catalog file (20Kb only) seems to be binary - possibly GZIP compressed?
[EDIT]
The file is not opened using standard compresion utilities, but I recall an article by Rick Strahl from a while back which shows what to do on the client side (most browsers will deflate web pages with GZIP encoding without problem, he says).

http://www.west-wind.com/Weblog/posts/102969.aspx

This online tool proves the stituation:

http://www.gidnetwork.com/tools/gzip-test.php

If the iView catalog/index URL (http://tviview.abc.net.au/iview/api2/?seriesIndex) is pasted into it, it is unpacked to JSON code.

That is the problem.

any ANONYMOUS forum user 03-11-2011 01:52 AM

Re: How to use iView (ABC Australia) downloaders


 
A quick n Dirty test looks like that is the case, it is Gzip compressed.

using gzip from GnuWin32 allows decompression back to text.

find the line:
bin\wget %WGET_OPT% -O "cache\index.json" "http://tviview.abc.net.au/iview/api2/?seri.......
chg to bin\wget %WGET_OPT% -O "cache\index.gz" "http://tviview.abc.net.au/iview/api2/?seri
and add the lines:
gzip.exe -d "cache\index.gz"
ren cache\index index.json

gxdata 03-11-2011 02:29 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by any ANONYMOUS forum user (Post 26030)
A quick n Dirty test looks like that is the case, it is Gzip compressed.

using gzip from GnuWin32 allows decompression back to text.

find the line:
bin\wget %WGET_OPT% -O "cache\index.json" "http://tviview.abc.net.au/iview/api2/?seri.......
chg to bin\wget %WGET_OPT% -O "cache\index.gz" "http://tviview.abc.net.au/iview/api2/?seri
and add the lines:
gzip.exe -d "cache\index.gz"
ren cache\index index.json

That works up to a point - I'm not sure what my problem is.

The Index is converted to text (index.json) and I can read the Episode .json files (in the cache folder) too - but the batch file fails.

Quote:

Downloading "Yo Gabba Gabba Episode 20 Imagine" ...
and saving the stream with the filename "Yo Gabba Gabba Episode 20 Imagine.mp4"

Downloading from Hostworks server...

Retrieving Token...
RTMPDump v2.2d (r474)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
mp4:kids/yogabba_10_01_20 path not found. Retrying a different path...

Retrieving Token...
Resuming previous download for "Yo Gabba Gabba Episode 20 Imagine"...
RTMPDump v2.2d (r474)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
kids/yogabba_10_01_20 path not found. Retrying a different path...

Retrieving Token...
Resuming previous download for "Yo Gabba Gabba Episode 20 Imagine"...
RTMPDump v2.2d (r474)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
kids/yogabba_10_01_20.mp4 path not found. Retrying a different path...


The show "Yo Gabba Gabba Episode 20 Imagine" was not found on the server.
(I will try to get the GUI version working later; my saved catalog.json from that is not liked by gzip.exe)

OK - fixed.

With the batch file, gzip.exe needs to be in \bin\ - funny that having it in my working folder (where the .bat file is) did actually create text .json files for index and series (mistake earlier - not episode .json files of course).

Anywho 03-11-2011 02:38 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by gxdata (Post 26031)
That works up to a point - I'm not sure what my problem is.

Seems like it's back to plain text at the moment... They're probably playing around with it again :rolleyes:

edit: Yep, and now it's back to compressed. Let it go for a couple of days before committing anything ;)

gxdata 03-11-2011 02:43 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by Anywho (Post 26032)
Seems like it's back to plain text at the moment... They're probably playing around with it again :rolleyes:

edit: Yep, and now it's back to compressed. Let it go for a couple of days before committing anything ;)

Are you sure?

Anywho 03-11-2011 02:47 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by gxdata (Post 26033)
Are you sure?

LOL! Yes! They're flipping between text and compressed... Probably watching this tread (hi guys!) :D

edit: I'll knock up a cheap unzipper later if they keep it ;)


All times are GMT -6. The time now is 01:05 PM.