From a21f0636a9b0d641cf0ea5fcaacd5ba2a653e866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B9=B3=20=E5=BC=A0?= Date: Thu, 16 Aug 2018 02:37:06 +0000 Subject: [PATCH] cctv flv job examples --- examples/cctv.flv.audio.only.job | 44 ++++++++++++++++++++++++++++++ examples/cctv.flv.job | 47 ++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 examples/cctv.flv.audio.only.job create mode 100644 examples/cctv.flv.job diff --git a/examples/cctv.flv.audio.only.job b/examples/cctv.flv.audio.only.job new file mode 100644 index 0000000..897a16a --- /dev/null +++ b/examples/cctv.flv.audio.only.job @@ -0,0 +1,44 @@ +{ + "name" : "cctv.audio.only", + "source" : { + "elements" : { + "souphttpsrc" : { + "property" : { + "is-live" : true, + "location" : "http://tv.cdn.site:9000/flv?app=live&stream=drmcctv3_1_1500" + } + } + }, + "bins" : [ + "souphttpsrc ! flvdemux name=flvdemux", + "flvdemux.audio ! appsink name=audio" + ] + }, + "encoders" : [ + { + "elements": { + "appsrc" : { + "property" : { + "format" : 3, + "is-live" : true + } + }, + "appsink" : { + "property" : { + "sync" : false + } + } + }, + "bins" : [ + "appsrc name=audio ! aacparse ! mpegtsmux ! appsink" + ] + } + ], + "m3u8streaming" : { + "version" : 3, + "window-size" : 10, + "segment-duration" : 3.00 + }, + "dvr_duration": 86400 +} + diff --git a/examples/cctv.flv.job b/examples/cctv.flv.job new file mode 100644 index 0000000..2474331 --- /dev/null +++ b/examples/cctv.flv.job @@ -0,0 +1,47 @@ +{ + "name" : "cctv", + "source" : { + "elements" : { + "souphttpsrc" : { + "property" : { + "is-live" : true, + "location" : "http://tv.cdn.site:9000/flv?app=live&stream=drmcctv3_1_1500" + } + } + }, + "bins" : [ + "souphttpsrc ! flvdemux name=flvdemux", + "flvdemux.video ! appsink name=video", + "flvdemux.audio ! appsink name=audio" + ] + }, + "encoders" : [ + { + "elements": { + "appsrc" : { + "property" : { + "format" : 3, + "is-live" : true + } + }, + "appsink" : { + "property" : { + "sync" : false + } + } + }, + "bins" : [ + "appsrc name=video ! h264parse ! muxer.", + "appsrc name=audio ! aacparse ! muxer.", + "mpegtsmux name=muxer ! queue ! appsink sync=FALSE" + ] + } + ], + "m3u8streaming" : { + "version" : 3, + "window-size" : 10, + "segment-duration" : 3.00 + }, + "dvr_duration": 86400 +} +