Skip to content

Instantly share code, notes, and snippets.

@dbousamra
Created March 5, 2019 23:45
Show Gist options
  • Save dbousamra/ed546ed2cffc61d0db3c59660f8c8f61 to your computer and use it in GitHub Desktop.
Save dbousamra/ed546ed2cffc61d0db3c59660f8c8f61 to your computer and use it in GitHub Desktop.
gst-launch-1.0 \
filesrc location=subtitles.srt ! subparse ! mux.subtitle_0 \
videotestsrc num-buffers=100 ! videoconvert ! x264enc ! matroskamux name=mux ! filesink location=output.mkv
1
00:00:02,110 --> 00:00:04,578
HELLO1
2
00:00:05,313 --> 00:00:06,871
HELLO2
3
00:00:07,014 --> 00:00:08,003
HELLO3
@dbousamra
Copy link
Author

Gives:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment