[FFmpeg-user] adapt h264/aac mpegts to rtmp streaming services

Federico Allegretti allegfede at gmail.com
Fri Feb 9 21:13:00 EET 2018

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

v4l2-ctl --list-formats returns:
    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?


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

More information about the ffmpeg-user mailing list