[FFmpeg-user] Setting Frame Rate For Seconds Video Stream inside Single MP4

Axit Dhaneshkumar Soni axit.soni at vvdntech.in
Wed Jun 20 14:30:28 EEST 2018


Hi FFMPEG Team,

I am facing issue while setting frame-rate for seconds video stream(H264)
inside Single MP4 file.

Concern is, I have two H264 file with different frame-rate. At the time of
combining that two H264 video stream into Single MP4, I am able to set the
frame-rate of First H264 video stream. But not able to set frame-rate of
Seconds H264 video stream.

For Example (Different Attempts that has been done from my side),

   - *ffmpeg -r:v:0 15 -i 15FPS.h264 -r:v:1 30 -i 30FPS.h264 -c:v:0 copy
   -c:v:1 copy -map 0 -map 1 output.mp4*
   -
*ffmpeg -r:v:0 15 -i 15FPS.h264 -r:v:1 30 -i 30FPS.h264 -c copy -map 0 -map
   1 output.mp4 *
   - *ffmpeg -r:0 15 -i 15FPS.h264 -r:1 30 -i 30FPS.h264 -c copy -map 0
   -map 1 output.mp4*


After Combining both 15FPS and 30FPS H264 video stream inside MP4 file, I
can see first video stream inside mp4 file is with 15 FPS as expected. but
Seconds video stream inside mp4 file is with by default FPS which 25 FPS
instead of 30 FPS.

Let me know in case I am not clear.

*Thanks & Regards,*
Axit Soni, Sr. Engineer (SW)
VVDN Technologies Pvt. Ltd
* Cell*: +91 9099938580 | *Cell*: +91 9924957199 | *Skype*:
live:b02fa195927636d8


More information about the ffmpeg-user mailing list