[FFmpeg-user] use ffmpeg to stream ffplay output?

DopeLabs dopelabs at dubstep.fm
Sun Feb 9 15:37:59 CET 2014


apparently nothing is wrong with that at all =], although i didnt need the sdl... 

and thanks for the tip.. ive been tinkering with this stuff all night =]


previously i had some text being drawn using 

-vf drawtext="fontsize=15:fontfile=helvbold.ttf:fontcolor=white:textfile=/home/user/title.txt:reload=1"

but it seems to not like when they are both in there... 

$ ffmpeg -i http://relay1.dubstep.fm -filter_complex showspectrum=mode=combined:color=channel:slide=0:scale=cbrt:s=1280x720 -vf drawtext="fontfile=/home/dopelabs/font.ttf:fontsize=15:fontcolor=white:textfile=/home/dopelabs/title.txt:reload=1:y=10:x=10" -c:v libx264 -preset ultrafast -tune zerolatency -b:v 5000k -pix_fmt yuv420p -bsf h264_mp4toannexb -c:a aac -strict -2 -b:a 192k -f mpegts udp://
ffmpeg version N-60031-ga459891 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan 21 2014 05:13:55 with gcc 4.6 (Debian 4.6.3-1)
  configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
  libavutil      52. 63.100 / 52. 63.100
  libavcodec     55. 48.102 / 55. 48.102
  libavformat    55. 25.100 / 55. 25.100
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  1.100 /  4.  1.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[mp3 @ 0xa60b120] Header missing
Input #0, mp3, from 'http://relay1.dubstep.fm':
  Duration: N/A, start: 0.000000, bitrate: 192 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 192 kb/s
Filtergraph 'drawtext=fontfile=/home/dopelabs/font.ttf:fontsize=15:fontcolor=white:textfile=/home/dopelabs/title.txt:reload=1:y=10:x=10' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.
-vf/-af/-filter and -filter_complex cannot be used together for the same stream.
$
$

any ideas on how i can overlay some text on top of a current complex?

cheers

DL



More information about the ffmpeg-user mailing list