Solved

Streaming to Flash Media Server with ffmpeg, crashes on start

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
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 the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

758 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

21 Experts available now in Live!

Get 1:1 Help Now