Menu

#252 Video writers for Octave

Run with Octave
open
nobody
None
2022-05-19
2020-12-17
Ulf Lorenz
No

Update: Priority is not too high; Octave produces individual Jpeg files that can be stitched together to form an animation. Not as pretty as getting an animation out, but works ok.

Octave needs the video extension to have a VideoWriter that Wavepacket uses by default. Under Windows, this should be part of the regular distribution (check!), but under Linux, it needs to be installed separately, which can be a moderate pain, because it needs a complete compiler toolchain etc.

If installation of the video component is too difficult, mention explicitly how to disable this feature.

Required switches:

  • To use a VideoWriter, Octave needs to load the extension package "video" (pkg load video).
  • VideoWriter has different arguments in Matlab and Octave; in particular, codec names are different, and guessed from the extension by default; may need some experimenting.

Discussion

  • Ulf Lorenz

    Ulf Lorenz - 2020-12-17
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,6 +3,7 @@
     Suggestion: Add a function doSomething() that checks if Octave or Matlab is running and defers the call to doSomethingOctave or doSomethingMatlab(). Here, doSomething() should be as small as possible, but on the other hand also a coherent unit of code.
    
     Required switches:
    +* to use a VideoWriter, Octave needs to load the extension package "video" (pkg load video).
     * VideoWriter has different arguments in matlab and Octave; in particular, codec names are different, and guessed from the extension by default; may need some experimenting.
     * The overall layout is slightly different. Most notable, the text boxes are moved to different positions.
     * the TextBox property "FitHeightToText" is called "FitBoxToText"  in Octave
    
     
  • Ulf Lorenz

    Ulf Lorenz - 2020-12-17
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,6 +3,7 @@
     Suggestion: Add a function doSomething() that checks if Octave or Matlab is running and defers the call to doSomethingOctave or doSomethingMatlab(). Here, doSomething() should be as small as possible, but on the other hand also a coherent unit of code.
    
     Required switches:
    +
     * to use a VideoWriter, Octave needs to load the extension package "video" (pkg load video).
     * VideoWriter has different arguments in matlab and Octave; in particular, codec names are different, and guessed from the extension by default; may need some experimenting.
     * The overall layout is slightly different. Most notable, the text boxes are moved to different positions.
    
     
  • Burkhard Schmidt

    • summary: Add Octave-specific plotting code --> Video writer
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,9 +4,5 @@
    
     Required switches:
    
    -* to use a VideoWriter, Octave needs to load the extension package "video" (pkg load video).
    -* VideoWriter has different arguments in matlab and Octave; in particular, codec names are different, and guessed from the extension by default; may need some experimenting.
    -* The overall layout is slightly different. Most notable, the text boxes are moved to different positions.
    -* the TextBox property "FitHeightToText" is called "FitBoxToText"  in Octave
    -* the contour handle has no property "color" in Octave
    -* the axis property "XTicLabels" is called "XTicLabel"  in Octave
    +* To use a VideoWriter, Octave needs to load the extension package "video" (pkg load video).
    +* VideoWriter has different arguments in Matlab and Octave; in particular, codec names are different, and guessed from the extension by default; may need some experimenting.
    
     
  • Burkhard Schmidt

    • status: open --> pending
     
  • Burkhard Schmidt

    • summary: Video writer --> Video writers for Octave
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,6 @@
    -Octave and Matlab Gui commands are not completely compatible. Wherever they differ, a bridge should be implemented in the code.
    +Octave needs the video extension to have a VideoWriter that Wavepacket uses by default. Under Windows, this should be part of the regular distribution (check!), but under Linux, it needs to be installed separately, which can be a moderate pain, because it needs a complete compiler toolchain etc.
    
    -Suggestion: Add a function doSomething() that checks if Octave or Matlab is running and defers the call to doSomethingOctave or doSomethingMatlab(). Here, doSomething() should be as small as possible, but on the other hand also a coherent unit of code.
    +If installation of the video component is too difficult, mention explicitly how to disable this feature.
    
     Required switches:
    
     
  • Ulf Lorenz

    Ulf Lorenz - 2022-05-19
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,5 @@
    +**Update:** Priority is not too high; Octave produces individual Jpeg files that can be stitched together to form an animation. Not as pretty as getting an animation out, but works ok.
    +
     Octave needs the video extension to have a VideoWriter that Wavepacket uses by default. Under Windows, this should be part of the regular distribution (check!), but under Linux, it needs to be installed separately, which can be a moderate pain, because it needs a complete compiler toolchain etc.
    
     If installation of the video component is too difficult, mention explicitly how to disable this feature.
    
     
  • Ulf Lorenz

    Ulf Lorenz - 2022-05-19
    • status: pending --> open
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.