OpenShot Library | libopenshot  0.2.5
Functions | Variables
FFmpegWriter.cpp File Reference

Source file for FFmpegWriter class. More...

#include "../include/FFmpegWriter.h"
Include dependency graph for FFmpegWriter.cpp:

Go to the source code of this file.

Functions

 AV_COPY_PARAMS_FROM_CONTEXT (st, video_codec)
 
 for (std::map< std::string, std::string >::iterator iter=info.metadata.begin();iter!=info.metadata.end();++iter)
 
 if (!codec) codec
 
 if (video_codec->max_b_frames &&video_codec->codec_id!=AV_CODEC_ID_MPEG4 &&video_codec->codec_id!=AV_CODEC_ID_MPEG1VIDEO &&video_codec->codec_id!=AV_CODEC_ID_MPEG2VIDEO) video_codec-> max_b_frames=0
 
 if (hw_en_on &&hw_en_supported)
 
 if (avcodec_open2(video_codec, codec,&opts)< 0) throw InvalidCodec("Could not open video codec"
 

Variables

 codec = avcodec_find_encoder_by_name(info.vcodec.c_str())
 
AVHWDeviceType hw_en_av_device_type = AV_HWDEVICE_TYPE_VAAPI
 
AVPixelFormat hw_en_av_pix_fmt = AV_PIX_FMT_NONE
 
int hw_en_on = 1
 
int hw_en_supported = 0
 
AVFrame * hw_frame = NULL
 
AVDictionary * mux_dict = NULL
 
AVDictionary * opts = NULL
 
 path
 

Detailed Description

Source file for FFmpegWriter class.

Author
Jonathan Thomas jonat.nosp@m.han@.nosp@m.opens.nosp@m.hot..nosp@m.org, Fabrice Bellard

License

Definition in file FFmpegWriter.cpp.

Function Documentation

AV_COPY_PARAMS_FROM_CONTEXT ( st  ,
video_codec   
)
for ( std::map< std::string, std::string >::iterator  iter = info.metadata.begin(); iter != info.metadata.end(); ++iter)

Definition at line 1480 of file FFmpegWriter.cpp.

if ( codec)
if ( video_codec->max_b_frames &&video_codec->codec_id!  = AV_CODEC_ID_MPEG4 &&video_codec->codec_id!=AV_CODEC_ID_MPEG1VIDEO &&video_codec->codec_id!=AV_CODEC_ID_MPEG2VIDEO) -> max_b_frames
pure virtual
if ( hw_en_on &&  hw_en_supported)

Definition at line 1421 of file FFmpegWriter.cpp.

if ( )

Variable Documentation

codec = avcodec_find_encoder_by_name(info.vcodec.c_str())

Definition at line 1406 of file FFmpegWriter.cpp.

AVHWDeviceType hw_en_av_device_type = AV_HWDEVICE_TYPE_VAAPI

Definition at line 51 of file FFmpegWriter.cpp.

Referenced by openshot::FFmpegWriter::SetVideoOptions().

AVPixelFormat hw_en_av_pix_fmt = AV_PIX_FMT_NONE

Definition at line 50 of file FFmpegWriter.cpp.

Referenced by if(), and openshot::FFmpegWriter::SetVideoOptions().

int hw_en_on = 1
int hw_en_supported = 0

Definition at line 49 of file FFmpegWriter.cpp.

Referenced by openshot::FFmpegWriter::SetVideoOptions().

AVFrame* hw_frame = NULL

Definition at line 53 of file FFmpegWriter.cpp.

AVDictionary* mux_dict = NULL
av_dict_free & opts = NULL

Definition at line 1417 of file FFmpegWriter.cpp.

Referenced by openshot::FFmpegReader::Open().

path