This command pretty much works for me:

/usr/local/bin/ffmpeg -loglevel 40 -re -y -i Input.flv -c:v libx264 
-x264-params "nal-hrd=vbr" -filter_complex "copy[in2]; 
movie=overlay.flv,setpts=N/FRAME_RATE/TB,scale=640:360[tmp2];   
[tmp2]loop=3:60:1[tmp3];  
[in2][tmp3]overlay=70:100:shortest=0:repeatlast=0:eof_action=pass" -qmin 1 
-qmax 15  -c:a aac -b:a 128k -b:v 8M -maxrate 80M -bufsize 80M -g 15  -preset 
ultrafast -s 1920x1080  -r 30  -pix_fmt yuv420p -f mp4 -t 30 out.mp4 

The Overlay appears and will loop as I tell it to, then disappear.

I created a movie_reload_file() function and added it to the class as 
(*reload), per the API
docs in libavfilter/avfilter.h.

According to the docs, *init is called once. But, it looks like most if not all 
the stuff in
movie_common_init() needs to get done with each reload of a new overlay video 
file. So that 
is what I am trying.

The overlay video file can be checked for modification and skipped if not 
changed, or perhaps
optionally deleted after loading into memory.

Beyond that, I could use any suggestions. Thanks.

*process_command looks like a possibility as well. Is that for the purposes of 
adding socket listener
to a filter to send in commands, or possibly read them from an external text 
file?

Thanks.

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to