Sorry, maybe you need add & at last of ffmpeg command:

ffmpeg -i xxx -c copy -f flv rtmp://xxxxxxxx  &

and & symbol can runing in background



发件人: He Lei<mailto:[email protected]>
发送时间: 2016年12月25日 22:39
收件人: Egor Egorblch<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
主题: [FFmpeg-user] 答复: stream pre-encoded local files as a live source



Maybe you need shell in linux;

The script of sh like this:



#!/bin/sh

Doffmpeg() {

#warning,    see below,  [ ` ]  it is shift+~, not  quote;

       for filename in `ls -a ‘your folder path’ | grep *.mp4`

       do

              ffmpeg -i $filename -c copy -f flv rtmp://xxxx.com/live/$filename

       done

}

Doffmpeg



// or unuse grep if you sure any files is you want to publish, and those are 
media files;

//if you want more folders, why don’t you go try google with ‘shell’;





发送自 Windows 10 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>应用



发件人: Egor Egorblch<mailto:[email protected]>
发送时间: 2016年12月25日 20:51
收件人: [email protected]<mailto:[email protected]>
主题: [FFmpeg-user] stream pre-encoded local files as a live source



Hello to everyone,

Need some help with streaming different local files in a bunch of different 
containers and codecs.

I have a huge video collection that I recorded through the years on different 
camcorders so there
is a mass .avi/.ts/.mp4/.mkv/etc. files in different folders on my local drive.

I'd like to stream them to my home DLNA server as a live stream so that I could 
watch them on my
smart TV. Also, I don't want to re encode them so that they all have the same 
container and codec.

How can I achieve that goal with ffmpeg? Can't find how to stream a folder not 
a file in the FFmpeg documentation.

I'd like to run a few copies of FFmpeg with something like this:
ffmpeg -re -i "path/folder1" -vcodec copy -acodec copy 
rtmp://server/live/streamName
ffmpeg -re -i "path/folder2" -vcodec copy -acodec copy 
rtmp://server/live/streamName
ffmpeg -re -i "path/folder3" -vcodec copy -acodec copy 
rtmp://server/live/streamName

After that I'd like to make a .m3u play list with those links and apply it on 
my DLNA server as a
IPTV links.

Is it possible to do with FFmpeg?

Brgds,
Egor

_______________________________________________
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".
_______________________________________________
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".
_______________________________________________
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