Convert RGB to YUV using ffmpeg for Jetson DSK playback

HI,

We are trying to process video sequences in mp4 format using DeepStream SDK on Jetson Xavier. DSK is telling us to convert to a YUV colorspace. We’ve tried to convert using ffmpeg by using the following.
ffmpeg -i input.mp4 -f rawvideo -vcodec rawvideo -pix_fmt yuv420p -s 1920x1080 -r 25 rawvideo.yuv

The problem is the YUV file output is 100 times larger in MB than the original input. What is the command line to convert input.mp4 to yuv without using a raw video codec?

Thanks.

Hi,
We would suggest you use nveglglesink or nvoverlaysink plugins for video playback. Other software tools may not be optimal solution. You can set it in config file.
https://docs.nvidia.com/metropolis/deepstream/dev-guide/index.html#page/DeepStream%2520Development%2520Guide%2Fdeepstream_app_config.3.2.html%23wwpID0ENHA

The suggestion did not work
Is there an encoder you can recommend? With real-time capabilities.
Thank you

Please share what DSK stands for. Not understand what DSK playback means.

DS: Deep Stream
SDK is well SDK.

Hi,
If your input is mp4 files, it should work by simply changing file name in

deepstream_sdk_v4.0.2_jetson\samples\configs\deepstream-app\source30_1080p_dec_infer-resnet_tiled_display_int8.txt

and executing

$ deepstream-app -c source30_1080p_dec_infer-resnet_tiled_display_int8.txt

We’ve been using this and it works for recorded CCTV media (yuv), not for non CCTV sources (rgb) which brings us to the original post above: what real-time encoder or settings can we use to process rgb media?

Hi,
Could you share the mp4 file for reference? We support NV12 in video decoder

BGR is not supported but please attach it and we can confirm.