I have two audio/video files that I would like to merge using picture in picture and the audio from both videos.
The following command worked to create the picture in picture. It also had the audio from the local.webm. However, it did not have the audio from the remote.webm.
ffmpeg -i local.webm -i remote.webm -filter_complex "scale=iw/4:ih/4 [pip]; [pip] overlay=main_w-overlay_w-10:main_h-overlay_h-10" -ar 44100 -vcodec h264 -acodec aac -strict experimental outstream.mp4