Anton, You'll need to ensure the writer continues to work with older versions, however. You may need to enclose those in #if.#endif blocks
Utkarsh On Thu, May 23, 2013 at 3:32 PM, Anton Gladky <[email protected]> wrote: > The fix for libav9 is very simple: > > --- a/VTK/IO/FFMPEG/vtkFFMPEGWriter.cxx > +++ b/VTK/IO/FFMPEG/vtkFFMPEGWriter.cxx > @@ -153,7 +153,7 @@ > strcpy(this->avFormatContext->filename, this->Writer->GetFileName()); > > //create a stream for that file > - this->avStream = av_new_stream(this->avFormatContext, 0); > + this->avStream = avformat_new_stream(this->avFormatContext, 0); > if (!this->avStream) > { > vtkGenericWarningMacro (<< "Could not create video stream."); > @@ -231,7 +231,7 @@ > vtkGenericWarningMacro (<< "Codec not found." ); > return 0; > } > - if (avcodec_open(c, codec) < 0) > + if (avcodec_is_open(c) < 0) > { > vtkGenericWarningMacro (<< "Could not open codec."); > return 0; > > Anton > > > 2013/5/23 Utkarsh Ayachit <[email protected]>: >> I meant to say "This should be fixed *now* as well". I've pushed a fix >> to the same gerrit topic (http://review.source.kitware.com/#/c/11387/) >> >> Thanks for your help. >> Utkarsh >> >> On Thu, May 23, 2013 at 10:22 AM, Anton Gladky <[email protected]> >> wrote: >>> 2013/5/23 Utkarsh Ayachit <[email protected]>: >>>> Anton, >>>> >>>>> ----------- >>>>> ParaViewCore/ServerManager/Default/vtkSMAnimationSceneImageWriter.cxx:49:32: >>>>> fatal error: vtkFFMPEGWriter.h: No such file or directory >>>>> ----------- >>>> >>>> Doh! This should be fixed not as well. >>>> >>>> >>>>> Also, it seems, VTK/IO/FFMPEG/vtkFFMPEGWriter.cxx needs som fixing. For >>>>> example, >>>>> avcodec_open() is not persist any more. There is avcodec_is_open instead. >>>> >>>> Argh! Looks like FFMPEG changed their API one more time! Alas, don't >>>> think I have the resources to get this fixed right now. What version >>>> of ffmpeg is this, in any case? >>> >>> It seems, 9.3. If the first issue will be solved, I will try to help >>> with this one. >>> >>> Thanks, >>> >>> Anton _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
