FFmpeg에 Custom File IO를 추가하여 콘텐츠 데이터를 직접 전해주기 FFmpeg을 통해 콘텐츠를 디코딩할 때 libavformat에서 제공하는 avformat_open_input() 메소드에 콘텐츠의 경로를 설정하는 것이 일반적이다. 이렇게 하면 libavformat에서 알아서 경로의 콘텐츠 데이터를 읽어간다. 만약, libavformat에 직접 콘텐츠의 데이터를 제공하고 싶다면 어떻게 해야할까?(내가 만든 IO를 통해서 데이터를 읽어갈 수 있도록) 구글링을 열심히해서 Code Project에 관련 글을 찾았다. @ Creating Custom FFmpeg IO-Context http://www.codeproject.com/Tips/489450/Creating-Custom-FFmpeg-IO..
미디어 플레이어 관련 개발을 하다보면 콘텐츠의 Video 크기를미디어 플레이어의 화면 사이즈와 콘텐츠의 Video 비율에 맞게 조정할 필요가 있다.아래는 위 요구에 맞게 구현한 코드다. void adjustVideoSize(int viewWidth,int viewHeight,int videoWidth,int videoHeight,int *adjustedVideoWidth,int *adjustedVideoHeight) { // Get GCD of videoint gcd; {int max, min; if (videoWidth > videoHeight) {max = videoHeight;min = videoWidth;} else {max = videoWidth;min = videoHeight;} int tem..
1. 아래의 코드를 헤더 파일에 정의하고 #if !defined(DC__TEST_TYPE_SIZE) #define DC__TEST_TYPE_SIZE(_type, _size) \ typedef int DC__TEST_TYPE_SIZE_##_type[(sizeof(_type) == (_size)) ? 1 : -1] #endif #if !defined(DC__TEST_TYPE_IS_SIGNED) #define DC__TEST_TYPE_IS_SIGNED(_type) \ typedef int DC__TEST_TYPE_IS_SIGNED_##_type[((_type)((_type)1
- Total
- Today
- Yesterday
- CentOS
- programmer
- onbeforeunload
- springboot
- development
- Java
- DB
- AVIOContext
- jdk6
- Programming
- JPA
- DATABASE
- HDFS
- Spring
- C/C++
- fluentd
- springjpa
- HLS
- libavformat
- springframework
- jdk7
- elasticsearch
- Rolling-Restart
- JAXB
- HTTP Live Streaming
- Virtual Thread
- ffmpeg
- JDK21
- popupWindow
- oid
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |