0

I try to exctract/save a data stream (XML) from an IP camera.

ffprobe output: Input #0, rtsp, from 'rtsp://172.30.10.227/axis-media/media.amp?event=on': Metadata: title : Media Presentation Duration: N/A, start: 0.120000, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 90k tbn, 180k tbc Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp Stream #0:2: Data: none Unsupported codec with id 0 for input stream 2

How can I put it on file or console output? I need the "Stream #0:2 Data" .... thx

0

Use

ffmpeg -i URL -map 0:d -c copy -copy_unknown -f data data.bin
  • Hello, thx for your quick reply – GuMiSZu Aug 22 '17 at 12:13
  • Hello, thx for your quick reply I've tried it, but it didn't work. The output file is empty.... Stream mapping: Stream #0:2 -> #0:0 (copy) Press [q] to stop, [?] for help size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) – GuMiSZu Aug 22 '17 at 12:16
  • Show the full log. – Gyan Aug 22 '17 at 12:17
  • Input #0, rtsp, from 'rtsp://root:root@172.30.10.227/axis-media/media.amp?event=on&video=1': Metadata: title : Media Presentation Duration: N/A, start: 0.040000, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 180k tbc Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp Stream #0:2: Data: noneFile 'lepke.xml' already exists. Overwrite ? [y/N] y Output #0, data, to 'lepke.xml': Metadata: title : Media Presentation encoder : Lavf57.75.100 – GuMiSZu Aug 22 '17 at 12:25
  • Stream #0:0: Data: none Stream mapping: Stream #0:2 -> #0:0 (copy) Press [q] to stop, [?] for help [rtsp @ 00000000001b6b80] max delay reached. need to consume packet [rtsp @ 00000000001b6b80] RTP: missed 154 packets size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x – GuMiSZu Aug 22 '17 at 12:25

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.