@ECHO Off REM FF Prompt 1.1 REM Open a command prompt to run ffmpeg/ffplay/ffprobe REM Copyright (C) 2013 Kyle Schwarz TITLE CAM rem @<"file.txt" (for /f "delims=" %%i in ('more') do @%%i) rem @<"file.txt" (for /f "delims=" %%i in ('more') do @start ""/b/w cmd/c %%i) rem @echo off ECHO %date:~0,2%.%date:~3,2%.%date:~6,4% Об %time:~0,2%:%time:~3,2%:%time:~6,2% запуск XSplit Broadcaster! START "XSplit Broadcaster" "E:\PF\XSplit Broadcaster\XSplit.Core.exe" TIMEOUT 60 ECHO %date:~0,2%.%date:~3,2%.%date:~6,4% Об %time:~0,2%:%time:~3,2%:%time:~6,2% XSplit Broadcaster Запущено! <"E:\ffmpeg\cam.txt" ( for /f "delims=" %%i in ('more') do ( echo. cmd/c "for %%j in (%%i) do @if "%%j" equ "title" (set x=*) else (if defined x echo.%%~j& exit/b)" ECHO %date:~0,2%.%date:~3,2%.%date:~6,4% Об %time:~0,2%:%time:~3,2%:%time:~6,2% Розпочато транскодування! start ""/b/w cmd /c %%i ECHO %date:~0,2%.%date:~3,2%.%date:~6,4% Об %time:~0,2%:%time:~3,2%:%time:~6,2% Транскодування закiнчено! ) ) pause>nul
ffmpeg -loglevel panic -f dshow -i video="XSplitBroadcaster" -c:v libx264 -preset veryfast -threads 2 -b:v 1500k -profile:v high -level 4.2 -metadata title="BB stream - Мудрого 64_2" -metadata service_provider="Ruskat A\V studio" -metadata service_name="Online camera" -g 10 -f segment -segment_list D:/cams/mudrogo_64_2/s.m3u8 -segment_time 10 -segment_list_size 30240 -segment_wrap 30240 D:/cams/mudrogo_64_2/s_%03d.ts -vf "fps=1/240" -y -update 1 D:/cams/mudrogo_64_2/or.jpg -vf fps=1/120 -y -update 1 -s 320x180 D:/cams/mudrogo_64_2/sm.jpg
PS C:\Users\Администратор> ffmpeg ffmpeg version N-79143-g8ff0f6a Copyright (c) 2000-2016 the built with gcc 5.3.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w3 g --enable-frei0r --enable-gnutls --enable-iconv --enable-li enable-libdcadec --enable-libfreetype --enable-libgme --enab fx --enable-libmp3lame --enable-libopencore-amrnb --enable-l ble-librtmp --enable-libschroedinger --enable-libsnappy --en ibtwolame --enable-libvidstab --enable-libvo-amrwbenc --enab bwebp --enable-libx264 --enable-libx265 --enable-libxavs --e nk --enable-zlib libavutil 55. 19.100 / 55. 19.100 libavcodec 57. 30.100 / 57. 30.100 libavformat 57. 29.101 / 57. 29.101 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 40.102 / 6. 40.102 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[ou Use -h to get full help or, even better, run 'man ffmpeg'
ffmpeg -f dshow -list_devices true -i dummy
-i video="XSplitBroadcasterl":audio="XSplitBroadcaster"