Dorodnic the RealSense SDK Manager has said regarding converting a bag to video format: "There is no built-in functionality in librealsense for this, but you can accomplish it with python + pyrealsense2 + opencv2-python script".
If your end goal is to extract the video into images though, you may be able to skip the video stage and convert the bag directly into a set of PNG images using the SDK's Convert tool.
Usually, the pose (the orientation) of an object is obtained from live camera data. I have not encountered a case where the pose is calculated from a PNG file.
There was a case in October 2019 where it was described how to get object orientation from a PNG image using the MATLAB computer vision software.
I think I was not so clear to explain, I want to do Odometry with realsense T265 for that I need pose file for my dataset , so is there any way to get pose by making video from that camera, or taking single image from that camera and obtain pose file.
Ultimately need a method to get pose file.
You can get the pose of an object observed by the T265 camera using Apriltags (tags applied to the surface of an object that you want to track). The SDK has an example program for this.
An example of a use of Apriltags is attaching tag stickers or print-outs to construction machinery and observing the movements of a part of the machine such as a digger bucket.
Apriltags can also be used on robots for tracking. For example, navigating a robotic boat towards a dock with Apriltags on it or following another robot with an Apriltag applied to its rear.
But the above message is not useful to me , I want to make dataset similar as Kitti Dataset, I have images for my dataset but need to make "pose file" which I am unable to configure how to generate.
Your question about a pose file and datasets is outside of my knowledge unfortunately. I recommend posting this question at the RealSense GitHub forum, as there are Intel RealSense team members there who have specialist T265 knowledge (I am not a T265 specialist). You can do so by visiting the link below and clicking the New Issue button.
But can you tell me what is ./data_collect.cfg file in https://github.com/IntelRealSense/librealsense/tree/master/tools/data-collect , I have read the document but unable to understand what is .cfg file and how to make that file .