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)

Anywho 07-15-2010 06:02 PM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by randybull (Post 20249)
Does anyone have a pointer to a newer version of SBS_downloader_1.2.bat ? ... I cant find the SBS wiki or thred on whirlpool anymore.

Links are in the iView wiki...

http://iviewdownloaders.wikia.com/wi...wnloaders_Wiki

blood.eaglz 07-16-2010 01:04 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by mce (Post 20238)
New versions of iViewNapper and iViewNapperLite can be found on the webpages.

Thanks MCE working for me (ie when ABC is working and/or the file is not experiencing technical difficulties), the bat file does the job, but I did miss the GUI.

tilt 07-16-2010 06:47 PM

Re: How to use iView (ABC Australia) downloaders


 
Back in the old whirlpool thread there was a message about trimming the file by cutting of 12K off the end or something. What program did people do this with?

I too am finding that rtmpdump version 2.2b can continue a download that it self aborted, but the newer versions stuff up the timecoding. But if I cancel it, it has a good chance of not continuing.

Yansky 07-16-2010 07:03 PM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by tilt (Post 20277)
Back in the old whirlpool thread there was a message about trimming the file by cutting of 12K off the end or something. What program did people do this with?

I too am finding that rtmpdump version 2.2b can continue a download that it self aborted, but the newer versions stuff up the timecoding. But if I cancel it, it has a good chance of not continuing.

Check the backups of the whirlpool threads: http://iviewdownloaders.wikia.com/wi...s_Wiki#History

Anywho 07-16-2010 09:03 PM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by tilt (Post 20277)
Back in the old whirlpool thread there was a message about trimming the file by cutting of 12K off the end or something. What program did people do this with?

frhed (a hex-editor) is an easy program to use for binary file editing.

Quote:

I too am finding that rtmpdump version 2.2b can continue a download that it self aborted, but the newer versions stuff up the timecoding. But if I cancel it, it has a good chance of not continuing.
Sounds like there might be an issue that has crept in between rtmpdump2.2b(r426) and 2.2d(r474). I think that's when we changed from using OpenSSL to PolarSSL*

*I'm not saying that's the problem, just a reference in time.

Anywho 07-16-2010 09:23 PM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by randybull (Post 20225)
Sorry for the sploge of code here but Im sure you will see what it does ...

if /i "%HOST%" == "Akamai" (
echo bin\rtmpdump.exe %RESUME% %RTMP_DEBUG% -r "rtmp://cp53909.edgefcs.net///flash/playback/_definst_/%SHOW_PATH%" -a ondemand?auth="%TOKEN%" -o "%SAVE_PATH%" %SWFPARAM% > "%NNN%%".bat
echo pause >> "%NNN%%".bat
D:\bin\IviewABC\ANapperiView\iView_Downloader\sync .exe -r D:
echo start %NNN%.bat %SHOW_PATH% %SAVE_PATH%
rem pause
call "cmd /c start D:\bin\IviewABC\ANapperiView\iView_Downloader\%NNN %.bat"
SET /a NNN+=1
)

Sync program courtesy of http://technet.microsoft.com/en-us/s.../bb897438.aspx

I would suggest adding the code from the Windows Batch File Downloader that gets the authentication token. echo this to your generated batch script at a point before rtmpdump gets called.

Code:

bin\wget %WGET_OPT% -O cache\auth.xml http://www2b.abc.net.au/iViewHandshaker/services/iviewhandshaker.asmx/isp

rem === reformatting auth.xml to remove namespace which hinders xml.exe to parse the elements we need
echo ^<iview^>>cache\auth_temp.xml
for /f "skip=2 tokens=*" %%a in ('type cache\auth.xml') do echo %%a>>cache\auth_temp.xml
move /y "cache\auth_temp.xml" "cache\auth.xml" >nul
rem === end reformat

if /i "%HOST%" == "Akamai" (
    for /f "usebackq tokens=*" %%a in (`bin\xml sel -T -t -m "/iview" -v token "cache\auth.xml"`) do set TOKEN=%%a
) else (
    for /f "usebackq" %%a in (`bin\xml sel -T -t -m "/iview" -v token "cache\auth.xml"`) do set TOKEN=%%a
)

del cache\auth.xml

This would then allow you to execute the batch file generated at a later time because then the authentication token is generated just before calling rtmpdump (just like in the Windows Batch-File Downloader) ;)

tilt 07-17-2010 03:40 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by Anywho (Post 20279)
frhed (a hex-editor) is an easy program to use for binary file editing.

Thanks that worked, although it loaded the whole file into memory!

randybull 07-17-2010 08:10 AM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by Anywho (Post 20280)
I would suggest adding the code from the Windows Batch File Downloader that gets the authentication token. echo this to your generated batch script at a point before rtmpdump gets called.

An excellent idea Anywho, i can save it in a seperate file then cat it instream. I will of course stick something in place to serialise or make unique the cache\auth.xml file so that it doesnt get confused. ;)

spr 07-18-2010 06:43 PM

Re: How to use iView (ABC Australia) downloaders


 
Hi everyone,

Great work on the batch file.

I'm having a problem though - it keeps saying the files are not available, trying a different path.
on v15.69 I couldn't get the token, 15.70 does, but can't find any shows. I'm not fussed if I download metered or not. Am using TPG at home on Vista.
Vista or XP work PCs have have a an error with cache\auth.xml premature end of data in tag iview line 1, so don't even get to the programs list.

download.log details below:

The show "Four Corners 05/07/10" was not found on the server.
Downloading "Four Corners 12/07/10" ...
and saving the stream with the filename "Four Corners 12-07-10.flv"
Downloading from Akamai server...
Retrieving Token...
Resuming previous download for "Four Corners 12/07/10"...
news/fourcorners_100712 path not found. Retrying a different path...

Retrieving Token...
Resuming previous download for "Four Corners 12/07/10"...
mp4:news/fourcorners_100712 path not found. Retrying a different path..

servalan 07-18-2010 06:53 PM

Re: How to use iView (ABC Australia) downloaders


 
Quote:

Originally Posted by spr (Post 20306)
I'm having a problem though - it keeps saying the files are not available, trying a different path.

Another buglet which I posted about back at that other place which has slipped through the cracks...

I have found that I need to delete the contents of the cache directory before starting the batch file. The old show lists don't seem to get cleaned up properly between batch file runs.

Does this fix the problem for you, too?


All times are GMT -6. The time now is 09:50 PM.