Solved

Streaming to Flash Media Server with ffmpeg, crashes on start

Posted on 2014-04-20
3
249 Views
Last Modified: 2016-01-23
I am looking for an alternative to Flash Media Live Encoder for Linux platform because Flash Media Live Encoder not supported on Linux till now it is freely available for "Windows" and "Mac" platform only. I have try to get some live encoder for Linux on Google but no luck. So please if any one know about any good Live encoder for Linux please share with me. I want to setup RTMP live encoder on my Ubuntu Server 64 bit.

I have tried:

1. Publishing rtmp stream directly to your Flash Media Server from Linux with ffmpeg (authentication problem)
2. Re-compiling ffmpeg and all its associated libs with authentication patch for the librtmp as described here. (ffmpeg crashes)
Error:  *** glibc detected *** avconv: malloc(): smallbin double linked list corrupted: 0x0000000001dd8b80 ***

Here is my command line:
avconv -i ~/Videos/02\ Your\ Ever\ Well-Wisher/VTS_02_1.mp4 -ar 44100 -f flv 'rtmp://xxxx:xxxxx@xxxxxx.tv/allTemples/HillsboroughNC flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=true  playpath=HillsboroughNC app=allTemples/HillsborghNC'

Open in new window



I have read in many places that streaming to Flash Media Server with ffmpeg is supposed to work.
0
Comment
Question by:Jeff swicegood
  • 3
3 Comments
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 40011910
On further investigation, the problem seems to be librtmp, because rtmpdump, another program that uses it also crashes with a segfault.
0
 
LVL 1

Author Comment

by:Jeff swicegood
ID: 40011986
Oop, maybe not. I guess the real question is how to get past the authentication rejection.
0
 
LVL 1

Accepted Solution

by:
Jeff swicegood earned 0 total points
ID: 41429077
I finally got this to work. Had to get the URL right.

Here is the command line  I ended up with:

ffmpeg -y  -loglevel warning  -thread_queue_size 2048 \
 -f decklink  -rtbufsize 1002000k  -i 'DeckLink Mini Recorder@14' \
  -threads 0 -acodec libfdk_aac \
-vcodec libx264  -pix_fmt yuv420p  -b:v 1000k -ar 22050 -preset fast -vprofile main\
  -f flv "rtmp://xxxxxxxxxxxNC:xxxxxxxxx@xxxxxx.xxxxx.tv/allTemples/xxxxxxxxxxNC/xxxxxxxxxxNC flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=true"

Open in new window




Complied with these options:

ffmpeg version N-77063-ga08681f Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
  configuration: --prefix=/home/jaga/ffmpeg_build --enable-decklink --enable-gpl --enable-libx264 --enable-libfdk-aac --enable-nonfree --extra-cflags=-I/home/jaga/ffmpeg_build/include --extra-ldflags=-L/home/jaga/ffmpeg_build/lib --bindir=/home/jaga/bin --pkg-config-flags=--static
  libavutil      55.  9.100 / 55.  9.100
  libavcodec     57. 16.101 / 57. 16.101
  libavformat    57. 19.100 / 57. 19.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 20.100 /  6. 20.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question