So exactly what message are you seeing logged there? Video splitter doesn't appear to log anything when it discards frames, so I'm assuming you're not seeing that.ilyani wrote:First of All thnx for your reply. Yes I checked my discarded frames in vcdbg.
You don't - you make things consume the data in a timely manner. The camera isn't going to stop - it will produce N frames per second. Unless you have infinite buffering in the system then something has to give if you're not keeping up.ilyani wrote:Also i am using video_splitter for splitting my video for different bit rates encoders. Output video is playable but of short duration. How to force splitter not to discard frames.
What resolution are you capturing at?ilyani wrote:My code is on Pastebin at https://pastebin.com/L7GGpRn0
V4L2 will only allow one client at a time requesting buffers from the camera. Are you sure you're not trying to run two instances of your app simultaneously? That appear to be anything to do with IL.ilyani wrote:The device is a Logitech C210 camera.
As I've said, the "venc_rc: frame N aborted" message is valid if you are running at low bitrates, or the bitrate control overshoots the target bitrate by too large a margin.ilyani wrote:and i am checking my log with vcdbg . It is showing some frame drops with different Qp. Some times device work and sometimes show busy but the output file is of very short duration
Code: Select all
echo -n 0xFFFF | sudo tee /sys/module/videobuf2_core/parameters/debug