-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rs2::pipeline can't playback two IR streams from bag file #1543
Comments
I think this is a bug, try |
@zivsha I added // Playback IR Streams from File
rs2::config config;
config.enable_device_from_file( "two_ir_streams.bag" );
+ config.enable_all_streams();
|
I confirmed that this problem can avoid in following method. // Retrieve Each Streams that contain in File
rs2::config config;
rs2::context context;
const rs2::playback playback = context.load_device( "two_ir_streams.bag" );
const std::vector<rs2::sensor> sensors = playback.query_sensors();
for( const rs2::sensor& sensor : sensors ){
const std::vector<rs2::stream_profile> stream_profiles = sensor.get_stream_profiles();
for( const rs2::stream_profile& stream_profile : stream_profiles ){
config.enable_stream( stream_profile.stream_type(), stream_profile.stream_index() );
}
}
// Playback IR Streams from File
rs2::pipeline pipeline;
config.enable_device_from_file( playback.file_name() );
const rs2::pipeline_profile pipeline_profile = pipeline.start( config );
// Output Enable Streams Name
const std::vector<rs2::stream_profile> stream_profiles = pipeline_profile.get_streams();
for( const rs2::stream_profile& stream_profile : stream_profiles ){
std::cout << stream_profile.stream_name() << std::endl;
}
|
Hi @UnaNancyOwen |
@UnaNancyOwen, the problem has been addressed in 2.14.0, along with significant refactoring of pipeline request resolution. In particular, |
Issue Description
rs2::pipeline
can't correctly playback two IR streams from bag file that recorded two IR streams.Is this a specification of
rs2::pipeline
? Or is this a bug?This code is record IR streams to bag file.
Output is following. It is correctly output the two IR streams.
And, that recorded file can be playback two IR streams correctly using RealSense Viewer.
This code is playback IR streams from bag file that recorded two IR streams.
Output is following.
Infrared 2
is missing. Why?The text was updated successfully, but these errors were encountered: