Solved

Streaming to Flash Media Server with ffmpeg, crashes on start

Posted on 2014-04-20
3
320 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In this article, I'll explain how to setup a Plex Media Server (https://plex.tv/) on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
Viewers will get an overview of how to make and use Drum Racks in Ableton Live. Load new Drum Rack into empty MIDI track: Fill rack with audio samples: Re-arrange sample slots as necessary: Adjust parameters of each slot to tailor each sound a…
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.
Suggested Courses

624 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