Skip to content

Commit

Permalink
Debug changes to enable ffmpeg tx side
Browse files Browse the repository at this point in the history
Signed-off-by: Wilczynski, Andrzej <[email protected]>
  • Loading branch information
awilczyns committed Feb 4, 2025
1 parent c8acca6 commit fefc31b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ RUN \

VOLUME ["/var/run/imtl", "/var/run/mcm", "/workspace"]
COPY --chown=tiber --from=build-stage /buildout/ /
COPY --chown=tiber --chmod=755 --from=build-stage /usr/lib64/libbpf.so.1 /usr/local/lib

RUN ldconfig

Expand Down
9 changes: 7 additions & 2 deletions gRPC/config_serialize_deserialize.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Config, senders, receivers, function, multivi

static int serialize_config_json(const Config &input_config, std::string &output_string){
try {
nlohmann::json config_json = input_config;
Config new_config = input_config;
new_config.receivers[0].payload.type = payload_type::video;
new_config.senders[0].payload.type = payload_type::video;

nlohmann::json config_json = new_config;
//Dump json to string
output_string = config_json.dump();

std::cout << "JSON output string: " << std::endl << output_string << std::endl;
}
catch (const nlohmann::json::parse_error &e) {
std::cout << "JSON parse error: " << e.what() << std::endl;
Expand All @@ -44,6 +48,7 @@ static int serialize_config_json(const Config &input_config, std::string &output
static int deserialize_config_json(Config &output_config, const std::string &input_string){
try {
nlohmann::json config_json = nlohmann::json::parse(input_string);
std::cout << "JSON input string: " << std::endl << input_string << std::endl;
// Deserialize from json to Config
output_config = config_json.get<Config>();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_docker_launcher_rx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ docker run -it \
--ip=192.168.2.5 \
--expose=20000-20170 \
--ipc=host -v /dev/shm:/dev/shm \
video_production_image 192.168.2.5 50052
tiber-broadcast-suite 192.168.2.5 50052
2 changes: 1 addition & 1 deletion tests/test_docker_launcher_tx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ docker run -it \
--ip=192.168.2.4 \
--expose=20000-20170 \
--ipc=host -v /dev/shm:/dev/shm \
video_production_image 192.168.2.4 50051
tiber-broadcast-suite 192.168.2.4 50051
3 changes: 2 additions & 1 deletion tests/test_docker_nmos_rx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ docker run -it \
-v /var/run/imtl:/var/run/imtl \
-e http_proxy="" \
-e https_proxy="" \
-e VFIO_PORT_RX=0000:31:01.2 \
--network=my_net_801f0 \
--ip=192.168.2.3 \
--expose=20000-20170 \
--ipc=host -v /dev/shm:/dev/shm \
nmos-docker-test:5 config/node2_docker.json
tiber-broadcast-suite-nmos-node config/intel-node-rx.json
3 changes: 2 additions & 1 deletion tests/test_docker_nmos_tx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ docker run -it \
-v /var/run/imtl:/var/run/imtl \
-e http_proxy="" \
-e https_proxy="" \
-e VFIO_PORT_TX=0000:31:01.1 \
--network=my_net_801f0 \
--ip=192.168.2.2 \
--expose=20000-20170 \
--ipc=host -v /dev/shm:/dev/shm \
nmos-docker-test:5 config/node1_docker.json
tiber-broadcast-suite-nmos-node config/intel-node-tx.json

0 comments on commit fefc31b

Please sign in to comment.