View Single Post
  #1607  
Old 02-24-2019, 05:33 PM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


Hi guys,

only to change file extensions (by hand) makes of course no sense.Important is put the video / audtio strams (codecs) into right container format.I dont like the MPEG-TS container because its getting handled pretty bad by player / editors etc so in this case I just give them a MPEG-4 container or just force the container already on a download / livestream.For videos using Flash Video container I keep them (for myself) and dont change it but you can do this too of course but it could make trouble (if speex audio used and tags not found = fails to set MPEG-4 container).

I am not into JS so I cant read that script very well but if horacio does use already the mp4 extension with ffmpeg as output for new file then the mp4 container is also set for the new file and it seems so...
Code:
let dstFile = path.basename(srcFile, path.extname(srcFile)) + '.mp4'
....also the speex issue gets checked and aac is set in this case.If ts or flv then set extension to mp4 = container format / execute ffmpeg.On first view into script it looks ok so far.

All in all its also no script what does convert the video (only if speex audio was found does it convert to aac) and just does copy video & audio streams into MPEG-4 (.mp4) container without to re-encode.

Anyway,using MPEG-4 container for files using MPEG-TS container is fine so I would also do that.I think thats also the sense of the script from horacio to change the containers into MPEG-4 one which gets handled best by most players and other tools.

greetz
Reply With Quote