[FFmpeg-user] record a network stream to a seekable file and stream it at the same time
WILLEMS Emmanuel
ewillems at parlement.brussels
Mon Sep 28 19:15:15 EEST 2020
HiĀ !
I'm trying to record a MP4 rtsp transport stream directly to a seekable file and stream it to youtube at the same time.
I've got the stream and recording working, but the recorded file is not seekable.
I'm using this in a shell script:
/usr/local/ffmpeg/ffmpeg \
-rtsp_transport tcp -i "rtsp://ip_address/path" -deinterlace \
-map 0 \
-acodec aac -vcodec copy -f tee "[f=flv:onfail=ignore]$FACEBOOK_URL|[f=flv:onfail=ignore]$YOUTUBE_URL/$KEY|somefile.flv"
Anybody with tips and pointers on how to record a network stream directly to a seekable file?
I've tried mkv and flv as output file format but no luck.
Thanks in advance for any help,
Emmanuel
--
Emmanuel Willems
More information about the ffmpeg-user
mailing list