Re: [Paraview] git master and latest ffmpeg

2010-04-29 Thread Michael Wild

On 29. Apr, 2010, at 17:38 , Sven Buijssen wrote:

 Michael,
 
 The problem with ffmpeg IMHO is that it is a moving target (as is also 
 declared on their website). It is almost impossible for ParaView to keep up 
 and just arbitrarily picking any revision is no solution either, because 
 that will cause a lot of trouble for packagers.
 
 It's just that PV and VTK for a month or three now supported both the old
 outdated ffmpeg version from February 2007 or so (downloadable as a tarball 
 from
 the addons section of the VTK software download website) AND the latest 
 ffmpeg.
 Up to last Monday. Given the effort spent to re-add support for newer ffmpeg
 versions and considering that the change in ffmpeg that breaks it this time in
 PV is less complex to work around than last time (headers completely 
 reworked),
 I think we shouldn't let go that easily.

OK, I have to agree there. But unless ffmpeg changes their development model, 
keeping up with them will always be a PITA... That's one of the reasons why I 
created the VTKOggTheoraWriter (and, of course, the licensing/patents issues).

 
 shameless_plugI suggest you give the included Ogg/Theora writer a 
 try./shameless_plug.
 
 I'm well aware of your contribution and compile ParaView with
 -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON -DVTK_USE_FFMPEG_ENCODER:BOOL=ON
 ever since you announced your git fork of PV on this mailing list, so even
 before ogv support has been added to the official source tree. :-)  It's just
 that some of my users prefer avi over ogv.
 
 Sven

Cool. BTW, does anybody here know how to reliably encode a movie for embedding 
in PowerPoint slides? I once found a way to transcode with ffmpeg, but that 
didn't work the last time I tried (although all the .avi files I created with 
the supposedly correct codec choice played fine in MediaPlayer...) The only 
thing that worked was to open the thing in MovieMaker and export it as a 
PowerPoint movie from there. It's beyond me why PowerPoint can't just embed and 
play about any format+codec that MediaPlayer accepts when it is using the 
MediaPlayer components in the first place!


Michael
___
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


Re: [Paraview] git master and latest ffmpeg

2010-04-29 Thread burlen


BTW, does anybody here know how to reliably encode a movie for embedding in 
PowerPoint slides?
I've used these to convert a set of png's saved by PV, it's the second 
line that makes the MS compatible movie.


fmpeg -loop_output 0 -qscale 1 -r 20 -b 9600 -i tpar.%04d.png tpar_vr.mp4
ffmpeg -i tpar_vr.mp4 -qscale 1 -vcodec msmpeg4v2 -acodec mp3 -mbd rd 
-flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 ms2_tpar_vr.avi




Michael Wild wrote:

On 29. Apr, 2010, at 17:38 , Sven Buijssen wrote:

  

Michael,



The problem with ffmpeg IMHO is that it is a moving target (as is also declared 
on their website). It is almost impossible for ParaView to keep up and just 
arbitrarily picking any revision is no solution either, because that will cause 
a lot of trouble for packagers.
  

It's just that PV and VTK for a month or three now supported both the old
outdated ffmpeg version from February 2007 or so (downloadable as a tarball from
the addons section of the VTK software download website) AND the latest ffmpeg.
Up to last Monday. Given the effort spent to re-add support for newer ffmpeg
versions and considering that the change in ffmpeg that breaks it this time in
PV is less complex to work around than last time (headers completely reworked),
I think we shouldn't let go that easily.



OK, I have to agree there. But unless ffmpeg changes their development model, 
keeping up with them will always be a PITA... That's one of the reasons why I 
created the VTKOggTheoraWriter (and, of course, the licensing/patents issues).

  

shameless_plugI suggest you give the included Ogg/Theora writer a 
try./shameless_plug.
  

I'm well aware of your contribution and compile ParaView with
 -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON -DVTK_USE_FFMPEG_ENCODER:BOOL=ON
ever since you announced your git fork of PV on this mailing list, so even
before ogv support has been added to the official source tree. :-)  It's just
that some of my users prefer avi over ogv.

Sven



Cool. BTW, does anybody here know how to reliably encode a movie for embedding 
in PowerPoint slides? I once found a way to transcode with ffmpeg, but that 
didn't work the last time I tried (although all the .avi files I created with 
the supposedly correct codec choice played fine in MediaPlayer...) The only 
thing that worked was to open the thing in MovieMaker and export it as a 
PowerPoint movie from there. It's beyond me why PowerPoint can't just embed and 
play about any format+codec that MediaPlayer accepts when it is using the 
MediaPlayer components in the first place!


Michael
___
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
  


___
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


Re: [Paraview] git master and latest ffmpeg

2010-04-29 Thread Sven Buijssen
Hi,

I'd like to suggest the attached patch as a starting point. It gets PV compiled
again against ffmpeg svn head. On 32 and 64 bit Linux and 64 bit Solaris systems
I did not observe any side effects yet (using gcc only to compile PV, though).

Sven



Dave Partyka wrote, On 29.04.2010 17:46:
 FYI, It is on my todo list to
 
 1. restore dash16 to build VTK against the old FFMPEG
 2. potentially setup a new dashboard that builds against at least a more
 recent version.
 
 On Thu, Apr 29, 2010 at 11:38 AM, Sven Buijssen
 sven.buijs...@tu-dortmund.de mailto:sven.buijs...@tu-dortmund.de wrote:
 
 Michael,
 
  The problem with ffmpeg IMHO is that it is a moving target (as is
 also declared on their website). It is almost impossible for
 ParaView to keep up and just arbitrarily picking any revision is no
 solution either, because that will cause a lot of trouble for packagers.
 
 It's just that PV and VTK for a month or three now supported both
 the old
 outdated ffmpeg version from February 2007 or so (downloadable as a
 tarball from
 the addons section of the VTK software download website) AND the
 latest ffmpeg.
 Up to last Monday. Given the effort spent to re-add support for
 newer ffmpeg
 versions and considering that the change in ffmpeg that breaks it
 this time in
 PV is less complex to work around than last time (headers completely
 reworked),
 I think we shouldn't let go that easily.
 
  shameless_plugI suggest you give the included Ogg/Theora writer
 a try./shameless_plug.
 
 I'm well aware of your contribution and compile ParaView with
  -DVTK_USE_OGGTHEORA_ENCODER:BOOL=ON -DVTK_USE_FFMPEG_ENCODER:BOOL=ON
 ever since you announced your git fork of PV on this mailing list,
 so even
 before ogv support has been added to the official source tree. :-)
  It's just
 that some of my users prefer avi over ogv.
 
 Sven
 ___
 Powered by www.kitware.com http://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
 
 

From 06c8e3e38f5fec2fe0d300ff7f7ab823a03952e3 Mon Sep 17 00:00:00 2001
From: Sven Buijssen sven.buijs...@tu-dortmund.de
Date: Thu, 29 Apr 2010 18:29:20 +0200
Subject: [PATCH] COMP: Fix for ffmpeg revision 22965 and newer

---
 IO/CMakeLists.txt |4 
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/IO/CMakeLists.txt b/IO/CMakeLists.txt
index 72cee22..a0a068f 100644
--- a/IO/CMakeLists.txt
+++ b/IO/CMakeLists.txt
@@ -292,6 +292,10 @@ IF (VTK_USE_FFMPEG_ENCODER)
 SET(KIT_LIBS ${KIT_LIBS}
   ${FFMPEG_swscale_LIBRARY})
   ENDIF (NOT VTK_FFMPEG_HAS_IMG_CONVERT)
+
+  IF(NOT VTK_FFMPEG_HAS_OLD_HEADER)
+ADD_DEFINITIONS(-D__STDC_CONSTANT_MACROS)
+  ENDIF(NOT VTK_FFMPEG_HAS_OLD_HEADER)
 ENDIF (VTK_USE_FFMPEG_ENCODER)
 
 #-
-- 
1.7.1

___
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