Closed lubosz closed 5 years ago
I bet this bug is fixed in master since:
Author: Sebastian Dröge <slomo@circular-chaos.org>
Date: Sun Jun 30 18:17:15 2013 +0200
video(enc|dec)oder: Don't return not-negotiated if flushing
If the pad is flushing after a failed negotiation, return
GST_FLOW_FLUSHING instead from finish_frame().
https://bugzilla.gnome.org/show_bug.cgi?id=701763
is in. Do you have that patch?
I have 85eac2c31ce7f7ed2aa0dbd4a9dc2ad42b734788 in gst-plugins-base-git, but same problem
0.969333333
2.057333333
(GError('GStreamer error: negotiation problem.',), 'gstvideoencoder.c(1363): gst_video_encoder_chain (): /GESTimelinePipeline:gestimelinepipeline0/GstEncodeBin:internal-encodebin/GstVP8Enc:vp8enc0:\nencoder not initialized')
(GError('GStreamer encountered a general stream error.',), 'qtdemux.c(4317): gst_qtdemux_loop (): /GESTimelinePipeline:gestimelinepipeline0/GESTimeline:gestimeline0/GESVideoTrack:gesvideotrack0/GnlComposition:gnlcomposition1/GnlSource:gnlsource3/GstBin:video-src-bin/GstURIDecodeBin:uridecodebin2/GstDecodeBin:decodebin5/GstQTDemux:qtdemux4:\nstreaming stopped, reason not-negotiated')
2.739999999
2.739999999
2.739999999
2.739999999
2.739999999
this seems to be a vp8 issue. some encoding options work better, some worse.
in this test i was encoding a video with image, video and audio assets. 1 video layer and 1 audio layer.
# Firefox
# VERY slow encoding after first 20 secs, buggy video output http://i.imgur.com/mbkZ4kb.jpg
format = ["application/ogg", "video/x-theora", "audio/x-vorbis", "ogv"]
# Chrome
# first element / clips gets encoded, after that a negotiation error occurs
format = ["video/webm", "video/x-vp8", "audio/x-vorbis", "webm"]
# Safari
# does not start, without error, 0s in callback
format = ["video/quicktime", "video/x-h264", "audio/x-aac", "mp4"]
# MPEG
# does not start, without error, 0s in callback
format = ["video/mpeg", "video/mpeg", "audio/mpeg", "mpg"]
# MKV / h264 / vorbis
# works very fast, in real time, 1 min in 1min. the result is good but has bugs for image assets.
format = ["video/x-matroska", "video/x-h264", "audio/x-vorbis", "mkv"]
Fixed now it seems
I am trying to encode a timeline with 2 clips from different video files like this.
It works when I use the same video file for both clips.
I get following output
But when I use different video urls, I get an error and it only encodes the first clip.
I get following output