Skip to content

Instantly share code, notes, and snippets.

@lu-zero
Last active October 2, 2015 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lu-zero/4591abe7c05ba1754a85 to your computer and use it in GitHub Desktop.
Save lu-zero/4591abe7c05ba1754a85 to your computer and use it in GitHub Desktop.
What if avconv grocks json?
{
"input" : [
{ "analyzeduration": 1,
"format": { "name" : "bmd",
"options" : { "video_mode": 11,
"instance": 0,
"audio_connection": 2,
"video_connection": 4,
"video_format": 1,
"wallclock": 1 }
},
"name": "default" }
],
"filter_complex" : [[
{ "crop" : "1280:720:0:0" },
{ "yadif" : "0:-1:0" }
{ "output" : "[o0]"}
], [
{ "input" : "[o0]" },
{ "drawtext" : "fontfile='/usr/share/fonts/dejavu/DejaVuSans.ttf':text='%s,%n%N':x=200:y=50:fontsize=24:fontcolor=white" },
{ "output" : "[o0]" }
]],
"output" : [ {
"encode" : [
{ "stream" : "d",
"codec" : "copy" },
{ "stream" : "v:[o0]",
"codec" : "libx264",
"bitrate" : "2400k",
"gop" : 50,
"rate" : 25
},
{ "stream" : "a",
"codec" : "libfdk_aac",
"audiorate" : "44100",
"bitrate" : "128k"
}
],
"map" : [ "[o0]", "0:a", "0:d" ],
"mux" : {
"format" : { "name" : "flv" },
"name" : "rtmp://10.1.11.22:1935/casino/test/wallclock_test_med"
}
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment