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

Cannot read RTMP handshake response #17

Open
rubytastic opened this issue Jun 26, 2015 · 6 comments
Open

Cannot read RTMP handshake response #17

rubytastic opened this issue Jun 26, 2015 · 6 comments

Comments

@rubytastic
Copy link

Trying to copy a stream directly to mp4 with command like below both result in error:
Cannot read RTMP handshake response

Using rtmp as connection string and the speex codec in videopublisher.

ffmpeg -re -i rtmp://127.0.0.1/stream/test_1 -c copy "/tmp/XXX.mp4"
ffmpeg version N-73211-g30e9ebb-tessus Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 42.100 / 56. 42.100
libavformat 56. 37.100 / 56. 37.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 17.100 / 5. 17.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
[rtmp @ 0x7fb292604a00] Cannot read RTMP handshake response
rtmp://127.0.0.1/stream/test_1: Immediate exit requested
Received signal 2: terminating.

Tried several commands but it still fails.
I had those comment from Thomas my thanks.
Seems like a bug in Mona since I tried all local options to debug this?

@rubytastic
Copy link
Author

To add,

I manually ctrl +c ( kill excution ) then this error pops up.

@thomasjammet
Copy link
Contributor

Hi,

This is an old issue and maybe it is already resolved but are you sure you can get the rmtp stream from your environment? For example with vlc or VideoPlayer?

Otherwise it could be a problem with the version of ffmpeg, try latest build and also try to compile with "--enable-librtmp"

Regards

@ismailag
Copy link

hi , i have the same problem , did you solve it

@thomasjammet
Copy link
Contributor

Hi,

I have just tested again on Fedora 23 running the following command :
ffmpeg -re -i rtmp://127.0.0.1/stream/test_1 -c copy "/tmp/XXX.mp4"
It works great. Which environment do you have (OS, versions of programs etc...)? Can you tell us more on how to reproduce the issue?

Does vlc works with the same url? For example you can try :
vlc rtmp://127.0.0.1/stream/test_1

@yswenli
Copy link

yswenli commented Oct 27, 2017

image
image
image

The operating system I used was Windows 7 sp1

@thomasjammet
Copy link
Contributor

Hmm this is not MonaServer right? Please try MonaServer2, it is the most up-to-date implementation of RTMP that we have.

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

4 participants