[FFmpeg-user] ffmpeg hang in background

DopeLabs dopelabs at dubstep.fm
Wed Oct 17 11:52:01 EEST 2018


here is an example of one of the commands i have running without any issues...

ffmpeg -d -i http://127.0.0.1:5000 -r 60 -i viz.mp4 -loop 1 -i mask.png -filter_complex lowpass=600,showwaves=s=1280x720:mode=cline:r=60:colors=random|random[viz];[1:v]scale=1280x720,setsar=1/1[sun];[viz][sun]blend=all_mode=heat:shortest=1[bg];[bg][2:v]blend=all_mode=overlay:shortest=1:repeatlast=0:enable=lt(mod(t\,300)\,5),drawtext=fontfile=d3.ttf:fontsize=38:fontcolor=gray:text=DSFM.TV:x=5:y=(h-text_h)-5,drawtext=fontfile=helvbold.ttf:fix_bounds=true:fontsize=28:textfile=nowplaying.txt:fontcolor=gray:reload=1:y=(h-text_h)-5:x=(w-text_w)/2:enable=lt(mod(t\,60)\,15),drawtext=fontfile=helvbold.ttf:fontsize=24:fontcolor=gray:textfile=tuneid.txt:reload=1:y=5:x=(w-text_w)/2,drawtext=fontfile=helvbold.ttf:fontsize=24:fontcolor=gray:textfile=date.txt:reload=1:y=5:x=(w-text_w)-5:enable=lt(mod(t\,60)\,15),drawtext=fontfile=d3.ttf:fontsize=38:fontcolor=gray:textfile=count.txt:reload=1:x=(w-text_w)-5:y=(h-text_h)+20,hue=H=2*sin(400*PI/600*t) -s 1280x720 -c:a libfdk_aac -b:a 256k -c:v libx264 -preset ultrafast -profile:v high -level 4.2 -g 120 -bf 4 -x264opts keyint=120:min-keyint=120:8x8dct=1 -pix_fmt yuv420p -r 60 -f flv rtmp://127.0.0.1/live/viz

in short it grabs my net radio stream and outputs visualizations and adds text for the current playing mix, when the air date was, and the current number of people watching... i publish the stream at dsfm.tv

nothing that changes pts mid stream though.. that sounds like it wouldnt be good though...

> On Oct 16, 2018, at 1:04 42PM, Paul B Mahol <onemda at gmail.com> wrote:
> 
> On 10/16/18, DopeLabs <dopelabs at dubstep.fm> wrote:
>> never happens to me and i have many processes that use -r running in the
>> background 24/7
>> 
>> they all start with
>> 
>> ffmpeg -d -i
>> 
>> and end with
>> 
>> -f flv rtmp://host/app/stream  </dev/null &
> 
> Do you use filtergraphs that change pts at all?
> 
> Try with loop filters and -r and you will get fancy effect.
> 
> 
>> 
>> 
>>> On Oct 16, 2018, at 3:16 16AM, sailor-godkane <jimmy at dcode.eu> wrote:
>>> 
>>> Could using -r with a filtergraph at the same time hang the command at
>>> random?
>>> 
>>> 
>>> 
>>> --
>>> Sent from: http://www.ffmpeg-archive.org/
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> ffmpeg-user at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>> 
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>> 
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>> 
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list