{"id":5704,"date":"2026-05-16T15:05:13","date_gmt":"2026-05-16T06:05:13","guid":{"rendered":"https:\/\/www.freelifemakers.org\/wordpress\/?p=5704"},"modified":"2026-05-16T15:06:01","modified_gmt":"2026-05-16T06:06:01","slug":"mediaserver-minimediaserver-1","status":"publish","type":"post","link":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/2026\/05\/16\/mediaserver-minimediaserver-1\/","title":{"rendered":"[Mediaserver]miniMediaserver-(1)"},"content":{"rendered":"\n<p>\ud83d\udc49\ud83c\udffb\uc544\ub798\ub294 miniMediaserver \uc11c\ubc84\uc5d0 \ub300\ud55c \uc124\uba85\uc785\ub2c8\ub2e4.<br>Below is a description of the miniMediaserver server.<\/p>\n\n\n\n<p>\ud83d\udc49\ud83c\udffb \ub85c\uceec\uc5d0\uc11c \ud14c\uc2a4\ud2b8 \uac00\ub2a5\ud55c \ubbf8\ub514\uc5b4\uc11c\ubc84\uc758 \uac00\uc7a5 \uae30\ubcf8\ud615\uc785\ub2c8\ub2e4.<br>This is the most basic type of media server that can be tested locally.<\/p>\n\n\n\n<p>\ud83d\udc49\ud83c\udffb \ub514\ub809\ud1a0\ub9ac \uad6c\uc870 \/ <br>directory structure<\/p>\n\n\n\n<p>\u2714\ufe0f CMakeLists.txt : \ube4c\ub4dc\ub3c4\uad6c \/ Build Tools<\/p>\n\n\n\n<p>\u2714\ufe0f main.cpp : \uc571 \uc9c4\uc785\uc810 cpp\ud30c\uc77c \/ App entry point cpp file<\/p>\n\n\n\n<p>\u2714\ufe0f src : cpp\ubc0f h\ud30c\uc77c \ub514\ub809\ud1a0\ub9ac \/  cpp and h file directories<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mini_mediaserver_1\/<br>\u251c\u2500\u2500 CMakeLists.txt<br>\u251c\u2500\u2500 main.cpp<br>\u2514\u2500\u2500 src\/<br>    \u251c\u2500\u2500 rtmp_server.h<br>    \u251c\u2500\u2500 rtmp_server.cpp<br>    \u251c\u2500\u2500 rtmp_session.h<br>    \u251c\u2500\u2500 rtmp_session.cpp<br>    \u251c\u2500\u2500 amf0.h<br>    \u251c\u2500\u2500 amf0.cpp<br>    \u251c\u2500\u2500 flv_writer.h<br>    \u2514\u2500\u2500 flv_writer.cpp<\/pre>\n\n\n\n<p>\ud83d\udc49\ud83c\udffb \uc5ec\uae30\uc11c\ub294 obs\uc5d0\uc11c rtmp\ud504\ub85c\ud1a0\ucf5c\ub85c \uc11c\ubc84\uc5d0 \uc811\uc18d\ud558\uace0 flv\ud30c\uc77c\ub85c \uc800\uc7a5\ud558\uace0 VLC Player\ub85c \uc7ac\uc0dd\uae4c\uc9c0 \ud655\uc778\ud574\ubd05\ub2c8\ub2e4.<br>Here, we connect to the server using the RTMP protocol in OBS, save it as an FLV file, and verify playback using VLC Player.<\/p>\n\n\n\n<p>\ud83d\udc49\ud83c\udffb rtmp(Real-Time&nbsp;Messaging&nbsp;Protocol)\ub294 \uc5b4\ub3c4\ube44\uac00 Flash\uc6a9\uc73c\ub85c \ub9cc\ub4e0 \uc2e4\uc2dc\uac04 \uc2a4\ud2b8\ub9ac\ubc0d \ud504\ub85c\ud1a0\ucf5c\uc785\ub2c8\ub2e4.<br>RTMP (Real-Time Messaging Protocol) is a real-time streaming protocol created by Adobe for Flash.<\/p>\n\n\n\n<p>\ud83d\udc49\ud83c\udffb rtmp\ud504\ub85c\ud1a0\ucf5c\uc740 OBS\uc5d0\uc11c \uc11c\ubc84\ub85c \uc601\uc0c1 \uc1a1\ucd9c\ud560 \ub54c \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<br>The RTMP protocol is used to send video from OBS to the server.<\/p>\n\n\n\n<p>\ud83d\udc49\ud83c\udffb flv\ud30c\uc77c\uc740 \ud50c\ub798\uc2dc \ube44\ub514\uc624 \ud3ec\ub9f7\uc785\ub2c8\ub2e4.<br>FLV files are Flash video formats.<\/p>\n\n\n\n<p>\ud83d\udc49\ud83c\udffb \uc544\ub798\uc758 \ub3c4\uad6c\ub4e4\uc744 \uc124\uce58\ud569\ub2c8\ub2e4. \/ Install the tools below.<\/p>\n\n\n\n<p>\u2714\ufe0fopenssl : \ubcf4\uc548,\uc554\ud638\ud654 \ub2f4\ub2f9 \ub3c4\uad6c \/ Security and encryption tools<\/p>\n\n\n\n<p>\u2714\ufe0f FFmpeg(ffmpeg + ffprobe + ffplay)&nbsp; : <br>\uc601\uc0c1, \uc74c\uc131, \uc774\ubbf8\uc9c0 \ud30c\uc77c \ubcc0\ud658\/\ud3b8\uc9d1\ud558\ub294 \ub3c4\uad6c \/ A tool for converting\/editing video, audio, and image files<\/p>\n\n\n\n<p>&#8212; ffmpeg , ffprobe , ffplay)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ffmpeg  : \ubcc0\ud658, \uc778\ucf54\ub529, \uc790\ub974\uae30, \ud569\uce58\uae30, \uc555\ucd95 \/ Convert, Encode, Crop, Merge, Compress.<br>ffprobe : \ud30c\uc77c \uc815\ubcf4 \ubd84\uc11d. \ucf54\ub371, \ud574\uc0c1\ub3c4, \ube44\ud2b8\ub808\uc774\ud2b8 \ud655\uc778\uc6a9 \/ <br>          File information analysis. For checking codec, resolution, and bitrate.<br>ffplay  : \uac04\ub2e8\ud55c \uc7ac\uc0dd\uae30, \ud14c\uc2a4\ud2b8\uc6a9 \/ Simple player, for testing<\/pre>\n\n\n\n<p>\u2714\ufe0f VLC Player  :   \ub300\ubd80\ubd84\uc758 \ubbf8\ub514\uc5b4\ud30c\uc77c \uc7ac\uc0dd \uac00\ub2a5\ud55c \ud50c\ub808\uc774\uc5b4(flv\ud30c\uc77c \uc7ac\uc0dd\uac00\ub2a5)<br>                              Player capable of playing most media files (plays FLV files)<\/p>\n\n\n\n<p>\ud83d\udc49\ud83c\udffb \ube4c\ub4dc \/ Build<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>project dir\/\ncd build\ncmake ..\nmake<\/code><\/pre>\n\n\n\n<p>\ud83d\udc49\ud83c\udffb \uc2e4\ud589 \/ Run<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/media_server<\/code><\/pre>\n\n\n\n<p>\u2714\ufe0f \uc811\uc18d\ub300\uae30 \/  Waiting for connection<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MacBookAir build % .\/media_server\nRTMP Server listening on 1935...<\/code><\/pre>\n\n\n\n<p>\u2714\ufe0f OBS\uc5d0\uc11c\uc811\uc18d\ud558\uae30 \/ Connecting from OBS<\/p>\n\n\n\n<p>&#8212; OBS\uc124\uc815 \/ OBS Settings<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"560\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/obs-jpg-1024x560.png\" alt=\"\" class=\"wp-image-5705\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/obs-jpg-1024x560.png 1024w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/obs-jpg-300x164.png 300w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/obs-jpg-768x420.png 768w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/obs-jpg-1536x840.png 1536w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/obs-jpg-1870x1022.png 1870w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/obs-jpg-400x219.png 400w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/obs-jpg-800x437.png 800w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/obs-jpg.png 1928w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>&#8212; OBS\uc5d0\uc11c \uc11c\ubc84\uc5d0 \uc811\uc18d\ud558\uba74 \ud130\ubbf8\ub110\uc5d0 \ub85c\uadf8\uac00 \ud504\ub9b0\ud2b8 \ub429\ub2c8\ub2e4.<br>When you connect to the server in OBS, logs are printed in the terminal.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Server] Ack sent: 16149755 bytes\n&#91;Server] Ack sent: 16153851 bytes\n&#91;Server] Ack sent: 16157947 bytes\n&#91;Server] Ack sent: 16162043 bytes\n&#91;Server] Ack sent: 16166139 bytes\n&#91;Server] Ack sent: 16170235 bytes\n&#91;Server] Ack sent: 16174331 bytes\n&#91;Server] Ack sent: 16178427 bytes\n&#91;Server] Ack sent: 16182523 bytes\n&#91;Server] Ack sent: 16186619 bytes\n&#91;Server] Ack sent: 16190715 bytes\n&#91;Server] Ack sent: 16194811 bytes<\/code><\/pre>\n\n\n\n<p>&#8211;10~20\ucd08\uc815\ub3c4 \ubc29\uc1a1\ud6c4\uc5d0 \uc11c\ubc84\uc640 obs\ub97c \uc885\ub8cc\ud569\ub2c8\ub2e4.<br>Close the server and OBS after broadcasting for about 10 to 20 seconds.<\/p>\n\n\n\n<p>&#8212; project dir\/build\ub514\ub809\ud1a0\ub9ac \ub0b4\uc5d0 test.flv\ud30c\uc77c\uc774 \uc0dd\uc131\ub41c \uac83\uc744 \ud655\uc778 \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br>You can verify that the test.flv file has been created in the project dir\/build directory.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MacBookAir build % ls -hl\ntotal 43112\n-rw-r--r--   1 user  staff   2.0K  5\uc6d4 16 13:43 cmake_install.cmake\n-rw-r--r--   1 user  staff    16K  5\uc6d4 16 13:42 CMakeCache.txt\ndrwxr-xr-x  13 user  staff   416B  5\uc6d4 16 13:43 CMakeFiles\n-rw-r--r--   1 user  staff   8.8K  5\uc6d4 16 13:43 Makefile\n-rwxr-xr-x   1 user  staff   975K  5\uc6d4 16 13:43 media_server\n-rw-r--r--@  1 user  staff    20M  5\uc6d4 16 14:34 test.flv<\/code><\/pre>\n\n\n\n<p>&#8212; VLC \ud50c\ub808\uc774\uc5b4\uc5d0\uc11c \uc774 test.flv\ud30c\uc77c\uc744 \uc7ac\uc0dd\ud574 \ubd05\ub2c8\ub2e4.<br>Try playing this test.flv file in VLC Player.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"516\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/vlc-jpg.jpg\" alt=\"\" class=\"wp-image-5706\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/vlc-jpg.jpg 800w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/vlc-jpg-300x194.jpg 300w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/vlc-jpg-768x495.jpg 768w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2026\/05\/vlc-jpg-400x258.jpg 400w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">VLC Player<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udc49\ud83c\udffb\uc544\ub798\ub294 miniMediaserver \uc11c\ubc84\uc5d0 \ub300\ud55c \uc124\uba85\uc785\ub2c8\ub2e4.Below is a description of the miniMediaserver server. \ud83d\udc49\ud83c\udffb \ub85c\uceec\uc5d0\uc11c \ud14c\uc2a4\ud2b8 \uac00\ub2a5\ud55c \ubbf8\ub514\uc5b4\uc11c\ubc84\uc758 \uac00\uc7a5 \uae30\ubcf8\ud615\uc785\ub2c8\ub2e4.This is the most basic type of media server that can be tested locally. \ud83d\udc49\ud83c\udffb \ub514\ub809\ud1a0\ub9ac \uad6c\uc870 \/ directory structure \u2714\ufe0f CMakeLists.txt : \ube4c\ub4dc\ub3c4\uad6c \/ Build Tools \u2714\ufe0f main.cpp : \uc571 \uc9c4\uc785\uc810 cpp\ud30c\uc77c \/ App entry point [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,1],"tags":[],"class_list":["post-5704","post","type-post","status-publish","format-standard","hentry","category-cpp","category-uncategorized","missing-thumbnail"],"_links":{"self":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/5704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=5704"}],"version-history":[{"count":3,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/5704\/revisions"}],"predecessor-version":[{"id":5709,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/5704\/revisions\/5709"}],"wp:attachment":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=5704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=5704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=5704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}