[FFmpeg-user] FFmpeg to youtube live cannot connect

Mike Thorpe michaeljthorpe at yahoo.com
Thu Aug 22 22:55:02 CEST 2013


I am trying to do a live stream from a hardware based Epiphan Broadcaster DL encoder through FFmpeg to youtube live.  The Epiphan hardware encoder can publish with RTSP announce but not RTMP as required by youtube.  The FFmpeg session seems to run fine but the video can't be previewed on youtube and youtube control room reports they are not receiving data.  Any suggestions would be appreciated.  The uncut console output and youtubes recommended settings are below.

Thanks,
Mike

youtube recommended settings

Encoder settings
Protocol: RTMP Flash Streaming
Video codec: H.264, Main 4.1
Frame rate: 30 fps
Keyframe frequency: 2 seconds
Audio codec: AAC-LC (Audio required)
Audio sample rate: 44.1 KHz
Audio bitrate: 128 Kbps stereo

Recommended advanced settings
Pixel aspect ratio: Square
Frame types: Progressive Scan, 2 B-Frames, 1 Reference Frame
Entropy coding: CABAC

Youtube live

C:\Users\admin>C:\Utils\ffmpeg\bin\ffmpeg -i "rtsp://(encIP):554/stream.sdp" -c:v copy -c:a copy -f flv "rtmp:/
/a.rtmp.youtube.com/live2/(youtubestreamname)"
ffmpeg version N-54901-g55db06a Copyright (c) 2000-2013 the FFmpeg developers
  built on Jul 23 2013 18:05:52 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi
g --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopenco
re-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-lib
vpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 40.100 / 52. 40.100
  libavcodec     55. 19.100 / 55. 19.100
  libavformat    55. 12.102 / 55. 12.102
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 81.102 /  3. 81.102
  libswscale      2.  4.100 /  2.  4.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Input #0, rtsp, from 'rtsp://(encIP):554/stream.sdp':
  Metadata:
    title           : (null)
  Duration: N/A, start: 0.053000, bitrate: N/A
    Stream #0:0: Audio: aac, 16000 Hz, mono, fltp
    Stream #0:1: Video: h264 (Main), yuvj420p, 1280x720 [SAR 1:1 DAR 16:9], 15 fps, 30 tbr, 90k tbn, 30 tbc
Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/(youtubestreamname)':
  Metadata:
    title           : (null)
    encoder         : Lavf55.12.102
    Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuvj420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 15 fps, 1k tbn, 90k
 tbc
    Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 16000 Hz, mono
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[flv @ 0000000002719140] Non-monotonous DTS in output stream 0:0; previous: 114, current: -20; changing to 114. This may
 result in incorrect timestamps in the output file.
[flv @ 0000000002719140] Non-monotonous DTS in output stream 0:0; previous: 114, current: 14; changing to 114. This may
result in incorrect timestamps in the output file.
[flv @ 0000000002719140] Non-monotonous DTS in output stream 0:0; previous: 114, current: 47; changing to 114. This may
result in incorrect timestamps in the output file.
[flv @ 0000000002719140] Non-monotonous DTS in output stream 0:0; previous: 114, current: 80; changing to 114. This may
result in incorrect timestamps in the output file.
[NULL @ 000000000271fb60] RTP: missed 119 packets
[flv @ 0000000002719140] Failed to update header with correct duration.9.0kbits/s
[flv @ 0000000002719140] Failed to update header with correct filesize.
frame= 3835 fps= 30 q=-1.0 Lsize=   55754kB time=00:02:08.08 bitrate=3566.0kbits/s
video:54659kB audio:987kB subtitle:0 global headers:0kB muxing overhead 0.195093%


More information about the ffmpeg-user mailing list