I tried doing this
ffmpeg -i tcp://192.168.1.41:5000?listen -c copy out.avi
and have another client publish to this server using
ffmpeg -i 1.avi -map 0 -c copy -f mjpeg tcp://192.168.1.41:5000
However, the ffprobe results I get for these two files are
Invalid return value 0 for stream protocol Last message repeated 1 times Input #0, avi, from 'out2.avi': Metadata: encoder : Lavf57.83.100 Duration: 00:00:08.04, start: 0.000000, bitrate: 31181 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj420p(pc, bt470bg/unknown/unknown), 2048x1536, 31321 kb/s, 50 fps, 50 tbr, 50 tbn, 50 tbc
[mjpeg @ 0x177aea0] Changeing bps to 8 Input #0, avi, from '1.avi': Metadata: encoder : Lavf54.20.4 Duration: 00:00:40.20, start: 0.000000, bitrate: 6235 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj420p(pc, bt470bg/unknown/unknown), 2048x1536, 6264 kb/s, 5 fps, 5 tbr, 5 tbn, 5 tbc
Although the file size is the same, I am not sure if they are still the same. Based on the output, it seems not. Can I know why?
What should be the command to send exact same stream to a remote server?
Update with the suggestion from @Mulvya
The output of using
-f nut is as follows, which I don't quite understand why:
Invalid return value 0 for stream protocol Last message repeated 1 times [nut @ 0x55cdee5959c0] No main startcode found. tcp://192.168.1.41:5000?listen: Invalid data found when processing input