Ejemplo n.º 1
0
//export OpenMediaFile
func OpenMediaFile(filename string) {
	println("try openning the media file ")
	println(filename)
	cfilename := C.CString(filename)

	C.avcodec_register_all()
	C.av_register_all()
	ctx := C.avformat_alloc_context()

	result := C.av_open_input_file(&ctx, cfilename, nil, 0, nil)
	println(result)
	result = C.av_find_stream_info(ctx)
	C.free(unsafe.Pointer(cfilename))
	C.av_close_input_file(ctx)
	//C.free(unsafe.Pointer(ctx));
}
Ejemplo n.º 2
0
func init() {
	fmt.Println("Register all Codecs")
	C.avcodec_register_all()
	//C.av_log_set_level(48);
}
Ejemplo n.º 3
0
Archivo: codec.go Proyecto: Dim0N22/gmf
func init() {
	C.avcodec_register_all()
	InitDesc()
}
Ejemplo n.º 4
0
func init() {
	C.avcodec_register_all()
}
Ejemplo n.º 5
0
//Register all the codecs, parsers and bitstream filters which were enabled at configuration time.
func AvcodecRegisterAll() {
	C.avcodec_register_all()
}
Ejemplo n.º 6
0
func init() {
	C.avcodec_register_all()
	C.av_register_all()
	C.av_log_set_level(C.AV_LOG_VERBOSE)
}