Page 1 of 1

H265 multicast streaming

Posted: Tue Feb 19, 2019 7:50 am
by rkhachan
hello dears, I'm trying to collect an h265 havc stream, and multicast it through UDP, when playing the source in VLC it works fine but when trying the multicast it doesn't, please need help on that issue, or if there is a better way to multicast h265 (NOTE: ffmpeg should only transfer from unicast to multicast, no transcoding), below is what I'm doing. thanks for the help

Code: Select all

[[email protected] ~]# ffmpeg -re -i http://185.184.87.146:1935/5c4723bbc2f7536/myStream.stream_720p/manifest.mpd -c copy -f mpegts 'udp://236.101.101.222:10001?pkt_size=1316&buffer_size=65535'
ffmpeg version N-93016-gb8ebce4 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-17)
  configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libx264 --enable-libx265 --enable-libxml2 --enable-openssl --enable-shared
  libavutil      56. 26.100 / 56. 26.100
  libavcodec     58. 44.100 / 58. 44.100
  libavformat    58. 26.100 / 58. 26.100
  libavdevice    58.  6.101 / 58.  6.101
  libavfilter     7. 48.100 /  7. 48.100
  libswscale      5.  4.100 /  5.  4.100
  libswresample   3.  4.100 /  3.  4.100
  libpostproc    55.  4.100 / 55.  4.100
Input #0, dash, from 'http://185.184.87.146:1935/5c4723bbc2f7536/myStream.stream_720p/manifest.mpd':
  Duration: N/A, start: 47371.562000, bitrate: 0 kb/s
  Program 0
    Stream #0:0: Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 0 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
    Metadata:
      variant_bitrate : 1960364
      id              : p0va0br1960364
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 0 kb/s
    Metadata:
      variant_bitrate : 118779
      id              : p0aa0br118779
Output #0, mpegts, to 'udp://236.101.101.222:10001?pkt_size=1316&buffer_size=65535':
  Metadata:
    encoder         : Lavf58.26.100
    Stream #0:0: Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 0 kb/s, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 1960364
      id              : p0va0br1960364
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 0 kb/s
    Metadata:
      variant_bitrate : 118779
      id              : p0aa0br118779
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
http://185.184.87.146:1935/5c4723bbc2f7536/myStream.stream_720p/manifest.mpd: corrupt input packet in stream 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x233a100] stream 0, offset 0x44431: partial file
http://185.184.87.146:1935/5c4723bbc2f7536/myStream.stream_720p/manifest.mpd: corrupt input packet in stream 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x233cfc0] stream 0, offset 0x4d3ad: partial file
http://185.184.87.146:1935/5c4723bbc2f7536/myStream.stream_720p/manifest.mpd: corrupt input packet in stream 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x23406c0] stream 0, offset 0x3e8c5: partial file
frame=  827 fps= 14 q=-1.0 Lsize=    8948kB time=00:01:00.73 bitrate=1207.0kbits/s speed=   1x
video:7823kB audio:337kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 9.659915%