Skip to content

Commit

Permalink
cctv flv job examples
Browse files Browse the repository at this point in the history
  • Loading branch information
平 张 committed Aug 16, 2018
1 parent 86a9182 commit a21f063
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
44 changes: 44 additions & 0 deletions 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
}

47 changes: 47 additions & 0 deletions 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
}

0 comments on commit a21f063

Please sign in to comment.