Solved

Streaming to Flash Media Server with ffmpeg, crashes on start

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
flash in chrome 4 123
Play RTMP without Flash 3 769
How can I make renaming PARTS of MP3 tags simple? 8 50
Difference between YouTube Channel and PodCasts? 6 185
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

726 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