[FFmpeg-user] how to stream several video files with ffmpeg

Hasan BAĞÇACI dev.hasan.bagcaci at gmail.com
Wed Nov 9 14:20:58 EET 2016


Hi

You can use concat  for multi files stream not any latency. I send link and
command below. this link

Regards

Hasan

https://trac.ffmpeg.org/wiki/Concatenate

ffmpeg -i input1.mp4 -i input2.webm \
-filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v]
[a]" \
-map "[v]" -map "[a]" <encoding options> output.mkv

2016-11-09 12:48 GMT+03:00 若宇星痕 <513534012 at qq.com>:

> I tried other videos and it success, maybe the previous videos have some
> problems.
>
>
> I'm using java and python to write the ffmpeg program.
> Another question is how to call the next ffmpeg video stream command when
> the streaming video is finished?
> If I call several ffmpeg command at the same time,the shell will say:
>     Server error: Already publishing
>     rtmp address:  Operation not permitted
>
>
> Thank you
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Sven C. Dack";<sven.c.dack at sky.com>;
> 发送时间: 2016年11月9日(星期三) 下午5:04
> 收件人: "FFmpeg user questions"<ffmpeg-user at ffmpeg.org>;
>
> 主题: Re: [FFmpeg-user] how to stream several video files with ffmpeg
>
>
>
> On 09/11/16 03:11, 若宇星痕 wrote:
> > Hi, everyone:
> >
> >
> > I have a list of several videos and i want to stream these files with no
> interval,
> > like watching a playlist of rtmp stream.
> > I have tried a loop to stream for the list,but when a video stream ended
> and stream another file,
> > the VLC player will be blank and I need to reopen the rtmp server
> address.
> > How can I stream these files and watch the rtmp stream on VLC player
> with open the rtmp address only once.
> >
> >
> > Best Wishes
> > _______________________________________________
> > 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".
>
> Hello,
>
> have you tried using a playlist yet? Create one and put the same address in
> repeatedly.
>
> Also, you might want to contact the VLC mailing lists for such questions:
> http://www.videolan.org/support/lists.php
>
> There you should find the appropriate help.
>
> Cheers,
>
> Sven
>
>
> _______________________________________________
> 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".
>


More information about the ffmpeg-user mailing list