title: Why ffmpeg -rtsp_transport tcp -i can not copy the rtsp stream with service_provider: Harmonic?
body: <p>I'm trying to copy rtsp stream to ts file by linux command line.
  The input stream info:</p>
  
  <pre><code>Input #0, rtsp, from 'rtsp://***.***.***.***:554/****/****/****.smil':
    Metadata:
      title           : live
    Duration: N/A, start: 21023.919478, bitrate: 18438 kb/s
    Program 1 
      Metadata:
        service_name    : *****
        service_provider: Harmonic
      Stream #0:0: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 17990 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
      Stream #0:1(eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, fltp, 448 kb/s
  Output #0, mpegts, to '123.ts':
    Metadata:
      title           : live
      encoder         : Lavf56.40.101
      Stream #0:0: Video: mpeg2video ([2][0][0][0] / 0x0002), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 17990 kb/s, 25 fps, 25 tbr, 90k tbn, 90k tbc
      Stream #0:1(eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, 448 kb/s
  Stream mapping:
    Stream #0:0 -&gt; #0:0 (copy)
    Stream #0:1 -&gt; #0:1 (copy)
  </code></pre>
  
  <p>But it return wrong message:</p>
  
  <pre><code>[mpegts @ 0x177daa0] first pts value must be set
  av_interleaved_write_frame(): Invalid data found when processing input
  frame=   11 fps=0.0 q=-1.0 Lsize=     876kB time=00:00:00.79 bitrate=9055.7kbits/s    
  video:974kB audio:24kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
  Conversion failed!
  </code></pre>
  
  <p>And then quit.</p>
  
  <p>My command is worked at another rtsp stream:</p>
  
  <pre><code>Input #0, rtsp, from 'rtsp://***.***.***.***:554/****/****/****.smil':
    Metadata:
      title           : live
    Duration: N/A, start: 29796.561522, bitrate: N/A
    Program 1 
      Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
      Stream #0:1(eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s
  </code></pre>
  
  <p>My Download command is:</p>
  
  <pre><code>ffmpeg -rtsp_transport tcp -i "rtsp://***.***.***.***:554/****/****/****.smil" -c copy "`TZ=UTC+8 date "+%Y-%m-%d.%H-%M-%S"`.ts"
  </code></pre>