Opened 4 years ago

Last modified 3 years ago

#16819 new bug

Problems with Encoding / Decoding of avi files

Reported by: jackburton Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Media Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: x86-64

Description (last modified by jackburton)

It seems that since some time, encoding some media into an avi file using the media kit results in a file unplayable by mediaplayer.

I've done the following tests:

MediaPlayer plays it correctly

SMPlayer plays it correctly

  • Converted that file from AVI to AVI (MPEG4, any quality level) using MediaConverter

MediaPlayer cannot play it

SMPlayer plays it correctly

hrev54965, x64

Change History (4)

comment:1 by jackburton, 4 years ago

Description: modified (diff)

comment:2 by jackburton, 4 years ago

Description: modified (diff)

comment:3 by jackburton, 4 years ago

Description: modified (diff)

comment:4 by jackburton, 3 years ago

Log when AVI plays correctly:

~/git> MediaPlayer 
open playlist item: file_example_AVI_480_750kB.avi
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
_InitFromTrack(): keyframes: 1, frame count: 1469440
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
should skip -1 lines at bottom!
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 480 Height 270 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
BMediaEventLooper: SchedulingLatency is 100
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
BMediaEventLooper: SchedulingLatency is 100
VideoProducer::_FrameGeneratorThread: Error sending buffer

Log when AVI doesn't play (after 'conversion' with MediaConverter):

~/git> MediaPlayer 
open playlist item: file_example_AVI_480_750kB.avi
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
Controller::SetTo: InitCheck failed

Log when AVI doesn't play (file generated by BeScreenCapture):

~/git> MediaPlayer 
open playlist item: outputfile_1_1.avi
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
MediaFileTrackSupplier: warning! track index 0 has no duration
MediaTrackVideoSupplier::_SwitchFormat() - preferred color space: B_YUV420
MediaTrackVideoSupplier::_SwitchFormat() -  codec changed colorspace of decoded format (B_YUV420 -> B_RGB32)!
should skip -1 lines at bottom!
VideoConsumer::CreateBuffers - ERROR CREATING VIDEO RING BUFFER (Index 0 Width 1920 Height 1080 Colorspace 8: Out of memory
VideoConsumer::Connected - COULDN'T CREATE BUFFERS
BMediaRoster::Connect: aborting after BBufferConsumer::Connected, status = 0x80000000
VideoProducer::Connect() - consumer error: Out of memory
BMediaRoster::Connect: aborted
Can't connect the video source to the video window... trying without overlays, error: Out of memory
running without audio node
BMediaEventLooper: SchedulingLatency is 100
BMediaEventLooper: SchedulingLatency is 100
BMediaEventLooper: SchedulingLatency is 100


Note: See TracTickets for help on using tickets.