[FFmpeg-user] preset files

Scott Johnson scott.wilty.com
Fri Aug 31 17:06:35 EEST 2018

Hi Everyone,


Here is a newbie question.


I have a C++ API that uses FFmpeg to stream an IP camera to my application.
I can not pass any variables to the background call to FFmpeg, other than
the source rtsp and transport type call.


Here is the command I used to test the FFmpeg settings to make it work with
my camera. Or should I say, here is the command I had to build to get it to


ffmpeg -rtsp_transport tcp -i "rtsp://" -c:v
copy -c:a aac -max_muxing_queue_size 99999 -map 0 foo.mp4


I now need to take some of the parts and put them in a preset file. Because
FFmpeg does not like my pcm_alaw audio codex. I had to use "-c:a aac" to
replace the audio steam with a blank one. I also had to add the
"-max_muxing_queue_size 99999" to prevent buffer issues.


My video is using the h.264 codex. Do I just need to make a file named
h264.ffpreset, with the following lines:













ffmpeg version N-91715-gd71dfc087b Copyright (c) 2000-2018 the FFmpeg

  built with gcc 8.2.1 (GCC) 20180813

  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
--enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
--enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
--enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2

  libavutil      56. 19.100 / 56. 19.100

  libavcodec     58. 27.100 / 58. 27.100

  libavformat    58. 17.103 / 58. 17.103

  libavdevice    58.  4.101 / 58.  4.101

  libavfilter     7. 26.100 /  7. 26.100

  libswscale      5.  2.100 /  5.  2.100

  libswresample   3.  2.100 /  3.  2.100

  libpostproc    55.  2.100 / 55.  2.100

More information about the ffmpeg-user mailing list