[Paraview] OGG support in Paraview 3.98 rc3

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu May 23 16:55:10 EDT 2013


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 <gladky.anton at gmail.com> 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 <utkarsh.ayachit at kitware.com>:
>> 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 <gladky.anton at gmail.com> wrote:
>>> 2013/5/23 Utkarsh Ayachit <utkarsh.ayachit at kitware.com>:
>>>> 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


More information about the ParaView mailing list