How to streaming audio with ffmpeg and container of my own choosing?
I’m streaming an ac3 audio via rtsp using ffmpeg like this:
> ffmpeg -re -f ac3 -i sample4.ac3 -ar 8000 -f mulaw -f rtsp rtsp://10.22.22.11:8554/audiostream
In the RTSP protocol exchange it DESCRIBEd like this:
> Session Description Protocol
> Session Description Protocol Version (v): 0
> Owner/Creator, Session Id (o): - 0 0 IN IP4 127.0.0.1
> Session Name (s): No Name
> Connection Information (c): IN IP4 0.0.0.0
> Time Description, active time (t): 0 0
> Media Description, name and address (m): audio 0 RTP/AVP 96
> Media Attribute (a): control:rtsp://10.22.22.11:8554/audiostream/trackID=0
> Media Attribute (a): rtpmap:96 mpeg4-generic/8000/2
> Media Attribute (a): fmtp:96 config=1590; indexdeltalength=3; indexlength=3; mode=AAC-hbr; profile-level-id=1; sizelength=13;
> streamtype=5
I wondering if I can specify specific container in ffmpeg command line while keeping media format the same. For example I want MPEG-TS container instead of mpeg4. Looking through the ffmpeg docs did not really helped me.
Read more here: Source link