mirror of https://bitbucket.org/ausocean/av.git
FIshing some issues with code
Something is breaking raspivid, need to work out what it is
This commit is contained in:
parent
5a0aedff8c
commit
e33f4fded0
|
@ -332,22 +332,35 @@ func (r *revidInst) Start() {
|
|||
switch r.config.InputCodec {
|
||||
case H264:
|
||||
codec = "H264"
|
||||
r.cmd = exec.Command("raspivid",
|
||||
"-cd", codec,
|
||||
"-o", "-",
|
||||
"-n",
|
||||
"-t", r.config.Timeout,
|
||||
"-b", "0",
|
||||
"-qp", r.config.Quantization,
|
||||
"-w", r.config.Width,
|
||||
"-h", r.config.Height,
|
||||
"-fps", r.config.FrameRate,
|
||||
"-ih",
|
||||
"-g", r.config.IntraRefreshPeriod,
|
||||
)
|
||||
case Mjpeg:
|
||||
codec = "MJPEG"
|
||||
r.cmd = exec.Command("raspivid",
|
||||
"-cd", codec,
|
||||
"-o", "-",
|
||||
"-n",
|
||||
"-t", r.config.Timeout,
|
||||
/*
|
||||
"-b", "0",
|
||||
"-qp", r.config.Quantization,
|
||||
"-w", r.config.Width,
|
||||
"-h", r.config.Height,
|
||||
"-fps", r.config.FrameRate,
|
||||
*/
|
||||
)
|
||||
}
|
||||
r.cmd = exec.Command("raspivid",
|
||||
"-cd", codec,
|
||||
"-o", "-",
|
||||
"-n",
|
||||
"-t", r.config.Timeout,
|
||||
"-b", "0",
|
||||
"-qp", r.config.Quantization,
|
||||
"-w", r.config.Width,
|
||||
"-h", r.config.Height,
|
||||
"-fps", r.config.FrameRate,
|
||||
"-ih",
|
||||
"-g", r.config.IntraRefreshPeriod,
|
||||
)
|
||||
stdout, _ := r.cmd.StdoutPipe()
|
||||
err := r.cmd.Start()
|
||||
r.inputReader = bufio.NewReader(stdout)
|
||||
|
|
Loading…
Reference in New Issue