Commit a87e3848 authored by Ran Wang's avatar Ran Wang

Initial commit

parents
all:
mkdir gst-v4l2
tar xf gst-nvvideo4linux2_src.tbz2 -C gst-v4l2
patch -Np1 -d gst-v4l2 < gst-nvvideo4linux2_src-no_sei_meta.patch
cd gst-v4l2/gst-v4l2 && $(MAKE)
cd gst-v4l2/gst-v4l2 && $(MAKE) install GST_INSTALL_DIR=/usr/lib/gstreamer-1.0
rm -rf gst-v4l2
diff --git a/gst-v4l2/Makefile b/gst-v4l2/Makefile
index 522a1f5..789567d 100644
--- a/gst-v4l2/Makefile
+++ b/gst-v4l2/Makefile
@@ -27,7 +27,7 @@ else
CFLAGS:= -DUSE_V4L2_TARGET_NV_CODECSDK=1 -DUSE_V4L2_TARGET_NV_X86=1 -DUSE_V4L2_GST_HEADER_VER_1_8
endif
-LIBS:= -lnvbufsurface -lnvbufsurftransform -lgstnvdsseimeta -lgstnvcustomhelper
+LIBS:= -lnvbufsurface -lnvbufsurftransform -lgstnvcustomhelper
SRCS := $(wildcard *.c)
INCLUDES += -I./ -I../
diff --git a/gst-v4l2/gstv4l2videodec.c b/gst-v4l2/gstv4l2videodec.c
index 9bbb774..d180d73 100644
--- a/gst-v4l2/gstv4l2videodec.c
+++ b/gst-v4l2/gstv4l2videodec.c
@@ -30,7 +30,7 @@
#include "gstv4l2h26xparser.h"
#include "gstv4l2object.h"
#include "gstv4l2videodec.h"
-#include "gstnvdsseimeta.h"
+//#include "gstnvdsseimeta.h"
#include "gst-nvcustomevent.h"
#include "stdlib.h"
@@ -2195,6 +2195,7 @@ gst_v4l2_video_dec_handle_frame (GstVideoDecoder * decoder,
GST_BUFFER_COPY_FLAGS | GST_BUFFER_COPY_TIMESTAMPS |
GST_BUFFER_COPY_META, 0, 0);
+#if 0
/* Parse SEI data from the bitsream */
if ((is_cuvid == TRUE) && (self->extract_sei_type5_data == TRUE))
{
@@ -2225,6 +2226,7 @@ gst_v4l2_video_dec_handle_frame (GstVideoDecoder * decoder,
gst_buffer_unmap (tmp, &map);
}
}
+#endif
gst_buffer_unref (tmp);
diff --git a/gst-v4l2/gstv4l2videoenc.c b/gst-v4l2/gstv4l2videoenc.c
index bbf2c23..988f03c 100644
--- a/gst-v4l2/gstv4l2videoenc.c
+++ b/gst-v4l2/gstv4l2videoenc.c
@@ -39,7 +39,7 @@
#include "gstv4l2object.h"
#include "gstv4l2videoenc.h"
-#include "gstnvdsseimeta.h"
+//#include "gstnvdsseimeta.h"
#include "gst-nvcustomevent.h"
#include <string.h>
@@ -1713,7 +1713,7 @@ gst_v4l2_video_enc_handle_frame (GstVideoEncoder * encoder,
}
if (frame->input_buffer) {
-
+#if 0
GstVideoSEIMeta *meta =
(GstVideoSEIMeta *) gst_buffer_get_meta (frame->input_buffer,
GST_VIDEO_SEI_META_API_TYPE);
@@ -1734,6 +1734,7 @@ gst_v4l2_video_enc_handle_frame (GstVideoEncoder * encoder,
self->v4l2output->sei_payload = (void *) meta->sei_metadata_ptr;
}
}
+#endif
GST_VIDEO_ENCODER_STREAM_UNLOCK (encoder);
ret =
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment