#11531: Audio stream not muxed with -c:a copy from RTSP ------------------------------------+---------------------------------- Reporter: HelFix | Type: defect Status: new | Priority: normal Component: ffmpeg | Version: 7.1 Keywords: AAC FFmpeg | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+---------------------------------- Summary of the bug: -How to reproduce: - Use the following command with an RTSP stream: {{{ ffmpeg -rtsp_transport tcp -i rtsp://admin:admin@10.15.129.19:554/Streaming/Channels/102 -c:v copy -c:a copy output.mp4 }}} - Test with: ffmpeg-n7.1-39-g64e2864cb9-linux64-gpl-7.1 or 6.1.1 (works). ffmpeg-n7.1-62-gb168ed9b14-linux64-gpl-7.1 and newer (fails).
- Expected Behavior: Both video and audio streams are muxed into output.mp4. In n7.1-39, ffprobe shows: Video: h264, 1920x536, ~20 fps. Audio: aac, 32000 Hz, mono. - Actual Behavior: In n7.1-62: Video is muxed (e.g., 219 packets, 2116297 bytes). Audio is read (e.g., 366 packets, 39746 bytes) but not muxed (0 packets, 0 bytes). Example log from a similar 7.1 failure: {{{ [in#0/rtsp] Input stream #0:1 (audio): 366 packets read (39746 bytes); [out#0/mp4] Output stream #0:1 (audio): 0 packets muxed (0 bytes); }}} {{{ [rtsp @ 0x6044978bfbc0] SDP: v=0 o=- 1743073449707371 1743073449707371 IN IP4 10.15.129.19 s=Media Presentation e=NONE b=AS:5100 t=0 0 a=control:rtsp://10.15.129.19:554/Streaming/Channels/102/ m=video 0 RTP/AVP 96 c=IN IP4 0.0.0.0 b=AS:5000 a=recvonly a=x-dimensions:1920,536 a=control:rtsp://10.15.129.19:554/Streaming/Channels/102/trackID=1 a=rtpmap:96 H264/90000 a=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter- sets=Z0IAM4qKUDwCK8v/gACAALZAAAD6AAATiAE=,aM48gA== m=audio 0 RTP/AVP 104 c=IN IP4 0.0.0.0 b=AS:50 a=recvonly a=control:rtsp://10.15.129.19:554/Streaming/Channels/102/trackID=2 a=rtpmap:104 mpeg4-generic/32000/1 a=fmtp:104 profile-level-id=15; streamtype=5; mode=AAC-hbr; config=1288;SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1; a=Media_header:MEDIAINFO=494D4B48010300000400000101200110007D0000007D000000000000000000000000000000000000; a=appversion:1.0 }}} - Environment: OS: Ubuntu 24.04 Builds: BtbN static Linux 64-bit GPL from https://github.com/BtbN/FFmpeg- Builds. Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11531> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
_______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org https://ffmpeg.org/mailman/listinfo/ffmpeg-trac To unsubscribe, visit link above, or email ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".