--
You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gstreamer-jav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gstreamer-java/CAPxOS5FrFq59sZHOnd0zg8NazUyjXpccV6%3DQyvwhtHqcgmy%3DCg%40mail.gmail.com.
I also tried to put Pipeline as a private static field at the beginning of this class, but results are the same.Would you help check it?
--
You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gstreamer-jav...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gstreamer-java/CAPxOS5Gm0mBHGNWjXHF7KugnR6p1GPF1%2BLBToWhgtzOMJEFgHg%40mail.gmail.com.
! queue silent=true ! audioconvert ! identity name=audio-identity ! tee name=aud
aud. ! queue silent=true ! lamemp3enc ! tee name=aud1
aud1. ! queue silent=true ! mux02.audio_0
aud. ! queue silent=true ! wavescope style=lines
! textoverlay name=text-message valignment=center halignment=center font-desc='Ubuntu, 30' xpad=0 ypad=0
! textoverlay name=text-activity valignment=bottom halignment=left font-desc='Ubuntu, 20' xpad=0 ypad=0 shaded-background=true
! textoverlay name=text-geek valignment=top halignment=right color=0xFFFFFF00 font-desc='Ubuntu, 9' xpad=0 ypad=0 shaded-background=true
! queue silent=true ! appsink name=video-sink emit-signals=true drop=true sync=true
aud. ! queue silent=true ! audioresample ! audio/x-raw, rate=48000, format=S16LE, channels=2 ! level name=audiolevel ! pulsesink name=audio-sink sync=true
splitmuxsink name=mux02 location=/tmp/monitr-%010d.mkv max-size-time=10000000000 muxer-factory=matroskamux
public interface ISplitMux extends GstCallback {
public static final String FORMAT_LOCATION_SIGNAL = "format-location-full";
// I have also tried format-location signal but I get the same issue.
public String format_location_full_callback(Bin element, int fragmentId);
public static GstCallback format_location_full_callback(ISplitMux listener) {
return new GstCallback() {
@SuppressWarnings("unused")
public String callback(Bin elem, int fragmentId) {
return listener.format_location_full_callback(elem, fragmentId);
}
};
}
}
FORMAT_LOCATION_CALLBACK IMPL:
public class SplitMuxDateFormat implements ISplitMux {
@Override
public String format_location_full_callback(Bin element, int fragmentId) {
return String.format("/tmp/%s.%s", DateUtils.formatDate(DateUtils.YYYYMMDD_HHMMSS, DateUtils.getCurrentDate()), "mkv");
}
}