[FFmpeg-user] Providing HLS for a QuickTime Broadcaster AV stream
l1 at newanswertech.com
l1 at newanswertech.com
Wed Jun 4 04:33:36 CEST 2014
Hello
I am attempting to provide an HTTP Live Streaming feed, converted from a
received unicast stream from QuickTime Broadcaster running, of course, on a Mac.
I am using a custom compiled version of FFMpeg, running on a Ubuntu server.
I was originally trying to follow this instructionset, although various
problems have caused me to modify the command somewhat:
<http://blog.gaiterjones.com/http-live-streaming-using-quicktime-broadcaster-and-ffmpeg/>,
which is the only source I found for how to do this. However, it's not working.
My command:
ffmpeg -probesize 5MB -vcodec h264 -acodec pcm_s16le -i ~/origin.sdp \
-acodec libfdk_aac -ac 2 -b:a 128k -vcodec libx264 -fpre \
$HOME/ffmpeg_build/share/ffmpeg/libx264-ipod640.ffpreset -b:v 500k -threads 0 \
-g 75 -level 3.1 -map 0 $-flags -global_header -f segment \
-segment_time 10 \
-segment_list playlist.m3u8 -segment_list_flags +live \
-segment_list_entry_prefix http://something.com/somedir/ \
-segment_format mpegts stream%05d.ts
-fpre is because I tried to use -vpre, but it could never find the preset, even
with "export FFMPEG_DATADIR=$HOME/ffmpeg_build/share".
Output:
ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 1 2014 06:16:27 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/home/ubuntu/ffmpeg_build
--extra-cflags=-I/home/ubuntu/ffmpeg_build/include
--extra-ldflags=-L/home/ubuntu/ffmpeg_build/lib --bindir=/home/ubuntu/bin
--extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
libavutil 52. 87.100 / 52. 87.100
libavcodec 55. 65.100 / 55. 65.100
libavformat 55. 42.100 / 55. 42.100
libavdevice 55. 13.101 / 55. 13.101
libavfilter 4. 5.100 / 4. 5.100
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
[sdp @ 0x382b060] Estimating duration from bitrate, this may be inaccurate
[sdp @ 0x382b060] Could not find codec parameters for stream 1 (Video: h264):
unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, sdp, from '/home/vidstream/origin.sdp':
Metadata:
title : QuickTime
Duration: 00:00:00.00, bitrate: 1404 kb/s
Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream #0:1: Video: h264, 90k tbr, 90k tbn, 180k tbc
[buffer @ 0x38907e0] Unable to parse option value "0x0" as image size
[buffer @ 0x38907e0] Unable to parse option value "-1" as pixel format
[buffer @ 0x38907e0] Unable to parse option value "0x0" as image size
[buffer @ 0x38907e0] Error setting option video_size to value 0x0.
[graph 1 input from stream 0:1 @ 0x3890200] Error applying options to the
filter.
Error opening filters!
origin.sdp, sans identifying information:
v=0
o=- 85 1468213153 IN IP4 127.0.0.0
s=QuickTime
t=0 0
a=x-qt-text-an
:Gaiter Jones Instructions
a=x-qt-text-pc
:CompanyName
a=x-qt-text-ua
:Producer Name
a=x-qt-text-ni
:www.something.net
a=range:npt=now-
m=audio 5432 RTP/AVP 96
c=IN IP4 #.#.#.#
b=AS:1379
a=rtpmap:96 X-QT/44100/2
m=video 5434 RTP/AVP 97
c=IN IP4 #.#.#.#
a=rtpmap:97 X-QT/90000
a=cliprect:0,0,480,640
a=framesize:97 640-480
Any help would be very much appreciated! I've been fighting with this for two
days, and my deadline is basically tomorrow.
Thanks!
Luke
More information about the ffmpeg-user
mailing list