You can actually do this without Bash, you just encode the Carriage Return as %d
lists.mplayerhq.hu/pipermail/rtmpdump/2012-October/002109.html
Code:
$ rtmpdump -o a.flv -r rtmp://freeview.fms.visionip.tv/live/tvnetwork-hellenict
v-sigma-hsslive-25f-4x3-SDh%d
RTMPDump v2.4-47-gc26c541
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: audiochannels 2.00
INFO: audiosamplerate 44100.00
INFO: audiocodecid mp4a
INFO: videocodecid avc1
INFO: width 426.00
INFO: height 320.00
INFO: frameWidth 432.00
INFO: frameHeight 320.00
INFO: displayWidth 426.00
INFO: displayHeight 320.00
INFO: framerate 25.00
INFO: trackinfo:
INFO: timescale 0.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype
INFO: type audio
INFO: config 1210
INFO: description {AACFrame: codec:AAC, channels:2, frequency:44100,
samplesPerFrame:1024, objectType:LC}
INFO: timescale 0.00
INFO: language eng
INFO: sampledescription:
INFO: sampletype
INFO: type video
INFO: profile-level-id 42801e
INFO: sprop-parameter-sets Z0KAHpZTg2FN/4AoACi1BQUFQAAAAwBAAAAMuAgAJJ8AAST5mc
8DtCxc8A==,aMmMNSA=
INFO: description {H264CodecConfigInfo: codec:H264, profile:Baseline
, level:3.0, frameSize:432x320, displaySize:426x320, frameRate:25.0, PAR:80:81}
INFO: rtpsessioninfo:
INFO: connectiondata IN IP4 226.45.20.66
INFO: name WowzaMediaServer
INFO: origin - 1430037116 1430037116 IN IP4 127.0.0.1
INFO: timing 0 0
INFO: protocolversion 0
INFO: attributes:
INFO: range npt=now-
1277.476 kB / 14.51 sec