Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 2개 있습니다.)

C 언어로 작성된 FFmpeg Examples의 C# 포팅 전체 소스 코드

ffmpeg 공식 사이트에 나온 C 언어 예제를,

FFmpeg - Examples
; https://ffmpeg.org/doxygen/trunk/examples.html

이제야 모두 C#으로 포팅을 했습니다.

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 avio_reading.c 예제 포팅
; https://www.sysnet.pe.kr/2/0/12964
; avio_reading.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/avio_reading

C# - ffmpeg(FFmpeg.AutoGen)를 이용해 MP2 오디오 파일 디코딩 예제(decode_audio.c)
; https://www.sysnet.pe.kr/2/0/12933
; decode_audio.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/decode_audio

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 비디오 디코딩 예제(decode_video.c)
; https://www.sysnet.pe.kr/2/0/12924
; decode_video.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/decode_video

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 demuxing_decoding.c 예제 포팅
; https://www.sysnet.pe.kr/2/0/12987
; demuxing_decoding.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/demuxing_decoding

C# - ffmpeg(FFmpeg.AutoGen)를 이용해 오디오(mp2) 인코딩하는 예제(encode_audio.c)
; https://www.sysnet.pe.kr/2/0/12937
; encode_audio.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/encode_audio

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 비디오 인코딩 예제(encode_video.c)
; https://www.sysnet.pe.kr/2/0/12898
; encode_video.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/encode_video

ffmpeg의 파일 해시 예제(ffhash.c)를 C#으로 포팅
; https://www.sysnet.pe.kr/2/0/12935
; ffhash.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/ffhash

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 오디오 필터 예제(filter_audio.c)
; https://www.sysnet.pe.kr/2/0/12952
; filter_audio.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/filter_audio

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 오디오 필터링 예제(filtering_audio.c)
; https://www.sysnet.pe.kr/2/0/12951
; filtering_audio.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/filtering_audio

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 filtering_video.c 예제 포팅
; https://www.sysnet.pe.kr/2/0/12984
; filtering_video.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/filtering_video

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 http_multiclient.c 예제 포팅
; https://www.sysnet.pe.kr/2/0/13002
; http_multiclient.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/http_multiclient

C# - ffmpeg(FFmpeg.AutoGen)로 하드웨어 가속기를 이용한 비디오 디코딩 예제(hw_decode.c)
; https://www.sysnet.pe.kr/2/0/12932
; hw_decode.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/hw_decode

C# - ffmpeg(FFmpeg.AutoGen)를 이용해 멀티미디어 파일의 메타데이터를 보여주는 예제(metadata.c)
; https://www.sysnet.pe.kr/2/0/12936
; metadata.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/metadata

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 muxing.c 예제 포팅
; https://www.sysnet.pe.kr/2/0/12971
; muxing.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/muxing

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 qsvdec.c 예제 포팅
; https://www.sysnet.pe.kr/2/0/12975
; qsvdec.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/qsvdec

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 remuxing.c 예제 포팅
; https://www.sysnet.pe.kr/2/0/13006
; remuxing.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/remuxing

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 resampling_audio.c 예제 포팅
; https://www.sysnet.pe.kr/2/0/12978
; resampling_audio.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/resampling_audio

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 비디오 프레임의 크기 및 포맷 변경 예제(scaling_video.c)
; https://www.sysnet.pe.kr/2/0/12961
; scaling_video.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/scaling_video

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 transcode_aac.c 예제 포팅
; https://www.sysnet.pe.kr/2/0/12991
; transcode_aac.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/transcode_aac

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 transcoding.c 예제 포팅
; https://www.sysnet.pe.kr/2/0/13023
; transcoding.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/transcoding

C# - ffmpeg(FFmpeg.AutoGen)를 이용한 vaapi_encode.c, vaapi_transcode.c 예제 포팅
; https://www.sysnet.pe.kr/2/0/13025
; vaapi_encode.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/vaapi_encode
; vaapi_transcode.c - https://github.com/stjeong/ffmpeg_autogen_cs/tree/master/vaapi_transcode

그리고, 모든 소스 코드는 아래의 github에 올려져 있습니다.

stjeong / ffmpeg_autogen_cs
; https://github.com/stjeong/ffmpeg_autogen_cs

(찾아보진 않았는데, 아마 다른 어떤 분도 C# 포팅을 한 repo를 공유하고 있을 것입니다. ^^;)

사실, C# 언어에서 포인터를 지원하기 때문에 C 코드를 거의 그대로 변환하는 것이 가능하므로 딱히 어려운 작업은 아니어서 이렇게나 시간이 걸릴 일은 아니었는데, 개인적으로 너무 동영상 처리 분야를 몰라 학습 시간이 필요한 탓에 속도가 많이 더뎠습니다.

참고로, 제가 저걸 포팅했다고 해서 ffmpeg에 대해 전문가라고 착각하실 분이 계실지 몰라 미리 말씀드리자면, 저는 동영상 처리에 대해 거의 문외한에 가깝기 때문에 가능한 질문보다는 정보성 덧글을 (이렇게!) 달아주시길 바랍니다. ^^;




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 4/11/2022]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 



2022-07-12 11시01분
정성태
2022-11-11 09시22분
jellyfin/jellyfin
 - The Free Software Media System
; https://github.com/jellyfin/jellyfin

Build Your Own Video Streaming Server with Node.js and Koa
; https://www.codeproject.com/Articles/5350209/Build-Your-Own-Video-Streaming-Server-with-Node-js

Remove noise from voice recordings with speech enhancement
; https://podcast.adobe.com/enhance
정성태
2023-03-17 01시53분
UPDATE: This tutorial is up to date as of February 2015.
; http://dranger.com/ffmpeg/

leandromoreira/ffmpeg-libav-tutorial
; https://github.com/leandromoreira/ffmpeg-libav-tutorial/blob/master/README-ko.md

FFmpeg 강좌
; http://www.soen.kr/lecture/library/FFmpeg/FFmpeg.htm
정성태

1  2  3  4  5  6  [7]  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13316정성태4/10/20231920오류 유형: 854. docker-compose 시 "json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)" 오류 발생
13315정성태4/10/20232096Windows: 245. Win32 - 시간 만료를 갖는 컨텍스트 메뉴와 윈도우 메시지의 영역별 정의파일 다운로드1
13314정성태4/9/20232105개발 환경 구성: 672. DosBox를 이용한 Turbo C, Windows 3.1 설치
13313정성태4/9/20232173개발 환경 구성: 671. Hyper-V VM에 Turbo C 2.0 설치 [2]
13312정성태4/8/20232207Windows: 244. Win32 - 시간 만료를 갖는 MessageBox 대화창 구현 (개선된 버전)파일 다운로드1
13311정성태4/7/20232543C/C++: 163. Visual Studio 2022 - DirectShow 예제 컴파일(WAV Dest)
13310정성태4/6/20232172C/C++: 162. Visual Studio - /NODEFAULTLIB 옵션 설정 후 수동으로 추가해야 할 library
13309정성태4/5/20232459.NET Framework: 2107. .NET 6+ FileStream의 구조 변화
13308정성태4/4/20232342스크립트: 47. 파이썬의 time.time() 실숫값을 GoLang / C#에서 사용하는 방법
13307정성태4/4/20232192.NET Framework: 2106. C# - .NET Core/5+ 환경의 Windows Forms 응용 프로그램에서 HINSTANCE 구하는 방법
13306정성태4/3/20232067Windows: 243. Win32 - 윈도우(cbWndExtra) 및 윈도우 클래스(cbClsExtra) 저장소 사용 방법
13305정성태4/1/20232298Windows: 242. Win32 - 시간 만료를 갖는 MessageBox 대화창 구현 (쉬운 버전)파일 다운로드1
13304정성태3/31/20232515VS.NET IDE: 181. Visual Studio - C/C++ 프로젝트에 application manifest 적용하는 방법
13303정성태3/30/20231857Windows: 241. 환경 변수 %PATH%에 DLL을 찾는 규칙
13302정성태3/30/20232492Windows: 240. RDP 환경에서 바뀌는 %TEMP% 디렉터리 경로
13301정성태3/29/20232450Windows: 239. C/C++ - Windows 10 Version 1607부터 지원하는 /DEPENDENTLOADFLAG 옵션파일 다운로드1
13300정성태3/28/20232283Windows: 238. Win32 - Modal UI 창에 올바른 Owner(HWND)를 설정해야 하는 이유
13299정성태3/27/20232084Windows: 237. Win32 - 모든 메시지 루프를 탈출하는 WM_QUIT 메시지
13298정성태3/27/20232047Windows: 236. Win32 - MessageBeep 소리가 안 들린다면?
13297정성태3/26/20232537Windows: 235. Win32 - Code Modal과 UI Modal
13296정성태3/25/20232065Windows: 234. IsDialogMessage와 협업하는 WM_GETDLGCODE Win32 메시지 [1]파일 다운로드1
13295정성태3/24/20232271Windows: 233. Win32 - modeless 대화창을 modal처럼 동작하게 만드는 방법파일 다운로드1
13294정성태3/22/20232511.NET Framework: 2105. LargeAddressAware 옵션이 적용된 닷넷 32비트 프로세스의 가용 메모리 - 두 번째
13293정성태3/22/20232490오류 유형: 853. dumpbin - warning LNK4048: Invalid format file; ignored
13292정성태3/21/20232346Windows: 232. C/C++ - 일반 창에도 사용 가능한 IsDialogMessage파일 다운로드1
13291정성태3/20/20232842.NET Framework: 2104. C# Windows Forms - WndProc 재정의와 IMessageFilter 사용 시의 차이점
1  2  3  4  5  6  [7]  8  9  10  11  12  13  14  15  ...