videotoolbox failed to encode after a background switch operation

718 views
Skip to first unread message

Ray Wang

unread,
Jan 4, 2016, 4:33:54 AM1/4/16
to discuss-webrtc
Hi:

I'm using videotoolbox on iOS for H.264 hardware encoding & decoding, it works fine, but when i put application into background and switch it back again, 
the encoding and decoding will fail, here is the logs:

[293:593] [21935] (h264_video_toolbox_decoder.cc:179): Failed to decode frame with code: -12903

[293:593] [21935] (generic_decoder.cc:169): Failed to decode frame with timestamp 2671369406, error code: -1


[293:276] [17363] (h264_video_toolbox_encoder.cc:64): VTSessionSetProperty failed to set: AverageBitRate to 97000: -12903

[293:276] [17363] (h264_video_toolbox_encoder.cc:281): Failed to create pixel buffer: -6661

[293:276] [17363] (video_sender.cc:321): Failed to encode frame. Error code: -1



it seems that VTCompressionSession instance was broken after a background switch, i have no idea why this is happening, please help if anyone knows.


Christoffer Jansson

unread,
Jan 4, 2016, 5:40:10 AM1/4/16
to discuss-webrtc, tkc...@google.com
Hi,

I would ask you to file a bug for this but the WebRTC tracker does not accept new issues atm as mentioned in this post.

Once it's up again I will let you know.

+Zeke Chin do you know if this is a known issue?

/Chris

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/be98e8b7-76ac-4181-85d5-57b6825f651b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Zeke Chin

unread,
Jan 4, 2016, 12:02:12 PM1/4/16
to Christoffer Jansson, discuss-webrtc

Ray Wang

unread,
Jan 4, 2016, 8:10:43 PM1/4/16
to discuss-webrtc, jan...@google.com
Thanks, this bug seems exactly the same, but the patch can not solve the encoder side.


在 2016年1月5日星期二 UTC+8上午1:02:12,Zeke Chin写道:
Reply all
Reply to author
Forward
0 new messages