A method, comprising: - obtaining a panorama picture having a plurality of sample rows in a top region, a middle region and a bottom region; - resampling the plurality of sample rows of the top and the bottom region of the panorama picture into a plurality of resampled sample rows (601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612) with decreasing sampling density towards the top-most sample row of the top region respectively the bottom-most sample row of the bottom region of the panorama picture, while retaining the plurality of sample rows of the middle region; and - rearranging the plurality of resampled sample rows (601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612) of the top and the bottom region treated as one-dimensional signals, along a scan consisting of a plurality of nested polygonal chains into a rearranged top sample array and a rearranged bottom sample array, wherein rearranging comprises arranging the resampled top-most sample row of the top region of the panorama picture to the innermost polygonal chain in the rearranged top sample array and arranging the resampled sample row furthest away from the top-most sample row of the panorama picture to the outmost polygonal chain in the rearranged top sample array (650, 670); and - arranging the resampled bottom-most sample row of the bottom region of the panorama picture to the innermost polygonal chain in the rearranged bottom sample array and arranging the resampled sample row furthest away from the bottom-most sample row of the panorama picture to the outmost polygonal chain in the rearranged bottom sample array; and - packing the rearranged top and bottom sample arrays (650, 670) into a single video frame together with the middle region or into a video frame separately from the middle region. - obtaining a panorama picture having a plurality of sample rows in a top region, a middle region and a bottom region; - resampling the plurality of sample rows of the top and the bottom region of the panorama picture into a plurality of resampled sample rows (601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612) with decreasing sampling density towards the top-most sample row of the top region respectively the bottom-most sample row of the bottom region of the panorama picture, while retaining the plurality of sample rows of the middle region; and - rearranging the plurality of resampled sample rows (601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612) of the top and the bottom region treated as one-dimensional signals, along a scan consisting of a plurality of nested polygonal chains into a rearranged top sample array and a rearranged bottom sample array, wherein rearranging comprises arranging the resampled top-most sample row of the top region of the panorama picture to the innermost polygonal chain in the rearranged top sample array and arranging the resampled sample row furthest away from the top-most sample row of the panorama picture to the outmost polygonal chain in the rearranged top sample array (650, 670); and - arranging the resampled bottom-most sample row of the bottom region of the panorama picture to the innermost polygonal chain in the rearranged bottom sample array and arranging the resampled sample row furthest away from the bottom-most sample row of the panorama picture to the outmost polygonal chain in the rearranged bottom sample array; and - packing the rearranged top and bottom sample arrays (650, 670) into a single video frame together with the middle region or into a video frame separately from the middle region.