[FFmpeg-user] 答复: 答复: stream pre-encoded local files as a live source
He Lei
helei0908 at hotmail.com
Sun Dec 25 16:45:57 EET 2016
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:helei0908 at hotmail.com>
发送时间: 2016年12月25日 22:39
收件人: Egor Egorblch<mailto:temp_for_x-at-mail.ru at ffmpeg.org>; ffmpeg-user at ffmpeg.org<mailto:ffmpeg-user at ffmpeg.org>
主题: [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: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".
More information about the ffmpeg-user
mailing list