IDeviceWorker::stop hang if video decode failed

I use ffmpeg to parse a .mp4 video and push packet to deepstream device worker, but the pDeviceWorker->stop() is hang after all packet pushed.

I think it is because the .mp4 file video codec is AVC1 but I created an H264 decoder with device worker. maybe I should call getVideoFormat() to retrieve the correct format.

I will reply this title if IDeviceWorker::stop not hang after create the suitable format decoder with AVC1.

Hi,

Here is the command for converting mp4 video to raw h264 for your reference.

ffmpeg -i out.mp4 -vcodec libx264 -pix_fmt yuv420p -an -f h264 -b 4096k sample_224x224.h264

Please check the generate_video.sh for more information.

Thanks.

Okay, thanks. I just want you know hanging if create wrong codec.