[FFmpeg-user] How to make ffmpeg keep silence in generated audio files when RTP input is paused

Iñaki Baz Castillo ibc at aliax.net
Wed Sep 20 11:30:00 EEST 2017


Thanks. May I know what AV_OPT_TYPE_DURATION is? seconds? ms?

On Wed, Sep 20, 2017 at 1:41 AM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 2017-09-20 1:09 GMT+02:00 Iñaki Baz Castillo <ibc at aliax.net>:
>> On Wed, Sep 20, 2017 at 12:50 AM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
>>> Can I reproduce this locally without using other software?
>>
>> Sure, just create a test.sdp file as follows:
>>
>> ------------ test.sdp ---------
>> v=0
>> o=- 22714557 1 IN IP4 127.0.0.1
>> s=123123
>> t=0 0
>> m=audio 1234 RTP/AVP 100
>> c=IN IP4 192.168.1.34
>> a=rtcp:9 IN IP4 0.0.0.0
>> a=sendonly
>> a=rtcp-mux
>> a=rtcp-rsize
>> a=rtpmap:100 opus/48000/2
>> -------------------------------
>>
>> and run:
>>
>> ffmpeg -loglevel debug -protocol_whitelist file,udp,rtp -async 1 -i
>> test.sdp output.wav
>
> Thank you!
>
> Feel free to test the patch I just sent to -devel.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



-- 
Iñaki Baz Castillo
<ibc at aliax.net>


More information about the ffmpeg-user mailing list