Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record video #6

Open
meduar opened this issue Aug 7, 2019 · 6 comments
Open

Record video #6

meduar opened this issue Aug 7, 2019 · 6 comments

Comments

@meduar
Copy link

meduar commented Aug 7, 2019

I can see in the new release there is an option to record video, do you have an example or how could I record?

Thanks,

@a1q123456
Copy link
Owner

okay, i'll update docs soon

@a1q123456
Copy link
Owner

I've updated the docs

@bakamaru
Copy link

recording is not working. :(

@a1q123456
Copy link
Owner

recording is not working. :(

Hi, thanks for your testing, can you provide a sample code, or exception call stack? so I can analyse the reason.

BTW: you need to push video to url: rtmp://<ip_address>/record/<stream_name> to record video

@bakamaru
Copy link

ffmpeg -i rtmp://localhost/living/STREAM_NAME -c:v libx264 -preset medium -maxrate 3500k -bufsize 6000k -pix_fmt yuv420p -g 30 -c:a aac -b:a 160k -ac 2 -ar 44100 -f flv rtmp://localhost/record/STREAM_NAME

System.Net.Sockets.SocketException Message: An existing connection was forcibly closed by the remote host System.Net.Sockets.SocketException Message: An established connection was aborted by the software in your host machine System.Net.Sockets.SocketException Message: An existing connection was forcibly closed by the remote host System.Net.Sockets.SocketException Message: An existing connection was forcibly closed by the remote host System.Net.Sockets.SocketException Message: An existing connection was forcibly closed by the remote host System.Net.Sockets.SocketException Message: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token) at Harmonic.Networking.Rtmp.IOPipeLine.Producer(Socket s, PipeWriter writer, CancellationToken ct) in D:\klive\Harmonic\Networking\Rtmp\IOPipeLine.cs:line 186 at Harmonic.Hosting.RtmpServer.AcceptCallback(IAsyncResult ar, CancellationToken ct) in D:\klive\Harmonic\Hosting\RtmpServer.cs:line 116 at Harmonic.Networking.Rtmp.IOPipeLine.Writer(CancellationToken ct) in D:\klive\Harmonic\Networking\Rtmp\IOPipeLine.cs:line 168 at Harmonic.Hosting.RtmpServer.AcceptCallback(IAsyncResult ar, CancellationToken ct) in D:\klive\Harmonic\Hosting\RtmpServer.cs:line 116 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token) at Harmonic.Networking.Rtmp.IOPipeLine.Producer(Socket s, PipeWriter writer, CancellationToken ct) in D:\klive\Harmonic\Networking\Rtmp\IOPipeLine.cs:line 186 at Harmonic.Hosting.RtmpServer.AcceptCallback(IAsyncResult ar, CancellationToken ct) in D:\klive\Harmonic\Hosting\RtmpServer.cs:line 116 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token) at Harmonic.Networking.Rtmp.IOPipeLine.Producer(Socket s, PipeWriter writer, CancellationToken ct) in D:\klive\Harmonic\Networking\Rtmp\IOPipeLine.cs:line 186 at Harmonic.Hosting.RtmpServer.AcceptCallback(IAsyncResult ar, CancellationToken ct) in D:\klive\Harmonic\Hosting\RtmpServer.cs:line 116 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token) at Harmonic.Networking.Rtmp.IOPipeLine.Producer(Socket s, PipeWriter writer, CancellationToken ct) in D:\klive\Harmonic\Networking\Rtmp\IOPipeLine.cs:line 186 at Harmonic.Hosting.RtmpServer.AcceptCallback(IAsyncResult ar, CancellationToken ct) in D:\klive\Harmonic\Hosting\RtmpServer.cs:line 116 at Harmonic.Networking.Rtmp.IOPipeLine.Writer(CancellationToken ct) in D:\klive\Harmonic\Networking\Rtmp\IOPipeLine.cs:line 168 at Harmonic.Hosting.RtmpServer.AcceptCallback(IAsyncResult ar, CancellationToken ct) in D:\klive\Harmonic\Hosting\RtmpServer.cs:line 116 System.Net.Sockets.SocketException Message: The I/O operation has been aborted because of either a thread exit or an application request at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token) at Harmonic.Networking.Rtmp.IOPipeLine.Producer(Socket s, PipeWriter writer, CancellationToken ct) in D:\klive\Harmonic\Networking\Rtmp\IOPipeLine.cs:line 186 at Harmonic.Hosting.RtmpServer.AcceptCallback(IAsyncResult ar, CancellationToken ct) in D:\klive\Harmonic\Hosting\RtmpServer.cs:line 116 System.Net.Sockets.SocketException Message: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token) at Harmonic.Networking.Rtmp.IOPipeLine.Writer(CancellationToken ct) in D:\klive\Harmonic\Networking\Rtmp\IOPipeLine.cs:line 168 at Harmonic.Hosting.RtmpServer.AcceptCallback(IAsyncResult ar, CancellationToken ct) in D:\klive\Harmonic\Hosting\RtmpServer.cs:line 116

@bakamaru
Copy link

can you help out..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants