Jump to content
  • 0

FFMPEG options to stitch webRTC recorded mp4 videos


Mark Sergienko
 Share

Question

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};
done

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...