'av.bytesource.ByteSource' object has no attribute 'size'. We need to change it to length in this line.