[FFmpeg-devel] [PATCH] libavformat/rtpdec_opus: Set duration field on Opus AVPacket
Jonathan Baudanza
jon at jonb.org
Tue May 20 03:16:57 EEST 2025
Does anyone have feedback on this?
Here are some steps to reproduce the current issue:
# Start broadcasting
ffmpeg -re -i input.opus -c:a copy -f rtp -sdp_file stream.sdp rtp://127.0.0.1:9000
# Start recording (in another terminal)
ffmpeg -protocol_whitelist file,udp,rtp -i stream.sdp -y -c:a copy output.opus
# Observe that output.opus pts starts at -960
ffprobe -show_entries packet=pts,duration output.opus | head
More information about the ffmpeg-devel
mailing list