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

 
 

bug #49227: [octave forge] (video) error with rawvideo codec

Submitter:  Avinoam Kalma <avinoam>
Submitted:  Thu 29 Sep 2016 07:45:04 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Avinoam Open/Closed:  * Closed
Release:  * other Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 22 Nov 2021 09:19:52 AM UTC, comment #5: 

video-2.0.0 was a complete rewrite and implements the new VideoReader and VideoWriter classdefs so I think this can be closed.

Andreas Weber <andy1978>
Group Member
Fri 30 Sep 2016 06:30:00 PM UTC, comment #4: 

I have installed this version. Some warnings:


AVHandler.cc: In member function 'int AVHandler::write_frame()':
AVHandler.cc:331:14: warning: 'AVCodecContext::coded_frame' is deprecated (declared at d:\oct
ave\octave-4.3.0+\include\libavcodec\avcodec.h:3024) [-Wdeprecated-declarations]
       if (c->coded_frame)
              ^
AVHandler.cc:331:14: warning: 'AVCodecContext::coded_frame' is deprecated (declared at d:\oct
ave\octave-4.3.0+\include\libavcodec\avcodec.h:3024) [-Wdeprecated-declarations]
AVHandler.cc:332:22: warning: 'AVCodecContext::coded_frame' is deprecated (declared at d:\oct
ave\octave-4.3.0+\include\libavcodec\avcodec.h:3024) [-Wdeprecated-declarations]
         pkt.pts = c->coded_frame->pts;

AVHandler.cc:332:22: warning: 'AVCodecContext::coded_frame' is deprecated (declared at d:\oct
ave\octave-4.3.0+\include\libavcodec\avcodec.h:3024) [-Wdeprecated-declarations]
AVHandler.cc:333:14: warning: 'AVCodecContext::coded_frame' is deprecated (declared at d:\oct
ave\octave-4.3.0+\include\libavcodec\avcodec.h:3024) [-Wdeprecated-declarations]
       if (c->coded_frame && c->coded_frame->key_frame)
              ^
AVHandler.cc:333:14: warning: 'AVCodecContext::coded_frame' is deprecated (declared at d:\oct
ave\octave-4.3.0+\include\libavcodec\avcodec.h:3024) [-Wdeprecated-declarations]
AVHandler.cc:333:32: warning: 'AVCodecContext::coded_frame' is deprecated (declared at d:\oct
ave\octave-4.3.0+\include\libavcodec\avcodec.h:3024) [-Wdeprecated-declarations]
       if (c->coded_frame && c->coded_frame->key_frame)
                                ^
AVHandler.cc:333:32: warning: 'AVCodecContext::coded_frame' is deprecated (declared at d:\oct
ave\octave-4.3.0+\include\libavcodec\avcodec.h:3024) [-Wdeprecated-declarations]
AVHandler.cc: In member function 'int AVHandler::read_frame(unsigned int)':
AVHandler.cc:358:37: warning: comparison between signed and unsigned integer expressions [-Ws
ign-compare]
   if ((uint64_t)vstream->start_time != AV_NOPTS_VALUE)


I got


>> m = avifile ('m.avi', 'codec', 'rawvideo');
>> A = zeros (512,640, 'double');
>> addframe (m, A);
[avi @ 31d3bcc0] Encoder did not produce proper pts, making some up.


Avinoam Kalma <avinoam>
Group Member
Fri 30 Sep 2016 12:01:29 PM UTC, comment #3: 

I've unpacked video-1.2.3.tar.gz from sourceforge, changed the size of the videobuffer in configure to 1000000 and repacked it. After this I'm able to run your snippet on 4.2.0-rc2. Can you confirm that the attached version fixes this for you?


pkg -verbose install video-1.2.3.tar.gz


But what would be a reasonable size for the video outbut buffer?

(file #38630)

Andreas Weber <andy1978>
Group Member
Fri 30 Sep 2016 11:34:35 AM UTC, comment #2: 

I am using ffmpeg which is bundled with MXE Octave, under Windows.

Avinoam Kalma <avinoam>
Group Member
Fri 30 Sep 2016 06:44:51 AM UTC, comment #1: 

I think it's this line in configure.ac:

AC_DEFINE(VIDEO_OUTBUF_SIZE, [200000], [size of video buffer])


Have you compiled libav or ffmpeg with debugging flags to see this output?

Andreas Weber <andy1978>
Group Member
Thu 29 Sep 2016 07:45:04 PM UTC, original submission:  



m = avifile ('m.avi', 'codec', 'rawvideo');
A = zeros (512,640, 'double');
addframe (m, A);
[rawvideo @ 0c8a6800] User packet is too small (200000 < 491520)
AVHandler: error encoding video frame
error: avifile: error writing frame


How can I change use packet?

Avinoam Kalma <avinoam>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #38630:  video-1.2.3.tar.gz added by andy1978 (47KiB - application/gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by andy1978 (Posted a comment)
  • -email is unavailable- added by avinoam (Submitted the item)
  • -email is unavailable- added by avinoam
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-22 andy1978 Open/ClosedOpen Closed
    2017-08-13 jwe SummaryVideo package: error with rawvideo codec [octave forge] (video) error with rawvideo codec
    2016-11-17 mtmiller Release4.2.0-rc2 other
    2016-09-30 andy1978 Attached File- Added video-1.2.3.tar.gz, #38630
        StatusNone Confirmed
    2016-09-29 avinoam Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code