#11531: Audio stream not muxed with -c:a copy from RTSP ------------------------------------+---------------------------------- Reporter: HelFix | Owner: (none) Type: defect | Status: new Priority: normal | Component: ffmpeg Version: 7.1 | Resolution: Keywords: AAC FFmpeg | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ------------------------------------+---------------------------------- Description changed by HelFix:
Old description: > 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. New description: 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: {{{ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 title : Media Presentation encoder : Lavf61.7.100 Duration: 00:00:04.95, start: 0.000000, bitrate: 2591 kb/s Stream #0:0[0x1](und): Video: h264 (Baseline) (avc1 / 0x31637661), yuvj420p(pc, progressive), 1920x536 [SAR 1:1 DAR 240:67], 2558 kb/s, 19.80 fps, 20 tbr, 90k tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, mono, fltp, 26 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0] }}} - Actual Behavior: In n7.1-62: {{{ Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 title : Media Presentation encoder : Lavf61.7.100 Duration: 00:00:09.15, start: 0.000000, bitrate: 1918 kb/s Stream #0:0[0x1](und): Video: h264 (Baseline) (avc1 / 0x31637661), yuvj420p(pc, progressive), 1920x536 [SAR 1:1 DAR 240:67], 1917 kb/s, 19.34 fps, 20 tbr, 90k tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] }}} 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#comment:1> 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".