[FFmpeg-user] about merging Multiple videos together

Ajoy Devadawson ajoydawson at gmail.com
Fri Jul 28 18:46:05 EEST 2017


Akash,

May be there is a better way to fix than my suggestion.  My approach was to
change for each file to gop of 30 and fps of 30 thro ffmpeg and then concat
the files.  I think the concat function is looking for I frames to concat
and it might be confused if it has less I frames to work with. Try this and
if it doesn't work, try even reducing gop and fps to 15. After all, you
have a high bit rate of 9000k for a low resolution.  I will be glad to see
how it works.

Ajoy

On Fri, Jul 28, 2017 at 6:47 AM, akash kulkarni <kul.akash123 at gmail.com>
wrote:

> Thanks ajoy,
>
> I have
>  Input #0, mpegts, from 'MTS_567i50_002.MTS':
>  Duration: 00:01:32.15, start: 0.000011, bitrate: 9424 kb/s
>  Program 1
>  Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p,
> 720x576
>  [SAR 2304:2160 DAR 4:3], 25 fps, 50 tbr, 90k tbn, 50 tbc Stream
>  #0:1[0x1100]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo,
>  s16p, 192 kb/s
>
> such kind of files which i wanted to merge with 720*576 resolution
> These files has GOP size of 33, After i  merge them at each joint point
> they jerk is coming
> when i looked frames with some application there are few frames of next
> video mixed with
> previous video and sometimes few black frames also so how could i remove
> such unwanted frames and
> make my video smooth.
>
> these videos Do have i frames after each 33rd frame so no question of key
> frames would be there i guess.
>
> so can you tell me solution over this.
>
>
> On Fri, Jul 28, 2017 at 2:12 AM, Ajoy Devadawson <ajoydawson at gmail.com>
> wrote:
>
> > I guess it could be a problem with keyframes.  If you could assign
> > keyframes densely, this problem could be avoided.  Try assigning 1
> keyframe
> > per second for your individual files, then concat would join without any
> > jerk.
> >
> > On Thu, Jul 27, 2017 at 12:03 AM, akash kulkarni <kul.akash123 at gmail.com
> >
> > wrote:
> >
> > > DO i need to explain it more. can any 1 help out with this issue
> > >
> > >
> > > On Wed, Jul 26, 2017 at 3:45 PM, akash kulkarni <
> kul.akash123 at gmail.com>
> > > wrote:
> > >
> > > > hie friends ,
> > > >                       i am merging few files in mts and mpg formats
> > using
> > > > concat demux
> > > >
> > > >         ffmpeg -f concat -i mylist.txt -c copy output
> > > >
> > > > but for MTS 720*576 (SD) format ,  at merge point of two files it
> > adding
> > > >
> > > > few frames of next video and few blank frames also causing jerk . can
> > > >
> > > > nayone help me to solve the problem and remove those frames using
> > ffmpeg
> > > >
> > > > command in above concat demux command.
> > > >
> > > > 'else'
> > > >
> > > > Can anyone suggest how i can merge all those files without any jerk.
> > > >
> > > > Hope anyone help me.
> > > >
> > > > Thanks in advance
> > > >
> > > >
> > > _______________________________________________
> > > ffmpeg-user mailing list
> > > ffmpeg-user at ffmpeg.org
> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > >
> > > To unsubscribe, visit link above, or email
> > > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> >
> >
> >
> >
> > --
> > Ajoy A. Devadawson
> > Email: ajoydawson at gmail.com
> > Mobile # 1-404-626-6340
> > Skype: AjoyDawson
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> >
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>



-- 
Ajoy A. Devadawson
Email: ajoydawson at gmail.com
Mobile # 1-404-626-6340
Skype: AjoyDawson


More information about the ffmpeg-user mailing list