Issue with image classification tutorial and testing with deepstream-app

How did you generate the video file for running in deepstream?
Please consider below way.
gst-launch-1.0 multifilesrc location=“/tmp/%d.jpg” caps=“image/jpeg,framerate=30/1” ! jpegdec ! x264enc ! avimux ! filesink location=“out.avi”