bugGNU Octave - Bugs: bug #61721, [octave forge] (video):...

 
 

bug #61721: [octave forge] (video): VideoWriter Duration property is not always updated

Submitter:  Pantxo Diribarne <pantxo>
Submitted:  Thu 23 Dec 2021 12:17:10 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 14 Jan 2022 09:48:43 PM UTC, comment #2: 

Thanks for pushing. I tested the new version on real life videos and it now works for me.

Closing report as fixed.

Pantxo Diribarne <pantxo>
Group Member
Thu 23 Dec 2021 06:00:30 PM UTC, comment #1: 
Andreas Weber <andy1978>
Group Member
Thu 23 Dec 2021 12:17:10 PM UTC, original submission:  

In the current implementation of the VideoWriter, the Duration property is only updated when the FrameCount is retrieved. E.g., the following should return a non zero value (0.033333):

fn = fullfile (tempdir (), "toto.mp4");
w = VideoWriter (fn);
open (w);
writeVideo (w, getframe (gcf));
w.Duration
close (w)


I'll attach a patch when I have a bug number.

CC'ing the package maintainer.

Pantxo Diribarne <pantxo>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #52562:  bug61721.patch added by pantxo (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by andy1978 (Posted a comment)
  • -email is unavailable- added by pantxo (Submitted the item)
  • -email is unavailable- added by pantxo
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-01-14 pantxo StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2021-12-23 andy1978 StatusPatch Submitted Ready For Test
    2021-12-23 pantxo Summary(octave forge) [video]: VideoWriter Duration property is not always updated [octave forge] (video): VideoWriter Duration property is not always updated
    2021-12-23 pantxo Attached File- Added bug61721.patch, #52562
        StatusNone Patch Submitted
    2021-12-23 pantxo Carbon-Copy- Added andy1978

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code