Last active
August 29, 2015 14:21
-
-
Save joar/b11e452d6c53bcf7ba3e to your computer and use it in GitHub Desktop.
GStreamer multiple output transcoding with deduplication of media streams.
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
#!/bin/bash | |
# Note: use x264enc tune=zerolatency or bigger queues | |
# NOT WORKING! stalled at prerolling | |
gst-launch-1.0 filesrc location=VfE.webm ! decodebin name=dmux \ | |
dmux. ! videoconvert ! tee name=vo \ | |
dmux. ! audioconvert ! tee name=au \ | |
webmmux name=webm ! progressreport name=webmprogress ! filesink location=out.webm \ | |
avimux name=avi ! progressreport name=aviprogress ! filesink location=out.avi \ | |
vo. ! queue ! vp8enc ! webm. \ | |
au. ! queue ! vorbisenc ! webm. \ | |
vo. ! queue ! x264enc tune=zerolatency ! avi. \ | |
au. ! queue ! lamemp3enc ! avi. |
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
#!/bin/bash | |
gst-launch-1.0 filesrc location=VfE.webm ! decodebin name=dmux \ | |
dmux. ! videoconvert ! tee name=vo \ | |
dmux. ! audioconvert name=ac ! tee name=au \ | |
webmmux name=webm ! progressreport name=webmprogress ! filesink location=out-dedup.webm \ | |
oggmux name=ogg ! progressreport name=oggprogress ! filesink location=out-dedup.ogv \ | |
vo. ! queue ! vp8enc ! webm. \ | |
vo. ! queue ! theoraenc ! ogg. \ | |
au. ! queue ! vorbisenc ! tee name=ve \ | |
ve. ! queue ! ogg. \ | |
ve. ! queue ! webm. |
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
#!/bin/bash | |
gst-launch-1.0 filesrc location=VfE.webm \ | |
! decodebin name=dmux \ | |
dmux. ! videoconvert ! tee name=vo \ | |
dmux. ! audioconvert ! tee name=au \ | |
webmmux name=webm ! progressreport name=webmprogress ! filesink location=out.webm \ | |
oggmux name=ogg ! progressreport name=oggprogress ! filesink location=out.ogv \ | |
vo. ! queue ! vp8enc ! webm. \ | |
au. ! queue ! vorbisenc ! webm. \ | |
vo. ! queue ! theoraenc ! ogg. \ | |
au. ! queue ! vorbisenc ! ogg. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment