FFMPEG

STREAM DEVICE AUDIO PC TO MP3
ffmpeg -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Stereo Mix (Realtek High Defini" -y -rtbufsize 1M -r 30 -pix_fmt yuv420p -preset fast -b:v 1M -maxrate:v 1M -c:a aac -b:a 128k -ar 44100 -pix_fmt yuv420p -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -crf 17 -hls_wrap 15 -vcodec copy -y C:/xampp/htdocs/live.m3u8


STREAM
ffmpeg -i rtmp://localhost/live/stream -y -rtbufsize 1M -r 30 -pix_fmt yuv420p -preset fast -b:v 1M -maxrate:v 1M -c:a aac -b:a 32k -ar 44100 -pix_fmt yuv420p -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -crf 17 -hls_wrap 15 -vcodec copy -y C:\xampp\htdocs\index.m3u8
ffmpeg -i rtmp://localhost/live/stream -y -rtbufsize 1M -r 30 -pix_fmt yuv420p -preset fast -b:v 1M -maxrate:v 1M -c:a aac -b:a 32k -ar 44100 -pix_fmt yuv420p -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y C:\xampp\htdocs\index.m3u8

ffmpeg -y -rtbufsize 1M -f dshow -i video="@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\UScreenCapture" -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Stereo Mix (Realtek High Defini" -r 30 -pix_fmt yuv420p -preset fast -b:v 1M -maxrate:v 700k -c:a aac -b:a 32k -ar 44100 -vf scale=720x406 -hls_wrap 15 C:\xampp\htdocs\index.m3u8

-i rtsp://192.168.0.14:5000/screen -y -rtbufsize 1M -r 30 -pix_fmt yuv420p -preset fast -b:v 1M -maxrate:v 1M -c:a aac -b:a 32k -ar 44100 -pix_fmt yuv420p -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8

STREAM TIKTOK LIVE
ffmpeg -i https://pull-f5-va01.tiktokcdn.com/stage/stream-2994255407453569097_hd.flv?abr_pts=343236647 -y -rtbufsize 1M -r 30 -pix_fmt yuv420p -preset fast -b:v 1M -maxrate:v 1M -c:a aac -b:a 32k -ar 44100 -pix_fmt yuv420p -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y C:\xampp\htdocs\index.m3u8


LIPESTE MP3

ffmpeg -i "concat:file1.mp3|file2.mp3" -acodec copy output.mp3

DESCARCA M3U8

ffmpeg -i http://bitcdn-kronehit.bitmovin.com/v2/hls/chunklist_b1628000.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4

RESIZE VIDEO

ffmpeg -i input.mp4 -vf scale=640:360 -preset slow -crf 18 output.mp4


MP4 TO M3U8
ffmpeg -i http://videoclipuri.duckdns.org:8200/MediaItems/149.mp4 -codec: copy -bsf:v h264_mp4toannexb -start_number 0 -hls_time 200 -hls_list_size 0 -f hls index.m3u8

ffmpeg -i http://videoclipuri.duckdns.org:8200/MediaItems/149.mp4 -codec: copy -bsf:v h264_mp4toannexb -start_number 0 -hls_time 10 -hls_wrap 1 -hls_list_size 0 -f hls index.m3u8

ffmpeg -i output.mp4 -codec: copy -bsf:v h264_mp4toannexb -start_number 0 -hls_time 10 -hls_list_size 0 -f hls index.m3u8

ffmpeg -i filename.mp4 -profile:v baseline -strict -2 -level 3.0 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8

MP4 TO MP3

ffmpeg -i https://seed122.bitchute.com/ECjsoPJUlYyI/qqfTsBJTfylz.mp4 -b:a 128K -vn 84.mp3

ffmpeg -i 33G.mpg -c:v libx264 -c:a libfaac -r 30 33G6.mp4




ffmpeg -i 33G.mpg -c:v libx264 -c:a aac -r 30 33G6.mp4

ffmpeg -y -rtbufsize 1M -f dshow -i video="@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\UScreenCapture" -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{F32D4F0A-DDDE-4299-B972-EAAEDFE89ACE}" -r 30 -pix_fmt yuv420p -preset fast -b:v 1M -maxrate:v 700k -c:a aac -b:a 32k -ar 44100 -vf scale=720x406 -hls_wrap 15 C:\xampp\htdocs\index.m3u8


MP4 TO MP3

ffmpeg -i video.mp4 -b:a 192K -vn music.mp3




VLC SERVER RTP FFMPEG M3U8

ffmpeg -re -i rtp://192.168.0.6:5000/screen -y -rtbufsize 1M -r 30 -pix_fmt yuv420p -preset fast -tune zerolatency -b:v 1M -maxrate:v 700k -c:a aac -b:a 32k -ar 44100 -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y C:\xampp\htdocs\index.m3u8

AVI TO MP4

ffmpeg -i 8 S-(06.09.2004-15.09.2004).avi -vcodec libx264 -vprofile high -crf 28 -acodec copy show.mp4

ffmpeg -i 8 S-(06.09.2004-15.09.2004).avi 8S.mp4

ffmpeg -i 8S.avi -vcodec libx264 -vprofile high -crf 28 show.mp4

ffmpeg -i 8 S-(06.09.2004-15.09.2004).avi -c:v copy -c:a copy 8S.mp4

ffmpeg -i 8 S-(06.09.2004-15.09.2004).avi -strict -2 output8.mp4

ffmpeg -i 8 S-(06.09.2004-15.09.2004).avi -c:v copy -c:a copy "input.mp4

ffmpeg -i 8 S-(06.09.2004-15.09.2004).avi -c:v libx264 -preset slow -crf 19 -c:a libvo_aacenc -b:a 128 8S.mp4

ffmpeg -i 8 S-(06.09.2004-15.09.2004).avi -c:v libx264 -preset slow -crf 22 -c:a libfaac -b:a 128k 8S.mp4

MARIRE VOLUM CU 150%

ffmpeg -i output.vob -filter:a "volume=1.5" output_marit_sunet.vob







ffmpeg -f concat -safe 0 -i vob.txt -c copy output.vob




ADAUGARE SUBTITRARE

ffmpeg -i input.mp4 -vf subtitles=subtitle.srt output_srt.mp4




ffmpeg -i input.mp4 -vf "subtitles=subtitle.srt:force_style=

'Fontname=

Futura,Fontsize=34,PrimaryColour=&HFF00'" output_force_style.mp4




ffmpeg -i video.mp4 -vf "subtitles=subs.srt:force_style=

'Fontsize=24,PrimaryColour=&H0000ff&'" -c:a copy output.mp4




ffmpeg -i input.mp4 -i subtitle.en.srt -i subtitle.chi.srt -map 0 -map 1 -map 2 -c copy -c:s mov_text -metadata:s:s:0 language=eng -metadata:s:s:1 language=chi output_eng_chi.mp4







ADAUGARE LOGO




ffmpeg -i input.mp4 -i logo.png -filter_complex “overlay=40:30” output_logo.mp4




ADAUGARE TEXT




ffmpeg -i input.mp4 -vf “drawtext=fontfile= /Windows/fonts/calibri.ttf:fontsize=18: fontcolor=black:x=(w-text_w)/2:y=(h-text_h)/2:text=word” output.mp4




MARIRE VOLUM CU 150%

ffmpeg -i output.vob -filter:a "volume=1.5" output_marit_sunet.vob

STREAM SCREEN PC AND PHONE

-i rtsp://192.168.0.14:5000/screen -y -rtbufsize 1M -r 30 -pix_fmt yuv420p -preset fast -tune zerolatency -b:v 1M -maxrate:v 700k -c:a aac -b:a 32k -ar 44100 -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8




ffmpeg -y -rtbufsize 1M -f dshow -i video="@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\UScreenCapture" -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{F32D4F0A-DDDE-4299-B972-EAAEDFE89ACE}" -r 30 -pix_fmt yuv420p -preset fast -tune zerolatency -b:v 1M -maxrate:v 700k -c:a aac -b:a 32k -ar 44100 C:\xampp\htdocs\index.m3u8

CHANGE CODEC MP4

ffmpeg -i out2.mp4 -max_muxing_queue_size 9999 out.mp4

MP4TO AVI

ffmpeg -i video_fara_audio.mp4 file.mp4.avi

COMBINARE AUDIO CU VIDEO

ffmpeg -i video_fara_audio.mp4 -i 1S.mp3 -c:v copy output.mp4

ELIMINARE AUDIO

EXTRACT AUDIO

ffmpeg -i 1S.mp4 -an video_fara_audio.mp4




ffmpeg -i input.mp4 -map 0:a output.mp3

ffmpeg -i input.mkv -map 0:a output.m4a

ffmpeg -i input.avi -map 0:a -c:a aac output.mka

ffmpeg -i input.mp4 output.wav

MP3 CORRUPT

ffmpeg -i input.mp4 -c copy output.mp4

ffmpeg -i VTS_01_1.VOB output.mp4

ffmpeg -i VTS_01_1.VOB -c:v copy -c:a copy out2.mp4

fmpeg -i VTS_01_2.ts -c:v libx264 -c:a aac vts1.mp4




LIPESTE MP4

ffmpeg -f concat -safe 0 -i input.txt -c copy output.mp4




The only problem with this command is that you need to read the filepaths

from the text file called input.txt with the following content:




file 'C:\BAT_FFMPEG-master\1.mp4'

file 'C:\BAT_FFMPEG-master\2.mp4'

file 'C:\BAT_FFMPEG-master\3.mp4'

file 'C:\BAT_FFMPEG-master\4.mp4'




ffmpeg -i input.mp4 -vf scale=1280:720 -preset slow -crf 18 output.mp4

ffmpeg -i 2S.mpg -c:v libx264 -c:a aac -r 30 2S.mp4

ffmpeg -i rob-test.mpg -vf "[in]scale=480:320" -vol 0 -y -c:v libx264 -crf

24 -preset slow -profile:v baseline -level 30 -c:a libfaac -q:a 100 -r 30

new.mp4




ffmpeg -i rob-test.mpg -c:v libx264 -c:a libfaac -r 30 out.mp4

ffmpeg -i input.dat -c:v libx264 -crf 20 -c:a aac -b:a 128k -movflags +faststart output.mp4




ffmpeg -i input.dat -vf yadif -c:v libx264 -crf 20 -c:a aac -b:a 128k -movflags +faststart output.mp4




STREAM PC SI PHONE




-i rtsp://192.168.0.14:5000/screen -y -rtbufsize 1M -r 30 -pix_fmt yuv420p -preset fast -tune zerolatency -b:v 1M -maxrate:v 700k -c:a aac -b:a 32k -ar 44100 -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8

-i rtsp://192.168.0.14:5000/screen -y -rtbufsize 700k -r 30 -pix_fmt yuv420p -preset fast -tune zerolatency -b:v 700k -maxrate:v 700k -c:a aac -b:a 32k -ar 44100 -pix_fmt yuv420p -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8

-i rtsp://192.168.0.14:5000/screen -y -rtbufsize 1M -r 30 -pix_fmt yuv420p -preset fast -b:v 1M -maxrate:v 1M -c:a aac -b:a 32k -ar 44100 -pix_fmt yuv420p -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8

ffmpeg -list_devices true -f dshow -i dummy

ffmpeg -y -rtbufsize 1M -f dshow -i video="@device_sw_{860BB31" -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_" -r 30 -pix_fmt yuv420p -preset fast -b:v 1M -maxrate:v 700k -c:a aac -b:a 32k -ar 44100 -vf scale=720x406 -hls_wrap 15 C:\xampp\htdocs\index.m3u8

ffmpeg -y -rtbufsize 2M -f dshow -i video="@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\UScreenCapture" -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{F32D4F0A-DDD" -r 30 -pix_fmt yuv420p -preset fast -b:v 2M -maxrate:v 2M -c:a aac -b:a 32k -ar 44100 -vf scale=720x406 -pix_fmt yuv420p -hls_wrap 15 C:\xampp\htdocs\index.m3u8




ffmpeg -y -rtbufsize 100M -f dshow -i video="@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\UScreenCapture" -f dshow -i audio="@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{F3" -r 30 -pix_fmt yuv420p -preset fast -b:v 8M -maxrate:v 10M -c:a aac -b:a 128k -ar 44100 -vf scale=720x406 -pix_fmt yuv420p -hls_wrap 15 C:\xampp\htdocs\index.m3u8







SCREEN

-i rtsp://192.168.0.8:5000/screen -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8




FOTBAL 3




ffmpeg -re -y -i https:// -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y C:\xampp\htdocs\index.m3u8




ARENA SPORT 1




-re -y -i http://93.157.62.180/ArenaSport1/tracks-v1a1/mono.m3u8? -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8




RTSH SPORT




-re -y -i http://93.157.62.180/RTSHSport/index.m3u8 -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8




HRT 2




-re -y -i http:// -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2

-hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8




SPORT




-re -y -i http://217.174.225.146/hls/ch004_720/index.m3u8 -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y C:\xampp\htdocs\index.m3u8




PROX




ffmpeg -re -y -i https://cmero-ott-live-app-svod-sec.ssl.cdn.cra.cz/xrIXIAaEEWrLjUMfLLvTjQ

==,1645729822/channels/cme-ro-prox/playlist/rum/live_fullhd.m3u8?offsetSeconds=0&url=1 -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y C:\xampp\htdocs\index.m3u8




UTV




-re -y -i http://

-fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8




MUSIC CHANNEL




-re -y -i http://edge126.rcs-rds.ro

-fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8




PHONE RESTREAM PC SSL




-re -y -i http://192.168.0.13/index.m3u8 -fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 15 -vcodec copy -y /storage/emulated/0/php/index.m3u8







PC RESTREAM SSL




ffmpeg -re -y -i https://cmero-ott-live-app-svod-sec.ssl.cdn.cra.cz

-fflags flush_packets -max_delay 5 -flags -global_header -hls_time 2 -hls_list_size 3 -hls_wrap 30 -vcodec copy -y C:\xampp\htdocs\index.m3u8