GithubHelp home page GithubHelp logo

joy5's Issues

Failed Connect [EOF] response

hi want to publish a video to yotube live stream
but i got an EOF error

here example code

package main

import (
	"fmt"
	"github.com/nareix/joy5/format/rtmp"
)

func main() {

	cc := rtmp.NewClient()
	_, _, err := cc.Dial("rtmp://x.rtmp.youtube.com/live2/{streamkey}", rtmp.PrepareWriting)

	if err != nil {
		fmt.Println("Failed to connect", err)
		return
	}

	fmt.Println("success")
}

error response

Failed to connect EOF

Decode Pkt img.Pix ?

How do I decode it to get it as an image?
Joy4;

var vd *ffmpeg.VideoDecoder
vd.Decode(pkt.Data)

Joy5;
??

forwardrtmp DialFailed while publish to youtube

It worked publishing to twitch and facebook, but it failed to dail youtube. Is anyone got the same problem?

avtool forwardrtmp :1935

fwd rtmp://a.rtmp.youtube.com/live2/secretkey
DialFailed

在线支持ts视频格式播放

我的视频文件是ts格式,想通过web直接播放视频,并且支持快进快退,有实现的方法吗?
目前我能想到的是方法:
1、把ts文件通过ffmpeg转码到mp4。
2、把ts文件通过ffmpeg转码到m3u8.
以上2个方案都需要占用更多的空间。
我希望的方案是,把ts文件打开后,立刻转码为mp4格式或者m3u8格式输出即可。是否有办法实现?

谢谢

Some questions about joy5

Hi @nareix ,
Thanks for working on new project. I used joy4 before. And now, it's cool to try joy5 now.

However, I have some questions about joy5:

  • About project design: I think rtmp.Conn struct prepresents a object to handle rtmp messages. So it's better if I can access net.Conn object as in joy4 library instead of separate two parameters as in HandleConn method. And in joy5, why Close method in rtmp.Conn is missing ? Developer should send message to client to close connection nicely instead of closing socket connect.
  • Do you have any benchmark results between joy5 and joy4?

joy5与joy4在数据分发性能比较

作者你好,我看joy5相对joy4来说,在数据分发设计上面有比较大的改动,取消了cond.Broadcast,增了一些原子的操作,这样的改动是为了提高性能吗?

http flv example

Hi! Is it possible to provide example for HTTP FLV stream using this library as it was for joy4 under examples/ folder here?

Edit frame by frame

Is it possible to make live frame editing from packet before writing packet?

I'm not well familiar in video packet communication, but i wish to get frame by frame

pak = c.ReadPacket();
....Get AvFrame here....
...Then write after modified...
w.WritePacket(pak);

Thanks

RTSP Client

When would you add RTSP client in joy5? I was realized joy4 has that. Is that much different in these two repos?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.