Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 08-04-2016, 06:00 PM
hakursa hakursa is offline
Junior Member
 
Join Date: Jun 2016
Posts: 15
hakursa is on a distinguished road
Default

How I can put text on the streaming with ffmpeg?


Hello, I stream with this command with ffmpeg:
ffmpeg -re -i "http://CDN12_eu.sababatv.com:80/C18/smil:C18.smil/playlist.m3u8?token=d0b7bcc5-3c6b-46b3-9118-67a436fdefbb" -framerate 25 -vcodec h264 -video_size 720x480 -c:v libx264 -preset veryfast -maxrate 1000k -bufsize 2548k -pix_fmt yuv420p -c:a libmp3lame -b:a 96k -ar 44100 -f flv "rtmp://cdn.pubzony.com/stream/exampled?key=db6c5424&id=3055"

My question is if someone can join to this code the command to put a line of white text and black shadow on the center-top of the screen?

If someone can send the new code with this command inside (you can write in text: test test test test and I'll change it by myself), I'll be really thankful.

Thanks.
Reply With Quote
  #2  
Old 08-05-2016, 05:09 AM
j3443694 j3443694 is offline
Junior Member
 
Join Date: Jan 2016
Posts: 7
j3443694 is on a distinguished road
Default

Re: How I can put text on the streaming with ffmpeg?


use "drawtext" in the ffmpeg

for example :
ffmpeg -i input.mp4 -vf drawtext="fontfile=/path/to/font.ttf: \
text='Stack Overflow': fontcolor=white: fontsize=24: box=1: boxcolor=black@0.5: \
boxborderw=5: x=(w-text_w)/2: y=(h-text_h)/2" -codec:a copy output.mp4

Reply With Quote
  #3  
Old 08-05-2016, 01:59 PM
hakursa hakursa is offline
Junior Member
 
Join Date: Jun 2016
Posts: 15
hakursa is on a distinguished road
Default

Re: How I can put text on the streaming with ffmpeg?


Hey, Thank you for your answer.
I already saw this code in stackoverflow, but I don't know how to combine this code with my code - that's why I posted the topic here.

Could you please do it for me?
Thank you a lot!
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 01:48 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons