Recherche avancée

Médias (91)

Autres articles (49)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (4292)

  • CRF/CQP is incompatible with 2pass. FFmpeg error

    22 juillet 2020, par user12129980

    This is my command :

    



    ..\ffmpeg -y -i "D:\FFMPEG\ffmpeg-20200129-de1b2aa-win64-static\bin\test\aa_start_with_BAGAN.mp4" -c:v libx264 -preset ultrafast -maxrate 3000k -bufsize 6000k -g 50 -c:a aac -b:a 128k -ac 2 -ar 44100 -an -pass 1 -f mp4 NUL   && ..\ffmpeg -i "D:\FFMPEG\ffmpeg-20200129-de1b2aa-win64-static\bin\test\aa_start_with_BAGAN.mp4" -c:v libx264 -s 1280x720 -preset ultrafast -maxrate 500k -bufsize 1000k -vf "scale=1280:-1,format=yuv420p" -g 50 -c:a aac -b:a 128k -ac 2 -ar 44100 -an -pass 2 aa_start_with_BAGAN.mp4_ultrafast_500.mp4


    



    in the output I get CRF/CQP is incompatible with 2pass, but I didnt use the cfr/-q option in the command at all, why do I get this error ?
Add the full metadata of FFMpeg maybe someone can help me with this ?
(-g 50 because the default fps is 25 base on the documentation)

    



    `ffmpeg version git-2020-01-29-de1b2aa Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20200122
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 38.100 / 56. 38.100
  libavcodec     58. 67.100 / 58. 67.100
  libavformat    58. 36.100 / 58. 36.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 71.100 /  7. 71.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\FFMPEG\ffmpeg-20200129-de1b2aa-win64-static\bin\test\aa_start_with_BAGAN.mp4':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: M4V mp42isom
    creation_time   : 2018-04-24T18:21:09.000000Z
  Duration: 00:35:54.00, start: 0.000000, bitrate: 1057 kb/s
    Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 640x480 [SAR 1:1 DAR 4:3], 929 kb/s, 25 fps, 25 tbr, 50k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2018-04-24T18:21:09.000000Z
      handler_name    : Mainconcept MP4 Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2018-04-24T18:21:09.000000Z
      handler_name    : Mainconcept MP4 Sound Media Handler
Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (NUL) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0000024ec2de0f80] using SAR=1/1
[libx264 @ 0000024ec2de0f80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000024ec2de0f80] profile Constrained Baseline, level 3.0, 4:2:0, 8-bit
[libx264 @ 0000024ec2de0f80] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=50 keyint_min=5 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=3000 vbv_bufsize=6000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=0
Output #0, mp4, to 'NUL':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: M4V mp42isom
    encoder         : Lavf58.36.100
    Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2018-04-24T18:21:09.000000Z
      handler_name    : Mainconcept MP4 Video Media Handler
      encoder         : Lavc58.67.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 3000000/0/0 buffer size: 6000000 vbv_delay: N/A
frame=53849 fps=999 q=-1.0 Lsize=  496489kB time=00:35:53.92 bitrate=1888.3kbits/s speed=39.9x
video:496266kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.044919%
[libx264 @ 0000024ec2de0f80] frame I:1077  Avg QP:20.39  size: 38800
[libx264 @ 0000024ec2de0f80] frame P:52772 Avg QP:23.39  size:  8838
[libx264 @ 0000024ec2de0f80] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0000024ec2de0f80] mb P  I16..4:  8.4%  0.0%  0.0%  P16..4: 51.8%  0.0%  0.0%  0.0%  0.0%    skip:39.8%
[libx264 @ 0000024ec2de0f80] coded y,uvDC,uvAC intra: 44.8% 54.5% 18.3% inter: 30.2% 22.0% 2.0%
[libx264 @ 0000024ec2de0f80] i16 v,h,dc,p: 39% 25% 16% 19%
[libx264 @ 0000024ec2de0f80] i8c dc,h,v,p: 35% 23% 24% 17%
[libx264 @ 0000024ec2de0f80] kb/s:1887.41
ffmpeg version git-2020-01-29-de1b2aa Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20200122
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 38.100 / 56. 38.100
  libavcodec     58. 67.100 / 58. 67.100
  libavformat    58. 36.100 / 58. 36.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 71.100 /  7. 71.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\FFMPEG\ffmpeg-20200129-de1b2aa-win64-static\bin\test\aa_start_with_BAGAN.mp4':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: M4V mp42isom
    creation_time   : 2018-04-24T18:21:09.000000Z
  Duration: 00:35:54.00, start: 0.000000, bitrate: 1057 kb/s
    Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv), 640x480 [SAR 1:1 DAR 4:3], 929 kb/s, 25 fps, 25 tbr, 50k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2018-04-24T18:21:09.000000Z
      handler_name    : Mainconcept MP4 Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2018-04-24T18:21:09.000000Z
      handler_name    : Mainconcept MP4 Sound Media Handler
Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (aa_start_with_BAGAN.mp4_ultrafast_500.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0000013691fbda00] using SAR=3/4
[libx264 @ 0000013691fbda00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0000013691fbda00] CRF/CQP is incompatible with 2pass.
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!`


    


  • How to speed up creating video mosaic with ffmpeg

    7 janvier 2020, par DALER RAHIMOV

    I’m looking to speed up ffmpeg pipeline in some way (camera configuration, different filters or any other ideas would be appreciated).

    I have a device that captures videos streams and later creates mosaic video view from 4 cameras. The main issue I’m having is that it’s taking too long to create mosaic video. There is no GPU on the device that could be used to accelerate the process so I’m left with camera configurations (Hikvision).

    Here is what I have so far

    About 160 sec on Intel J-1900 :

    - 5 min video files,
    - 640*480 resolution,
    - h264 encoding,
    - 10 fps,
    - 1024 max bitrate,
    - 10 I-frame interval,      

    Command that I’m using :

    ffmpeg -y -i 1578324600-1-stitched.mp4 -i 1578324600-1-stitched.mp4 -i 1578324600-1-stitched.mp4 -i 1578324600-1-stitched.mp4 \
      -filter_complex " \
         color=c=black:size=1280x720 [base]; \
         [0:v] setpts=PTS-STARTPTS, scale=640x360 [cam0]; \
         [1:v] setpts=PTS-STARTPTS, scale=640x360 [cam1]; \
         [2:v] setpts=PTS-STARTPTS, scale=640x360 [cam2]; \
         [3:v] setpts=PTS-STARTPTS, scale=640x360 [cam3]; \
         [base][cam0] overlay=shortest=1:x=0:y=0  [z1]; \
         [z1][cam1] overlay=shortest=1:x=640:y=0  [z2]; \
         [z2][cam2] overlay=shortest=1:x=0:y=360  [z3]; \
         [z3][cam3] overlay=shortest=1:x=640:y=360 \
       " \
       -an -c:v libx264  -x264-params keyint=10 \
       -movflags faststart -preset fast -nostats -loglevel quiet -r 10.000000 mosaic.mp4

    Thanks

    Here is full output as requested

    ffmpeg -y -i 1578324600-1-stitched.mp4 -i 1578324600-1-stitched.mp4 -i 1578324600-1-stitched.mp4 -i 1578324600-1-stitched.mp4 \
    >    -filter_complex " \
    >       color=c=black:size=1280x720 [base]; \
    >       [0:v] setpts=PTS-STARTPTS, scale=640x360 [cam0]; \
    >       [1:v] setpts=PTS-STARTPTS, scale=640x360 [cam1]; \
    >       [2:v] setpts=PTS-STARTPTS, scale=640x360 [cam2]; \
    >       [3:v] setpts=PTS-STARTPTS, scale=640x360 [cam3]; \
    >       [base][cam0] overlay=shortest=1:x=0:y=0  [z1]; \
    >       [z1][cam1] overlay=shortest=1:x=640:y=0  [z2]; \
    >       [z2][cam2] overlay=shortest=1:x=0:y=360  [z3]; \
    >       [z3][cam3] overlay=shortest=1:x=640:y=360 \
    >     " \
    >     -an -c:v libx264  -x264-params keyint=10 \
    >     -movflags faststart -preset fast -nostats -r 10.000000 mosaic.mp4
    ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg -y -i 1578324600-1-stitched.mp4 -i 1578324600-1-stitched.mp4 -i 1578324600-1-stitched.mp4 -i 1578324600-1-stitched.mp4    -filter_complex " \
         color=c=black:size=1280x720 [base]; \
         [0:v] setpts=PTS-STARTPTS, scale=640x360 [cam0]; \
         [1:v] setpts=PTS-STARTPTS, scale=640x360 [cam1]; \
         [2:v] setpts=PTS-STARTPTS, scale=640x360 [cam2]; \
         [3:v] setpts=PTS-STARTPTS, scale=640x360 [cam3]; \
         [base][cam0] overlay=shortest=1:x=0:y=0  [z1]; \
         [z1][cam1] overlay=shortest=1:x=640:y=0  [z2]; \
         [z2][cam2] overlay=shortest=1:x=0:y=360  [z3]; \
         [z3][cam3] overlay=shortest=1:x=640:y=360 \
       "     -an -c:v libx264  -x264-params keyint=10     -movflags faststart -preset fast -r 10.000000 mosaic.mp4
    ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1578324600-1-stitched.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.40.101
     Duration: 00:05:00.07, start: 0.000000, bitrate: 96 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x480, 95 kb/s, 10 fps, 25 tbr, 10240 tbn, 20 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '1578324600-1-stitched.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.40.101
     Duration: 00:05:00.07, start: 0.000000, bitrate: 96 kb/s
       Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x480, 95 kb/s, 10 fps, 25 tbr, 10240 tbn, 20 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '1578324600-1-stitched.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.40.101
     Duration: 00:05:00.07, start: 0.000000, bitrate: 96 kb/s
       Stream #2:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x480, 95 kb/s, 10 fps, 25 tbr, 10240 tbn, 20 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '1578324600-1-stitched.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.40.101
     Duration: 00:05:00.07, start: 0.000000, bitrate: 96 kb/s
       Stream #3:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 640x480, 95 kb/s, 10 fps, 25 tbr, 10240 tbn, 20 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    [libx264 @ 0x171c9e0] using SAR=1/1
    [libx264 @ 0x171c9e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    [libx264 @ 0x171c9e0] profile High, level 3.1
    [libx264 @ 0x171c9e0] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=10 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'mosaic.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.40.101
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 10 fps, 10240 tbn, 10 tbc (default)
       Metadata:
         encoder         : Lavc56.60.100 libx264
    Stream mapping:
     Stream #0:0 (h264) -> setpts
     Stream #1:0 (h264) -> setpts
     Stream #2:0 (h264) -> setpts
     Stream #3:0 (h264) -> setpts
     overlay -> Stream #0:0 (libx264)
    Press [q] to stop, [?] for help
    [mp4 @ 0x1730600] Starting second pass: moving the moov atom to the beginning of the filerop=4497
    frame= 3002 fps= 17 q=-1.0 Lsize=   51052kB time=00:05:00.00 bitrate=1394.1kbits/s dup=0 drop=4498
    video:51017kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.068308%
    [libx264 @ 0x171c9e0] frame I:301   Avg QP:15.80  size:154257
    [libx264 @ 0x171c9e0] frame P:959   Avg QP:21.69  size:  5486
    [libx264 @ 0x171c9e0] frame B:1742  Avg QP:22.73  size:   315
    [libx264 @ 0x171c9e0] consecutive B-frames: 22.0%  0.0%  5.8% 72.2%
    [libx264 @ 0x171c9e0] mb I  I16..4:  9.7% 31.0% 59.4%
    [libx264 @ 0x171c9e0] mb P  I16..4:  0.6%  0.7%  0.2%  P16..4: 14.5%  2.8%  2.4%  0.0%  0.0%    skip:78.7%
    [libx264 @ 0x171c9e0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  2.7%  0.3%  0.0%  direct: 1.4%  skip:95.5%  L0:25.9% L1:73.3% BI: 0.9%
    [libx264 @ 0x171c9e0] 8x8 transform intra:31.8% inter:43.5%
    [libx264 @ 0x171c9e0] coded y,uvDC,uvAC intra: 83.2% 85.2% 69.5% inter: 3.0% 6.3% 0.7%
    [libx264 @ 0x171c9e0] i16 v,h,dc,p: 35% 21%  8% 36%
    [libx264 @ 0x171c9e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 42% 10%  3%  2%  3%  6%  4%  5%
    [libx264 @ 0x171c9e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 33%  9%  6%  5%  5%  7%  5%  6%
    [libx264 @ 0x171c9e0] i8c dc,h,v,p: 44% 29% 20%  7%
    [libx264 @ 0x171c9e0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x171c9e0] ref P L0: 93.8%  6.2%
    [libx264 @ 0x171c9e0] ref B L0: 91.7%  8.3%
    [libx264 @ 0x171c9e0] ref B L1: 89.3% 10.7%
    [libx264 @ 0x171c9e0] kb/s:1392.16
  • Issue trying to stream RTSP to RTMP (live) through NGINX

    28 août 2020, par taansari

    I want live RTMP streaming through nginx. I setup this server on a public ip (linux - CentOS), using this tutorial : https://notehub.org/rcfdu.

    



    My target is : RTSP source -> transcode to RTMP -> recieve on nginx (live ip),

    



    Then, I want to receive this stream through server ; something like :

    



    nginx -> ffplay.

    



    On transmission side, I have ffmpeg application, and on receiver side, I have ffplay application.

    



    I have setup everything I could think of, and I can see it is properly setup (apparently). But, when I try to stream using similar command :

    



    ffmpeg -i rtsp://aaa.bb.ccc.ddd/vod/mp4:filename.mov -f mpegts rtmp://<live ip="ip" address="address">:1935/live/&#xA;</live>

    &#xA;&#xA;

    I get lots of messages (where everything looks alright) :

    &#xA;&#xA;

    ffmpeg -i rtsp://aaa.bb.ccc.ddd/vod/mp4:filename.mov -f mpegts rtmp://<live ip="ip" address="address">:1935/live/&#xA;ffmpeg version N-80386-g5f5a97d Copyright (c) 2000-2016 the FFmpeg developers&#xA;  built with gcc 5.4.0 (GCC)&#xA;  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-nv&#xA;enc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enabl&#xA;e-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --en&#xA;able-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libil&#xA;bc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-&#xA;amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-&#xA;librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-li&#xA;bspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo&#xA;-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libweb&#xA;p --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-l&#xA;ibzimg --enable-lzma --enable-decklink --enable-zlib&#xA;  libavutil      55. 24.100 / 55. 24.100&#xA;  libavcodec     57. 46.100 / 57. 46.100&#xA;  libavformat    57. 38.100 / 57. 38.100&#xA;  libavdevice    57.  0.101 / 57.  0.101&#xA;  libavfilter     6. 46.101 /  6. 46.101&#xA;  libswscale      4.  1.100 /  4.  1.100&#xA;  libswresample   2.  1.100 /  2.  1.100&#xA;  libpostproc    54.  0.100 / 54.  0.100&#xA;[rtsp @ 03087ca0] UDP timeout, retrying with TCP&#xA;Input #0, rtsp, from &#x27;rtsp://aaa.bb.ccc.ddd/vod/mp4:filename.mov&#x27;:&#xA;  Metadata:&#xA;    title           : filename.mov&#xA;  Duration: 00:09:56.46, start: 0.000000, bitrate: N/A&#xA;    Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp&#xA;    Stream #0:1: Video: h264 (Constrained Baseline), yuv420p, 240x160, 24 fps, 4&#xA;8 tbr, 90k tbn, 48 tbc&#xA;[mpegts @ 04d033a0] Using AVStream.codec to pass codec parameters to muxers is d&#xA;eprecated, use AVStream.codecpar instead.&#xA;    Last message repeated 1 times&#xA;Output #0, mpegts, to &#x27;rtmp://<live ip="ip" address="address">:1935/live/&#x27;:&#xA;  Metadata:&#xA;    title           : filename.mov&#xA;    encoder         : Lavf57.38.100&#xA;    Stream #0:0: Video: mpeg2video (Main), yuv420p, 240x160, q=2-31, 200 kb/s, 2&#xA;4 fps, 90k tbn, 24 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc57.46.100 mpeg2video&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1&#xA;    Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc57.46.100 mp2&#xA;Stream mapping:&#xA;  Stream #0:1 -> #0:0 (h264 (native) -> mpeg2video (native))&#xA;  Stream #0:0 -> #0:1 (aac (native) -> mp2 (native))&#xA;Press [q] to stop, [?] for help&#xA;Past duration 0.999992 too large&#xA;    Last message repeated 4 times&#xA;frame=   85 fps=0.0 q=2.9 size=     322kB time=00:00:03.85 bitrate= 684.4kbits/s&#xA;frame=   95 fps= 94 q=3.5 size=     366kB time=00:00:04.28 bitrate= 698.9kbits/s&#xA;frame=  108 fps= 71 q=3.7 size=     421kB time=00:00:04.79 bitrate= 719.9kbits/s&#xA;frame=  122 fps= 61 q=4.1 size=     478kB time=00:00:05.34 bitrate= 733.1kbits/s&#xA;frame=  134 fps= 53 q=4.5 size=     527kB time=00:00:05.87 bitrate= 735.8kbits/s&#xA;frame=  146 fps= 48 q=5.2 size=     579kB time=00:00:06.35 bitrate= 747.2kbits/s&#xA;frame=  159 fps= 45 q=5.5 size=     632kB time=00:00:06.88 bitrate= 751.9kbits/s&#xA;frame=  171 fps= 42 q=5.3 size=     677kB time=00:00:07.38 bitrate= 751.5kbits/s&#xA;frame=  183 fps= 40 q=5.6 size=     725kB time=00:00:07.91 bitrate= 750.8kbits/s&#xA;frame=  193 fps= 38 q=6.3 size=     765kB time=00:00:08.34 bitrate= 750.7kbits/s&#xA;frame=  207 fps= 37 q=6.6 size=     820kB time=00:00:08.89 bitrate= 755.2kbits/s&#xA;frame=  219 fps= 36 q=6.6 size=     865kB time=00:00:09.40 bitrate= 754.2kbits/s&#xA;frame=  231 fps= 35 q=7.2 size=     911kB time=00:00:09.90 bitrate= 753.6kbits/s&#xA;frame=  243 fps= 34 q=7.4 size=     959kB time=00:00:10.40 bitrate= 754.6kbits/s&#xA;frame=  255 fps= 34 q=6.7 size=    1002kB time=00:00:10.91 bitrate= 752.1kbits/s&#xA;frame=  267 fps= 33 q=5.5 size=    1047kB time=00:00:11.41 bitrate= 751.4kbits/s&#xA;frame=  279 fps= 33 q=4.6 size=    1088kB time=00:00:11.89 bitrate= 749.1kbits/s&#xA;frame=  291 fps= 32 q=6.1 size=    1140kB time=00:00:12.42 bitrate= 751.4kbits/s&#xA;frame=  301 fps= 31 q=6.7 size=    1181kB time=00:00:12.85 bitrate= 752.5kbits/s&#xA;frame=  314 fps= 31 q=6.6 size=    1231kB time=00:00:13.40 bitrate= 752.1kbits/s&#xA;frame=  325 fps= 31 q=7.0 size=    1275kB time=00:00:13.86 bitrate= 753.0kbits/s&#xA;frame=  338 fps= 30 q=6.7 size=    1324kB time=00:00:14.36 bitrate= 754.8kbits/s&#xA;frame=  349 fps= 30 q=6.5 size=    1368kB time=00:00:14.87 bitrate= 753.5kbits/s&#xA;frame=  362 fps= 30 q=6.8 size=    1415kB time=00:00:15.37 bitrate= 753.9kbits/s&#xA;frame=  373 fps= 30 q=6.2 size=    1457kB time=00:00:15.88 bitrate= 751.7kbits/s&#xA;frame=  387 fps= 30 q=3.8 size=    1506kB time=00:00:16.45 bitrate= 749.7kbits/s&#xA;frame=  400 fps= 29 q=4.1 size=    1549kB time=00:00:16.96 bitrate= 748.2kbits/s&#xA;frame=  415 fps= 29 q=5.4 size=    1597kB time=00:00:17.56 bitrate= 744.9kbits/s&#xA;frame=  427 fps= 29 q=5.2 size=    1639kB time=00:00:18.04 bitrate= 744.1kbits/s&#xA;frame=  439 fps= 29 q=4.4 size=    1679kB time=00:00:18.56 bitrate= 740.6kbits/s&#xA;frame=  451 fps= 29 q=3.6 size=    1717kB time=00:00:19.07 bitrate= 737.4kbits/s&#xA;frame=  464 fps= 28 q=2.6 size=    1761kB time=00:00:19.67 bitrate= 733.2kbits/s&#xA;frame=  475 fps= 28 q=7.0 size=    1799kB time=00:00:20.08 bitrate= 734.0kbits/s&#xA;frame=  488 fps= 28 q=8.3 size=    1847kB time=00:00:20.70 bitrate= 730.8kbits/s&#xA;frame=  502 fps= 28 q=5.9 size=    1895kB time=00:00:21.25 bitrate= 730.2kbits/s&#xA;frame=  515 fps= 28 q=3.3 size=    1935kB time=00:00:21.76 bitrate= 728.5kbits/s&#xA;frame=  528 fps= 28 q=2.5 size=    1976kB time=00:00:22.31 bitrate= 725.6kbits/s&#xA;frame=  540 fps= 28 q=3.4 size=    2017kB time=00:00:22.81 bitrate= 724.2kbits/s&#xA;frame=  553 fps= 28 q=6.2 size=    2072kB time=00:00:23.36 bitrate= 726.2kbits/s&#xA;frame=  568 fps= 28 q=6.7 size=    2132kB time=00:00:23.94 bitrate= 729.3kbits/s&#xA;frame=  580 fps= 28 q=6.8 size=    2174kB time=00:00:24.42 bitrate= 729.3kbits/s&#xA;frame=  592 fps= 27 q=6.8 size=    2219kB time=00:00:24.92 bitrate= 729.3kbits/s&#xA;frame=  604 fps= 27 q=7.4 size=    2263kB time=00:00:25.43 bitrate= 728.8kbits/s&#xA;frame=  615 fps= 27 q=6.1 size=    2305kB time=00:00:25.93 bitrate= 727.9kbits/s&#xA;frame=  626 fps= 27 q=7.4 size=    2339kB time=00:00:26.36 bitrate= 726.5kbits/s&#xA;frame=  638 fps= 27 q=6.8 size=    2383kB time=00:00:26.89 bitrate= 725.8kbits/s&#xA;frame=  651 fps= 27 q=5.8 size=    2436kB time=00:00:27.47 bitrate= 726.5kbits/s&#xA;frame=  662 fps= 27 q=7.0 size=    2471kB time=00:00:27.90 bitrate= 725.4kbits/s&#xA;frame=  675 fps= 27 q=5.9 size=    2523kB time=00:00:28.40 bitrate= 727.6kbits/s&#xA;frame=  679 fps= 26 q=6.8 size=    2534kB time=00:00:28.57 bitrate= 726.5kbits/s&#xA;frame=  703 fps= 27 q=8.0 size=    2622kB time=00:00:29.58 bitrate= 726.1kbits/s&#xA;frame=  714 fps= 27 q=7.6 size=    2662kB time=00:00:30.08 bitrate= 724.7kbits/s&#xA;frame=  729 fps= 27 q=6.5 size=    2712kB time=00:00:30.68 bitrate= 724.0kbits/s&#xA;frame=  741 fps= 27 q=7.0 size=    2753kB time=00:00:31.14 bitrate= 724.1kbits/s&#xA;frame=  755 fps= 27 q=7.5 size=    2801kB time=00:00:31.76 bitrate= 722.2kbits/s&#xA;frame=  767 fps= 26 q=7.2 size=    2842kB time=00:00:32.27 bitrate= 721.5kbits/s&#xA;frame=  779 fps= 26 q=6.8 size=    2881kB time=00:00:32.77 bitrate= 720.0kbits/s&#xA;frame=  791 fps= 26 q=8.2 size=    2922kB time=00:00:33.30 bitrate= 718.8kbits/s&#xA;frame=  803 fps= 26 q=7.0 size=    2961kB time=00:00:33.76 bitrate= 718.4kbits/s&#xA;frame=  816 fps= 26 q=6.6 size=    3003kB time=00:00:34.33 bitrate= 716.4kbits/s&#xA;frame=  828 fps= 26 q=6.4 size=    3044kB time=00:00:34.84 bitrate= 715.7kbits/s&#xA;frame=  840 fps= 26 q=7.5 size=    3084kB time=00:00:35.34 bitrate= 714.7kbits/s&#xA;frame=  855 fps= 26 q=5.0 size=    3137kB time=00:00:35.94 bitrate= 714.8kbits/s&#xA;frame=  866 fps= 26 q=6.2 size=    3169kB time=00:00:36.40 bitrate= 713.3kbits/s&#xA;frame=  880 fps= 26 q=5.9 size=    3219kB time=00:00:36.95 bitrate= 713.6kbits/s&#xA;frame=  892 fps= 26 q=6.8 size=    3259kB time=00:00:37.43 bitrate= 713.2kbits/s&#xA;frame=  904 fps= 26 q=5.3 size=    3300kB time=00:00:37.96 bitrate= 712.2kbits/s&#xA;frame=  916 fps= 26 q=5.5 size=    3338kB time=00:00:38.46 bitrate= 711.0kbits/s&#xA;frame=  928 fps= 26 q=5.5 size=    3377kB time=00:00:38.94 bitrate= 710.4kbits/s&#xA;frame=  941 fps= 26 q=6.4 size=    3422kB time=00:00:39.52 bitrate= 709.4kbits/s&#xA;frame=  953 fps= 26 q=5.4 size=    3460kB time=00:00:40.00 bitrate= 708.6kbits/s&#xA;frame=  967 fps= 26 q=5.2 size=    3506kB time=00:00:40.60 bitrate= 707.3kbits/s&#xA;frame=  979 fps= 26 q=4.8 size=    3546kB time=00:00:41.12 bitrate= 706.2kbits/s&#xA;frame=  985 fps= 26 q=5.2 size=    3563kB time=00:00:41.36 bitrate= 705.6kbits/s&#xA;frame= 1008 fps= 26 q=4.8 size=    3639kB time=00:00:42.30 bitrate= 704.6kbits/s&#xA;frame= 1022 fps= 26 q=4.3 size=    3684kB time=00:00:42.88 bitrate= 703.7kbits/s&#xA;frame= 1034 fps= 26 q=4.5 size=    3723kB time=00:00:43.38 bitrate= 702.9kbits/s&#xA;frame= 1046 fps= 26 q=3.8 size=    3763kB time=00:00:43.88 bitrate= 702.5kbits/s&#xA;frame= 1056 fps= 26 q=5.3 size=    3800kB time=00:00:44.32 bitrate= 702.3kbits/s&#xA;frame= 1069 fps= 26 q=5.5 size=    3842kB time=00:00:44.84 bitrate= 701.8kbits/s&#xA;frame= 1081 fps= 26 q=6.3 size=    3883kB time=00:00:45.35 bitrate= 701.3kbits/s&#xA;frame= 1093 fps= 26 q=6.3 size=    3925kB time=00:00:45.85 bitrate= 701.1kbits/s&#xA;frame= 1105 fps= 26 q=5.3 size=    3964kB time=00:00:46.36 bitrate= 700.5kbits/s&#xA;frame= 1117 fps= 26 q=6.7 size=    4006kB time=00:00:46.86 bitrate= 700.3kbits/s&#xA;frame= 1129 fps= 26 q=4.5 size=    4046kB time=00:00:47.32 bitrate= 700.4kbits/s&#xA;frame= 1141 fps= 26 q=7.1 size=    4089kB time=00:00:47.87 bitrate= 699.8kbits/s&#xA;Larger timestamp than 24-bit: 0x310042f0&#xA;WriteN, RTMP send error 10054 (133 bytes)&#xA;WriteN, RTMP send error 10054 (35 bytes)&#xA;WriteN, RTMP send error 10038 (42 bytes)&#xA;av_interleaved_write_frame(): Operation not permitted&#xA;Error writing trailer of rtmp://<live ip="ip" address="address">:1935/live/: Operation not permitte&#xA;dframe= 1143 fps= 25 q=8.1 Lsize=    4109kB time=00:00:47.92 bitrate= 702.5kbits&#xA;/s dup=0 drop=5 speed=1.07x&#xA;video:1343kB audio:2248kB subtitle:0kB other streams:0kB global headers:0kB muxi&#xA;ng overhead: 14.429363%&#xA;Conversion failed!&#xA;</live></live></live>

    &#xA;&#xA;

    but in the end, I get this error :

    &#xA;&#xA;

    WriteN, RTMP send error 10054 (133 bytes)&#xA;WriteN, RTMP send error 10054 (35 bytes)&#xA;WriteN, RTMP send error 10038 (42 bytes)&#xA;av_interleaved_write_frame(): Operation not permitted&#xA;Error writing trailer of rtmp://<live ip="ip" address="address">:1935/live/: Operation not permitte&#xA;dframe= 1143 fps= 25 q=8.1 Lsize=    4109kB time=00:00:47.92 bitrate= 702.5kbits&#xA;/s dup=0 drop=5 speed=1.07x&#xA;video:1343kB audio:2248kB subtitle:0kB other streams:0kB global headers:0kB muxi&#xA;ng overhead: 14.429363%&#xA;Conversion failed!&#xA;</live>

    &#xA;&#xA;

    On the receiver side (where ffplay is running), I always get this error :

    &#xA;&#xA;

    RTMP_ReadPacket, failed to read RTMP packet headersq=    0B f=0/0&#xA;    rtmp://<live ip="ip" address="address">:1935/live/: Invalid data found when processing input&#xA;</live>

    &#xA;&#xA;

    Detailed output :

    &#xA;&#xA;

    ffplay rtmp://<live ip="ip" address="address">:1935/live/&#xA;ffplay version N-80386-g5f5a97d Copyright (c) 2003-2016 the FFmpeg developers&#xA;  built with gcc 5.4.0 (GCC)&#xA;  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-nv&#xA;enc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enabl&#xA;e-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --en&#xA;able-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libil&#xA;bc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-&#xA;amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-&#xA;librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-li&#xA;bspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo&#xA;-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libweb&#xA;p --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-l&#xA;ibzimg --enable-lzma --enable-decklink --enable-zlib&#xA;  libavutil      55. 24.100 / 55. 24.100&#xA;  libavcodec     57. 46.100 / 57. 46.100&#xA;  libavformat    57. 38.100 / 57. 38.100&#xA;  libavdevice    57.  0.101 / 57.  0.101&#xA;  libavfilter     6. 46.101 /  6. 46.101&#xA;  libswscale      4.  1.100 /  4.  1.100&#xA;  libswresample   2.  1.100 /  2.  1.100&#xA;  libpostproc    54.  0.100 / 54.  0.100&#xA;RTMP_ReadPacket, failed to read RTMP packet headersq=    0B f=0/0&#xA;rtmp://<live ip="ip" address="address">:1935/live/: Invalid data found when processing input&#xA;</live></live>

    &#xA;&#xA;

    and if I enable debug mode, this is the receiving side log :

    &#xA;&#xA;

    ffplay -loglevel debug rtmp://<live ip="ip" address="address">:1935/live/&#xA;ffplay version N-80386-g5f5a97d Copyright (c) 2003-2016 the FFmpeg developers&#xA;  built with gcc 5.4.0 (GCC)&#xA;  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-nv&#xA;enc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enabl&#xA;e-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --en&#xA;able-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libil&#xA;bc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-&#xA;amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-&#xA;librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-li&#xA;bspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo&#xA;-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libweb&#xA;p --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-l&#xA;ibzimg --enable-lzma --enable-decklink --enable-zlib&#xA;  libavutil      55. 24.100 / 55. 24.100&#xA;  libavcodec     57. 46.100 / 57. 46.100&#xA;  libavformat    57. 38.100 / 57. 38.100&#xA;  libavdevice    57.  0.101 / 57.  0.101&#xA;  libavfilter     6. 46.101 /  6. 46.101&#xA;  libswscale      4.  1.100 /  4.  1.100&#xA;  libswresample   2.  1.100 /  2.  1.100&#xA;  libpostproc    54.  0.100 / 54.  0.100&#xA;[rtmp @ 0310d800] No default whitelist set    0KB sq=    0B f=0/0&#xA;Parsing... :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0&#xA;Parsed protocol: 0&#xA;Parsed host    : <live ip="ip" address="address">&#xA;Parsed app     : live&#xA;RTMP_Connect1, ... connected, handshaking=    0KB sq=    0B f=0/0&#xA;HandShake: Type Answer   : 03q=    0KB vq=    0KB sq=    0B f=0/0&#xA;HandShake: Server Uptime : 324510454&#xA;HandShake: FMS Version   : 0.0.0.0&#xA;HandShake: Handshaking finished....0KB vq=    0KB sq=    0B f=0/0&#xA;RTMP_Connect1, handshaked&#xA;RTMP_SendPacket: fd=648, size=174&#xA;  0000:  03 00 00 00 00 00 ae 14  00 00 00 00               ............&#xA;  0000:  02 00 07 63 6f 6e 6e 65  63 74 00 3f f0 00 00 00   ...connect.?....&#xA;  0010:  00 00 00 03 00 03 61 70  70 02 00 04 6c 69 76 65   ......app...live&#xA;  0020:  00 05 74 63 55 72 6c 02  00 1e 72 74 6d 70 3a 2f   ..tcUrl...rtmp:/&#xA;  0030:  2f 36 34 2e 34 39 2e 32  33 34 2e 32 35 30 3a 31   /<live ip="ip" address="address">:1&#xA;  0040:  39 33 35 2f 6c 69 76 65  00 04 66 70 61 64 01 00   935/live..fpad..&#xA;  0050:  00 0c 63 61 70 61 62 69  6c 69 74 69 65 73 00 40   ..capabilities.@&#xA;  0060:  2e 00 00 00 00 00 00 00  0b 61 75 64 69 6f 43 6f   .........audioCo&#xA;  0070:  64 65 63 73 00 40 a8 ee  00 00 00 00 00 00 0b 76   decs.@.........v&#xA;  0000:  c3                                                 .&#xA;  0000:  69 64 65 6f 43 6f 64 65  63 73 00 40 6f 80 00 00   ideoCodecs.@o...&#xA;  0010:  00 00 00 00 0d 76 69 64  65 6f 46 75 6e 63 74 69   .....videoFuncti&#xA;  0020:  6f 6e 00 3f f0 00 00 00  00 00 00 00 00 09         on.?..........&#xA;Invoking connect&#xA;RTMP_ReadPacket: fd=648&#xA;  0000:  02 00 00 00 00 00 04 05  00 00 00 00               ............&#xA;  0000:  00 4c 4b 40                                        .LK@&#xA;HandleServerBW: server BW = 5000000&#xA;RTMP_ReadPacket: fd=648&#xA;  0000:  02 00 00 00 00 00 05 06  00 00 00 00               ............&#xA;  0000:  00 4c 4b 40 02                                     .LK@.&#xA;HandleClientBW: client BW = 5000000 2&#xA;RTMP_ReadPacket: fd=648&#xA;  0000:  02 00 00 00 00 00 04 01  00 00 00 00               ............&#xA;  0000:  00 00 10 00                                        ....&#xA;HandleChangeChunkSize, received: chunk size change to 4096&#xA;RTMP_ReadPacket: fd=648&#xA;  0000:  03 00 00 00 00 00 be 14  00 00 00 00               ............&#xA;  0000:  02 00 07 5f 72 65 73 75  6c 74 00 3f f0 00 00 00   ..._result.?....&#xA;  0010:  00 00 00 03 00 06 66 6d  73 56 65 72 02 00 0d 46   ......fmsVer...F&#xA;  0020:  4d 53 2f 33 2c 30 2c 31  2c 31 32 33 00 0c 63 61   MS/3,0,1,123..ca&#xA;  0030:  70 61 62 69 6c 69 74 69  65 73 00 40 3f 00 00 00   pabilities.@?...&#xA;  0040:  00 00 00 00 00 09 03 00  05 6c 65 76 65 6c 02 00   .........level..&#xA;  0050:  06 73 74 61 74 75 73 00  04 63 6f 64 65 02 00 1d   .status..code...&#xA;  0060:  4e 65 74 43 6f 6e 6e 65  63 74 69 6f 6e 2e 43 6f   NetConnection.Co&#xA;  0070:  6e 6e 65 63 74 2e 53 75  63 63 65 73 73 00 0b 64   nnect.Success..d&#xA;  0080:  65 73 63 72 69 70 74 69  6f 6e 02 00 15 43 6f 6e   escription...Con&#xA;  0090:  6e 65 63 74 69 6f 6e 20  73 75 63 63 65 65 64 65   nection succeede&#xA;  00a0:  64 2e 00 0e 6f 62 6a 65  63 74 45 6e 63 6f 64 69   d...objectEncodi&#xA;  00b0:  6e 67 00 00 00 00 00 00  00 00 00 00 00 09         ng............&#xA;RTMP_ClientPacket, received: invoke 190 bytes&#xA;(object begin)&#xA;Property: &#xA;Property: &#xA;Property: &#xA;(object begin)&#xA;Property: 3,0,1,123>&#xA;Property: &#xA;(object end)&#xA;Property: &#xA;(object begin)&#xA;Property: &#xA;Property: &#xA;Property: &#xA;Property: &#xA;(object end)&#xA;(object end)&#xA;HandleInvoke, server invoking &lt;_result>&#xA;HandleInvoke, received result for method call <connect>  0B f=0/0&#xA;RTMP_SendPacket: fd=648, size=4&#xA;  0000:  02 00 00 00 00 00 04 05  00 00 00 00               ............&#xA;  0000:  00 4c 4b 40                                        .LK@&#xA;sending ctrl. type: 0x0003&#xA;RTMP_SendPacket: fd=648, size=10&#xA;  0000:  42 00 00 00 00 00 0a 04                            B.......&#xA;  0000:  00 03 00 00 00 00 00 00  01 2c                     .........,&#xA;RTMP_SendPacket: fd=648, size=25&#xA;  0000:  43 00 00 00 00 00 19 14                            C.......&#xA;  0000:  02 00 0c 63 72 65 61 74  65 53 74 72 65 61 6d 00   ...createStream.&#xA;  0010:  40 00 00 00 00 00 00 00  05                        @........&#xA;Invoking createStream&#xA;RTMP_ReadPacket: fd=648&#xA;  0000:  03 00 00 00 00 00 1d 14  00 00 00 00               ............&#xA;  0000:  02 00 07 5f 72 65 73 75  6c 74 00 40 00 00 00 00   ..._result.@....&#xA;  0010:  00 00 00 05 00 3f f0 00  00 00 00 00 00            .....?.......&#xA;RTMP_ClientPacket, received: invoke 29 bytes&#xA;(object begin)&#xA;Property: &#xA;Property: &#xA;Property: NULL&#xA;Property: &#xA;(object end)&#xA;HandleInvoke, server invoking &lt;_result>&#xA;HandleInvoke, received result for method call <createstream>&#xA;SendPlay, seekTime=0, stopTime=0, sending play: (null)&#xA;RTMP_SendPacket: fd=648, size=29&#xA;  0000:  08 00 00 00 00 00 1d 14  01 00 00 00               ............&#xA;  0000:  02 00 04 70 6c 61 79 00  40 08 00 00 00 00 00 00   ...play.@.......&#xA;  0010:  05 02 00 00 00 00 00 00  00 00 00 00 00            .............&#xA;Invoking play 0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0&#xA;sending ctrl. type: 0x0003&#xA;RTMP_SendPacket: fd=648, size=10&#xA;  0000:  c2                                                 .&#xA;  0000:  00 03 00 00 00 01 00 00  0b b8                     ..........&#xA;RTMP_ReadPacket: fd=648&#xA;  0000:  05 00 00 00 00 00 60 14  01 00 00 00               ......`.....&#xA;  0000:  02 00 08 6f 6e 53 74 61  74 75 73 00 00 00 00 00   ...onStatus.....&#xA;  0010:  00 00 00 00 05 03 00 05  6c 65 76 65 6c 02 00 06   ........level...&#xA;  0020:  73 74 61 74 75 73 00 04  63 6f 64 65 02 00 14 4e   status..code...N&#xA;  0030:  65 74 53 74 72 65 61 6d  2e 50 6c 61 79 2e 53 74   etStream.Play.St&#xA;  0040:  61 72 74 00 0b 64 65 73  63 72 69 70 74 69 6f 6e   art..description&#xA;  0050:  02 00 0a 53 74 61 72 74  20 6c 69 76 65 00 00 09   ...Start live...&#xA;RTMP_ClientPacket, received: invoke 96 bytes&#xA;(object begin)&#xA;Property: &#xA;Property: &#xA;Property: NULL&#xA;Property: &#xA;(object begin)&#xA;Property: &#xA;Property: &#xA;Property: &#xA;(object end)&#xA;(object end)&#xA;HandleInvoke, server invoking <onstatus>&#xA;HandleInvoke, onStatus: NetStream.Play.Start&#xA;RTMP_ReadPacket: fd=648&#xA;  0000:  05 00 00 00 00 00 18 12  01 00 00 00               ............&#xA;  0000:  02 00 11 7c 52 74 6d 70  53 61 6d 70 6c 65 41 63   ...|RtmpSampleAc&#xA;  0010:  63 65 73 73 01 01 01 01                            cess....&#xA;RTMP_ClientPacket, received: notify 24 bytes&#xA;(object begin)&#xA;Property: &#xA;Property:     nan    :  0.000 fd=   0&#xA; aq=    0KB vq=    0KB sq=    0B f=0/0&#xA;Property: &#xA;(object end)&#xA;RTMP_ReadPacket: fd=648&#xA;RTMPSockBuf_Fill, recv returned -1. GetSockError(): 10060 (Unknown error)&#xA;RTMP_ReadPacket, failed to read RTMP packet header&#xA;[AVIOContext @ 04c81be0] Statistics: 0 bytes read, 0 seeks&#xA;RTMP_SendPacket: fd=648, size=34&#xA;  0000:  43 00 00 00 00 00 22 14                            C.....".&#xA;  0000:  02 00 0c 64 65 6c 65 74  65 53 74 72 65 61 6d 00   ...deleteStream.&#xA;  0010:  40 10 00 00 00 00 00 00  05 00 3f f0 00 00 00 00   @.........?.....&#xA;  0020:  00 00                                              ..&#xA;Invoking deleteStreamd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0&#xA;rtmp://<live ip="ip" address="address">:1935/live/: Invalid data found when processing input&#xA;</live></onstatus></createstream></connect></live></live></live>

    &#xA;&#xA;

    By the way, this is my server config file ( /etc/nginx/nginx.conf )

    &#xA;&#xA;

    #user  nobody;&#xA;worker_processes  4;&#xA;&#xA;#error_log  logs/error.log;&#xA;#error_log  logs/error.log  notice;&#xA;#error_log  logs/error.log  info;&#xA;&#xA;#pid        logs/nginx.pid;&#xA;&#xA;&#xA;events {&#xA;    worker_connections  1024;&#xA;}&#xA;&#xA;&#xA;http {&#xA;    include       mime.types;&#xA;    default_type  application/octet-stream;&#xA;&#xA;    #log_format  main  &#x27;$remote_addr - $remote_user [$time_local] "$request" &#x27;&#xA;    #                  &#x27;$status $body_bytes_sent "$http_referer" &#x27;&#xA;    #                  &#x27;"$http_user_agent" "$http_x_forwarded_for"&#x27;;&#xA;&#xA;    #access_log  logs/access.log  main;&#xA;&#xA;    sendfile        on;&#xA;    #tcp_nopush     on;&#xA;&#xA;    #keepalive_timeout  0;&#xA;    keepalive_timeout  65;&#xA;&#xA;    #gzip  on;&#xA;&#xA;    server {&#xA;        listen       80;&#xA;        server_name  localhost;&#xA;&#xA;        #charset koi8-r;&#xA;&#xA;        #access_log  logs/host.access.log  main;&#xA;&#xA;        location / {&#xA;            root   html;&#xA;            index  index.html index.htm;&#xA;        }&#xA;&#xA;        #error_page  404              /404.html;&#xA;&#xA;        # redirect server error pages to the static page /50x.html&#xA;        #&#xA;        error_page   500 502 503 504  /50x.html;&#xA;        location = /50x.html {&#xA;            root   html;&#xA;        }&#xA;&#xA;        # proxy the PHP scripts to Apache listening on 127.0.0.1:80&#xA;        #&#xA;        #location ~ \.php$ {&#xA;        #    proxy_pass   http://127.0.0.1;&#xA;        #}&#xA;&#xA;        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000&#xA;        #&#xA;        #location ~ \.php$ {&#xA;        #    root           html;&#xA;        #    fastcgi_pass   127.0.0.1:9000;&#xA;        #    fastcgi_index  index.php;&#xA;        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;&#xA;        #    include        fastcgi_params;&#xA;        #}&#xA;&#xA;        # deny access to .htaccess files, if Apache&#x27;s document root&#xA;        # concurs with nginx&#x27;s one&#xA;        #&#xA;        #location ~ /\.ht {&#xA;        #    deny  all;&#xA;        #}&#xA;    }&#xA;&#xA;&#xA;    # another virtual host using mix of IP-, name-, and port-based configuration&#xA;    #&#xA;    #server {&#xA;    #    listen       8000;&#xA;    #    listen       somename:8080;&#xA;    #    server_name  somename  alias  another.alias;&#xA;&#xA;    #    location / {&#xA;    #        root   html;&#xA;    #        index  index.html index.htm;&#xA;    #    }&#xA;    #}&#xA;&#xA;&#xA;    # HTTPS server&#xA;    #&#xA;    #server {&#xA;    #    listen       443 ssl;&#xA;    #    server_name  localhost;&#xA;&#xA;    #    ssl_certificate      cert.pem;&#xA;    #    ssl_certificate_key  cert.key;&#xA;&#xA;    #    ssl_session_cache    shared:SSL:1m;&#xA;    #    ssl_session_timeout  5m;&#xA;&#xA;    #    ssl_ciphers  HIGH:!aNULL:!MD5;&#xA;    #    ssl_prefer_server_ciphers  on;&#xA;&#xA;    #    location / {&#xA;    #        root   html;&#xA;    #        index  index.html index.htm;&#xA;    #    }&#xA;    #}&#xA;&#xA;}&#xA;rtmp {&#xA;        server {&#xA;                listen 1935;&#xA;                chunk_size 4096;&#xA;&#xA;                application live {&#xA;                        live on;&#xA;                        record off;&#xA;                }&#xA;        }&#xA;}&#xA;

    &#xA;&#xA;

    I can telnet into both port 80 and 1935, and made sure port 1935 is open as input and output in iptables...

    &#xA;&#xA;

    -A INPUT -m state --state NEW -m tcp -p tcp --dport 1935 -j ACCEPT&#xA;-A OUTPUT -m state --state NEW -m tcp -p tcp --dport 1935 -j ACCEPT&#xA;

    &#xA;&#xA;

    but nothing works.

    &#xA;&#xA;

    Can anyone help in this regards ?

    &#xA;