Administrator
|
This post was updated on .
I have the code to add the tracks of the file sources to the timeline. The
only thing I can't figure out is to render it to an output file. anyone be able to help me? I can successfully play the timeline and seek it but not able to export to one video file. ----- ------------------------------ Gstreamer 1.14.3 ------------------------------ Windows -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list gstreamer-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2 ------------------------------ Windows |
Administrator
|
I looked at the DEBUG and it says:
couldn't initialize the x264enc. I am using the Windows and do not have the x264enc at all. I tried using the GstPreset* to set the openh264enc but avail. the profile i set was video/quicktime,audio/mpeg,video/x-h264. Any ideas? ----- ------------------------------ Gstreamer 1.14.3 ------------------------------ Windows -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2 ------------------------------ Windows |
Hi, I looked at the DEBUG and it says: I would guess you do have it, otherwise it wouldn't say that, can you attach some `GST_DEBUG=5` debug logs? - Thibault the profile i set was video/quicktime,audio/mpeg,video/x-h264. Any ideas? _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Administrator
|
This post was updated on .
things I saw in the debug
0:00:00.808357800 22932 08D18498 LOG x264enc gstx264enc.c:794:gst_x264_enc_sink_getcaps: allowed caps video/x-h264, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 16, 2147483647 ], height=(int)[ 16, 2147483647 ], profile=(string){ high-4:4:4, high-4:2:2, high-10, high, main, baseline, constrained-baseline, high-4:4:4-intra, high-4:2:2-intra, high-10-intra }, stream-format=(string)avc, alignment=(string)au; video/x-h264, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 16, 2147483647 ], height=(int)[ 16, 2147483647 ], profile=(string){ high-4:4:4, high-4:2:2, high-10, high, main, baseline, constrained-baseline, high-4:4:4-intra, high-4:2:2-intra, high-10-intra }, stream-format=(string){ avc, byte-stream }, alignment=(string)au 0:00:00.809431700 22932 07E05690 ERROR x264enc :0:: width not divisible by 2 (711x400)0:00:00.810920400 22932 08D18498 INFO x264enc gstx264enc.c:227:gst_x264_enc_add_x264_chroma_format: 8-bit depth supported 0:00:00.814393800 22932 07E05690 WARN x264enc gstx264enc.c:1906:gst_x264_enc_init_encoder: error: Can not initialize x264 encoder. 0:00:00.817334100 22932 08D18498 INFO x264enc gstx264enc.c:227:gst_x264_enc_add_x264_chroma_format: 8-bit depth supported Failed to set pipeline state 0:00:00.520838000 PAUSED24708 071A5280 WARN videoencoder gstvideoencoder.c:678:gst_video_encoder_setcaps: rejected caps video/x-raw, format=(string)I420, width=(int)711, height=(int)400, framerate=(fraction)15/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709Failed to set pipeline state PLAYING 0:00:00.522992300 24708 071A5280 WARN videoencoder gstvideoencoder.c:678:gst_video_encoder_setcaps: rejected caps video/x-raw, format=(string)I420, width=(int)711, height=(int)400, framerate=(fraction)15/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709 0:00:00.532441100 24708 071A5280 WARN videoencoder gstvideoencoder.c:678:gst_video_encoder_setcaps: rejected caps video/x-raw, format=(string)I420, width=(int)711, height=(int)400, framerate=(fraction)15/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709----- ------------------------------ Gstreamer 1.14.3 ------------------------------ Windows -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list gstreamer-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2 ------------------------------ Windows |
You should ensure that the video width is even, iirc x264enc cant negotiate odd width (in some conditions) - Thibault On Mon, Sep 23, 2019, 18:31 killerrats <[hidden email]> wrote:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Administrator
|
figured out that I needed to put width and height in the gst_caps_from_string. this currently works. static GstEncodingProfile* mediacat_gen_profilee() { GstEncodingContainerProfile *profile = NULL; GstCaps *caps = NULL; GstPreset* preset; caps = gst_caps_from_string("video/quicktime"); profile = gst_encoding_container_profile_new("Quicktime Audio/Video","", caps, NULL); gst_caps_unref(caps); caps = gst_caps_from_string("audio/mpeg,mpegversion=1,layer=3"); gst_encoding_container_profile_add_profile(profile, (GstEncodingProfile *)gst_encoding_audio_profile_new(caps, NULL, NULL, 0)); gst_caps_unref(caps); caps = gst_caps_from_string("video/x-h264,width=640,height=480"); gst_encoding_container_profile_add_profile(profile, (GstEncodingProfile *)gst_encoding_video_profile_new(caps, NULL, NULL, 0)); gst_caps_unref(caps); return (GstEncodingProfile *)profile; }
------------------------------
Gstreamer 1.14.3 ------------------------------ Windows Sent from the GStreamer-devel mailing list archive at Nabble.com. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2 ------------------------------ Windows |
Free forum by Nabble | Edit this page |