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

java.lang.RuntimeException / connection reset #22

Closed
kraja opened this issue Mar 7, 2016 · 4 comments
Closed

java.lang.RuntimeException / connection reset #22

kraja opened this issue Mar 7, 2016 · 4 comments

Comments

@kraja
Copy link

kraja commented Mar 7, 2016

Hi,
i try run stream-m - i unpack archive and run "java -jar stream-m.jar server.properties" (server.properties is default configuration, i do only copy server.properties.sample).

I try to connect from flash media encoder and ffmpeg, after i try connect, i get error:
root@debian-2gb-fra1-01:~# java -jar stream-m.jar server.properties Processor finished. Exception in thread "Thread-2" java.lang.RuntimeException: java.net.SocketException: Connection reset at org.czentral.util.stream.Feeder.feedTo(Feeder.java:81) at org.czentral.minirtmp.MiniRTMP$Worker.run(MiniRTMP.java:95) Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:196) at java.net.SocketInputStream.read(SocketInputStream.java:122) at org.czentral.util.stream.Feeder.feedTo(Feeder.java:71) ... 1 more

Flash media encoder immediately shutdown.
I try too ffmpeg:
ffmpeg -re -i aaa.flv -f flv rtmp://46.101.226.239:8081/publish/testing

but i get too error...
on ffmpeg side:

rtmp server sent error
RTMP_ReadPacket, failed to read RTMP packet header
rtmp://46.101.226.239:8081/publish/testing: Operation not permitted

on stream-m server side:
Processor finished.
Processor finished.
Processor finished.
Processor finished.
Processor finished.
Processor finished.
Processor finished.
Processor finished.
Processor finished.
Processor finished.
Processor finished.
Processor finished.
Processor finished.
Processor finished.
Connection closed.

I run on debian linux - jessie - installed "openjdk-7-jre openjdk-7-jre default-jre default-jre-headless" packages.

Can you have any tips, please? Thx

@kraja
Copy link
Author

kraja commented Mar 7, 2016

image

@vbence
Copy link
Owner

vbence commented Mar 7, 2016

Hi, the first thing I can think of if the file contains a H.264 and AAC streams. Please make a trial run with the webcam example, that is guaranteed to be the right encoding. If it works, then your sample file probably needs transcoding.

@kraja
Copy link
Author

kraja commented Mar 8, 2016

Hi, thanks for fast reply. I trying h264 and vp6 - this two formats supported by adobe flash media encoder. Or, i dont understand, what format i must use as right input? Thanks

@vbence
Copy link
Owner

vbence commented Mar 8, 2016

I recommend you do the first round of tests with ffmpeg, and move away from the example one step at a time.

Also a GUI program: OBS was used to test the broadcasting capabilities (h264 + aac).

@vbence vbence closed this as completed Feb 3, 2019
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

2 participants