
Stream Media/FFMPEG
文章平均质量分 66
fanbird2008
这个作者很懒,什么都没留下…
展开
-
main objects and flow on ffmpeg
1. AVFormatContext 在 open_input_file / open_output_file中分配2. AVStream, AVCodecContext在 pmt_cb 中分配并设置pmt_cb: st = avformat_new_stream(pes->stream, NULL); avformat_new_stream:原创 2014-05-19 17:22:33 · 759 阅读 · 0 评论 -
ffmpeg+crtmpserver
1. download crtmpserver source codesvn co --username anonymous --password "" https://svn.rtmpd.com/crtmpserver/trunk crtmpserver2. install cmake 3. install openssl dev libraryapt-get install原创 2013-04-12 17:50:21 · 1791 阅读 · 0 评论 -
FFMPEG Intro - decode h264 raw video by ffmpeg
Unused ffmpeg for some time, I compiled ffmpeg without enable h264 parser due to negligence, this caused ffmpeg reported a lot of errors on decodingh264 raw video. I wrote this information here i原创 2015-11-09 10:08:21 · 1024 阅读 · 0 评论 -
sdp example
!!!INFO!!! : Generated SDP is:- Length = 621 v=0o=- -2945270597747810228 -2945270597747664200 IN IP4 0.0.0.0c=IN IP4 0.0.0.0a=tool: RtpRtspServera=range:npt=0- m=video 0 RTP/AVP 96a=rtpm转载 2014-05-16 16:32:38 · 1479 阅读 · 0 评论 -
ffmpeg 2.1.3 run library link error
1. after configure and compile ffmpeg, run ffmpegThe following error is reported.3rdparty/ffmpeg-2.1.3/ffmpeg: relocation error: /usr/local/ffmpeg/lib/libavfilter.so.3: symbol sws_isSu原创 2014-03-07 14:20:57 · 1574 阅读 · 0 评论 -
Android FAQ - ffmpeg
LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := ffmpegLOCAL_SRC_FILES := ../libffmpeg.soinclude $(PREBUILT_SHARED_LIBRARY)include $(CLEAR_VARS)NDK_LIBDIR=/opt/android/ndk-原创 2014-09-26 11:57:26 · 2350 阅读 · 0 评论 -
FFMPEG Intro - AvCodecContext time_base Set
static inline int decode_vui_parameters(H264Context *h, SPS *sps){ int aspect_ratio_info_present_flag; unsigned int aspect_ratio_idc; aspect_ratio_info_present_flag = get_bits1(&h->gb转载 2015-03-19 12:51:15 · 1275 阅读 · 0 评论 -
FFMPEG MPEG-TS Intro - Relevant field of Packet
static void new_pes_packet(PESContext *pes, AVPacket *pkt){ av_init_packet(pkt); pkt->buf = pes->buffer; pkt->data = pes->buffer->data; pkt->size = pes->data_index; if (pes转载 2015-03-16 17:17:44 · 1195 阅读 · 0 评论 -
ffmpeg h265 usage example
1. ffmpeg -i film1.ts -f mpegts -an -c:v libx265 -f hevc fm.h265原创 2015-05-04 17:12:24 · 1113 阅读 · 0 评论 -
ffmpeg subtitle example
example 1. ./ffmpeg -f mpegts -i ../film1.ts -an -c:v libx264 -vf "subtitles=tt.srt" ff.ts原创 2013-11-01 20:58:56 · 6568 阅读 · 0 评论 -
FFMpeg Intro - Enable libass
in /etc/profilePKG_CONFIG_PATH=/usr/local/ass-0.13.4/lib/pkgconfig:/usr/local/fdk-aac-0.1.4/lib/pkgconfig:/usr/local/ffmpeg-3.2/lib/pkgconfig:/usr/local/fontconfig-2.12.1/lib/pkgconfig:/usr/lo原创 2016-11-28 16:21:35 · 1604 阅读 · 0 评论 -
ffmpeg command line option makeup - 01
将 aif 文件转换为 16 位有符号数,小端存储模式,8000 Hz 采样率:ffmpeg -i test.aif -f s16le -ar 8000 test.pcm将 44.1KHz 双声道 16 位有符号数小端存储的 PCM 数据编码为 AAC:ffmpeg -f s16le -ar 44100 -ac 2 -i test.pcm -acodec aac -strict转载 2012-11-21 11:12:45 · 3679 阅读 · 1 评论 -
YUV 422 10bit
http://adec.altervista.org/blog/yuv-422-v210-10-bit-packed-decoder-in-glsl/?doing_wp_cron=1514628553.2152769565582275390625YUV 4:2:2 v210 10-bit packed decoder in GLSLPosted on 201转载 2017-12-30 18:20:14 · 4974 阅读 · 0 评论 -
Uncompressed Y´CbCr Video in QuickTime Files
Uncompressed Y´CbCr Video in QuickTime Fileshttps://developer.apple.com/library/content/technotes/tn2162/_index.html#//apple_ref/doc/uid/DTS40013070-CH1-TNTAG8-V210__4_2_2_COMPRESSION_TYPE转载 2017-12-30 18:24:02 · 711 阅读 · 0 评论 -
RGB to YUV using shader
1down votefavoriteI want to use fragment shader to convert RGB to YUV420P using shader.1,I figured out the coordinates of the current texture color.2,I calculated the 4 Y a转载 2017-12-31 01:13:43 · 1484 阅读 · 0 评论 -
ffmpeg command line option makeup - 02
1. c:v c:a -- specifiy codec for video audio -c:v mpeg4 -c:a libmp3lame2. b:v b:a -- specify bitrate for video audio -b:v 800k -b:a 128k3. f -- specify format for video原创 2013-02-27 09:22:03 · 1392 阅读 · 0 评论 -
YUVTools
http://www.sunrayimage.com/faq.htmlHome/ FAQFrequently Asked Questions About YUVTools:What's sampling format ?What's interlace/progressive format?What's pixel转载 2017-12-30 10:43:14 · 1365 阅读 · 0 评论 -
yuv 10 bits to 8bits
For 8 bit: Y range is [16..235] and U/V range is [16..240] For 10 bit: Y range is [64..940] and U/V range is [64..960] So shifting each component value 2 bits to right will provide correct con转载 2017-12-30 16:49:47 · 965 阅读 · 0 评论 -
FFMpeg Intro - Subtitles and Metadata
1. ffmpeg-3.2 version2. ass./ffmpeg -i war.ts -vf ass=t1.ass -an -c:v libx264 -s 640x360 ff.ts原创 2016-11-28 18:05:54 · 2156 阅读 · 0 评论 -
ffmpeg compile on android
FFMPEG:请参考FFMPEG官方给出的编译向导:https://trac.ffmpeg.org/wiki/CompilationGuide/Android在此链接中有编译脚本的集合。下载后解压,将ffmpeg的源代码copy到解压缩目录的ffmpeg文件夹中。按照项目的github的主页上的说明步骤,就能顺利进行。需要注意的是: 1、脚本都是基于Ubunt转载 2018-01-08 00:44:55 · 403 阅读 · 0 评论 -
ffmpeg new funtions instead of old functions
av_frame_alloc(), av_frame_unref() and av_frame_free() now can and should beused instead of avcodec_alloc_frame(), avcodec_get_frame_defaults() andavcodec_free_frame() respectively. The latter thr原创 2014-05-12 20:57:17 · 832 阅读 · 0 评论 -
export function on ffmpeg
1. define functions on relatvie modulefor example: libavformat moduleint ff_mpegts_parse(......){}2. export itedit libavformat/libavformat.v* file, add the functions you define into原创 2013-05-13 11:30:18 · 677 阅读 · 0 评论 -
ffmpeg dev example
1. normal file as inputffmpeg -i test3.264 -s 352x288 -pix_fmt yuv420p test31.yuv2. pipe as inputffmpeg -i /.live_stream_fifo -s 352x288 -pix_fmt yuv420p -vcodec rawvideo -s 176x144 test31.yuv原创 2012-11-21 11:54:58 · 783 阅读 · 0 评论 -
ffmpeg sws_scale
http://bbs.youkuaiyun.com/topics/350024712 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i转载 2013-01-06 11:16:00 · 2288 阅读 · 0 评论 -
rtcp rtp by rtsp open on ffmpeg
1. call stack avformat_open_input() { init_input(); // get s->iformat if s->iformat is NULL. s->iformat->read_header(s) // rtsp_read_header { // ff_rtsp_demuxer原创 2013-05-23 21:41:48 · 2161 阅读 · 0 评论 -
ffmpeg error fix for librtmp
When enable librtmp for ffmpeg, ffmpeg report librtmp not found.The way for solving the problem is like thus.Modify configure file like thus.1. note off old enabled librtmp line2. add one原创 2013-04-12 11:50:43 · 1085 阅读 · 0 评论 -
ffmpeg转码MPEG2-TS的音视频同步机制分析
http://blog.chinaunix.net/uid-26000296-id-3483782.html 一、FFmpeg忽略了adaptation_field()数据FFmpeg忽略了包含PCR值的adaptation_filed数据;代码(libavformat/mpegts.c)分析如下:/* 解析TS包 */int handle_packet(MpegT转载 2013-02-06 11:10:19 · 1725 阅读 · 0 评论 -
ffmpeg compile with neon support for android
http://www.imobilebbs.com/wordpress/archives/date/2012/04http://tech.ddvip.com/2013-02/1360325570190225.html1. for example 1http://kongweile.iteye.com/blog/1153483if u wanna comp转载 2013-02-20 13:36:28 · 3317 阅读 · 0 评论 -
ffmpeg overview
http://3xin2yi.info/wwwroot/tech/doku.php/tech:multimedia:ffmpeg转载 2012-04-13 10:11:06 · 420 阅读 · 0 评论 -
Windows下利用MinGW编译FFmpeg
http://chfj007.blog.163.com/blog/static/17314504420121144223910/转载 2012-06-28 12:59:08 · 561 阅读 · 0 评论 -
ffmpeg_rtp
1. struct definetypedef struct AVOutputFormat { const char *name; /** * Descriptive name for the format, meant to be more human-readable * than \p name. You \e should use the原创 2012-04-12 10:24:51 · 5904 阅读 · 5 评论 -
ffmpeg+rtsp
1. rtcp/rtp on udprt->nb_rtsp_streams = 1; // one stream for each pair rtcp/rtpudp_read_packet { 1. get rtsp_hd, rtp_handle, rtcp_handle get rtsp_hd =>原创 2013-05-22 14:52:51 · 4359 阅读 · 0 评论 -
ffmpeg avfilter
前言FFmpeg的优秀在于它的功能强大和良好的系统框架,而滤镜就是其中之一。ffmpeg的自带滤镜不但能对视频进行裁剪,添加logo,还能将多个滤镜组全使用。更妙之处在于它还可以方便地添加自己定义的各种滤镜。这种可扩展性对于实际应用来说就颇有价值了。闲言少述,书归正传!本文第一部分是我对wiki上的一篇教程的翻译和解释,但是它并没有讲解如何将写好的滤镜添加到ffmpeg中编译并转载 2013-04-16 10:48:24 · 85667 阅读 · 3 评论 -
ff_h264_find_frame_end
2 - denote 1 zero found1 - denote 2 zeros found0 - denote >= 3 zeros found3 - no this state4 - denote 2 zeros and 1 one found, i.e., 0015 - denote at least 3 zeros and 1 one found, i.e., 000原创 2013-04-07 16:52:12 · 2305 阅读 · 0 评论 -
android ndk ffmpeg development series - 01
excerpt from : https://github.com/yixia/FFmpeg-Android/blob/master/FFmpeg-Android.sh #!/bin/bash## FFmpeg-Android, a bash script to build FFmpeg for Android.## Copyright (c) 2012 Cedric Fung转载 2012-11-16 11:34:33 · 1300 阅读 · 1 评论 -
ffmpeg decode raw h264
1. configureconfigure --prefix=/usr/local/ffmpeg \ --enable-version3 \ --enable-gpl --enable-pthreads\ --disable-postproc --en原创 2012-11-23 16:48:23 · 5491 阅读 · 0 评论 -
ffmpeg pixel format
const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { [AV_PIX_FMT_YUV420P] = { .name = "yuv420p", .nb_components = 3, .log2_chroma_w = 1, .log2_ch原创 2013-01-08 15:45:14 · 4304 阅读 · 0 评论 -
get dimension from sps
int h264_parse_extradata(AVCodecParserContext *s, AVCodecContext *avctx){ int subw = 1, subh = 1; H264Context *hctx = s->priv_data; if (avctx->extradata_size) { hctx->s.avctx原创 2013-05-13 18:30:17 · 844 阅读 · 0 评论 -
red5+ffmpeg
1. download and install jdk-1.72. download and install jre-1.73. download and install apache-ant-1.94. set home environment variableinsert these into /etc/profileJAVA_HOME=/usr/local/jdk1.7.原创 2013-05-14 21:32:15 · 2154 阅读 · 0 评论 -
h264 sdp file parse notes
static int sdp_parse_fmtp_config_h264(AVStream *stream, PayloadContext *h264_data, char *attr, char *value){ AVCode原创 2013-05-09 16:05:44 · 1237 阅读 · 0 评论