[FFmpeg-trac] #6770(avformat:open): RTP streaming does not support 24-bit audio

FFmpeg trac at avcodec.org
Wed Oct 25 00:16:45 EEST 2017

#6770: RTP streaming does not support 24-bit audio
             Reporter:  steeley      |                    Owner:
                 Type:  enhancement  |                   Status:  open
             Priority:  wish         |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  rtp          |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |

Comment (by cehoyos):

 Replying to [comment:4 steeley]:
 > Thanks cehoyos - good work :)
 > A quick test seems to work  for big-endian format. I had to specify
 pcm_s24be as my file is pcm24le.
 > Might be good to add support for that as well.

 To quote the RFC:
 ''The samples are packed contiguously into payload octets starting with
 the most significant bit.''

 > Also tried VLC 2.2.4 but it would not play using the SDP file.
 > '''Method:'''
 > Test machine = macbook pro OSX 10.11.6. Everything below works without
 > FFmpeg from git and apply your patch.
 > ./configure  --prefix=/usr/local --enable-gpl --enable-nonfree
 > make
 > make install
 > '''Test string:'''
 > ffmpeg -re -i voice2448.wav  -codec pcm_s24be  -f rtp
 > '''Play with FFplay:'''( SDP info. from FFmpeg into file 'astream.sdp')

 The idea would of course be to test with anything but FFmpeg ...

 > ffplay -protocol_whitelist file,udp,rtp -i astream.sdp
 > '''Play using rtpdump with sox play:'''
 > rtpdump -F payload | play -c 2 -r 48000 -b 24 -e
 signed-integer -B -t raw -
 ... without specifying all parameters on the command line.

Ticket URL: <https://trac.ffmpeg.org/ticket/6770#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list