From 68769997ebe94917d42cf5b6d45e1c2a83292d25 Mon Sep 17 00:00:00 2001 From: Good Guy Date: Sun, 29 Aug 2021 19:23:16 -0600 Subject: [PATCH] minor fixes from Andrew + info on plugins --- cinelerra-5.1/cinelerra/fileffmpeg.C | 8 ++++---- cinelerra-5.1/cinelerra/pluginserver.C | 1 + cinelerra-5.1/info/plugins.txt | 4 ++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/cinelerra-5.1/cinelerra/fileffmpeg.C b/cinelerra-5.1/cinelerra/fileffmpeg.C index bcc55817..a6437242 100644 --- a/cinelerra-5.1/cinelerra/fileffmpeg.C +++ b/cinelerra-5.1/cinelerra/fileffmpeg.C @@ -159,7 +159,7 @@ void FFMpegPixelFormat::update_formats() pixfmts.remove_all_objects(); char video_codec[BCSTRLEN]; video_codec[0] = 0; const char *vcodec = vid_config->asset->vcodec; - AVCodec *av_codec = !FFMPEG::get_codec(video_codec, "video", vcodec) ? + const AVCodec *av_codec = !FFMPEG::get_codec(video_codec, "video", vcodec) ? avcodec_find_encoder_by_name(video_codec) : 0; const AVPixelFormat *pix_fmts = av_codec ? av_codec->pix_fmts : 0; if( pix_fmts ) { @@ -190,7 +190,7 @@ void FFMpegSampleFormat::update_formats() samplefmts.remove_all_objects(); char audio_codec[BCSTRLEN]; audio_codec[0] = 0; const char *acodec = aud_config->asset->acodec; - AVCodec *av_codec = !FFMPEG::get_codec(audio_codec, "audio", acodec) ? + const AVCodec *av_codec = !FFMPEG::get_codec(audio_codec, "audio", acodec) ? avcodec_find_encoder_by_name(audio_codec) : 0; const AVSampleFormat *sample_fmts = av_codec ? av_codec->sample_fmts : 0; if( sample_fmts ) { @@ -1852,7 +1852,7 @@ int FFOptionsViewAudio::handle_event() const char *name = asset->acodec; char audio_format[BCSTRLEN]; audio_format[0] = 0; char audio_codec[BCSTRLEN]; audio_codec[0] = 0; - AVCodec *codec = !ret && + const AVCodec *codec = !ret && !FFMPEG::get_format(audio_format, "audio", name) && !FFMPEG::get_codec(audio_codec, "audio", name) ? avcodec_find_encoder_by_name(audio_codec) : 0; @@ -1890,7 +1890,7 @@ int FFOptionsViewVideo::handle_event() const char *name = asset->vcodec; char video_format[BCSTRLEN]; video_format[0] = 0; char video_codec[BCSTRLEN]; video_codec[0] = 0; - AVCodec *codec = !ret && + const AVCodec *codec = !ret && !FFMPEG::get_format(video_format, "video", name) && !FFMPEG::get_codec(video_codec, "video", name) ? avcodec_find_encoder_by_name(video_codec) : 0; diff --git a/cinelerra-5.1/cinelerra/pluginserver.C b/cinelerra-5.1/cinelerra/pluginserver.C index dec5824c..8ea9140d 100644 --- a/cinelerra-5.1/cinelerra/pluginserver.C +++ b/cinelerra-5.1/cinelerra/pluginserver.C @@ -508,6 +508,7 @@ void PluginServer::process_transition(VFrame *input, int64_t total_len) { if( !plugin_open ) return; + if (total_len == 0) return; PluginVClient *vclient = (PluginVClient*)client; to_ram(input); to_ram(output); diff --git a/cinelerra-5.1/info/plugins.txt b/cinelerra-5.1/info/plugins.txt index c25a0900..24f3b67a 100644 --- a/cinelerra-5.1/info/plugins.txt +++ b/cinelerra-5.1/info/plugins.txt @@ -172,6 +172,8 @@ Perspective: Allows you to change the viewpoint of an object. Polar: Bends and warps your video in weird ways based on conversion from either polar coordinates to rectangular or vice-versa. +Posterize: Reduces the color depth so as to decrease the displayed + color gradients. RGB - 601: Used to reduce/increase contrast in your video via 601 compression or RGB expansion. RGBShift: Align 3 separate planes of R, G, B if misaligned in @@ -219,7 +221,9 @@ Threshold: Converts the image to pure luminance and replaces Time Average: Use to create trail patterns, or reduce noise in still images. A number of frames is accumulated and then divided by a divisor to the the average. +TimeBlur: Use to blur a number of frames. TimeFront: Performs spatio-temporal video warping. +Timelapse Helper: Sets the number of frames to skip during playback. Title: Add text/timestamp/background pngs to video along with the ability to drag to a location if Drag on. Flexible attributes in textbox (mouse right click): -- 2.26.2