Closed moerradi closed 2 years ago
Hi moerradi,
Thank you for bringing this issue to our attention. Could you, kindly, provide more details regarding: 1- OS type, e.g., Ubuntu, Amazon Linux, etc. 2- VT1 Instance type 3- Confirm if this crash is specific to a particular input 4- Confirm that the same behaviour is observed if the input rtmp file is ingested directly, i.e., -f flv -i $1. If so, would you be able to provide a small sample of this file?
Cheers,
I am using a VT1.3xlarge instance, using the Xilinx Video SDK AMI with ECS support for VT1 Instances (Amazon Linux 2). I was using the scrips in a docker Environment, then I switched to using it directly in the instance and it gave the same output, I created a new instance tried to run the same script and the problem stopped occurring and the script worked normally, I think it was some kind of driver/temporary hardware related problem. However here is the script I was using.
#!/bin/bash
source /opt/xilinx/xrt/setup.sh
source /opt/xilinx/xrm/setup.sh
export LD_LIBRARY_PATH=/opt/xilinx/ffmpeg/lib:$LD_LIBRARY_PATH
export PATH=/opt/xilinx/ffmpeg/bin:/opt/xilinx/xcdr/bin:/opt/xilinx/launcher/bin:/opt/xilinx/jobSlotReservation/bin:$PATH
#check this for refernce
#https://docs.peer5.com/guides/production-ready-hls-vod/#how-to-choose-the-right-bitrate
on_die ()
{
# kill all children
pkill -KILL -P $$
}
trap 'on_die' TERM
mkdir -p /hls/$1/1080
mkdir -p /hls/$1/720p60
mkdir -p /hls/$1/720
mkdir -p /hls/$1/480
mkdir -p /hls/$1/360
mkdir -p /hls/$1/160
# cat /scripts/exmple.m3u8 | sed "s/XXXX/$1/g" > /hls/$1/index.m3u8``
ffmpeg -i rtmp://localhost:1935/transcode/$1 \
-filter_complex "multiscale_xma=outputs=6: \
out_1_width=1920: out_1_height=1080: out_1_rate=full: \
out_2_width=1280: out_2_height=720: out_2_rate=full: \
out_3_width=848: out_3_height=480: out_3_rate=half: \
out_4_width=640: out_4_height=360: out_4_rate=half: \
out_5_width=288: out_5_height=160: out_5_rate=half \
[t][a][b][c][d]; [a]split[ab][ba]; [ab]fps=30[bb]; asplit=outputs=6[audt][aud2][aud1][aud3][aud4][aud5]" \
-map "[t]" -b:v 7M -c:v mpsoc_vcu_h264 -f hls -hls_time 2 -hls_list_size 10 -hls_flags delete_segments -map "[audt]" -c:a aac -y /hls/$1/1080/index.m3u8 \
-map "[ba]" -b:v 4M -c:v mpsoc_vcu_h264 -f hls -hls_time 2 -hls_list_size 10 -hls_flags delete_segments -map "[aud1]" -c:a aac -y /hls/$1/720p60/index.m3u8 \
-map "[bb]" -b:v 3M -c:v mpsoc_vcu_h264 -f hls -hls_time 2 -hls_list_size 10 -hls_flags delete_segments -map "[aud2]" -c:a aac -y /hls/$1/720/index.m3u8 \
-map "[b]" -b:v 2500K -c:v mpsoc_vcu_h264 -f hls -hls_time 2 -hls_list_size 10 -hls_flags delete_segments -map "[aud3]" -c:a aac -y /hls/$1/480/index.m3u8 \
-map "[c]" -b:v 1250K -c:v mpsoc_vcu_h264 -f hls -hls_time 2 -hls_list_size 10 -hls_flags delete_segments -map "[aud4]" -c:a aac -y /hls/$1/360/index.m3u8 \
-map "[d]" -b:v 625K -c:v mpsoc_vcu_h264 -f hls -hls_time 2 -hls_list_size 10 -hls_flags delete_segments -map "[aud5]" -c:a aac -y /hls/$1/160/index.m3u8 2>&1 | tee /hls/test.log
wait
Great news. Closing this issue.
Command
Output