Hi,
When debugging app_multi_cam_codec, we encountered the problem that the video could not be decoded. The error message is as follows:
To this end, I made the following three attempts: 1. Only enable encoding and disable decoding function, select YUV camera, can successfully encode and save mp4 files; 2. 2. If the encoding and decoding function is enabled at the same time, the mp4 file cannot be decoded; 3, only enable the decoding function, also cannot decode mp4 files.
Please help me solve this problem, thank you! The log is attached.Please check.
Capture->Encode Selection Yes(1)/No(0)
0
Decode->Display Selection Yes(1)/No(0)
1
Max number of cameras supported by sensor MAX_RAW12_AR0147 = 4
Please enter number of channels to be enabled
1
Creating context done!
Kernel loading done!
...
Display graph done!
Pipeline params setup done!
gst_wrapper: GstCmdString:
filesrc location=/opt/vision_apps/test_video_1080p30.mp4
! qtdemux
! h264parse
! v4l2h264dec capture-io-mode=dmabuf-import
! video/x-raw, format=(string)NV12
! tiovxmemalloc pool-size=15
! appsink name=myAppSink0 drop=true wait-on-eos=false max-buffers=4
Gst Pipeline done!
App Create Graph Done!
Graph verify done!
appGstSinkInit Done!
App Verify Graph Done!
App Send Error Frame Done!
app_pipeline_params_defaults returned
Enter Choice: appGstStart Done!
decode_display: frame 0 beginning
gst_wrapper: WARNING: gst_app_sink_pull_sample() FAILED!
decode_display: frame 1 beginning
gst_wrapper: WARNING: gst_app_sink_pull_sample() FAILED!
decode_display: frame 2 beginning
gst_wrapper: WARNING: gst_app_sink_pull_sample() FAILED!
decode_display: frame 3 beginning
gst_wrapper: WARNING: gst_app_sink_pull_sample() FAILED!
decode_display: frame 4 beginning
gst_wrapper: WARNING: gst_app_sink_pull_sample() FAILED!
decode_display: frame 5 beginning
gst_wrapper: WARNING: gst_app_sink_pull_sample() FAILED!
decode_display: frame 6 beginning
gst_wrapper: WARNING: gst_app_sink_pull_sample() FAILED!
decode_display: frame 7 beginning
gst_wrapper: WARNING: gst_app_sink_pull_sample() FAILED!
decode_display: frame 8 beginning
Regards,
Kong