Open codekrolik2 opened 6 months ago
The following processes are created:
Video only:
john 165227 8.4 0.2 375456 33984 pts/0 Sl+ 20:27 0:02 /home/john/PycharmProjects/RtspStreamer/.venv/bin/python /home/john/PycharmProjects/RtspStreamer/ffmpeg_approach_combined.py
john 165254 6.4 0.3 295864 54124 pts/0 SLl+ 20:27 0:01 ffmpeg -fflags nobuffer -threads 1 -i rtsp://rtspstream:48aa741b4fe778cfb4235270bb11bbb4@zephyr.rtsp.stream/movie -map 0:v -f rawvideo -pix_fmt rgb24 pipe:v -y -loglevel panic
john 165255 49.4 1.6 799336 266712 pts/0 SLl+ 20:27 0:11 ffmpeg -f rawvideo -pix_fmt rgb24 -s 720x480 -i pipe:v -vcodec h264 video_out.mp4 -y
Audio only:
john 166208 13.5 0.2 373804 33244 pts/0 Sl+ 20:30 0:00 /home/john/PycharmProjects/RtspStreamer/.venv/bin/python /home/john/PycharmProjects/RtspStreamer/ffmpeg_approach_combined.py
john 166228 1.2 0.2 288700 47796 pts/0 SLl+ 20:30 0:00 ffmpeg -fflags nobuffer -threads 1 -i rtsp://rtspstream:48aa741b4fe778cfb4235270bb11bbb4@zephyr.rtsp.stream/movie -map 0:a -f f32le -ac 1 -acodec pcm_s32le -ar 48k pipe:a -y -loglevel panic
john 166229 0.7 0.2 221456 42752 pts/0 SL+ 20:30 0:00 ffmpeg -f f32le -ac 1 -acodec pcm_s32le -ar 48k -i pipe:a -f mp3 -codec:a libmp3lame -loglevel error audio_out.mp3 -y
Video and Audio:
john 166284 8.3 0.2 374872 34536 pts/0 Sl+ 20:31 0:00 /home/john/PycharmProjects/RtspStreamer/.venv/bin/python /home/john/PycharmProjects/RtspStreamer/ffmpeg_approach_combined.py
john 166293 1.2 0.3 294724 54708 pts/0 SLl+ 20:31 0:00 ffmpeg -fflags nobuffer -threads 1 -i rtsp://rtspstream:48aa741b4fe778cfb4235270bb11bbb4@zephyr.rtsp.stream/movie -map 0:v -f rawvideo -pix_fmt rgb24 pipe:v -y -loglevel panic
john 166294 0.7 0.4 558808 65628 pts/0 SLl+ 20:31 0:00 ffmpeg -f rawvideo -pix_fmt rgb24 -s 720x480 -i pipe:v -vcodec h264 video_out.mp4 -y
john 166295 1.1 0.2 289944 47196 pts/0 SLl+ 20:31 0:00 ffmpeg -fflags nobuffer -threads 1 -i rtsp://rtspstream:48aa741b4fe778cfb4235270bb11bbb4@zephyr.rtsp.stream/movie -map 0:a -f f32le -ac 1 -acodec pcm_s32le -ar 48k pipe:a -y -loglevel panic
john 166296 1.5 0.2 287884 43008 pts/0 SLl+ 20:31 0:00 ffmpeg -f f32le -ac 1 -acodec pcm_s32le -ar 48k -i pipe:a -f mp3 -codec:a libmp3lame -loglevel error audio_out.mp3 -y
Named pipes can be used as a workaround
Hello guys, I have this prototype and I'm trying to create 2 pipe outputs for video and audio, but video part doesn't work. Do you know how this problem could be solved? Audio works as is, and if you comment out audio-related stuff, video works, too.