[FFmpeg-user] mp4 splitting and concatenating process

Hans Emmanuel hans at sparksupport.com
Tue Jul 7 05:24:10 CEST 2015


Hello Mahesh,

Thanks for your reply. Its really interesting project. We are looking in to
building a scalable transcoding farm in AWS. I tried using your commands
for splitting and concatenating , but have the same result. The issue seems
only for mkv files while mp4 concatenation seems fine.

On Mon, Jul 6, 2015 at 12:05 PM, Mahesh Patade <patademahesh at gmail.com>
wrote:

> Hey,
>
> Please check this process
> https://github.com/patademahesh/Distributed-Video-Transcoding/.
>
> I have written this logic in my project. Check scripts.
>
>
>
> On Mon, Jul 6, 2015 at 11:39 AM, Hans Emmanuel <hans at sparksupport.com>
> wrote:
> > Hello all,
> >
> > I need to split mp4 files for distributed batch transcoding process. I
> was
> > planning to split it with ffmpeg command
> >
> > *ffmpeg -i largefile.mp4 -ss 00:00:00 -t 00:05:00  -acodec copy -vcodec
> > copy part1.mp4 -ss 00:05:00 -t 00:05:00  -acodec copy -vcodec copy
> > part2.mp4 * etc..
> >
> > Then concatenating the part files with
> >
> > *ffmpeg -f concat -i mylist.txt -c copy final.mp4*    where mylist.txt
> > contains the part files locations. But the final video seems hanging for
> a
> > bit of second at the joining points. I  have tried the other method with
> > mpegts.
> >
> > first I split converted to mpegts with
> >
> >
> > *ffmpeg -i file.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts
> file_mpegts.ts*
> >
> > Then I split mpegts to part files with the first ffmpeg command and
> > finally I concatenated part files with
> >
> > *ffmpeg -i "concat:part1.ts|part2.ts" -c copy -bsf:a aac_adtstoasc
> > file_final.mp4*  . But in this method also, the above mentioned
> >
> >  problem is there. Am I using the correct commands/ method? Please
> > share your thoughts for a smooth concatenation.
> >
> >
> >
> >
> > --
> >    Warm Regards,  Hans Emmanuel
> > *Project Manager (Linux Infrastructure Management)*
> >  *Email* :  hans at sparksupport.com   *|*   *Skype* :  sparkhans
> > <http://www.sparksupport.com/> <http://www.sparkmycloud.com/>
> > <https://www.facebook.com/sparksupport>
> > <http://www.linkedin.com/company/244846>  <
> https://twitter.com/sparksupport>
> > 3rd Floor, Leela Infopark, Phase -2,Kakanad, Kochi-30, Kerala, India
> > *Phone*:+91 484 6561696 , *Mobile*:91-9744167260.   *Confidentiality
> > Notice:* Information in this e-mail is proprietary to SparkSupport. and
> is
> > intended for use only by the addressed, and may contain information that
> is
> > privileged, confidential or exempt from disclosure. If you are not the
> > intended recipient, you are notified that any use of this information in
> > any manner is strictly prohibited. Please delete this mail & notify us
> > immediately at info at sparksupport.com
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>
>
> --
> Best Regards,
> Mahesh Patade
> Mob. No. +91-97735-80660
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>



-- 
   Warm Regards,  Hans Emmanuel
*Project Manager (Linux Infrastructure Management)*
 *Email* :  hans at sparksupport.com   *|*   *Skype* :  sparkhans
<http://www.sparksupport.com/> <http://www.sparkmycloud.com/>
<https://www.facebook.com/sparksupport>
<http://www.linkedin.com/company/244846>  <https://twitter.com/sparksupport>
3rd Floor, Leela Infopark, Phase -2,Kakanad, Kochi-30, Kerala, India
*Phone*:+91 484 6561696 , *Mobile*:91-9744167260.   *Confidentiality
Notice:* Information in this e-mail is proprietary to SparkSupport. and is
intended for use only by the addressed, and may contain information that is
privileged, confidential or exempt from disclosure. If you are not the
intended recipient, you are notified that any use of this information in
any manner is strictly prohibited. Please delete this mail & notify us
immediately at info at sparksupport.com


More information about the ffmpeg-user mailing list