Tool/software:
Hello,
I am working on saving frame data to an MP4 file using appsink, as shown in the attached code. My goal is to receive frame data via appsink and then save it to MP4 on demand, rather than handling everything in a single pipeline.
I've confirmed that the YUV frame data is being received correctly. However, when attempting to save the YUV data to an MP4 file through the pipeline, the file is created, but its attributes are not set correctly.
The pipeline string I am using is as follows:
----------------------------------std::string pipeline_str = "appsrc name=src is-live=true block=true format=GST_FORMAT_TIME do-timestamp=true ! "
"video/x-raw,format=UYVY,width=1920,height=1080,framerate=30/1 ! "
"videoconvert ! video/x-raw,format=NV12 ! v4l2h264enc ! h264parse ! mp4mux ! filesink location=" + fileName;
--------------------------------------------------------------
Could you help me identify the issue with the pipeline and the saving process? I need guidance on whether my approach with the pipeline configuration is correct or if there's something I'm missing in the procedure.
Thank you for your help!