Solved

Streaming to Flash Media Server with ffmpeg, crashes on start

Posted on 2014-04-20
3
232 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
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…
Viewers will learn the basics of making and using Impulse Kits in Ableton Live. Load new Impulse into an empty MIDI track: Fill the 8 empty sample slots with drum samples: Adjust parameters to tailor each sound as desired: Proceed to create be…
Viewers will learn how to include realistic velocity sensitivity to their Sampler instruments. Set the Vol<Vel parameter in the Filter/Global tab to your desired setting: Gather samples of hits of various intensity, and drag/drop into Velocity zon…

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now