Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- goto setencpath
- ######################
- # Set Encoding Paths #
- ######################
- :setencpath
- set Work=%cd%
- set recdrive=C:
- set encdrive=R:
- set RecDir=C:\Users\PC\Desktop\__RECORDS__
- set ngin=C:\nginx-1.13.5\html
- set Apps=%Work%\_toolset_\Apps
- set Temp=%Work%\_toolset_\_temp
- goto eraseold
- ##################
- # Erase Old M3U8 #
- ##################
- :eraseold
- %recdrive%
- cd %ngin%
- erase /q *.ts
- erase master.m3u8
- goto inout
- #########################
- # Select Source TS File #
- #########################
- :inout
- cd %RecDir%
- cls
- echo What is the input filename? hit tab.
- set /p input=
- title Streaming 720p At http://192.168.0.2/master.m3u8
- goto indur
- ###########################
- # Work Out Input Duration #
- ###########################
- :indur
- for /f "delims=" %%a in ('%Apps%\mediainfo "--Inform=General;%%Duration/String3%%" %input%') do set duration=%%a
- -timeout 3
- ffmpeg -re -ss %duration:~0,-4% -i %input% -sws_flags spline -sn -vf yadif=1:0,scale=1280:-4,setsar=1/1 -vcodec libx264 -preset slow -profile:v high -level 4.1 -refs 5 -crf 24 -r 50 -x264opts force-cfr=1:colormatrix=bt709 -acodec mp3 -b:a 192k -f hls C:\nginx-1.13.5\html\master.m3u8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement