This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest | |
RUN apk update && apk upgrade | |
RUN apk add dmd dub cmake gcc make musl-dev | |
RUN ln -fs /usr/share/zoneinfo/Europe/Rome /etc/localtime | |
RUN apk add tzdata | |
RUN adduser -D -S www-data | |
WORKDIR /source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "raylib.h" | |
#include <gst/gst.h> | |
#include <gst/app/gstappsink.h> | |
GstElement* createPipeline(const char* filename) | |
{ | |
GError *error; | |
gchar *pipelineString = g_strdup_printf ("filesrc location=%s ! tee name=t ! queue ! decodebin ! videoconvert ! appsink name=output caps=video/x-raw,format=RGBA,pixel-aspect-ratio=1/1 t. ! queue ! decodebin ! audioconvert ! audioresample ! autoaudiosink", filename); | |
GstElement *pipeline = gst_parse_launch (pipelineString, &error); |