View Single Post
  #226  
Old 11-21-2014, 12:15 AM
joe5 joe5 is offline
Junior Member
 
Join Date: Nov 2014
Posts: 7
joe5 is on a distinguished road
Default

Re: Adobe HDS Downloader


Here's a simpler batch file I created to download a single segment .f4m file and convert to MP4:

Get.F4M.Video.bat

Code:
@echo off

SET TEMPFILE=%DATE:~-4%%DATE:~4,2%%DATE:~7,2%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%

paste > %TEMPFILE%.txt

set /p URL1=<%TEMPFILE%.txt

del %TEMPFILE%.txt

hdsdump -m "%URL1%" -o %TEMPFILE%.flv

Choice /M "Download complete. Do you want to convert to MP4"

If Errorlevel 2 Goto No

If Errorlevel 1 Goto Yes

Goto End

:No

Goto End

:Yes

ffmpeg -i %TEMPFILE%.flv -c copy -copyts Video%TEMPFILE%.mp4

echo "Deleting TEMP FLV file"

timeout /T 3

del %TEMPFILE%.flv

:End
Reply With Quote