View Single Post
  #5  
Old 12-07-2017, 04:05 AM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: Why are some files soo large when using rtmpdump?


I actually get .flv file with ffmpeg as well, just for the sake of test I ran one .ts line to show the difference.

Instead of: -c copy c:\model.ts, I do: -c:v copy -c:a aac c:\model.flv,

and then my .flv file I made with ffmpeg is of the same size like .flv file I made with rtmpdump.


Code:
$model = $CmdLine[1]
runwait('cmd.exe /c curl.exe -v -k https://chaturbate.com/' & $model & '/ | CLIP','',@SW_HIDE,'')
$sData = ClipGet()
$sData = StringTrimLeft($sData,StringInStr($sData,"initHlsPlayer(jsplayer, 'https://")+24)
$sData = StringTrimRight($sData,(StringLen($sData)-3)-StringInStr($sData,'m3u8'))
$dtime = @YEAR & '-' & @MON & '-' & @MDAY & '_' & @HOUR & '-' & @MIN & '-' & @SEC & '-' & @MSEC
runwait('cmd.exe /c ffmpeg.exe -i "' & $sData & '" -c:v copy -c:a aac c:\' & $model & '_' & $dtime & '.flv','',@SW_SHOW)
Reply With Quote