I would like to segment a video file using ffmpeg and send the segmented files to a remote http url instead local server disk
I can run this command, which will store files in a directory
ffmpeg -i [input url] -map 0 -codec:v libx264 -codec:a mp2 -f segment -flags -global_header -segment_format mpegts -segment_time 10 segment%03d.ts
What I would like to do is
ffmpeg -i [input url] -map 0 -codec:v libx264 -codec:a mp2 -f segment -flags -global_header -segment_format mpegts -segment_time 10 http://url/ts_file
It gives error as Could not write header for output file #0 (incorrect codec parameters ?): Error number -22 occurred
Is it possible to do in ffmpeg?