mirror of https://bitbucket.org/ausocean/av.git
added appropriate test files and ran go fmt over av
This commit is contained in:
parent
5ff305e71a
commit
f1aefcdfeb
|
@ -96,31 +96,6 @@ func TestRaspividMJPEGInput(t *testing.T){
|
|||
|
||||
|
||||
|
||||
// Test revidInst with rtmp output
|
||||
func TestRtmpOutput(t *testing.T){
|
||||
config := Config{
|
||||
Input: File,
|
||||
InputFileName: "testInput.h264",
|
||||
InputCodec: H264,
|
||||
Output: Rtmp,
|
||||
RtmpUrl: "rtmp://a.rtmp.youtube.com/live2/w44c-mkuu-aezg-ceb1",
|
||||
Width: "1280",
|
||||
Height: "720",
|
||||
FrameRate: "25",
|
||||
Packetization: None,
|
||||
FramesPerClip: 1,
|
||||
}
|
||||
revidInst, err := NewRevidInstance(config)
|
||||
if err != nil {
|
||||
t.Errorf("Should not of have got an error!: %v\n", err.Error())
|
||||
return
|
||||
}
|
||||
revidInst.Start()
|
||||
time.Sleep(120*time.Second)
|
||||
revidInst.Stop()
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Test h264 inputfile to flv output files
|
||||
func TestFlvOutputFile(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue