2011-02-18 14:05:18 +01:00
|
|
|
/*
|
2006-02-05 20:14:46 +01:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
2008-04-17 00:40:48 +02:00
|
|
|
* of the License, or (at your option) any later version.
|
2006-02-05 20:14:46 +01:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 14:34:04 +01:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2006-02-05 20:14:46 +01:00
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
2012-02-17 19:59:41 +01:00
|
|
|
#ifndef __BKE_WRITEFFMPEG_H__
|
|
|
|
#define __BKE_WRITEFFMPEG_H__
|
2006-02-05 20:14:46 +01:00
|
|
|
|
2019-02-17 22:08:12 +01:00
|
|
|
/** \file
|
|
|
|
* \ingroup bke
|
2011-02-18 14:05:18 +01:00
|
|
|
*/
|
|
|
|
|
2006-02-05 20:14:46 +01:00
|
|
|
#ifdef WITH_FFMPEG
|
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
# ifdef __cplusplus
|
2006-02-05 20:14:46 +01:00
|
|
|
extern "C" {
|
2019-04-17 06:17:24 +02:00
|
|
|
# endif
|
2006-02-05 20:14:46 +01:00
|
|
|
|
2013-11-07 14:32:32 +01:00
|
|
|
enum {
|
2019-04-17 06:17:24 +02:00
|
|
|
FFMPEG_MPEG1 = 0,
|
|
|
|
FFMPEG_MPEG2 = 1,
|
|
|
|
FFMPEG_MPEG4 = 2,
|
|
|
|
FFMPEG_AVI = 3,
|
|
|
|
FFMPEG_MOV = 4,
|
|
|
|
FFMPEG_DV = 5,
|
|
|
|
FFMPEG_H264 = 6,
|
|
|
|
FFMPEG_XVID = 7,
|
|
|
|
FFMPEG_FLV = 8,
|
|
|
|
FFMPEG_MKV = 9,
|
|
|
|
FFMPEG_OGG = 10,
|
|
|
|
FFMPEG_INVALID = 11,
|
2019-07-31 11:20:21 +02:00
|
|
|
FFMPEG_WEBM = 12,
|
2013-11-07 14:32:32 +01:00
|
|
|
};
|
2006-02-05 20:14:46 +01:00
|
|
|
|
2013-11-07 14:32:32 +01:00
|
|
|
enum {
|
2019-04-17 06:17:24 +02:00
|
|
|
FFMPEG_PRESET_NONE = 0,
|
|
|
|
FFMPEG_PRESET_DVD = 1,
|
|
|
|
FFMPEG_PRESET_SVCD = 2,
|
|
|
|
FFMPEG_PRESET_VCD = 3,
|
|
|
|
FFMPEG_PRESET_DV = 4,
|
|
|
|
FFMPEG_PRESET_H264 = 5,
|
|
|
|
FFMPEG_PRESET_THEORA = 6,
|
|
|
|
FFMPEG_PRESET_XVID = 7,
|
2013-11-07 14:32:32 +01:00
|
|
|
};
|
2006-02-05 20:14:46 +01:00
|
|
|
|
2013-11-07 14:32:32 +01:00
|
|
|
struct RenderData;
|
2009-12-22 13:01:32 +01:00
|
|
|
struct ReportList;
|
2009-08-09 23:16:39 +02:00
|
|
|
struct Scene;
|
2006-02-05 20:14:46 +01:00
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
int BKE_ffmpeg_start(void *context_v,
|
2020-03-13 07:27:11 +01:00
|
|
|
const struct Scene *scene,
|
2019-04-17 06:17:24 +02:00
|
|
|
struct RenderData *rd,
|
|
|
|
int rectx,
|
|
|
|
int recty,
|
|
|
|
struct ReportList *reports,
|
|
|
|
bool preview,
|
|
|
|
const char *suffix);
|
2015-04-06 15:40:12 +02:00
|
|
|
void BKE_ffmpeg_end(void *context_v);
|
2019-04-17 06:17:24 +02:00
|
|
|
int BKE_ffmpeg_append(void *context_v,
|
|
|
|
struct RenderData *rd,
|
|
|
|
int start_frame,
|
|
|
|
int frame,
|
|
|
|
int *pixels,
|
|
|
|
int rectx,
|
|
|
|
int recty,
|
|
|
|
const char *suffix,
|
|
|
|
struct ReportList *reports);
|
|
|
|
void BKE_ffmpeg_filepath_get(char *string,
|
2020-03-13 07:27:11 +01:00
|
|
|
const struct RenderData *rd,
|
2019-04-17 06:17:24 +02:00
|
|
|
bool preview,
|
|
|
|
const char *suffix);
|
2006-02-05 20:14:46 +01:00
|
|
|
|
2012-05-07 11:30:15 +02:00
|
|
|
void BKE_ffmpeg_preset_set(struct RenderData *rd, int preset);
|
|
|
|
void BKE_ffmpeg_image_type_verify(struct RenderData *rd, struct ImageFormatData *imf);
|
|
|
|
void BKE_ffmpeg_codec_settings_verify(struct RenderData *rd);
|
2020-03-13 07:27:11 +01:00
|
|
|
bool BKE_ffmpeg_alpha_channel_is_supported(const struct RenderData *rd);
|
2.5: Render
* UI layout for scene buttons has quite some changes, I tried to
better organize things according to the pipeline, and also showing
important properties by default, and collapsing less important ones.
Some changes compared to 2.4x:
* Panorama is now a Camera property.
* Sequence and Compositing are now enabled by default, but will only
do something when there is a node tree using nodes, or a strip in the
sequence editor.
* Enabling Full Sample now automatically enables Save Buffers too.
* Stamp option to include info in file is removed, it now simply always
does this if one of the stamp infos is enabled.
* Xvid, H.264 and Ogg Theora are now directly in the file format menu,
but still using FFMPEG. Unfortunately Ogg is broken at the moment
(also in 2.4x), so that's disabled. And Xvid crashes on 64bit linux,
maybe solvable by upgrading extern/xvidcore/, using ubuntu libs makes
it work.
* Organized file format menu by image/movie types.
Added:
* Render layers RNA wrapped, operatorized, layouted.
* FFMPEG format/codec options are now working.
Defaults changed:
* Compositing & Sequencer enabled.
* Tiles set to 8x8.
* Time/Date/Frame/Scene/Camera/Filename enabled for stamp.
2009-07-13 21:09:13 +02:00
|
|
|
|
2012-05-07 11:30:15 +02:00
|
|
|
int BKE_ffmpeg_property_add_string(struct RenderData *rd, const char *type, const char *str);
|
|
|
|
void BKE_ffmpeg_property_del(struct RenderData *rd, void *type, void *prop_);
|
2.5: Render
* UI layout for scene buttons has quite some changes, I tried to
better organize things according to the pipeline, and also showing
important properties by default, and collapsing less important ones.
Some changes compared to 2.4x:
* Panorama is now a Camera property.
* Sequence and Compositing are now enabled by default, but will only
do something when there is a node tree using nodes, or a strip in the
sequence editor.
* Enabling Full Sample now automatically enables Save Buffers too.
* Stamp option to include info in file is removed, it now simply always
does this if one of the stamp infos is enabled.
* Xvid, H.264 and Ogg Theora are now directly in the file format menu,
but still using FFMPEG. Unfortunately Ogg is broken at the moment
(also in 2.4x), so that's disabled. And Xvid crashes on 64bit linux,
maybe solvable by upgrading extern/xvidcore/, using ubuntu libs makes
it work.
* Organized file format menu by image/movie types.
Added:
* Render layers RNA wrapped, operatorized, layouted.
* FFMPEG format/codec options are now working.
Defaults changed:
* Compositing & Sequencer enabled.
* Tiles set to 8x8.
* Time/Date/Frame/Scene/Camera/Filename enabled for stamp.
2009-07-13 21:09:13 +02:00
|
|
|
|
2015-04-06 15:40:12 +02:00
|
|
|
void *BKE_ffmpeg_context_create(void);
|
|
|
|
void BKE_ffmpeg_context_free(void *context_v);
|
|
|
|
|
2019-04-17 06:17:24 +02:00
|
|
|
# ifdef __cplusplus
|
2006-02-05 20:14:46 +01:00
|
|
|
}
|
2019-04-17 06:17:24 +02:00
|
|
|
# endif
|
2006-02-05 20:14:46 +01:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|