GithubHelp home page GithubHelp logo

openshot / libopenshot Goto Github PK

View Code? Open in Web Editor NEW
1.2K 65.0 255.0 117.26 MB

OpenShot Video Library (libopenshot) is a free, open-source project dedicated to delivering high quality video editing, animation, and playback solutions to the world. API currently supports C++, Python, and Ruby.

Home Page: http://www.openshot.org

License: GNU Lesser General Public License v3.0

CMake 5.19% C++ 93.74% C 0.13% SWIG 0.92% Shell 0.01%
video-editing video-processing video-library openshot video-effects audio c-plus-plus lgplv3 qt5 video

libopenshot's Introduction

OpenShot Video Library (libopenshot) is a free, open-source C++ library dedicated to delivering high quality video editing, animation, and playback solutions to the world.

Build Status

libopenshot CI Build libopenshot-audio CI Build

Features

  • Cross-Platform (Linux, Mac, and Windows)
  • Multi-Layer Compositing
  • Video and Audio Effects (Chroma Key, Color Adjustment, Grayscale, etc…)
  • Animation Curves (Bézier, Linear, Constant)
  • Time Mapping (Curve-based Slow Down, Speed Up, Reverse)
  • Audio Mixing & Resampling (Curve-based)
  • Audio Plug-ins (VST & AU)
  • Audio Drivers (ASIO, WASAPI, DirectSound, CoreAudio, iPhone Audio, ALSA, JACK, and Android)
  • Telecine and Inverse Telecine (Film to TV, TV to Film)
  • Frame Rate Conversions
  • Multi-Processor Support (Performance)
  • Python and Ruby Bindings (All Features Supported)
  • Qt Video Player Included (Ability to display video on any QWidget)
  • Unit Tests (Stability)
  • All FFmpeg Formats and Codecs Supported (Images, Videos, and Audio files)
  • Full Documentation with Examples (Doxygen Generated)

Install

Detailed instructions for building libopenshot and libopenshot-audio for each OS. These instructions are also available in the /docs/ source folder.

Hardware Acceleration

OpenShot now supports experimental hardware acceleration, both for encoding and decoding videos. When enabled, this can either speed up those operations or slow them down, depending on the power and features supported by your graphics card.

Please see doc/HW-ACCEL.md for more information.

Documentation

Beautiful HTML documentation can be generated using Doxygen.

make doc

(Also available online: http://openshot.org/files/libopenshot/)

Developers

Are you interested in becoming more involved in the development of OpenShot? Build exciting new features, fix bugs, make friends, and become a hero! Please read the step-by-step instructions for getting source code, configuring dependencies, and building OpenShot.

Report a bug

You can report a new libopenshot issue directly on GitHub:

https://github.com/OpenShot/libopenshot/issues

Websites

Copyright & License

Copyright (c) 2008-2022 OpenShot Studios, LLC. This file is part of OpenShot Video Editor (https://www.openshot.org), an open-source project dedicated to delivering high quality video editing and animation solutions to the world.

OpenShot Library (libopenshot) is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

OpenShot Library (libopenshot) 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 Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with OpenShot Library. If not, see http://www.gnu.org/licenses/.

To release a commercial product which uses libopenshot (i.e. video editing and playback), commercial licenses are also available: contact [email protected] for more information.

libopenshot's People

Contributors

albert-github avatar brennocaldato avatar chad3814 avatar chillerdragon avatar dankamongmen avatar dependabot[bot] avatar eisneinechse avatar ferdnyc avatar ghisvail avatar jacksonrg avatar jediserg avatar jeffski avatar jonoomph avatar k3a avatar komackaj avatar kxxt avatar mkarg avatar mlocati avatar musteresel avatar n3wwn avatar nlsnho avatar physsong avatar russnelson avatar sbraz avatar sparfenyuk avatar steils avatar suslikv avatar toddy15 avatar troyrollo avatar wasimafser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libopenshot's Issues

Compile errors after rev 564.

There is a compile error on Archlinux after revision 564.

/usr/include/libopenshot-audio/JuceLibraryCode/modules/juce_audio_basics/../juce_core/maths/juce_MathsFunctions.h:384:12: error: ‘finite’ is not a member of ‘std’
return std::isfinite (value);

libopenshot fails to build since ruby 2.4.1

Hi,

I tried to build latest release 0.1.8 but it fails to build with new ruby 2.4.1 (same with previous 0.1.7 release):

[ 75%] Swig source
cd /home/iurt/rpmbuild/BUILD/libopenshot-0.1.8/build/src/bindings/ruby && /usr/bin/cmake -E make_directory /home/iurt/rpmbuild/BUILD/libopenshot-0.1.8/build/src/bindings/ruby
cd /home/iurt/rpmbuild/BUILD/libopenshot-0.1.8/build/src/bindings/ruby && /usr/bin/swig -ruby -outdir /home/iurt/rpmbuild/BUILD/libopenshot-0.1.8/build/src/bindings/ruby -c++ -I/usr/include/ImageMagick-6 -I/usr/include -I/usr/include/libopenshot-audio -I/usr/lib/qt5/include -I/usr/lib/qt5/include/QtWidgets -I/usr/lib/qt5/include/QtGui -I/usr/lib/qt5/include/QtCore -I/usr/lib/qt5/./mkspecs/linux-g++ -I/usr/lib/qt5/include/QtMultimedia -I/usr/lib/qt5/include/QtNetwork -I/usr/lib/qt5/include/QtMultimediaWidgets -I/home/iurt/rpmbuild/BUILD/libopenshot-0.1.8/src/../thirdparty/jsoncpp/include -I/home/iurt/rpmbuild/BUILD/libopenshot-0.1.8/src/bindings/ruby -o /home/iurt/rpmbuild/BUILD/libopenshot-0.1.8/build/src/bindings/ruby/openshotRUBY_wrap.cxx /home/iurt/rpmbuild/BUILD/libopenshot-0.1.8/src/bindings/ruby/openshot.i
/home/iurt/rpmbuild/BUILD/libopenshot-0.1.8/src/bindings/ruby/openshot.i:43: Error: Syntax error in input(1).
make[2]: *** [src/bindings/ruby/CMakeFiles/rbopenshot.dir/build.make:67: src/bindings/ruby/openshotRUBY_wrap.cxx] Error 1
make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/libopenshot-0.1.8/build'
make[1]: *** [CMakeFiles/Makefile2:363: src/bindings/ruby/CMakeFiles/rbopenshot.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/libopenshot-0.1.8/build'

no-return-in-nonvoid-function

Hi!
I bumped into rpmlint errors, when tried to build rpm in OBS:

[  376s] I: Program returns random data in a function
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/build/src/__/include/Qt/../../../../../include/Qt/../../include/ZmqLogger.h:79
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/src/../include/../include/ZmqLogger.h:79
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/src/../include/ZmqLogger.h:79
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/src/../include/effects/../ZmqLogger.h:79
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/src/EffectInfo.cpp:64
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/src/Qt/../../include/../include/../include/ZmqLogger.h:79
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/src/Qt/../../include/Qt/../../include/ZmqLogger.h:79
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/src/Qt/demo/../../../include/Qt/../../include/ZmqLogger.h:79
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/src/bindings/python/../../../include/ZmqLogger.h:79
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/src/effects/../../include/effects/../ZmqLogger.h:79
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/src/examples/../../include/ZmqLogger.h:79
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/tests/../include/ZmqLogger.h:79
[  376s] E: libopenshot no-return-in-nonvoid-function /home/abuild/rpmbuild/BUILD/libopenshot-0.1.2/tests/ReaderBase_Tests.cpp:47, 49

Frame copy constructor does not preserve sample rate

I have been trying to use libopenshot as an FFmpeg wrapper, to annotate a video with drawings from opencv. The benefit is that libopenshot can preserve audio, while opencv's video reader discards the audio. I like the libopenshot API, and the code below seems to work. However, I have run into these two confusing issues:

  • There is no frame constructor that sets the sample rate, not even the copy constructor, or Frame::DeepCopy, which was very confusing. The comments within Frame.h are actually incorrect in the usage of the constructor.
  • I was using an input video of 1920x1080 and an output of 1080x1080. Calling
    f = r.GetFrame(...); w.WriteFrame(f); actually works, but scales the image. However, calling f = r.GetFrame(...); f->AddImage(1080, 1080 ...); w.WriteFrame(f); causes a segfault, even though f should now be the correct size?
  cv::Mat cropped_frame, frame_out;
  FFmpegReader r("input.mp4");
  r.Open();

  // Get frame that requires a seek
  tr1::shared_ptr<Frame> f = r.GetFrame(1);

  FFmpegWriter w("output.mkv");
  w.SetVideoOptions(true, "libx264", r.info.fps, 1080, 1080, Fraction(1,1), false, false, r.info.video_bit_rate);
  w.SetAudioOptions(true, "libfaac", r.info.sample_rate, 2, LAYOUT_STEREO, r.info.audio_bit_rate);
  w.PrepareStreams();
  w.WriteHeader();
  w.Open();

  for (unsigned long count = 1; count < 30000; count++)
  {
     time = ((long double) count )/30.0;
     f = r.GetFrame(count);


     int width = f->GetWidth();
     int height = f->GetHeight();
     uint8_t * data = (uint8_t*) f->GetPixels();

     cv::Mat frame(height,
       width,
       CV_8UC4,
       data);

     cv::Rect roi(0, 0, 1080, 1080);
     cropped_frame = frame(roi);
     cv::transpose(cropped_frame, frame_out);
     cv::flip(frame_out, frame_out,0);
     cv::rectangle(frame, my_rect, my_color, -1);

     tr1::shared_ptr<Frame> out_f(new Frame(f->number, // Frame number
            frame_out.size().width,  // Width of image
            frame_out.size().height, // Height of image
            "#000000" )); // color

     out_f->ResizeAudio(f->GetAudioChannelsCount(), f->GetAudioSamplesCount(),
     f->SampleRate(), f->ChannelsLayout());
     out_f->AddAudio(false, 0, 0, f->GetAudioSamples(0), f->GetAudioSamplesCount(), 1.0);
     out_f->AddAudio(false, 1, 0, f->GetAudioSamples(1), f->GetAudioSamplesCount(), 1.0);
     out_f->AddImage(frame_out.size().width, frame_out.size().height, 4, QImage::Format_ARGB32, frame_out.data);
     w.WriteFrame(out_f);
  }

  w.WriteTrailer();
  w.Close();
  r.Close();

Floating point exception (core dumped)

I'm trying to write simple app that concatenates two mp4 files and I'm getting the following error:

[libvpx @ 0x18d44a0] v1.3.0
[mp4 @ 0x18cd6c0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[mp4 @ 0x18cd6c0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[mp4 @ 0x18cd6c0] Could not find tag for codec vp8 in stream #0, codec not currently supported in container
Floating point exception (core dumped)

Code:

#include <libopenshot/OpenShot.h>

using namespace std;
using namespace openshot;

int main() {
    Clip video1(new FFmpegReader("1.mp4"));
    Clip video2(new FFmpegReader("2.mp4"));

    Timeline timeline(1280, 720, Fraction(25,1), 44100, 2, LAYOUT_STEREO);

    video1.Position(0.0);
    video1.Start(0.0);
    video1.End(3.0);

    video2.Position(3.0);
    video2.Start(0.0);
    video2.End(5.0);

    timeline.AddClip(&video1);
    timeline.AddClip(&video2);

    timeline.Open();

    FFmpegWriter writer("result.mp4");
    writer.SetAudioOptions(true,
                           "libvorbis",
                           timeline.info.sample_rate,
                           timeline.info.channels,
                           timeline.info.channel_layout,
                           timeline.info.audio_bit_rate);

    writer.SetVideoOptions(true,
                           "libvpx",
                           timeline.info.fps,
                           timeline.info.width,
                           timeline.info.height,
                           timeline.info.pixel_ratio,
                           timeline.info.interlaced_frame,
                           timeline.info.top_field_first,
                           3000000);

    writer.Open();
    writer.WriteFrame(&timeline, 1, timeline.info.video_length);
    writer.Close();

    timeline.Close();

    return 0;
}

Attached gdb log
gdb-log.txt

Enable Ubuntu 16.10 builds

16.10 was released but apt-get is bouncing reporting there isn't a build available for yakkety. Any possibility we can get 16.10 builds up and running soon?

[Errno 13]: Can't save project anymore after opening.

This is a really good software, and congrats on all the hard work; however, understanding that this is a beta I think this leaves many opportunities to get other bugs fixed for multiple operating systems.

For me, since I am using a Windows operating system I ran into a problem with an error: I was testing out the software and so far it sorta lags but its due to my laptop probably not being powerful enough, but one of the issues that hit me was after opening a project and then trying to save the project again, the software ran into this ERROR:

[Errno 13] Permission denied: 'C:/Users/[USERNAME]/Videos/test\\thumbnail\\Thumbs.db'

Now I can't save projects anymore after opening them, and I have no Idea on what to do next. So either this is a bug or an issue left unresolved on the source code, I figure I'd give you the heads up. Once again, I'm a windows user.

live sound and live video recording support to OpenShot

Could there be live sound and live video support to OpenShot one day?

OpenShot live sound
I don't know if this is being worked on or not but live sound support would be good to have in Openshot, ie a audio mixer window. The mixer should all so have jack audio support.The Openshot audio tracks could all so use a record button on them.
At the bottom of the Mixer could have a sound input menu on every audio track this way a user can hook up a hardware mixer to a Openshot audio track and record the sound form their hardware mixer without a DAW software. The Openshot mixer's faders and pan knob should be able to read & write volume and pan automation on the track. A the top of the mixer there should be a output menu on every audio track this way a user can hook up a audio output from the Openshot mixer out to a jack audio input. The Jack Audio support is so a user can send the sound from the users DAW software into Openshot an audio tracks or send the sound from Openshot an audio tracks to the users DAW .

live video support
Openshot video tracks need a record button on them.and a Camera recording window where a user can find Camera recording options, like Camera record, Multi Camera record and Multi Camera sync and Multi Camera record monitoring.

`libopenshot-audio` repository name in PDF has incorrect character

I copy & pasted this from the InstallationGuide.pdf into Terminal.app:

bzr branch lp:~openshot.code/libopenshot/libopenshot­audio

Unlike above (for me at least) it looks correct when pasted into terminal (with what appears to be a hyphen between ...shot and audio).

However it results in an error message:

bzr: ERROR: Invalid url supplied to transport: "bzr+ssh://bazaar.launchpad.net/~openshot.code/libopenshot/libopenshot%C2%ADaudio": no supported schemes

You'll notice that instead of a hyphen it has %C2%AD.

I verified the result via xxd:

$ pbpaste | xxd
0000000: 627a 7220 6272 616e 6368 206c 703a 7e6f  bzr branch lp:~o
0000010: 7065 6e73 686f 742e 636f 6465 2f6c 6962  penshot.code/lib
0000020: 6f70 656e 7368 6f74 2f6c 6962 6f70 656e  openshot/libopen
0000030: 7368 6f74 c2ad 6175 6469 6f              shot..audio

When I manually corrected the URL to have a hyphen it worked:

bzr branch lp:~openshot.code/libopenshot/libopenshot-audio

I assume there's some "smart" hyphen-ing or something going on during the PDF production process.

(After further investigation it seems like it's a UTF-8 encoding of a "soft hypen" rather than a "hyphen minus".)

References:

Tests fail on !x86 architectures

I managed to upload libopenshot and libopenshot-audio to Debian. However, only x86 architectures have had successful builds of libopenshot so far (see log). All other supported architectures, such as the arm or mips families, fail to pass certain tests.

cmake could not find ImageMagick 7.x ?

Hello,

Is libopenshot still limited to ImageMagick 6.x ? If so is there any plan to support newer versions ?

Here is what I see when I build libopenshot 0.1.8:

Generating build files for openshot (0.1.8)
-- Could NOT find ImageMagick (missing:  ImageMagick_Magick++_LIBRARY ImageMagick_MagickWand_LIBRARY ImageMagick_MagickCore_LIBRARY) (found version "7.0.6-9")

Thanks !

Incorrect lib folder

Installing the library (and the audio library) under fedora 64bit (also redhat, centos and other distros that follow such standard) incorrectly places the libraries under: /usr/local/lib which is the place for 32bit libraries, while 64bit libraries should go to /usr/local/lib64

Another minor issue which is even after moving the libraries to the correct folder I still get an error when running openshot-qt:

logger:ERROR libopenshot.so.7: cannot open shared object file: No such file or directory

I believe it is not looking for the libraries inside /usr/local/lib64 and only searching in /usr/lib64

To fix that i ran:
export LD_LIBRARY_PATH=/usr/local/lib64/
before running openshot-qt, so I am not sure of this is normal or the install process should handle this!

Linux: Random crashes after a few minutes (possible timemapping as the cause)

I'm trying to make a time-lapse out of five clips. I've only had success with just one clip. As soon as I put two clips in, I get a segmentation fault every time. I'm trying to make a test case that will always crash, but I can't get consistent crashing. Sometimes it crashes immediately after starting the export, and sometimes it crashes after 20 minutes. I ran it under gdb, provoked a crash and have appended the output.

[Switching to Thread 0x7fff512fd700 (LWP 25724)]
0x00007fffe37f2434 in std::tr1::__shared_ptr<juce::AudioSampleBuffer, (__gnu_cxx::_Lock_policy)2>::operator-> (this=0x20)
    at /usr/include/c++/4.8/tr1/shared_ptr.h:673
673     return _M_ptr;
(gdb) where
#0  0x00007fffe37f2434 in std::tr1::__shared_ptr<juce::AudioSampleBuffer, (__gnu_cxx::_Lock_policy)2>::operator-> (this=0x20)

at /usr/include/c++/4.8/tr1/shared_ptr.h:673

#1  0x00007fffe37ef4ac in openshot::Frame::GetAudioSamplesCount (this=0x0) at /home/nelson/libopenshot/src/Frame.cpp:406
#2  0x00007fffe37a01cf in openshot::Clip::get_time_mapped_frame (this=0x17e44b0, frame=std::tr1::shared_ptr (count 2, weak 0) 0x7fff300050e0,

frame_number=3) at /home/nelson/libopenshot/src/Clip.cpp:470

#3  0x00007fffe379f235 in openshot::Clip::GetFrame (this=0x17e44b0, requested_frame=3) at /home/nelson/libopenshot/src/Clip.cpp:277
#4  0x00007fffe380716a in openshot::Timeline::GetOrCreateFrame (this=0x191a7d0, clip=0x17e44b0, number=3)

at /home/nelson/libopenshot/src/Timeline.cpp:206

#5  0x00007fffe38073ca in openshot::Timeline::add_layer (this=0x191a7d0, new_frame=std::tr1::shared_ptr (count 2, weak 0) 0x7fff3000b030,

source_clip=0x17e44b0, clip_frame_number=3, timeline_frame_number=3, is_top_clip=true) at /home/nelson/libopenshot/src/Timeline.cpp:230

#6  0x00007fffe3813a86 in openshot::Timeline::GetFrame () at /home/nelson/libopenshot/src/Timeline.cpp:727
#7  0x00007fffe0f5134a in ?? () from /usr/lib/x86_64-linux-gnu/libgomp.so.1
#8  0x00007ffff7bc4182 in start_thread (arg=0x7fff512fd700) at pthread_create.c:312
#9  0x00007ffff78f147d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

nelson@d2:~/openshot-qt$ 

Mouse wheel is under-used

Scrolling is difficult. There are three things to be scrolled:

  • The time magnifier (which changes the width of the clips window)
  • The clips window (which changes the location of the window horizontally)
  • The tracks (which changes the location of the window vertically)
  • And then there's the location of the cursor.

I know that there are reliability concerns which are much more important than anything in the user interface (who cares how well it works, when it doesn't work at all?) Still, I wanted to get my ideas written down so that other people can take potshots at them. Here's how I think it should work. I'm going to assume that there is no point in allowing the cursor to go out of the clips window[1]

  • The cursor should always be visible. If it gets moved out of the clips window, the clips window should move to include it.
  • If the mouse wheel runs while the mouse cursor is pointing at the timeline, it should move the cursor, which will also scroll the clips window.
  • If the mouse wheel runs while the mouse cursor is pointing at the timeline magnifier, it should (does) zoom in and out on the timeline, but the cursor goes off screen. It shouldn't.
  • If the mouse wheel runs while the mouse cursor is pointing at the HH:MM:SS:hh display, it should increment or decrement the time, which of course means moving the time cursor which may mean scrolling the clips window.

[1] I may be wrong about that. When you're playing back the video, it may be too time-consuming to also scroll the clips window at the same time as playing the video. But that would just mean delaying the clips window scroll. As soon as you stopped, the cursor would come back into view.
Also, it may be that there is some value to looking somewhere other than the cursor in the clips window. But you'd think that you could just drop a marker, go look elsewhere, and then go back to the marker. Maybe this is my lack of experience in using openshot?

Timeline object, method GetFrame: Problem of memory leak

Hi,

I am using the version 0.1.7 of libopenshot and having an issue with the class Timeline.

I've add three clips to my Timeline then done the following code in order to export the Timeline in a writer:

tr1::shared_ptr<Frame> fOne;
for (long int frame = 1; frame <= 250; frame++)
//int frame = 1;
//while (true)
{
	//int frame_number = (rand() % 750) + 1;
	int frame_number = frame;
            // t is my timeline
	cout << "get " << frame << " (frame: " << frame_number << ") " << endl;
	cout << "get " << frame << " (t.info.video_length: " << t.info.video_length << ") " << endl;
	fOne = t.GetFrame(frame_number);
	cout << "After get frame " << frame << " After get frame" << endl;
	w.WriteFrame(fOne);

}

I have a problem (probably a memory leak) that I am not able to reproduce every time when it comes to the line "fOne =t.GetFrame(frame_number);"

The error is:

---- Unhandled Exception: Stack Trace ----
[3] RtlUnicodeStringToInteger, address 0x76FD5B90
---- End of Stack Trace ----

Other traces :

[libvpx @ 13c2c4c0] v1.3.0
[libvpx @ 13c2c4c0] v1.3.0
get 73 (frame: 73)
get 73 (t.info.video_length: 45000)
After get frame 73 After get frame
get 74 (frame: 74)
get 74 (t.info.video_length: 45000)
After get frame 74 After get frame
get 75 (frame: 75)
get 75 (t.info.video_length: 45000)
After get frame 75 After get frame
get 76 (frame: 76)
get 76 (t.info.video_length: 45000)
After get frame 76 After get frame
get 77 (frame: 77)
get 77 (t.info.video_length: 45000)
Caught signal 11 (SIGSEGV)
---- Unhandled Exception: Stack Trace ----
[3] RtlUnicodeStringToInteger, address 0x76FD5B90
---- End of Stack Trace ----

Could you please help me?

Thank you

Valgrind reports errors

Hi,

I've run valgrind against test suite and although it passed multiple errors were reported. I use build with ImageMagick and following error filled up the logs

==16119== Conditional jump or move depends on uninitialised value(s)
==16119==    at 0x9CF1C54: ??? (in /usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so.2.0.0)
==16119==    by 0x9CF4B69: QuantizeImage (in /usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so.2.0.0)
==16119==    by 0x9BE5BD9: SetImageType (in /usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so.2.0.0)
==16119==    by 0x37D0DDD3: ??? (in /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/modules-Q16/coders/gif.so)
==16119==    by 0x9C1FECE: WriteImage (in /usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so.2.0.0)
==16119==    by 0x9C20816: WriteImages (in /usr/lib/x86_64-linux-gnu/libMagickCore-6.Q16.so.2.0.0)
==16119==    by 0x4F6F44B: void Magick::writeImages<__gnu_cxx::__normal_iterator<Magick::Image*, std::vector<Magick::Image, std::allocator<Magick::Image> > > >(__gnu_cxx::__normal_iterator<Magick::Image*, std::vector<Magick::Image, std::allocator<Magick::Image> > >, __gnu_cxx::__normal_iterator<Magick::Image*, std::vector<Magick::Image, std::allocator<Magick::Image> > >, std::string const&, bool) (STL.h:2732)
==16119==    by 0x4F6EE7C: openshot::ImageWriter::Close() (ImageWriter.cpp:142)
==16119==    by 0x4382F9: TestImageWriter_Test_Gif::RunImpl() const (ImageWriter_Tests.cpp:57)
==16119==    by 0x456F97: void UnitTest::ExecuteTest<UnitTest::Test>(UnitTest::Test&, UnitTest::TestDetails const&) (in /home/komacka86/dev/git/openshot/libopenshot/build/tests/openshot-test)
==16119==    by 0x457444: UnitTest::TestRunner::RunTest(UnitTest::TestResults*, UnitTest::Test*, int) const (in /home/komacka86/dev/git/openshot/libopenshot/build/tests/openshot-test)
==16119==    by 0x457832: UnitTest::RunAllTests() (in /home/komacka86/dev/git/openshot/libopenshot/build/tests/openshot-test)

it might be false alarm, it might not. I've suppressed it in next run.

Output of valgrind --undef-value-errors=no ./openshot-test is here

Tests fail: 'No Reader has been initialized for this Clip' and 'File could not be opened'

Hi,
I'm unable to make tests pass on my system. I just ran cmake . && make && tests/openshot-test on an up-to-date git clone and I see the following:

----------------------------
     RUNNING ALL TESTS
----------------------------
/tmp/libopenshot/tests/Clip_Tests.cpp:50:1: error: Failure in Clip_Constructor: Unhandled exception: No Reader has been initialized for this Clip.  Call Reader(*reader) before calling this method.
/tmp/libopenshot/tests/Clip_Tests.cpp:205:1: error: Failure in Clip_Effects: Unhandled exception: No Reader has been initialized for this Clip.  Call Reader(*reader) before calling this method.
/tmp/libopenshot/tests/ImageWriter_Tests.cpp:36:1: error: Failure in ImageWriter_Test_Gif: Unhandled exception: File could not be opened.
/tmp/libopenshot/tests/FFmpegReader_Tests.cpp:41:1: error: Failure in FFmpegReader_GetFrame_Before_Opening: Unhandled exception: File could not be opened.
/tmp/libopenshot/tests/FFmpegReader_Tests.cpp:52:1: error: Failure in FFmpegReader_Check_Audio_File: Unhandled exception: File could not be opened.
/tmp/libopenshot/tests/FFmpegReader_Tests.cpp:82:1: error: Failure in FFmpegReader_Check_Video_File: Unhandled exception: File could not be opened.
/tmp/libopenshot/tests/FFmpegReader_Tests.cpp:120:1: error: Failure in FFmpegReader_Seek: Unhandled exception: File could not be opened.
/tmp/libopenshot/tests/FFmpegReader_Tests.cpp:177:1: error: Failure in FFmpegReader_Multiple_Open_and_Close: Unhandled exception: File could not be opened.
/tmp/libopenshot/tests/FFmpegWriter_Tests.cpp:35:1: error: Failure in FFmpegWriter_Test_Webm: Unhandled exception: File could not be opened.
/tmp/libopenshot/tests/FrameMapper_Tests.cpp:180:1: error: Failure in FrameMapper_resample_audio_48000_to_41000: Unhandled exception: File could not be opened.
/tmp/libopenshot/tests/Timeline_Tests.cpp:88:1: error: Failure in Timeline_Check_Two_Track_Video: Unhandled exception: No Reader has been initialized for this Clip.  Call Reader(*reader) before calling this method.
/tmp/libopenshot/tests/Timeline_Tests.cpp:210:1: error: Failure in Timeline_Clip_Order: Unhandled exception: No Reader has been initialized for this Clip.  Call Reader(*reader) before calling this method.
/tmp/libopenshot/tests/Timeline_Tests.cpp:438:1: error: Failure in Timeline_Effect_Blur: Unhandled exception: No Reader has been initialized for this Clip.  Call Reader(*reader) before calling this method.
FAILURE: 13 out of 74 tests failed (13 failures).
Test time: 0.33 seconds.
----------------------------

Compilation issue

Hi, I'm not able to compile any code that includes openshot library
g++ main.cpp -I/usr/local/include/libopenshot -I/usr/local/include/libopenshot-audio -I/usr/include/qt5 -Ilibopenshot/thirdparty -Ilibopenshot/include/ -lopenshot -lopenshot-audio -fPICpkg-config --cflags --libs Qt5Gui Qt5Widgets Magick++`

and it produces the following error:
/tmp/cciO6UZq.o: In functionav_make_error_string(int)':
main.cpp:(.text+0x5b): undefined reference to av_strerror' collect2: error: ld returned 1 exit status

I'm compiling under Ubuntu 14.04. Also I updated libavutil, but it didnt help.

FFmpegWriter igores bitrate

I'm trying to read a video file and immediately write it out again (as a test), but no matter what I use for the FFmpegWriter video bit rate, it gets ignored.
Example code:

    FFmpegReader r("test_short.mp4");
    r.Open(); // Open thetarget_ reader
    // Create a writer (which will create a WebM video)
    FFmpegWriter w("out.webm");
    // Set options
    std::cout << r.info.acodec << " " << r.info.vcodec << std::endl;
    w.SetAudioOptions(true, "libvorbis", r.info.sample_rate, r.info.channels, r.info.channel_layout, r.info.audio_bit_rate);

    std::cout << r.info.video_bit_rate << std::endl;
    w.SetVideoOptions(true, "libvpx", r.info.fps, r.info.width, r.info.height, r.info.pixel_ratio, r.info.interlaced_frame, r.info.top_field_first, 100000);
    // Open the writer
    w.Open();
    // Write all frames from the reader
    w.WriteFrame(&r, 1, r.info.video_length);
    // Close the reader & writer
    w.Close();
    r.Close();

Input audio codec is aac, input video h264. Source bitrate is 3178060, output bitrate is 5693 kb/s. I've also tried libx264 as the output codec, but its bitrate is always 6458 kb/s.

I've tried several values (like 1001 or 3178060), but the result is always the same.

Any ideas what's wrong here?

Enable build with system jsoncpp

The Debian packaging policy discourages using embedded dependencies for building binary packages. Right now, libopenshot compiles unconditionally with an embedded copy of jsoncpp, which is a breach of this policy.

It would be desirable to allow for (optional ?) compilation and linkage with a system installed jsoncpp, such as the one available with the libjsoncpp-dev package in Debian / Ubuntu.

Allow longer default image length

The current default image length maximum is only 100 seconds, I can't think of why this couldn't be longer. It would be more convenient to allow a longer default to be set in the preferences for those who need it, instead of forcing them to change it if the default is not long enough.

Unable to build, run Example.cpp

I built and installed libopenshot and libopenshot-audio on Debian Jessie (via the InstallationGuide), but I receive the following error when trying to compile src/examples/Example.cpp:

steven:libopenshot/ (master✗) $ cd src/examples                                                                                                                                                                                                                                                                     [16:16:26]
steven:examples/ (master✗) $ g++ Example.cpp -I/usr/local/include/libopenshot-audio -I/usr/local/include/libopenshot -I../../thirdparty/jsoncpp/include/json -lopenshot -lopenshot-audio `pkg-config --cflags --libs Qt5Gui Qt5Widgets Magick++` -fPIC                                                              [16:16:42]
/usr/bin/ld: /tmp/ccGFcIlI.o: undefined reference to symbol 'av_strerror@@LIBAVUTIL_FFMPEG_54'
//usr/lib/x86_64-linux-gnu/libavutil-ffmpeg.so.54: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Is my compile command incorrect?

I'm completely new to C++, so any help would be appreciated.

Failure in FFmpegWriter_Test_Webm

Upon trying to refresh the packaging for Debian, the build fails with the following errors at the testing stage. The log is the following:

----------------------------
     RUNNING ALL TESTS
----------------------------
[AudioData @ 0x7fbcd0ff8640] invalid NULL pointer for src[0]
[AudioData @ 0x7fbccdff2640] invalid NULL pointer for src[0]
[AudioData @ 0x7fbccfff6640] invalid NULL pointer for src[0]
[AudioData @ 0x7fbcceff4640] invalid NULL pointer for src[0]
[AudioData @ 0x7fbcd07f7640] invalid NULL pointer for src[0]
[AudioData @ 0x7fbcd07f7640] invalid NULL pointer for src[0]
[AudioData @ 0x7fbcd07f7460] invalid NULL pointer for src[0]
[libvpx @ 0x5571a64cd2c0] v1.6.0
[webm @ 0x5571a66c5380] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[webm @ 0x5571a66c5380] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[webm @ 0x5571a66c5380] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[webm @ 0x5571a66c5380] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[AudioData @ 0x7fbcd07f7460] invalid NULL pointer for src[0]
[AudioData @ 0x7ffd84397b20] invalid NULL pointer for src[0]
/home/gvaillan/workspace/debian/packages/libopenshot/tests/FFmpegWriter_Tests.cpp:76: error: Failure in FFmpegWriter_Test_Webm: Expected 23 but was 11
/home/gvaillan/workspace/debian/packages/libopenshot/tests/FFmpegWriter_Tests.cpp:77: error: Failure in FFmpegWriter_Test_Webm: Expected 23 but was 11
/home/gvaillan/workspace/debian/packages/libopenshot/tests/FFmpegWriter_Tests.cpp:78: error: Failure in FFmpegWriter_Test_Webm: Expected 23 but was 11
[AudioData @ 0x7fbc67ffe460] invalid NULL pointer for src[0]
[AudioData @ 0x7fbc657f9460] invalid NULL pointer for src[0]
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
FAILURE: 1 out of 74 tests failed (3 failures).
Test time: 6.03 seconds.
----------------------------

I am guessing the 3 failures reported correspond to:

FFmpegWriter_Tests.cpp:76: error: Failure in FFmpegWriter_Test_Webm: Expected 23 but was 11
FFmpegWriter_Tests.cpp:77: error: Failure in FFmpegWriter_Test_Webm: Expected 23 but was 11
FFmpegWriter_Tests.cpp:78: error: Failure in FFmpegWriter_Test_Webm: Expected 23 but was 11

Which I am not quite sure what to expect from. Are these tests safe to disable for now?

Possible overlinkage

As reported by the Debian packaging toolchain, the shared library and Python modules may possibly be overlinked.

dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/libopenshot3/usr/lib/x86_64-linux-gnu/libopenshot.so.0.1.2 was not linked against libMagickWand-6.Q16.so.2 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/libopenshot3/usr/lib/x86_64-linux-gnu/libopenshot.so.0.1.2 was not linked against libQt5Multimedia.so.5 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/libopenshot3/usr/lib/x86_64-linux-gnu/libopenshot.so.0.1.2 was not linked against libQt5MultimediaWidgets.so.5 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/libopenshot3/usr/lib/x86_64-linux-gnu/libopenshot.so.0.1.2 was not linked against libavdevice.so.57 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/libopenshot3/usr/lib/x86_64-linux-gnu/libopenshot.so.0.1.2 was not linked against libQt5Network.so.5 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libQt5MultimediaWidgets.so.5 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libzmq.so.5 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libMagick++-6.Q16.so.5 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libQt5Gui.so.5 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libMagickWand-6.Q16.so.2 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libQt5Widgets.so.5 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libavformat.so.57 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libQt5Multimedia.so.5 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libavresample.so.3 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libgomp.so.1 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libMagickCore-6.Q16.so.2 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libavutil.so.55 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libavcodec.so.57 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libswscale.so.4 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libQt5Network.so.5 (it uses none of the library's symbols)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/python3-openshot/usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so was not linked against libavdevice.so.57 (it uses none of the library's symbols)

Please confirm whether this is actually the case or a false positive. For the former, you should consider modifying the build to prevent overlinkage to happen.

Audio not playing in preview

At some point something must have been updated and the packaged openshot is no longer playing audio on Ubuntu 16.04. I checked on two different machines with up-to-date 16.04 and neither played any audio in the preview with source files in WAV, OGG/Opus, or MP3. I could find no errors or suspicious behaviour in the logs/terminal output.

I can provide full output if you'd like, or if there's something I should try/look for please tell me.

Problem building libopenshot with latest ffmpeg

Compiling libopenshot with newest ffmpeg installed yield the following error:

FFmpegReader.h:160:91: error: ‘PixelFormat’ has not been declared
   void convert_image(long int current_frame, AVPicture *copyFrame, int width, int height, PixelFormat pix_fmt);

and other similar errors. Apparently PixelFormat was renamed to AVPixelFormat, but adjusting the affected files in openshot just leads to other errors (other changes?)

Make tests and unittest++ optional

Hi,
Would it be possible to make the dependency on unittest++ optional? I am pretty sure it is only needed by developers who run tests.

TextReader just displaying black image

I've compiled and installed libopenshot and everything is working as expected including ImageReader and effects (which use ImageMagick of course). I can't get the text reader to work and when I use the example code I just get a black image.

My code is:

#include "OpenShot.h"

using namespace openshot;

int main(int argc, char **argv)
{
	// Create a reader to generate an openshot::Frame containing text
	TextReader r(720, // width
	             480, // height
	             5, // x_offset
	             5, // y_offset
	             GRAVITY_CENTER, // gravity
	             "Check out this Text!", // text
	             "Courier", // font
	             15.0, // size
	             "#fff000", // text_color
	             "none" // background_color
	             );
	r.Open(); // Open the reader
	// Get frame number 1 from the video (in fact, any frame # you request will return the same frame)
	tr1::shared_ptr<Frame> f = r.GetFrame(1);

	// Now that we have an openshot::Frame object, lets have some fun!
	f->Display(); // Display the frame on the screen
	// Close the reader
	r.Close();

	return 0;
}

I'm using Ubuntu 14.04 and installed everything following the installation guide. I've built and installed from the latest master.

Any ideas?

openshot-test complains [AudioData @ 0x7f800b7f78a0] invalid NULL pointer for src[0]

This error printed by openshot-test is in FFmpegWriter_Tests.cpp, where it calls Frame::GetAudioChannelsCount. That function is in Frame.cpp, and is a wrapper around audio->getNumChannels . audio is juce::AudioSampleBuffer, which is defined by libshotaudio's juce_AudioSampleBuffer.h . The function getNumChannels simply returns an integer. Not sure where the error message is coming from, unless audio is NULL and being caught by an exception handler.

Tests fail to compile when imagemagick is not available

I understand that imagemagick is now supposed to be completely optional. However, tests fail to compile when imagemagick is not available:

[ 97%] Linking CXX executable openshot-test
CMakeFiles/openshot-test.dir/ImageWriter_Tests.cpp.o: In function `TestImageWriter_Test_Gif::RunImpl() const':
/tmp/libopenshot/tests/ImageWriter_Tests.cpp:45: undefined reference to `openshot::ImageWriter::ImageWriter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/tmp/libopenshot/tests/ImageWriter_Tests.cpp:48: undefined reference to `openshot::ImageWriter::SetVideoOptions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, openshot::Fraction, int, int, int, int, bool)'
/tmp/libopenshot/tests/ImageWriter_Tests.cpp:51: undefined reference to `openshot::ImageWriter::Open()'
/tmp/libopenshot/tests/ImageWriter_Tests.cpp:54: undefined reference to `openshot::ImageWriter::WriteFrame(openshot::ReaderBase*, long, long)'
/tmp/libopenshot/tests/ImageWriter_Tests.cpp:57: undefined reference to `openshot::ImageWriter::Close()'
/tmp/libopenshot/tests/ImageWriter_Tests.cpp:61: undefined reference to `openshot::ImageReader::ImageReader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
/tmp/libopenshot/tests/ImageWriter_Tests.cpp:62: undefined reference to `openshot::ImageReader::Open()'
/tmp/libopenshot/tests/ImageWriter_Tests.cpp:69: undefined reference to `openshot::ImageReader::GetFrame(long)'
CMakeFiles/openshot-test.dir/ImageWriter_Tests.cpp.o: In function `openshot::ImageWriter::~ImageWriter()':
/tmp/libopenshot/tests/../include/ImageWriter.h:86: undefined reference to `vtable for openshot::ImageWriter'
CMakeFiles/openshot-test.dir/ImageWriter_Tests.cpp.o: In function `openshot::ImageReader::~ImageReader()':
/tmp/libopenshot/tests/../include/effects/../ImageReader.h:67: undefined reference to `vtable for openshot::ImageReader'
collect2: error: ld returned 1 exit status
tests/CMakeFiles/openshot-test.dir/build.make:447: recipe for target 'tests/openshot-test' failed
make[2]: *** [tests/openshot-test] Error 1
CMakeFiles/Makefile2:352: recipe for target 'tests/CMakeFiles/openshot-test.dir/all' failed
make[1]: *** [tests/CMakeFiles/openshot-test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Cursor to marker movement could be greedier

Another UI suggestion ... lower priority but worth talking about.

I think that everything a user could do should be interpreted from the perspective of "What did the user think was going to happen?" or "They did something. What can we do in response?" If there are no explicit markers to the left of the leftmost, and the user clicks on the Previous Marker arrow, should it be ignored (as happens now)? Or should the cursor be moved to the beginning of the timeline? I think that the Previous and Next arrows which jump the cursor to a marker are not greedy enough. They only move to explicit markers. There should be an implicit marker at the beginning of the video, and an implicit marker at the end.

That's one idea. My second idea, closely related, is that maybe they need to be greedier yet, and move, not just to the previous/next marker, but to the previous/next edge of any sort. So then a "marker" becomes the beginning of the timeline, the beginning of any clip, an explicit marker, the end of any clip, and the end of the timeline.

Tests fail (maybe related to ffmpeg 3.4)

Git 0ca3f2d build with packages from www.deb-multimedia.org repository.
Recent changes : ffmpeg 3.4 and python 3.6

----------------------------
     RUNNING ALL TESTS
----------------------------
/home/marillat/libopenshot-master/tests/Clip_Tests.cpp:95:1: error: Failure in Clip_Properties: Unhandled exception: basic_string::_M_construct null not valid
[AudioData @ 0x7faa297f9750] invalid NULL pointer for src[0]
[AudioData @ 0x7faa2affc750] invalid NULL pointer for src[0]
[AudioData @ 0x7faa287f7750] invalid NULL pointer for src[0]
[AudioData @ 0x7faa2a7fb750] invalid NULL pointer for src[0]
[AudioData @ 0x7faa27ff6750] invalid NULL pointer for src[0]
[AudioData @ 0x7faa28ff8750] invalid NULL pointer for src[0]
[AudioData @ 0x7faa2a7fb750] invalid NULL pointer for src[0]
[libvpx @ 0x6bf745aa00] v1.6.1
[webm @ 0x6bf7459fa0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[webm @ 0x6bf7459fa0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[webm @ 0x6bf7459fa0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead.
[webm @ 0x6bf7459fa0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
[AudioData @ 0x7faa2affc750] invalid NULL pointer for src[0]
[AudioData @ 0x7faa2affc750] invalid NULL pointer for src[0]
/home/marillat/libopenshot-master/tests/FFmpegWriter_Tests.cpp:76:1: error: Failure in FFmpegWriter_Test_Webm: Expected 23 but was 11
/home/marillat/libopenshot-master/tests/FFmpegWriter_Tests.cpp:77:1: error: Failure in FFmpegWriter_Test_Webm: Expected 23 but was 11
/home/marillat/libopenshot-master/tests/FFmpegWriter_Tests.cpp:78:1: error: Failure in FFmpegWriter_Test_Webm: Expected 23 but was 11
[AudioData @ 0x7faa297f9750] invalid NULL pointer for src[0]
[AudioData @ 0x7ffdc3429600] invalid NULL pointer for src[0]
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
FAILURE: 2 out of 79 tests failed (4 failures).
Test time: 10.60 seconds.
----------------------------

Build Success ,but crash in PyUnicode_FromFormat.

I want to build libopenshot by myself. According to the building guide in InstallationGuide.pdf, I download the latest code and succeed to build a libopenshot.so and libopsnshot-audio.so in my Ubuntu 14.04. But when I try to run launch.py of openshot-qt, it crashed. After some debuging effort ,I found that the software crashed when calling PyUnicode_FromFormat function in libsip. I have no idea about how to solve this problem.

When I building libopenshot.so, I found that I can't just use python pip and apt-get to install all the dependencies packages, because the latest version pyQt5(for example 5.7.1) remove some functions that openshot-qt needed. So I have to build pyQt5 and sip by myself. My build environment is:

Ubuntu 14.04
Python: 3.5.2
pyQt5: 5.5.1
sip: 4.18.1

The other dependencies are installed by apt-get or pip install .

Anyone knows how to solve this problem,? Or which version of dependencies packages should I use?

Support for GraphicsMagick

Please consider using a common set of functionalities between ImageMagick and GraphicsMagick. The latter is a fork of the former with desirable benefits in terms of security.

Right now, building with GraphicsMagick produces the following errors:

[ 42%] Building CXX object src/CMakeFiles/openshot.dir/FrameMapper.cpp.o
cd /«BUILDDIR»/libopenshot-0.1.2+ds1/obj-x86_64-linux-gnu/src && /usr/bin/c++   -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -DOPENSHOT_IMAGEMAGICK_COMPATIBILITY=0 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DUSE_IMAGEMAGICK=1 -Dopenshot_EXPORTS -I/usr/include/x86_64-linux-gnu -I/usr/include/libopenshot-audio -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -isystem /usr/include/x86_64-linux-gnu/qt5/QtMultimedia -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtMultimediaWidgets -I/usr/include/jsoncpp  -g -O2 -fdebug-prefix-map=/«BUILDDIR»/libopenshot-0.1.2+ds1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2           -g -ggdb  -fopenmp  -fPIC   -fPIC -std=gnu++11 -o CMakeFiles/openshot.dir/FrameMapper.cpp.o -c /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FrameMapper.cpp
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp: In member function 'std::tr1::shared_ptr<Magick::Image> openshot::Frame::GetMagickImage()':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:837:16: error: 'class Magick::Image' has no member named 'virtualPixelMethod'
  magick_image->virtualPixelMethod(Magick::TransparentVirtualPixelMethod);
                ^~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:837:35: error: 'TransparentVirtualPixelMethod' is not a member of 'Magick'
  magick_image->virtualPixelMethod(Magick::TransparentVirtualPixelMethod);
                                   ^~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp: In member function 'void openshot::Frame::AddMagickImage(std::tr1::shared_ptr<Magick::Image>)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:862:20: error: 'MagickCore' has not been declared
      buffer[i+0] = MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].red);
                    ^~~~~~~~~~
In file included from /usr/include/magick/analyze.h:18:0,
                 from /usr/include/magick/api.h:55,
                 from /usr/include/Magick++/Include.h:39,
                 from /usr/include/Magick++.h:9,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:57,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:28:
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:862:32: error: expected unqualified-id before '(' token
      buffer[i+0] = MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].red);
                                ^
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:863:20: error: 'MagickCore' has not been declared
      buffer[i+1] = MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].green);
                    ^~~~~~~~~~
In file included from /usr/include/magick/analyze.h:18:0,
                 from /usr/include/magick/api.h:55,
                 from /usr/include/Magick++/Include.h:39,
                 from /usr/include/Magick++.h:9,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:57,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:28:
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:863:32: error: expected unqualified-id before '(' token
      buffer[i+1] = MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].green);
                                ^
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:864:20: error: 'MagickCore' has not been declared
      buffer[i+2] = MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].blue);
                    ^~~~~~~~~~
In file included from /usr/include/magick/analyze.h:18:0,
                 from /usr/include/magick/api.h:55,
                 from /usr/include/Magick++/Include.h:39,
                 from /usr/include/Magick++.h:9,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:57,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:28:
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:864:32: error: expected unqualified-id before '(' token
      buffer[i+2] = MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].blue);
                                ^
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:865:26: error: 'MagickCore' has not been declared
      buffer[i+3] = 255 - MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].opacity);
                          ^~~~~~~~~~
In file included from /usr/include/magick/analyze.h:18:0,
                 from /usr/include/magick/api.h:55,
                 from /usr/include/Magick++/Include.h:39,
                 from /usr/include/Magick++.h:9,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:57,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:28:
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/Frame.cpp:865:38: error: expected unqualified-id before '(' token
      buffer[i+3] = 255 - MagickCore::ScaleQuantumToChar((Magick::Quantum) pixels[n].opacity);

terminated by signal SIGSEGV (Address boundary error) when use openshot.QtImageReader() to loading a SVG file

My system environments:

  • Ubuntu 16.04.1 LTS
  • Python 3.5.2
  • libopenshot 0.1.3

Python file test.py:

import openshot
print(openshot.QtImageReader('text.svg'))

SVG file text.svg (includes a circle and text):

<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="400" height="300">
    <circle cx="200" cy="130" r="100" style="fill:rgb(255,0,255);opacity:1"/>
    <text style="font-size:24" x="120" y="135">I like svg</text>
</svg>

Now execute python3 test.py it will results:

'python3 test.py' terminated by signal SIGSEGV (Address boundary error)

If I just remove the text tag like this:

<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
    "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="400" height="300">
    <circle cx="200" cy="130" r="100" style="fill:rgb(255,0,255);opacity:1"/>
</svg>

I can get this result correctly:

<openshot.QtImageReader; proxy of <Swig Object of type 'openshot::QtImageReader *' at 0x7f167de03d80> >

Here is other trace infomation from my other program:

Caught signal 11 (SIGSEGV)
---- Unhandled Exception: Stack Trace ----
  /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QFontDatabase::load(QFontPrivate const*, int)  + 0x803 )  [0x7efd62da17e3]
  /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QFontPrivate::engineForScript(int) const  + 0x75  )  [0x7efd62d789f5]
  /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QTextEngine::fontEngine(QScriptItem const&, QFixed*, QFixed*, QFixed*) const  + 0x15b )  [0x7efd62da929b]
  /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QTextEngine::shapeText(int) const         + 0x168 )  [0x7efd62daa088]
  /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QTextEngine::shape(int) const             + 0xcf  )  [0x7efd62daadaf]
  /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QTextLine::layout_helper(int)             + 0x1273)  [0x7efd62dbe793]
  /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QTextLayout::createLine()                 + 0x7b  )  [0x7efd62dbf65b]
  /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5 ( QSvgText::draw(QPainter*, QSvgExtraStates&)  + 0x11c8)  [0x7efd48fa2268]
  /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5 ( QSvgG::draw(QPainter*, QSvgExtraStates&)  + 0xb8  )  [0x7efd48fbc498]
  /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5 ( QSvgTinyDocument::draw(QPainter*, QRectF const&)  + 0x1d0 )  [0x7efd48fc2b70]
  /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/libqsvg.so (                                           + 0x3fd5)  [0x7efd69121fd5]
  /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (                                           + 0x14fec3)  [0x7efd62d34ec3]
  /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QImageReader::read(QImage*)               + 0x2f  )  [0x7efd62d356ff]
  /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QImageReader::read()                      + 0x34  )  [0x7efd62d357b4]
  /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 ( QImage::load(QString const&, char const*)  + 0x53  )  [0x7efd62d18083]
  /usr/lib/x86_64-linux-gnu/libopenshot.so.0 ( openshot::QtImageReader::Open()           + 0x15d )  [0x7efd66fac67d]
  /usr/lib/x86_64-linux-gnu/libopenshot.so.0 ( openshot::FrameMapper::Open()             + 0x22d )  [0x7efd66f99e7d]
  /usr/lib/x86_64-linux-gnu/libopenshot.so.0 ( openshot::Clip::Open()                    + 0x31  )  [0x7efd66f4a161]
  /usr/lib/x86_64-linux-gnu/libopenshot.so.0 ( openshot::Timeline::update_open_clips(openshot::Clip*, bool)  + 0x7b0 )  [0x7efd66fb3030]
  /usr/lib/x86_64-linux-gnu/libopenshot.so.0 ( openshot::Timeline::find_intersecting_clips(long, int, bool)  + 0x37a )  [0x7efd66fb384a]
  /usr/lib/x86_64-linux-gnu/libopenshot.so.0 ( openshot::Timeline::GetFrame(long)        + 0x6e9 )  [0x7efd66fb4199]
  /usr/lib/python3/dist-packages/_openshot.cpython-35m-x86_64-linux-gnu.so (                                           + 0xaf43c)  [0x7efd6791e43c]
  python3                        ( PyCFunction_Call                          + 0x4f  )  [0x4e9b9f]
  python3                        ( PyEval_EvalFrameEx                        + 0x614 )  [0x524414]
  python3                        ( PyEval_EvalFrameEx                        + 0x4a14)  [0x528814]
  python3                        (                                                   )  [0x52d2e3]
  python3                        ( PyEval_EvalCode                           + 0x1f  )  [0x52dfdf]
  python3                        (                                                   )  [0x5fd2c2]
  python3                        ( PyRun_FileExFlags                         + 0x9a  )  [0x5ff76a]
  python3                        ( PyRun_SimpleFileExFlags                   + 0x1bc )  [0x5ff95c]
  python3                        ( Py_Main                                   + 0x456 )  [0x63e7d6]
  python3                        ( main                                      + 0xe1  )  [0x4cfe41]
  /lib/x86_64-linux-gnu/libc.so.6 ( __libc_start_main                         + 0xf0  )  [0x7efd6893c830]
  python3                        ( _start                                    + 0x29  )  [0x5d5f29]
---- End of Stack Trace ----
QMutex: destroying locked mutex

It seems there are some problems when loading a SVG file that includes some text? Someone help me?

Deprecation warnings with ffmpeg

The latest build on Debian Stretch / unstable is producing a lot of deprecation warnings related to ffmpeg:

/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp: In member function 'virtual void openshot::FFmpegReader::Open()':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:145:32: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    if (pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO && videoStream < 0) {
                                ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:145:32: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    if (pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO && videoStream < 0) {
                                ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:145:32: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    if (pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO && videoStream < 0) {
                                ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:149:32: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    if (pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO && audioStream < 0) {
                                ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:149:32: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    if (pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO && audioStream < 0) {
                                ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:149:32: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    if (pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO && audioStream < 0) {
                                ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:164:50: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    pCodecCtx = pFormatCtx->streams[videoStream]->codec;
                                                  ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:164:50: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    pCodecCtx = pFormatCtx->streams[videoStream]->codec;
                                                  ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:164:50: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    pCodecCtx = pFormatCtx->streams[videoStream]->codec;
                                                  ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:193:50: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    aCodecCtx = pFormatCtx->streams[audioStream]->codec;
                                                  ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:193:50: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    aCodecCtx = pFormatCtx->streams[audioStream]->codec;
                                                  ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:193:50: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
    aCodecCtx = pFormatCtx->streams[audioStream]->codec;
                                                  ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp: In member function 'int openshot::FFmpegReader::GetNextPacket()':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:690:3: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
   av_free_packet(next_packet);
   ^~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:690:29: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
   av_free_packet(next_packet);
                             ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp: In member function 'bool openshot::FFmpegReader::GetAVFrame()':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:706:2: warning: 'int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)' is deprecated [-Wdeprecated-declarations]
  avcodec_decode_video2(pCodecCtx, next_frame, &frameFinished, packet);
  ^~~~~~~~~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4812:5: note: declared here
 int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:706:69: warning: 'int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)' is deprecated [-Wdeprecated-declarations]
  avcodec_decode_video2(pCodecCtx, next_frame, &frameFinished, packet);
                                                                     ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4812:5: note: declared here
 int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:714:3: warning: 'int avpicture_alloc(AVPicture*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   avpicture_alloc(copyFrame, pCodecCtx->pix_fmt, info.width, info.height);
   ^~~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5441:5: note: declared here
 int avpicture_alloc(AVPicture *picture, enum AVPixelFormat pix_fmt, int width, int height);
     ^~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:714:73: warning: 'int avpicture_alloc(AVPicture*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   avpicture_alloc(copyFrame, pCodecCtx->pix_fmt, info.width, info.height);
                                                                         ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5441:5: note: declared here
 int avpicture_alloc(AVPicture *picture, enum AVPixelFormat pix_fmt, int width, int height);
     ^~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:715:3: warning: 'void av_picture_copy(AVPicture*, const AVPicture*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   av_picture_copy(copyFrame, (AVPicture *) next_frame, pCodecCtx->pix_fmt, info.width, info.height);
   ^~~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5474:6: note: declared here
 void av_picture_copy(AVPicture *dst, const AVPicture *src,
      ^~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:715:99: warning: 'void av_picture_copy(AVPicture*, const AVPicture*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   av_picture_copy(copyFrame, (AVPicture *) next_frame, pCodecCtx->pix_fmt, info.width, info.height);
                                                                                                   ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5474:6: note: declared here
 void av_picture_copy(AVPicture *dst, const AVPicture *src,
      ^~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp: In member function 'void openshot::FFmpegReader::ProcessVideoPacket(long int)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:849:14: warning: 'int avpicture_get_size(AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   numBytes = avpicture_get_size(PIX_FMT_RGBA, width, height);
              ^~~~~~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5468:5: note: declared here
 int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height);
     ^~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:849:60: warning: 'int avpicture_get_size(AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   numBytes = avpicture_get_size(PIX_FMT_RGBA, width, height);
                                                            ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5468:5: note: declared here
 int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height);
     ^~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:855:3: warning: 'int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   avpicture_fill((AVPicture *) pFrameRGB, buffer, PIX_FMT_RGBA, width, height);
   ^~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5453:5: note: declared here
 int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
     ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:855:78: warning: 'int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   avpicture_fill((AVPicture *) pFrameRGB, buffer, PIX_FMT_RGBA, width, height);
                                                                              ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5453:5: note: declared here
 int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
     ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:858:40: warning: 'AVPicture::data' is deprecated [-Wdeprecated-declarations]
   sws_scale(img_convert_ctx, my_frame->data, my_frame->linesize, 0,
                                        ^~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3892:39: note: declared here
     uint8_t *data[AV_NUM_DATA_POINTERS];    ///< pointers to the image data planes
                                       ^
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:858:40: warning: 'AVPicture::data' is deprecated [-Wdeprecated-declarations]
   sws_scale(img_convert_ctx, my_frame->data, my_frame->linesize, 0,
                                        ^~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3892:39: note: declared here
     uint8_t *data[AV_NUM_DATA_POINTERS];    ///< pointers to the image data planes
                                       ^
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:858:40: warning: 'AVPicture::data' is deprecated [-Wdeprecated-declarations]
   sws_scale(img_convert_ctx, my_frame->data, my_frame->linesize, 0,
                                        ^~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3892:39: note: declared here
     uint8_t *data[AV_NUM_DATA_POINTERS];    ///< pointers to the image data planes
                                       ^
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:858:56: warning: 'AVPicture::linesize' is deprecated [-Wdeprecated-declarations]
   sws_scale(img_convert_ctx, my_frame->data, my_frame->linesize, 0,
                                                        ^~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3894:38: note: declared here
     int linesize[AV_NUM_DATA_POINTERS];     ///< number of bytes per line
                                      ^
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:858:56: warning: 'AVPicture::linesize' is deprecated [-Wdeprecated-declarations]
   sws_scale(img_convert_ctx, my_frame->data, my_frame->linesize, 0,
                                                        ^~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3894:38: note: declared here
     int linesize[AV_NUM_DATA_POINTERS];     ///< number of bytes per line
                                      ^
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:858:56: warning: 'AVPicture::linesize' is deprecated [-Wdeprecated-declarations]
   sws_scale(img_convert_ctx, my_frame->data, my_frame->linesize, 0,
                                                        ^~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3894:38: note: declared here
     int linesize[AV_NUM_DATA_POINTERS];     ///< number of bytes per line
                                      ^
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp: In member function 'void openshot::FFmpegReader::ProcessAudioPacket(long int, long int, int)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:931:13: warning: 'int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)' is deprecated [-Wdeprecated-declarations]
  int used = avcodec_decode_audio4(aCodecCtx, audio_frame, &frame_finished, my_packet);
             ^~~~~~~~~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4763:5: note: declared here
 int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:931:85: warning: 'int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)' is deprecated [-Wdeprecated-declarations]
  int used = avcodec_decode_audio4(aCodecCtx, audio_frame, &frame_finished, my_packet);
                                                                                     ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4763:5: note: declared here
 int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'void openshot::FFmpegWriter::SetOption(openshot::StreamType, std::__cxx11::string, std::__cxx11::string)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:219:17: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   c = video_st->codec;
                 ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:219:17: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   c = video_st->codec;
                 ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:219:17: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   c = video_st->codec;
                 ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:221:17: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   c = audio_st->codec;
                 ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:221:17: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   c = audio_st->codec;
                 ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:221:17: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   c = audio_st->codec;
                 ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'void openshot::FFmpegWriter::flush_encoders()':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:543:52: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     if (info.has_audio && audio_codec && audio_st->codec->codec_type == AVMEDIA_TYPE_AUDIO && audio_codec->frame_size <= 1)
                                                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:543:52: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     if (info.has_audio && audio_codec && audio_st->codec->codec_type == AVMEDIA_TYPE_AUDIO && audio_codec->frame_size <= 1)
                                                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:543:52: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     if (info.has_audio && audio_codec && audio_st->codec->codec_type == AVMEDIA_TYPE_AUDIO && audio_codec->frame_size <= 1)
                                                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:545:37: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     if (info.has_video && video_st->codec->codec_type == AVMEDIA_TYPE_VIDEO && (oc->oformat->flags & AVFMT_RAWPICTURE) && video_codec->codec->id == AV_CODEC_ID_RAWVIDEO)
                                     ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:545:37: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     if (info.has_video && video_st->codec->codec_type == AVMEDIA_TYPE_VIDEO && (oc->oformat->flags & AVFMT_RAWPICTURE) && video_codec->codec->id == AV_CODEC_ID_RAWVIDEO)
                                     ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:545:37: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     if (info.has_video && video_st->codec->codec_type == AVMEDIA_TYPE_VIDEO && (oc->oformat->flags & AVFMT_RAWPICTURE) && video_codec->codec->id == AV_CODEC_ID_RAWVIDEO)
                                     ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:572:17: warning: 'int avcodec_encode_video2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
    error_code = avcodec_encode_video2(video_codec, &pkt, NULL, &got_packet);
                 ^~~~~~~~~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5323:5: note: declared here
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:572:75: warning: 'int avcodec_encode_video2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
    error_code = avcodec_encode_video2(video_codec, &pkt, NULL, &got_packet);
                                                                           ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5323:5: note: declared here
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:646:17: warning: 'int avcodec_encode_audio2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
    error_code = avcodec_encode_audio2(audio_codec, &pkt, NULL, &got_packet);
                 ^~~~~~~~~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5284:5: note: declared here
 int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:646:75: warning: 'int avcodec_encode_audio2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
    error_code = avcodec_encode_audio2(audio_codec, &pkt, NULL, &got_packet);
                                                                           ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5284:5: note: declared here
 int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:678:4: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
    av_free_packet(&pkt);
    ^~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:678:23: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
    av_free_packet(&pkt);
                       ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'void openshot::FFmpegWriter::close_video(AVFormatContext*, AVStream*)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:687:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  avcodec_close(st->codec);
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:687:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  avcodec_close(st->codec);
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:687:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  avcodec_close(st->codec);
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'void openshot::FFmpegWriter::close_audio(AVFormatContext*, AVStream*)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:694:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  avcodec_close(st->codec);
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:694:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  avcodec_close(st->codec);
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:694:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  avcodec_close(st->codec);
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'void openshot::FFmpegWriter::Close()':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:738:29: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   av_freep(&oc->streams[i]->codec);
                             ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:738:29: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   av_freep(&oc->streams[i]->codec);
                             ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:738:29: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   av_freep(&oc->streams[i]->codec);
                             ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'AVStream* openshot::FFmpegWriter::add_audio_stream()':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:796:39: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     avcodec_get_context_defaults3(st->codec, codec);
                                       ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:796:39: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     avcodec_get_context_defaults3(st->codec, codec);
                                       ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:796:39: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     avcodec_get_context_defaults3(st->codec, codec);
                                       ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:798:10: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  c = st->codec;
          ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:798:10: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  c = st->codec;
          ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:798:10: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  c = st->codec;
          ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'AVStream* openshot::FFmpegWriter::add_video_stream()':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:884:39: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     avcodec_get_context_defaults3(st->codec, codec);
                                       ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:884:39: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     avcodec_get_context_defaults3(st->codec, codec);
                                       ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:884:39: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
     avcodec_get_context_defaults3(st->codec, codec);
                                       ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:886:10: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  c = st->codec;
          ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:886:10: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  c = st->codec;
          ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:886:10: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  c = st->codec;
          ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'void openshot::FFmpegWriter::open_audio(AVFormatContext*, AVStream*)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:961:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  audio_codec = st->codec;
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:961:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  audio_codec = st->codec;
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:961:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  audio_codec = st->codec;
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:981:15: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   switch (st->codec->codec_id) {
               ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:981:15: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   switch (st->codec->codec_id) {
               ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:981:15: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
   switch (st->codec->codec_id) {
               ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'void openshot::FFmpegWriter::open_video(AVFormatContext*, AVStream*)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1018:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  video_codec = st->codec;
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1018:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  video_codec = st->codec;
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1018:20: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  video_codec = st->codec;
                    ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'void openshot::FFmpegWriter::write_audio_packets(bool)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1312:21: warning: 'int avcodec_encode_audio2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
    int error_code = avcodec_encode_audio2(audio_codec, &pkt, frame_final, &got_packet_ptr);
                     ^~~~~~~~~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5284:5: note: declared here
 int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1312:90: warning: 'int avcodec_encode_audio2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
    int error_code = avcodec_encode_audio2(audio_codec, &pkt, frame_final, &got_packet_ptr);
                                                                                          ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5284:5: note: declared here
 int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1351:4: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
    av_free_packet(&pkt);
    ^~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1351:23: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
    av_free_packet(&pkt);
                       ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'AVFrame* openshot::FFmpegWriter::allocate_avframe(AVPixelFormat, int, int, int*, uint8_t*)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1383:17: warning: 'int avpicture_get_size(AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
  *buffer_size = avpicture_get_size(pix_fmt, width, height);
                 ^~~~~~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5468:5: note: declared here
 int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height);
     ^~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1383:58: warning: 'int avpicture_get_size(AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
  *buffer_size = avpicture_get_size(pix_fmt, width, height);
                                                          ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5468:5: note: declared here
 int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height);
     ^~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1391:3: warning: 'int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   avpicture_fill((AVPicture *)new_av_frame, new_buffer, pix_fmt, width, height);
   ^~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5453:5: note: declared here
 int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
     ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1391:79: warning: 'int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   avpicture_fill((AVPicture *)new_av_frame, new_buffer, pix_fmt, width, height);
                                                                               ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5453:5: note: declared here
 int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
     ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'void openshot::FFmpegWriter::process_video_packet(std::tr1::shared_ptr<openshot::Frame>)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1438:3: warning: 'int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   avpicture_fill((AVPicture *) frame_source, (uint8_t*)pixels, PIX_FMT_RGBA, source_image_width, source_image_height);
   ^~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5453:5: note: declared here
 int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
     ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1438:117: warning: 'int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
   avpicture_fill((AVPicture *) frame_source, (uint8_t*)pixels, PIX_FMT_RGBA, source_image_width, source_image_height);
                                                                                                                     ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5453:5: note: declared here
 int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
     ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'bool openshot::FFmpegWriter::write_video_packet(std::tr1::shared_ptr<openshot::Frame>, AVFrame*)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1484:3: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
   av_free_packet(&pkt);
   ^~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1484:22: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
   av_free_packet(&pkt);
                      ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1508:17: warning: 'int avcodec_encode_video2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
    error_code = avcodec_encode_video2(video_codec, &pkt, frame_final, &got_packet_ptr);
                 ^~~~~~~~~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5323:5: note: declared here
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1508:86: warning: 'int avcodec_encode_video2(AVCodecContext*, AVPacket*, const AVFrame*, int*)' is deprecated [-Wdeprecated-declarations]
    error_code = avcodec_encode_video2(video_codec, &pkt, frame_final, &got_packet_ptr);
                                                                                      ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5323:5: note: declared here
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
     ^~~~~~~~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1562:3: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
   av_free_packet(&pkt);
   ^~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1562:22: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
   av_free_packet(&pkt);
                      ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp: In member function 'void openshot::FFmpegWriter::InitScalers(int, int)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1581:16: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  c = video_st->codec;
                ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1581:16: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  c = video_st->codec;
                ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:1581:16: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
  c = video_st->codec;
                ^~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:40:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegWriter.h:39,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegWriter.cpp:31:
/usr/include/x86_64-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp: In member function 'void openshot::FFmpegReader::CheckFPS()':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:1780:2: warning: 'int avpicture_alloc(AVPicture*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
  avpicture_alloc(pFrame, pCodecCtx->pix_fmt, info.width, info.height);
  ^~~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5441:5: note: declared here
 int avpicture_alloc(AVPicture *picture, enum AVPixelFormat pix_fmt, int width, int height);
     ^~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:1780:69: warning: 'int avpicture_alloc(AVPicture*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
  avpicture_alloc(pFrame, pCodecCtx->pix_fmt, info.width, info.height);
                                                                     ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5441:5: note: declared here
 int avpicture_alloc(AVPicture *picture, enum AVPixelFormat pix_fmt, int width, int height);
     ^~~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp: In member function 'void openshot::FFmpegReader::RemoveAVFrame(AVPicture*)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:1908:4: warning: 'void avpicture_free(AVPicture*)' is deprecated [-Wdeprecated-declarations]
    avpicture_free(frames[remove_frame]);
    ^~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5447:6: note: declared here
 void avpicture_free(AVPicture *picture);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:1908:39: warning: 'void avpicture_free(AVPicture*)' is deprecated [-Wdeprecated-declarations]
    avpicture_free(frames[remove_frame]);
                                       ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:5447:6: note: declared here
 void avpicture_free(AVPicture *picture);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp: In member function 'void openshot::FFmpegReader::RemoveAVPacket(AVPacket*)':
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:1929:4: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
    av_free_packet(remove_packet);
    ^~~~~~~~~~~~~~
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);
      ^~~~~~~~~~~~~~
/«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:1929:32: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
    av_free_packet(remove_packet);
                                ^
In file included from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegUtilities.h:39:0,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ChannelLayouts.h:32,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Frame.h:60,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/Cache.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/ReaderBase.h:36,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/../include/FFmpegReader.h:34,
                 from /«BUILDDIR»/libopenshot-0.1.2+ds1/src/FFmpegReader.cpp:31:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:4473:6: note: declared here
 void av_free_packet(AVPacket *pkt);

build fails with imagemagick-7 due to API changes

[ 50%] Building CXX object src/CMakeFiles/openshot.dir/Frame.cpp.o              
cd /var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7_build/src && /usr/bin/x86_64-pc-linux-gnu-g++ -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -DOPENSHOT_IMAGEMAGICK_COMPATIBILITY=0 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MULTIMEDIAWIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DUSE_IMAGEMAGICK=1 -Dopenshot_EXPORTS -I/usr/include/ImageMagick-7 -I/usr/include/libopenshot-audio -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtMultimedia -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtMultimediaWidgets -I/var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7/src/../thirdparty/jsoncpp/include   -DNDEBUG -march=native -mtune=native -O2 -pipe           -g -ggdb  -fopenmp  -fPIC   -fPIC -std=gnu++11 -o CMakeFiles/openshot.dir/Frame.cpp.o -c /var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7/src/Frame.cpp
/var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7/src/Frame.cpp: In member function ‘std::tr1::shared_ptr<Magick::Image> openshot::Frame::GetMagickImage()’:
/var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7/src/Frame.cpp:838:16: error: ‘class Magick::Image’ has no member named ‘matte’
  magick_image->matte(true);            
                ^~~~~
/var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7/src/Frame.cpp: In member function ‘void openshot::Frame::AddMagickImage(std::tr1::shared_ptr<Magick::Image>)’:
/var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7/src/Frame.cpp:860:5: error: ‘PixelPacket’ is not a member of ‘Magick’
     Magick::PixelPacket *pixels = new_image->getPixels(0,0, new_image->columns(), new_image->rows());
     ^~~~~~
/var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7/src/Frame.cpp:860:5: note: suggested alternative:
In file included from /usr/include/ImageMagick-7/MagickCore/stream.h:25:0,      
                 from /usr/include/ImageMagick-7/MagickCore/blob.h:47,          
                 from /usr/include/ImageMagick-7/MagickCore/image.h:131,        
                 from /usr/include/ImageMagick-7/MagickCore/draw.h:22,          
                 from /usr/include/ImageMagick-7/MagickCore/annotate.h:21,      
                 from /usr/include/ImageMagick-7/MagickCore/MagickCore.h:82,    
                 from /usr/include/ImageMagick-7/Magick++/Include.h:42,         
                 from /usr/include/ImageMagick-7/Magick++.h:10,                 
                 from /var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7/src/../include/Frame.h:57,
                 from /var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7/src/Frame.cpp:28:
/usr/include/ImageMagick-7/MagickCore/pixel.h:204:3: note:   ‘MagickCore::PixelPacket’
 } PixelPacket;     
   ^~~~~~~~~~~
/var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7/src/Frame.cpp:860:26: error: ‘pixels’ was not declared in this scope
     Magick::PixelPacket *pixels = new_image->getPixels(0,0, new_image->columns(), new_image->rows());
                          ^~~~~~
make[2]: *** [src/CMakeFiles/openshot.dir/build.make:787: src/CMakeFiles/openshot.dir/Frame.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7_build'
make[1]: *** [CMakeFiles/Makefile2:129: src/CMakeFiles/openshot.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-libs/libopenshot-0.1.7/work/libopenshot-0.1.7_build'
make: *** [Makefile:152: all] Error 2   

This was also reported to Ubuntu last year but seems to not have found its way here.

Could NOT find FFMPEG (missing: FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIR)

I'm having trouble with cmake ...

I successfully installed libopenshot-audio with no trouble and have the ffmpeg/libav* libraries installed from source, but cmake claims the ffmpeg libraries don't exist.

-------------------------------------------------------------
Welcome to the OpenShot Build System! CMake will now check for all required build
dependencies and notify you of any missing files or other issues. If you have any
questions or issues, please visit <http://www.openshot.org/>.
--------------------------------------------------------------
Determining Version Number (from Version.h file)
--> MAJOR Version: 0
--> MINOR Version: 0
--> BUILD Version: 5
--> SO/API/ABI Version: 3
--> VERSION: 0.0.5

CMake Warning (dev) at CMakeLists.txt:66 (PROJECT):
  Policy CMP0048 is not set: project() command manages VERSION variables.
  Run "cmake --help-policy CMP0048" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  The following variable(s) would be set to empty:

    PROJECT_VERSION
This warning is for project developers.  Use -Wno-dev to suppress it.

--------------------------------------------------------------
Generating build files for openshot (0.0.5)
-- Could NOT find FFMPEG (missing:  FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIR) 

'LIBOPENSHOT_AUDIO_INCLUDE_DIRS:/usr/local/include/libopenshot-audio'
-- Could NOT find Ruby (missing:  RUBY_EXECUTABLE RUBY_INCLUDE_DIR RUBY_LIBRARY) 
-- Could NOT find FFMPEG (missing:  FFMPEG_LIBRARIES FFMPEG_INCLUDE_DIR) 

CMake Warning (dev) at tests/CMakeLists.txt:176 (ADD_CUSTOM_TARGET):
  Policy CMP0037 is not set: Target names should not be reserved and should
  match a validity pattern.  Run "cmake --help-policy CMP0037" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  The target name "test" is reserved or not valid for certain CMake features,
  such as generator expressions, and may result in undefined behavior.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at cmake/Modules/UseDoxygen.cmake:137 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target "doc".
Call Stack (most recent call first):
  CMakeLists.txt:84 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
AVRESAMPLE_INCLUDE_DIR
   used as include directory in directory /home/steven/goprojects/github.com/OpenShot/libopenshot/src
   used as include directory in directory /home/steven/goprojects/github.com/OpenShot/libopenshot/src
   used as include directory in directory /home/steven/goprojects/github.com/OpenShot/libopenshot/src
   used as include directory in directory /home/steven/goprojects/github.com/OpenShot/libopenshot/src/bindings/python
   used as include directory in directory /home/steven/goprojects/github.com/OpenShot/libopenshot/tests
   used as include directory in directory /home/steven/goprojects/github.com/OpenShot/libopenshot/tests
AVRESAMPLE_LIBRARY
    linked by target "openshot" in directory /home/steven/goprojects/github.com/OpenShot/libopenshot/src

-- Configuring incomplete, errors occurred!
See also "/home/steven/goprojects/github.com/OpenShot/libopenshot/build/CMakeFiles/CMakeOutput.log".

libavresample, for example, exists at /usr/lib/x86_64-linux-gnu/libavresample.so.2.

How do I fix this?

Documentation

Very nice and detailed documentation in InstallationGuide.pdf!

However, under "Build & Install OpenShot Video Library (libopenshot) on Linux ", it stands that you should run "python" in order to test the python bindings. This will by default start python 2.7, and when I typed "import openshot" I directly got errors, so apparently the API is only compatible with python 3. Perhaps it should stand python3 instead of python.

Issue building libopenshot with JuceHeader.h

I installed libopenshot-audio in a custom directory (let's say /home/user/local). When I now try to install libopenshot, CMake correctly find libopenshot-audio. However when building the lib with make, I have an error:

$ cmake -DCMAKE_INSTALL_PREFIX=/home/user/local -DLIBOPENSHOT_AUDIO_BASE_DIR=/home/user/local ..

...
-- Found LIBOPENSHOT_AUDIO: /home/user/local/lib/libopenshot-audio.so  
'LIBOPENSHOT_AUDIO_INCLUDE_DIRS:/home/user/local'
...

And

$ make
[  1%] Generating __/include/Qt/moc_VideoRenderer.cpp
[  2%] Generating __/include/Qt/moc_AudioPlaybackThread.cpp
/opt/local/openshot/libopenshot/include/Qt/AudioPlaybackThread.h:0: Note: No relevant classes found. No output generated.
[  3%] Generating __/include/Qt/moc_VideoCacheThread.cpp
/opt/local/openshot/libopenshot/include/Qt/VideoCacheThread.h:0: Note: No relevant classes found. No output generated.
[  5%] Generating __/include/Qt/moc_PlayerDemo.cpp
[  6%] Generating __/include/Qt/moc_PlayerPrivate.cpp
/opt/local/openshot/libopenshot/include/Qt/PlayerPrivate.h:0: Note: No relevant classes found. No output generated.
[  7%] Generating __/include/Qt/moc_VideoRenderWidget.cpp
[  9%] Generating __/include/Qt/moc_VideoPlaybackThread.cpp
/opt/local/openshot/libopenshot/include/Qt/VideoPlaybackThread.h:0: Note: No relevant classes found. No output generated.
Scanning dependencies of target openshot
[ 10%] Building CXX object src/CMakeFiles/openshot.dir/AudioBufferSource.cpp.o
In file included from /opt/local/openshot/libopenshot/src/AudioBufferSource.cpp:28:0:
/opt/local/openshot/libopenshot/src/../include/AudioBufferSource.h:40:40: fatal error: JuceLibraryCode/JuceHeader.h: No such file or directory
 #include "JuceLibraryCode/JuceHeader.h"
                                        ^
compilation terminated.
make[2]: *** [src/CMakeFiles/openshot.dir/AudioBufferSource.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/openshot.dir/all] Error 2
make: *** [all] Error 2

I have the feeling that the issue comes from here https://github.com/OpenShot/libopenshot/blob/master/cmake/Modules/FindOpenShotAudio.cmake#L46 ...

Any idea ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.