Hello Nvs,
I am currently work this reference app with
deepstream-6.2:level dGPU RTX 2080TI
/*
* SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
This file has been truncated. show original
Can I know how to add the drop frame interval in pipeline? I try to
{
GstPad *sinkpad, *srcpad;
gchar pad_name[16] = { };
source = create_source_bin(0, const_cast<char*>(_input));
if (!source) {
g_printerr ("Failed to create source bin. Exiting.\n");
return -1;
}
gst_bin_add(GST_BIN(pipeline), source);
//---add decoder---
GstElement* decoder = gst_element_factory_make("nvv4l2decoder", NULL);
if (!decoder) {
g_printerr("Failed to create v4l2 decoder.\n");
return -1;
}
g_object_set(G_OBJECT(decoder), "drop-frame-interval", 5, NULL);
gst_bin_add(GST_BIN(pipeline), decoder);
use nvv4l2decoder and set drop frame interval but it does not work.
Many many thanks!
yuweiw
February 27, 2024, 7:27am
3
The decoder has been created by default through urideocdebin in this project. The decoder you created yourself is not used. If you want to set property to the decoder, you need to find the decoder in the uridecodebin, then set the parameter to it.
system
Closed
March 12, 2024, 7:27am
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.