[FFmpeg-user] 答复: 答复: stream pre-encoded local files as a live source
He Lei
helei0908 at hotmail.com
Mon Dec 26 05:06:37 EET 2016
That’s right.
HTH
发件人: Egor Egorblch<mailto:temp_for_x-at-mail.ru at ffmpeg.org>
发送时间: 2016年12月26日 1:49
收件人: FFmpeg user questions<mailto:ffmpeg-user at ffmpeg.org>
主题: Re: [FFmpeg-user] 答复: stream pre-encoded local files as a live source
Hi He,
I got your point.
Does this mean that FFmpeg can't get a folder name as an INPUT parameter instead of a files listing?
Brgds,
Egor
Sunday, December 25, 2016, 5:39:28 PM, you wrote:
> 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:temp_for_x-at-mail.ru at ffmpeg.org>
> 发送时间: 2016年12月25日 20:51
> 收件人: ffmpeg-user at ffmpeg.org<mailto:ffmpeg-user at ffmpeg.org>
> 主题: [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
> 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".
_______________________________________________
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