<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Team,<br>
<br>
We are working on a prototype which converts RTSP streams to HLS using ffmpeg transcoder.<br>
<br>
We are using below ffmpeg command to convert RTSP to HLS :<br>
<br>
<b>cmd:</b>-<br>
<span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;background:white">ffmpeg.exe -rtsp_transport tcp -re -i </span><a href="rtsp://root:" title="Follow link"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#0052CC;background:white">rtsp://<username>:</span></a><a href="mailto:root@172.31.67.223" title="Follow link"><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#0052CC;background:white"><password>@172.31.67.223</span></a><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#172B4D;background:white">:554/axis-media/media.amp?videocodec=h264
 -c:v libx264 -crf 21 -preset veryfast -c:a aac -ac 2 -f hls -hls_flags delete_segments -hls_list_size 4 -hls_time 1 -g 5 -sc_threshold 0 -hls_playlist_type event C:\Users\Niagara4.13\tridium\stations\HLSTest\shared\vids\-514225936\stream.m3u8<br>
<br>
<br>
We downloaded “ffmpeg.exe(5.0)” from <a href="https://www.videohelp.com/software/ffmpeg">
https://www.videohelp.com/software/ffmpeg</a></span><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:black;background:white"> .  We are also using FFmpeg 5.0.1 "Lorentz" (<a href="https://ffmpeg.org/download.html">https://ffmpeg.org/download.html</a>)
 libraries in our project. <br>
<b><br>
Can somebody help me answering below questions :<br>
<br>
1. Can we reduce the size of ffmpeg.exe ? Any idea how can we create a smaller ffmpeg.exe which should be able to run only above command  </b></span><b>to convert RTSP to HLS</b><b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:black;background:white">?
</span></b><span style="font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:black;background:white">(as its size is 110 mb+ so it is difficult to ship it with our product).<b><br>
2. Is there a way to run above ffmpeg command using “dll files” or other alternative instead of using “ffmpeg.exe”</b>
<br>
<br>
<br>
<br>
Regards,<br>
Rahul K<br>
Honeywell</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>