for gstreamer and ffmpeg