[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-devel
Subject: =?UTF-8?Q?h264parse_element_needed_to_play_video_in_VLC_after_encoding_w?= =?UTF-8?Q?ith_nvh264enc?=
From: Serhan_Gül <serhan () fastmail ! com>
Date: 2019-09-30 9:16:08
Message-ID: be92989e-8f75-4cb3-9c32-069fe0666c51 () www ! fastmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi,
I'm encoding a YUV video to H.264 using nvh264enc. When I use the first pipeline \
blow, the encoding works but I cannot play the MP4 file in VLC 3.0.8 (Ubuntu 18.04) \
but only using the Videos application of Ubuntu. However, when I add a h264parse \
element between nvh264enc and filesink, as in the second pipeline, I can play the \
video without a problem in VLC. Any ideas why this is happening? I don't really \
understand why I need the parser element h264parse after the encoder
> gst-launch-1.0 -v filesrc location=BQTerrace_1920x1080_60.yuv ! rawvideoparse \
> format=i420 width=1920 height=1080 ! nvh264enc ! filesink \
> location=BQTerrace_1920x1080_60.mp4
> gst-launch-1.0 -v filesrc location=BQTerrace_1920x1080_60.yuv ! rawvideoparse \
> format=i420 width=1920 height=1080 ! nvh264enc ! *h264parse* ! filesink \
> location=BQTerrace_1920x1080_60.mp4
Actually I was expecting to put a mp4mux element between nvh264enc and filesrc but if \
I do that, I get the error: "WARNING: erroneous pipeline: could not link nvh264enc0 \
to mp4mux0". If I use x264enc, the pipeline works though.
Thanks,
Serhan
--
Serhan Gül
serhan@fastmail.com
[Attachment #5 (text/html)]
<!DOCTYPE html><html><head><title></title><style \
type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi,<br></div><div>I'm \
encoding a YUV video to H.264 using nvh264enc. When I use the first pipeline blow, \
the encoding works but I cannot play the MP4 file in VLC 3.0.8 (Ubuntu 18.04) but \
only using the Videos application of Ubuntu. However, when I add a h264parse element \
between nvh264enc and filesink, as in the second pipeline, I can play the video \
without a problem in VLC. Any ideas why this is happening? I don't really \
understand why I need the parser element h264parse after the \
encoder<br></div><div><br></div><div>> gst-launch-1.0 -v filesrc \
location=BQTerrace_1920x1080_60.yuv ! rawvideoparse format=i420 width=1920 \
height=1080 ! nvh264enc ! filesink \
location=BQTerrace_1920x1080_60.mp4<br></div><div><br></div><div>> gst-launch-1.0 \
-v filesrc location=BQTerrace_1920x1080_60.yuv ! rawvideoparse format=i420 width=1920 \
height=1080 ! nvh264enc ! <b>h264parse</b> ! filesink \
location=BQTerrace_1920x1080_60.mp4<br></div><div><br></div><div>Actually I was \
expecting to put a mp4mux element between nvh264enc and filesrc but if I do that, I \
get the error: "WARNING: erroneous pipeline: could not link nvh264enc0 to \
mp4mux0". If I use x264enc, the pipeline works \
though.<br></div><div><br></div><div>Thanks,<br></div><div>Serhan<br></div><div><br></div><div \
id="sig67116920"><div class="signature">-- <br></div><div \
class="signature"> Serhan Gül<br></div><div class="signature"> \
serhan@fastmail.com<br></div><div \
class="signature"><br></div></div><div><br></div></body></html>
[Attachment #6 (text/plain)]
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic