Jump to content
  • 0

FFMPEG options to stitch webRTC recorded mp4 videos

Mark Sergienko


The WebRTC recorded video change resolution if network bandwidth changes... This results in a weird video with changing size of the frame.

Does anyone have the FFMPEG command that does stitching and rescaling to consistent resolution? Preferably if it can do so without re-encoding the video?

This is what I'm currently using for RTMP concatenation (which has constant resolution):

for f in `ls -tr $FILES`; do
    ffmpeg -y -i $f -c copy -bsf:v h264_mp4toannexb  -video_track_timescale 90000 -f mpegts ${f/\.mp4/_converted\.ts};

ffmpeg -y -i "concat:$(ls -tr $TS_FILES | paste -sd "|" -)" -c copy -bsf:a aac_adtstoasc $final

Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet


  • Create New...