Posts

Showing posts from July, 2022

join video ffmpeg

 ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4

cut out ffmpeg

 ffmpeg -i input2.mp4 -ss 00:56:07.600 -t 00:56:10.000 -c:v copy -c:a copy output44.mp4

host javascript and css

 Upload your file to github and replace the file location     https://cdn.jsdelivr.net/gh/ your github username / Respositoryname /If Folder Folder name /filename.js

ffmpeg remove a video parts

ffmpeg -i input.mp4 -vf  "select='not(between(t,15,20))',  setpts=N/FRAME_RATE/TB" -af "aselect='not(between(t,15,20))', asetpts=N/SR/TB" output4.mp4

Rename file name using last extension using COMMAND if normal rename option not work

 Rename a file using CMD rund cmd on same director and use this command line   ren vacation_2019*.jpg vacay_19*.jpg

encryption with openssl and ffmpeg

 download openssl from here  https://slproweb.com/products/Win32OpenSSL.html Run CMD ass admistrator by search and run as admitrator then change directory to CD where open ssl located then use this command openssl rand 16> enc.key after creating enc.key cut and paste to the video file directory then create a text doc and write its name enc.keyinfo then host the enc.key file on server copy link and paste it to enc.keyinfo text doc like this https://raw.githubusercontent.com/zahir2498/srilanka/main/enc.key enc.key then save file must be enc.keyinfo the open ffmpeg in video directory and use this command ffmpeg -y -i video.mp4 -hls_time 9 -hls_key_info_file enc.keyinfo -hls_playlist_type vod -hls_segment_filename "segmentNo%d.ts" index.m3u8 if enc.keyinfo file name has extension of .txt change it to .keyinfo Extension using this COMMAND  Rename a file using CMD rund cmd on same director and use this command line   ren vacation_2019*.jpg vacay_19*.jpg