adapt h264/aac mpegts to rtmp streaming services
hello everybody. I got an hauppauge hd pvr that i suppose could unload main server from the h264 video compessing and pass the stream to the server (rtmp) for braodcasting. v4l2-ctl --list-formats returns: ioctl: VIDIOC_ENUM_FMT Index : 0 Type : Video Capture Pixel Format: 'MPEG' (compressed) Name : MPEG2-TS with AVC/AAC streams To stream to the servers i use this: ffmpeg -y -re -f mpegts -i /dev/video0 -c:v copy -c:a copy -bsf:a aac_adtstoasc -g 52 -f flv "rtmp ...... but seems the server do not like my stream ... with a precompressed h264 file i made from a webM in this way: ffmpeg -i univac.webm -g 52 -strict experimental -acodec aac -ab 56k -vcodec libx264 -vb 452k -profile:v high -level 40 -r 16 -f mov univac.mp4 and feeding the server in this way: ffmpeg -re -i univac.mp4 -c:v copy -c:a copy -f flv "rtmp ........ everything is ok ..... any idea to provide the live without recompressing? thanks. Federico -- Open TV Architecture project: http://sourceforge.net/projects/otva/ Messagenet VOIP: 5338759 YouTube Channel: v1p3r's lab VIMEO HD videos: http://www.vimeo.com/user1912745/videos
2018-02-09 20:13 GMT+01:00 Federico Allegretti <allegfede@gmail.com>:
To stream to the servers i use this: ffmpeg -y -re -f mpegts -i /dev/video0 -c:v copy -c:a copy -bsf:a aac_adtstoasc -g 52 -f flv "rtmp ......
Complete, uncut console output missing. What is "-g 52" supposed to do?
but seems the server do not like my stream ...
Any error messages?
with a precompressed h264 file i made from a webM in this way: ffmpeg -i univac.webm -g 52 -strict experimental -acodec aac -ab 56k -vcodec libx264 -vb 452k -profile:v high -level 40 -r 16 -f mov univac.mp4
and feeding the server in this way: ffmpeg -re -i univac.mp4 -c:v copy -c:a copy -f flv "rtmp ........
everything is ok .....
What happens if you record the original mpegts stream with cat and try to send the saved stream? Carl Eugen
participants (2)
-
Carl Eugen Hoyos -
Federico Allegretti