-----Original Message-----
From: "Carl Eugen Hoyos" <[email protected]>
Sent: Wednesday, March 1, 2017 4:10am
To: "FFmpeg user questions" <[email protected]>
Subject: Re: [FFmpeg-user] Stream from a dynamic collection

2017-02-27 23:34 GMT+01:00 Jorge Reyero <[email protected]>:

> I have a video collection (place in the server filesystem) which is growing
> every minute. I want to simulate a live stream from this video collection
> and if the stream reaches the end of the videos it should start form the
> first one again.
>
> I know how to repeat a single video and how to play videos from static
> video collection but I have no idea how do it with this dynamic collection.

You will need a shell script, FFmpeg does not read directories.

Carl Eugen
====================================

brother 
if you want a example of a script , this might help
loops through a dir of mov and makes mp4

#!/bin/bash

SrcDir=/path to ehere your mov are
dest=/path to where you want your mp4 to go

cd $SrcDir

for f in *.mov ; do

ffmpeg -i $SrcDir/$f < your command goods here > $dest/${f%.*}.mp4

done

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to