Muxing VALI video stream using FFmpeg: Timestamps and PTS Issues #29
Replies: 1 comment 6 replies
-
You see those ffmpeg warnings because video track produced by VALI doesn't store PTS and DTS information. Reason for that is PTS and DTS are not part of video coding standards. Hence VALI has no place to insert them into compressed video frame which One way to avoid the ffmpeg warnings is to pass ffmpeg -fflags +genpts -r 29.97 -i input.h266 -c:v copy -y output.mp4 P. S. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm currently working on a video processing project that involves a specific workflow where I decode a video, process the frames through a vision AI model, and then encode the video again. My workflow is as follows:
Decode video -> Convert frame to tensor -> Process frame with a Vision AI model -> Convert tensor back to a surface -> Encode the video
After encoding the video, I obtain a raw H.265 Annex B stream. The final code snippet for the encoding process looks like this:
To mux the raw stream into an MP4 container, I'm using the following FFmpeg command:
However, this results in the following error messages, indicating issues with unset timestamps and missing PTS values:
I'm looking for guidance on how to resolve these errors and successfully mux H.265 stream into an MP4 container. Any advice on how to adjust my workflow or the FFmpeg command to fix the timestamp and PTS issues would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions