let mut encoder = (encfunc)();
let out_str = encoder.init(0, enc_params).unwrap();
out_sm.add_stream(NAStream::clone(&out_str));
-
+
let mux_f = enc_config.mux_reg.find_muxer(enc_config.muxer).unwrap();
let out_name = "assets/test_out/".to_owned() + enc_config.out_name;
let file = File::create(&out_name).unwrap();
vinfo)
} else {
(ScaleInfo { fmt: YUV420_FORMAT, width: 2, height: 2 },
- NAVideoInfo { width: 2, height: 2, format: YUV420_FORMAT, flipped: false })
+ NAVideoInfo { width: 2, height: 2, format: YUV420_FORMAT, flipped: false, bits: 12 })
};
let ofmt = ifmt;
let mut scaler = NAScale::new(ifmt, ofmt).unwrap();