Recherche avancée

Médias (91)

Autres articles (38)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (4805)

  • how to add audio to exist video using FFMPEG at specific time ?

    10 janvier 2018, par Yanshof

    I have video file (.avi) that contain video of 10 minutes.
    I also have audio file (.wav) that contain 1 minute of sound.

    I need to add the audio to the exist video but the audio need to start at after one minute of the video

    How to do it ?

    ( prefer using ffmpeg if its possible )

    try already this query ( 30 seconds deley )

    -i video.avi -i audio.wav -filter_complex \"[1]adelay=30000|30000[aud] ;[0][aud]amix\" - c:v copy out.avi"

    attached the log of ffmpeg when trying to marge more then one wav

    ffmpeg started on 2018-01-10 at 11:14:57
    Report written to "ffmpeg-20180110-111457.log"
    Command line:
    ffmpeg.exe -report -i "..\\merged.avi" -i "Storage\\1.wav" -i "Storage\\2.wav" -i "Storage\\3.wav" -filter_complex "adelay=30000|30000" "adelay=91000|91000" "adelay=151000|151000" -c:v copy "Storage\\ALL.AVI"
    ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 7.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --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-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
     libpostproc    54.  7.100 / 54.  7.100
    Splitting the commandline.
    Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
    Reading option '-i' ... matched as input url with argument '..\mergedVideoOnly.avi'.
    Reading option '-i' ... matched as input url with argument '\Storage\0030_0130.wav'.
    Reading option '-i' ... matched as input url with argument '\Storage\0130_0230.wav'.
    Reading option '-i' ... matched as input url with argument '\Storage\0230_0330.wav'.
    Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument 'adelay=30000|30000'.
    Reading option 'adelay=91000|91000' ... matched as output url.
    Reading option 'adelay=151000|151000' ... matched as output url.
    Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
    Reading option 'ALL.AVI' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option report (generate a report) with argument 1.
    Applying option filter_complex (create a complex filtergraph) with argument adelay=30000|30000.
    Successfully parsed a group of options.
    Parsing a group of options: input url ..\mergedVideoOnly.avi.
    Successfully parsed a group of options.
    Opening an input file: ..\mergedVideoOnly.avi.
    [NULL @ 042ed360] Opening '..\mergedVideoOnly.avi' for reading
    [file @ 042ee300] Setting default whitelist 'file,crypto'
    [avi @ 042ed360] Format avi probed with size=2048 and score=100
    [avi @ 042ee500] use odml:1
    [avi @ 042ed360] Before avformat_find_stream_info() pos: 5690 bytes read:100744 seeks:4 nb_streams:1
    [avi @ 042ed360] parser not found for codec scpr, packets or times may be invalid.
    [avi @ 042ed360] parser not found for codec scpr, packets or times may be invalid.
    [avi @ 042ed360] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
    [avi @ 042ed360] rfps: 2.916667 0.012539
    [avi @ 042ed360] rfps: 2.916667 0.012539
    [avi @ 042ed360] rfps: 3.000000 0.000000
    [avi @ 042ed360] rfps: 3.083333 0.012539
    [avi @ 042ed360] rfps: 3.083333 0.012539
    [avi @ 042ed360] rfps: 5.916667 0.012539
    [avi @ 042ed360] rfps: 5.916667 0.012539
    [avi @ 042ed360] rfps: 6.000000 0.000000
    [avi @ 042ed360] rfps: 6.000000 0.000000
    [avi @ 042ed360] rfps: 6.083333 0.012539
    [avi @ 042ed360] rfps: 6.083333 0.012539
    [avi @ 042ed360] rfps: 8.916667 0.012539
    [avi @ 042ed360] rfps: 8.916667 0.012539
    [avi @ 042ed360] rfps: 9.000000 0.000000
    [avi @ 042ed360] rfps: 9.083333 0.012539
    [avi @ 042ed360] rfps: 9.083333 0.012539
    [avi @ 042ed360] rfps: 11.916667 0.012539
    [avi @ 042ed360] rfps: 11.916667 0.012539
    [avi @ 042ed360] rfps: 12.000000 0.000000
    [avi @ 042ed360] rfps: 12.000000 0.000000
    [avi @ 042ed360] rfps: 12.083333 0.012539
    [avi @ 042ed360] rfps: 12.083333 0.012539
    [avi @ 042ed360] rfps: 14.916667 0.012539
    [avi @ 042ed360] rfps: 14.916667 0.012539
    [avi @ 042ed360] rfps: 15.000000 0.000000
    [avi @ 042ed360] rfps: 15.083333 0.012539
    [avi @ 042ed360] rfps: 15.083333 0.012539
    [avi @ 042ed360] rfps: 17.916667 0.012539
    [avi @ 042ed360] rfps: 17.916667 0.012539
    [avi @ 042ed360] rfps: 18.000000 0.000000
    [avi @ 042ed360] rfps: 18.000000 -0.000000
    [avi @ 042ed360] rfps: 18.083333 0.012539
    [avi @ 042ed360] rfps: 18.083333 0.012539
    [avi @ 042ed360] rfps: 20.916667 0.012539
    [avi @ 042ed360] rfps: 20.916667 0.012539
    [avi @ 042ed360] rfps: 21.000000 0.000000
    [avi @ 042ed360] rfps: 21.083333 0.012539
    [avi @ 042ed360] rfps: 21.083333 0.012539
    [avi @ 042ed360] rfps: 23.916667 0.012539
    [avi @ 042ed360] rfps: 23.916667 0.012539
    [avi @ 042ed360] rfps: 24.000000 0.000000
    [avi @ 042ed360] rfps: 24.000000 -0.000000
    [avi @ 042ed360] rfps: 24.083333 0.012539
    [avi @ 042ed360] rfps: 24.083333 0.012539
    [avi @ 042ed360] rfps: 26.916667 0.012539
    [avi @ 042ed360] rfps: 26.916667 0.012539
    [avi @ 042ed360] rfps: 27.000000 0.000000
    [avi @ 042ed360] rfps: 27.083333 0.012539
    [avi @ 042ed360] rfps: 27.083333 0.012539
    [avi @ 042ed360] rfps: 29.916667 0.012539
    [avi @ 042ed360] rfps: 29.916667 0.012539
    [avi @ 042ed360] rfps: 30.000000 0.000000
    [avi @ 042ed360] rfps: 30.000000 -0.000000
    [avi @ 042ed360] rfps: 33.000000 0.000000
    [avi @ 042ed360] rfps: 36.000000 0.000000
    [avi @ 042ed360] rfps: 36.000000 -0.000000
    [avi @ 042ed360] rfps: 39.000000 0.000000
    [avi @ 042ed360] rfps: 42.000000 0.000000
    [avi @ 042ed360] rfps: 42.000000 0.000000
    [avi @ 042ed360] rfps: 45.000000 0.000000
    [avi @ 042ed360] rfps: 48.000000 0.000000
    [avi @ 042ed360] rfps: 48.000000 0.000000
    [avi @ 042ed360] rfps: 51.000000 0.000000
    [avi @ 042ed360] rfps: 54.000000 0.000000
    [avi @ 042ed360] rfps: 54.000000 -0.000000
    [avi @ 042ed360] rfps: 57.000000 0.000000
    [avi @ 042ed360] rfps: 60.000000 0.000000
    [avi @ 042ed360] rfps: 60.000000 0.000000
    [avi @ 042ed360] rfps: 120.000000 0.000000
    [avi @ 042ed360] rfps: 120.000000 -0.000000
    [avi @ 042ed360] rfps: 240.000000 0.000000
    [avi @ 042ed360] rfps: 240.000000 -0.000000
    [avi @ 042ed360] rfps: 23.976024 0.001038
    [avi @ 042ed360] rfps: 23.976024 0.001038
    [avi @ 042ed360] rfps: 29.970030 0.001622
    [avi @ 042ed360] rfps: 29.970030 0.001622
    [avi @ 042ed360] rfps: 59.940060 0.006487
    [avi @ 042ed360] rfps: 59.940060 0.006487
    [avi @ 042ed360] rfps: 11.988012 0.000259
    [avi @ 042ed360] rfps: 11.988012 0.000259
    [avi @ 042ed360] rfps: 14.985015 0.000405
    [avi @ 042ed360] rfps: 14.985015 0.000405
    [avi @ 042ed360] rfps: 47.952048 0.004152
    [avi @ 042ed360] rfps: 47.952048 0.004152
    [avi @ 042ed360] After avformat_find_stream_info() pos: 105829 bytes read:175139 seeks:4 frames:15
    Input #0, avi, from '..\mergedVideoOnly.avi':
     Metadata:
    encoder         : Lavf57.83.100
     Duration: 00:00:25.33, start: 0.000000, bitrate: 113 kb/s
    Stream #0:0, 15, 1/3: Video: scpr (SCPR / 0x52504353), rgb0, 1920x1200, 112 kb/s, 3 fps, 3 tbr, 3 tbn, 3 tbc
    Successfully opened the file.
    Parsing a group of options: input url " "\Storage\0030_0130.wav.
    Successfully parsed a group of options.
    Opening an input file: " "\Storage\1.wav.
    [NULL @ 03be0180] Opening '" "\Storage\1.wav' for reading
    [file @ 03be0820] Setting default whitelist 'file,crypto'
    [wav @ 03be0180] Format wav probed with size=2048 and score=99
    [wav @ 03be0180] Before avformat_find_stream_info() pos: 44 bytes read:65580 seeks:1 nb_streams:1
    [wav @ 03be0180] probing stream 0 pp:32
    [wav @ 03be0180] probing stream 0 pp:31
    [wav @ 03be0180] probing stream 0 pp:30
    [wav @ 03be0180] probing stream 0 pp:29
    [wav @ 03be0180] probing stream 0 pp:28
    [wav @ 03be0180] probing stream 0 pp:27
    [wav @ 03be0180] probing stream 0 pp:26
    [wav @ 03be0180] probing stream 0 pp:25
    [wav @ 03be0180] probing stream 0 pp:24
    [wav @ 03be0180] probing stream 0 pp:23
    [wav @ 03be0180] probing stream 0 pp:22
    [wav @ 03be0180] probing stream 0 pp:21
    [wav @ 03be0180] probing stream 0 pp:20
    [wav @ 03be0180] probing stream 0 pp:19
    [wav @ 03be0180] probing stream 0 pp:18
    [wav @ 03be0180] probing stream 0 pp:17
    [wav @ 03be0180] probing stream 0 pp:16
    [wav @ 03be0180] probing stream 0 pp:15
    [wav @ 03be0180] probing stream 0 pp:14
    [wav @ 03be0180] probing stream 0 pp:13
    [wav @ 03be0180] probing stream 0 pp:12
    [wav @ 03be0180] probing stream 0 pp:11
    [wav @ 03be0180] probing stream 0 pp:10
    [wav @ 03be0180] probing stream 0 pp:9
    [wav @ 03be0180] probing stream 0 pp:8
    [wav @ 03be0180] probing stream 0 pp:7
    [wav @ 03be0180] probing stream 0 pp:6
    [wav @ 03be0180] probing stream 0 pp:5
    [wav @ 03be0180] probing stream 0 pp:4
    [wav @ 03be0180] probing stream 0 pp:3
    [wav @ 03be0180] probing stream 0 pp:2
    [wav @ 03be0180] probing stream 0 pp:1
    [wav @ 03be0180] probed stream 0
    [wav @ 03be0180] parser not found for codec pcm_s16le, packets or times may be invalid.
    [wav @ 03be0180] max_analyze_duration 5000000 reached at 5120000 microseconds st:0
    [wav @ 03be0180] After avformat_find_stream_info() pos: 131116 bytes read:196652 seeks:1 frames:22
    Guessed Channel Layout for Input Stream #1.0 : mono
    Input #1, wav, from '" "\Storage\0030_0130.wav':
     Duration: 00:00:56.80, bitrate: 128 kb/s
    Stream #1:0, 22, 1/8000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s
    Successfully opened the file.
    Parsing a group of options: input url " "\Storage\2.wav.
    Successfully parsed a group of options.
    Opening an input file: " "\Storage\2.wav.
    [NULL @ 03bed760] Opening '" "\Storage\2.wav' for reading
    [file @ 03bb3100] Setting default whitelist 'file,crypto'
    [wav @ 03bed760] Format wav probed with size=2048 and score=99
    [wav @ 03bed760] Before avformat_find_stream_info() pos: 44 bytes read:65580 seeks:1 nb_streams:1
    [wav @ 03bed760] probing stream 0 pp:32
    [wav @ 03bed760] probing stream 0 pp:31
    [wav @ 03bed760] probing stream 0 pp:30
    [wav @ 03bed760] probing stream 0 pp:29
    [wav @ 03bed760] probing stream 0 pp:28
    [wav @ 03bed760] probing stream 0 pp:27
    [wav @ 03bed760] probing stream 0 pp:26
    [wav @ 03bed760] probing stream 0 pp:25
    [wav @ 03bed760] probing stream 0 pp:24
    [wav @ 03bed760] probing stream 0 pp:23
    [wav @ 03bed760] probing stream 0 pp:22
    [wav @ 03bed760] probing stream 0 pp:21
    [wav @ 03bed760] probing stream 0 pp:20
    [wav @ 03bed760] probing stream 0 pp:19
    [wav @ 03bed760] probing stream 0 pp:18
    [wav @ 03bed760] probing stream 0 pp:17
    [wav @ 03bed760] probing stream 0 pp:16
    [wav @ 03bed760] probing stream 0 pp:15
    [wav @ 03bed760] probing stream 0 pp:14
    [wav @ 03bed760] probing stream 0 pp:13
    [wav @ 03bed760] probing stream 0 pp:12
    [wav @ 03bed760] probing stream 0 pp:11
    [wav @ 03bed760] probing stream 0 pp:10
    [wav @ 03bed760] probing stream 0 pp:9
    [wav @ 03bed760] probing stream 0 pp:8
    [wav @ 03bed760] probing stream 0 pp:7
    [wav @ 03bed760] probing stream 0 pp:6
    [wav @ 03bed760] probing stream 0 pp:5
    [wav @ 03bed760] probing stream 0 pp:4
    [wav @ 03bed760] probing stream 0 pp:3
    [wav @ 03bed760] probing stream 0 pp:2
    [wav @ 03bed760] probing stream 0 pp:1
    [wav @ 03bed760] probed stream 0
    [wav @ 03bed760] parser not found for codec pcm_s16le, packets or times may be invalid.
    [wav @ 03bed760] max_analyze_duration 5000000 reached at 5120000 microseconds st:0
    [wav @ 03bed760] After avformat_find_stream_info() pos: 131116 bytes read:196652 seeks:1 frames:22
    Guessed Channel Layout for Input Stream #2.0 : mono
    Input #2, wav, from '" "\Storage\0130_0230.wav':
     Duration: 00:00:59.81, bitrate: 128 kb/s
    Stream #2:0, 22, 1/8000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s
    Successfully opened the file.
    Parsing a group of options: input url " "\Storage\3.wav.
    Successfully parsed a group of options.
    Opening an input file: " "\Storage\3.wav.
    [NULL @ 03bfeea0] Opening '" "\Storage\3.wav' for reading
    [file @ 03bfe8e0] Setting default whitelist 'file,crypto'
    [wav @ 03bfeea0] Format wav probed with size=2048 and score=99
    [wav @ 03bfeea0] Before avformat_find_stream_info() pos: 44 bytes read:65580 seeks:1 nb_streams:1
    [wav @ 03bfeea0] probing stream 0 pp:32
    [wav @ 03bfeea0] probing stream 0 pp:31
    [wav @ 03bfeea0] probing stream 0 pp:30
    [wav @ 03bfeea0] probing stream 0 pp:29
    [wav @ 03bfeea0] probing stream 0 pp:28
    [wav @ 03bfeea0] probing stream 0 pp:27
    [wav @ 03bfeea0] probing stream 0 pp:26
    [wav @ 03bfeea0] probing stream 0 pp:25
    [wav @ 03bfeea0] probing stream 0 pp:24
    [wav @ 03bfeea0] probing stream 0 pp:23
    [wav @ 03bfeea0] probing stream 0 pp:22
    [wav @ 03bfeea0] probing stream 0 pp:21
    [wav @ 03bfeea0] probing stream 0 pp:20
    [wav @ 03bfeea0] probing stream 0 pp:19
    [wav @ 03bfeea0] probing stream 0 pp:18
    [wav @ 03bfeea0] probing stream 0 pp:17
    [wav @ 03bfeea0] probing stream 0 pp:16
    [wav @ 03bfeea0] probing stream 0 pp:15
    [wav @ 03bfeea0] probing stream 0 pp:14
    [wav @ 03bfeea0] probing stream 0 pp:13
    [wav @ 03bfeea0] probing stream 0 pp:12
    [wav @ 03bfeea0] probing stream 0 pp:11
    [wav @ 03bfeea0] probing stream 0 pp:10
    [wav @ 03bfeea0] probing stream 0 pp:9
    [wav @ 03bfeea0] probing stream 0 pp:8
    [wav @ 03bfeea0] probing stream 0 pp:7
    [wav @ 03bfeea0] probing stream 0 pp:6
    [wav @ 03bfeea0] probing stream 0 pp:5
    [wav @ 03bfeea0] probing stream 0 pp:4
    [wav @ 03bfeea0] probing stream 0 pp:3
    [wav @ 03bfeea0] probing stream 0 pp:2
    [wav @ 03bfeea0] probing stream 0 pp:1
    [wav @ 03bfeea0] probed stream 0
    [wav @ 03bfeea0] parser not found for codec pcm_s16le, packets or times may be invalid.
    [wav @ 03bfeea0] max_analyze_duration 5000000 reached at 5120000 microseconds st:0
    [wav @ 03bfeea0] After avformat_find_stream_info() pos: 131116 bytes read:196652 seeks:1 frames:22
    Guessed Channel Layout for Input Stream #3.0 : mono
    Input #3, wav, from '" "\Storage\0230_0330.wav':
     Duration: 00:00:59.81, bitrate: 128 kb/s
    Stream #3:0, 22, 1/8000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s
    Successfully opened the file.
    detected 4 logical cores
    [Parsed_adelay_0 @ 03c0c460] Setting 'delays' to value '30000|30000'
    Parsing a group of options: output url adelay=91000|91000.
    Successfully parsed a group of options.
    Opening an output file: adelay=91000|91000.
    [NULL @ 03c17640] Unable to find a suitable output format for 'adelay=91000|91000'
    adelay=91000|91000: Invalid argument
    [AVIOContext @ 042ee400] Statistics: 175139 bytes read, 4 seeks
    [AVIOContext @ 03be0900] Statistics: 196652 bytes read, 1 seeks
    [AVIOContext @ 03bca7e0] Statistics: 196652 bytes read, 1 seeks
    [AVIOContext @ 03bfe9a0] Statistics: 196652 bytes read, 1 seeks
  • FFmpeg smearing rtp missed packet

    3 janvier 2018, par Akim Benchiha

    I’m using ffmpeg to combine streams. But during the combinaison I have some errors/Warnings. I don’t know why. I can see the frames are dropping. And the output video is poor quality

    Here the situation :
    First : Try to combine local video and a rtsp stream from data center.

    ffmpeg -i rtsp://cloudzensg.loginto.me:554/livecast -i Xmen2trailer.mov -filter_complex "[0]scale=-1:-1[b];[1]scale=128:128[w];[b][w] overlay=10:10" -vcodec libx264 -preset ultrafast -f flv out.mp4
    ffmpeg version N-89672-g41e51fbcd9 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.2.0 (GCC)
    [udp @ 000001e07f58ccc0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 000001e07f5a2b80] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 000001e07f5b4040] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 000001e07f5c4300] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    Input #0, rtsp, from 'rtsp://cloudzensg.loginto.me:554/livecast':
     Metadata:
       title           : session
     Duration: N/A, start: 0.086367, bitrate: N/A
       Stream #0:0: Audio: aac, 44100 Hz, stereo, fltp
       Stream #0:1: Video: h264 (Constrained Baseline), yuv420p(progressive), 1280x720, 30 fps, 30 tbr, 90k tbn, 60 tbc
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'Xmen2trailer.mov':
     Metadata:
       creation_time   : 2003-02-17T16:23:00.000000Z
       title           : X2
       title-eng       : X2
       copyright-eng   : ┬⌐2003 20th Century Fox
       comment         : QuickTime 5 version encoded and delivered by www.apple.com/trailers/
       copyright       : ┬⌐2003 20th Century Fox
       comment-eng     : QuickTime 5 version encoded and delivered by www.apple.com/trailers/
     Duration: 00:02:29.08, start: 0.000000, bitrate: 1283 kb/s
       Stream #1:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p(pc), 480x272, 1153 kb/s, 24 fps, 24 tbr, 600 tbn, 600 tbc (default)
       Metadata:
         creation_time   : 2003-02-17T16:23:00.000000Z
         handler_name    : Apple Alias Data Handler
         encoder         : Sorenson Video 3
       Stream #1:1(eng): Audio: qdm2 (QDM2 / 0x324D4451), 44100 Hz, stereo, s16, 128 kb/s (default)
       Metadata:
         creation_time   : 2003-02-17T16:23:00.000000Z
         handler_name    : Apple Alias Data Handler
    File 'out.mp4' already exists. Overwrite ? [y/N] y
    Stream mapping:
     Stream #0:1 (h264) -> scale (graph 0)
     Stream #1:0 (svq3) -> scale (graph 0)
     overlay (graph 0) -> Stream #0:0 (libx264)
     Stream #1:1 -> #0:1 (qdm2 (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [swscaler @ 000001e002b3d980] deprecated pixel format used, make sure you did set range correctly
    [libx264 @ 000001e07f5edd00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 000001e07f5edd00] profile Constrained Baseline, level 3.1
    [libx264 @ 000001e07f5edd00] 264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
    Output #0, flv, to 'out.mp4':
     Metadata:
       title           : session
       encoder         : Lavf58.3.100
       Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1280x720, q=-1--1, 30 fps, 1k tbn, 30 tbc (default)
       Metadata:
         encoder         : Lavc58.9.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1(eng): Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16p (default)
       Metadata:
         creation_time   : 2003-02-17T16:23:00.000000Z
         handler_name    : Apple Alias Data Handler
         encoder         : Lavc58.9.100 libmp3lame
    Past duration 0.889320 too large
    Past duration 0.629326 too large
    Past duration 0.979652 too large
    Past duration 0.909660 too large
    Past duration 0.646996 too large
    Past duration 0.881325 too large
    Past duration 0.728661 too large
    Past duration 0.970665 too large
    Past duration 0.610664 too large
    Past duration 0.851997 too large
    Past duration 0.779991 too large
    Past duration 0.870995 too large
    Past duration 0.752327 too large
    Past duration 0.970665 too large
    Past duration 0.679665 too large
    Past duration 0.951988 too large
    Past duration 0.913994 too large
    Past duration 0.641655 too large
    [rtsp @ 000001e07f58a700] max delay reached. need to consume packet
    [rtsp @ 000001e07f58a700] RTP: missed 747 packets
    [h264 @ 000001e07f63a140] corrupted macroblock 30 15 (total_coeff=-1)063.3kbits/s dup=0 drop=66 speed=6.52x
    [h264 @ 000001e07f63a140] error while decoding MB 30 15
    [h264 @ 000001e07f63a140] concealing 2380 DC, 2380 AC, 2380 MV errors in P frame
    Past duration 0.971657 too large
    Past duration 0.867989 too large    1280kB time=00:00:04.44 bitrate=2360.6kbits/s dup=0 drop=70 speed=1.44x
    [rtsp @ 000001e07f58a700] max delay reached. need to consume packet
    [rtsp @ 000001e07f58a700] RTP: missed 43 packets
    [h264 @ 000001e07f639380] corrupted macroblock 11 18 (total_coeff=-1)
    [h264 @ 000001e07f639380] error while decoding MB 11 18
    [h264 @ 000001e07f639380] concealing 2156 DC, 2156 AC, 2156 MV errors in P frame
    Past duration 0.895988 too large
    Past duration 0.708656 too large
    frame=  105 fps= 29 q=-1.0 Lsize=    2169kB time=00:00:08.98 bitrate=1977.1kbits/s dup=0 drop=76 speed=2.52x
    video:2020kB audio:141kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.363079%
    [libx264 @ 000001e07f5edd00] frame I:1     Avg QP:20.00  size: 84510
    [libx264 @ 000001e07f5edd00] frame P:104   Avg QP:18.44  size: 19074
    [libx264 @ 000001e07f5edd00] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 000001e07f5edd00] mb P  I16..4: 15.4%  0.0%  0.0%  P16..4: 23.1%  0.0%  0.0%  0.0%  0.0%    skip:61.5%
    [libx264 @ 000001e07f5edd00] coded y,uvDC,uvAC intra: 7.4% 7.3% 4.5% inter: 14.3% 12.2% 3.4%
    [libx264 @ 000001e07f5edd00] i16 v,h,dc,p: 71% 27%  1%  0%
    [libx264 @ 000001e07f5edd00] i8c dc,h,v,p: 58% 37%  4%  0%
    [libx264 @ 000001e07f5edd00] kb/s:1969.74
    Exiting normally, received signal 2

    second :
    Try to combine local rtsp and local video

    ffmpeg -i rtsp://192.168.1.203:554/livecast -i Xmen2trailer.mov -filter_complex "[0]scale=-1:-1[b];[1]scale=128:128[w];[b][w] overlay=10:10" -vcodec libx264 -preset ultrafast -f flv out.mp4
    ffmpeg version N-89672-g41e51fbcd9 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.2.0 (GCC)
    [udp @ 000002aa1fe4ca00] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 000002aa1fe62900] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 000002aa1fe73d80] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 000002aa1fe84040] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    Input #0, rtsp, from 'rtsp://192.168.1.203:554/livecast':
     Metadata:
       title           : session
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp
       Stream #0:1: Video: h264 (Constrained Baseline), yuv420p(progressive), 1920x1080, 30 fps, 30 tbr, 90k tbn, 60 tbc
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'Xmen2trailer.mov':
     Metadata:
       creation_time   : 2003-02-17T16:23:00.000000Z
       title           : X2
       title-eng       : X2
       copyright-eng   : ┬⌐2003 20th Century Fox
       comment         : QuickTime 5 version encoded and delivered by www.apple.com/trailers/
       copyright       : ┬⌐2003 20th Century Fox
       comment-eng     : QuickTime 5 version encoded and delivered by www.apple.com/trailers/
     Duration: 00:02:29.08, start: 0.000000, bitrate: 1283 kb/s
       Stream #1:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p(pc), 480x272, 1153 kb/s, 24 fps, 24 tbr, 600 tbn, 600 tbc (default)
       Metadata:
         creation_time   : 2003-02-17T16:23:00.000000Z
         handler_name    : Apple Alias Data Handler
         encoder         : Sorenson Video 3
       Stream #1:1(eng): Audio: qdm2 (QDM2 / 0x324D4451), 44100 Hz, stereo, s16, 128 kb/s (default)
       Metadata:
         creation_time   : 2003-02-17T16:23:00.000000Z
         handler_name    : Apple Alias Data Handler
    File 'out.mp4' already exists. Overwrite ? [y/N] y
    Stream mapping:
     Stream #0:1 (h264) -> scale (graph 0)
     Stream #1:0 (svq3) -> scale (graph 0)
     overlay (graph 0) -> Stream #0:0 (libx264)
     Stream #0:0 -> #0:1 (aac (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [swscaler @ 000002aa2355ba40] deprecated pixel format used, make sure you did set range correctly
    [libx264 @ 000002aa202d9600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 000002aa202d9600] profile Constrained Baseline, level 4.0
    [libx264 @ 000002aa202d9600] 264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
    Output #0, flv, to 'out.mp4':
     Metadata:
       title           : session
       encoder         : Lavf58.3.100
       Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1920x1080, q=-1--1, 30 fps, 1k tbn, 30 tbc (default)
       Metadata:
         encoder         : Lavc58.9.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 48000 Hz, stereo, fltp
       Metadata:
         encoder         : Lavc58.9.100 libmp3lame
    Past duration 0.711662 too large
    Past duration 0.822990 too large
    Past duration 0.854332 too large
    [rtsp @ 000002aa1fe4a680] max delay reached. need to consume packet
    [rtsp @ 000002aa1fe4a680] RTP: missed 1315 packets
    [h264 @ 000002aa20262580] Invalid level prefix
    [h264 @ 000002aa20262580] error while decoding MB 12 37
    [h264 @ 000002aa20262580] concealing 3757 DC, 3757 AC, 3757 MV errors in I frame
    Past duration 0.732323 too large     256kB time=00:00:02.88 bitrate= 727.2kbits/s dup=0 drop=13 speed=5.76x
    Past duration 0.824333 too large
    Past duration 0.988991 too large
    Past duration 0.862328 too large    1024kB time=00:00:03.38 bitrate=2477.4kbits/s dup=0 drop=21 speed=3.34x
    Past duration 0.861320 too large
    Past duration 0.883324 too large
    Past duration 0.910652 too large    1280kB time=00:00:03.94 bitrate=2659.3kbits/s dup=0 drop=30 speed=2.59x
    Past duration 0.954659 too large
    Past duration 0.790657 too large    1792kB time=00:00:04.40 bitrate=3335.6kbits/s dup=0 drop=37 speed=2.17x
    Past duration 0.861320 too large
    Past duration 0.943657 too large
    Past duration 0.988655 too large    2304kB time=00:00:04.90 bitrate=3849.6kbits/s dup=0 drop=45 speed=1.94x
    Past duration 0.810326 too large
    Past duration 0.893654 too large
    Past duration 0.822319 too large    3072kB time=00:00:05.40 bitrate=4655.2kbits/s dup=0 drop=53 speed=1.78x
    Past duration 0.902657 too large
    Past duration 0.909660 too large
    Past duration 0.779655 too large    3328kB time=00:00:05.93 bitrate=4596.7kbits/s dup=0 drop=61 speed=1.67x
    Past duration 0.957664 too large
    Past duration 0.778328 too large    3840kB time=00:00:06.43 bitrate=4890.0kbits/s dup=0 drop=68 speed=1.59x
    Past duration 0.861992 too large
    Past duration 0.992653 too large
    Past duration 0.729652 too large    4352kB time=00:00:06.94 bitrate=5133.4kbits/s dup=0 drop=76 speed=1.53x
    [rtsp @ 000002aa1fe4a680] max delay reached. need to consume packet
    [rtsp @ 000002aa1fe4a680] RTP: missed 2 packets
    Past duration 0.857994 too large
    [h264 @ 000002aa20260580] Invalid level prefix
    [h264 @ 000002aa20260580] error while decoding MB 43 62
    [h264 @ 000002aa20260580] concealing 726 DC, 726 AC, 726 MV errors in P frame
    Past duration 0.889000 too large
    Past duration 0.800987 too large    4864kB time=00:00:07.42 bitrate=5365.7kbits/s dup=0 drop=83 speed=1.47x
    Past duration 0.909660 too large
    Past duration 0.946327 too large
    Past duration 0.795998 too large
    Past duration 0.902321 too large    5376kB time=00:00:07.95 bitrate=5539.0kbits/s dup=0 drop=91 speed=1.43x
    Past duration 0.841652 too large
    Past duration 0.859657 too large
    Past duration 0.992332 too large    5632kB time=00:00:08.43 bitrate=5472.3kbits/s dup=0 drop=99 speed=1.39x
    Past duration 0.893990 too large
    Past duration 0.947990 too large    6400kB time=00:00:08.95 bitrate=5853.4kbits/s dup=0 drop=106 speed=1.36x
    Past duration 0.678322 too large
    Past duration 0.994987 too large
    Past duration 0.942329 too large
    Past duration 0.975319 too large
    Past duration 0.702660 too large    6912kB time=00:00:09.45 bitrate=5986.8kbits/s dup=0 drop=114 speed=1.34x
    Past duration 0.821663 too large
    Past duration 0.937325 too large
    Past duration 0.992989 too large
    Past duration 0.684990 too large    7168kB time=00:00:09.96 bitrate=5895.0kbits/s dup=0 drop=122 speed=1.31x
    Past duration 0.763664 too large
    Past duration 0.990318 too large
    Past duration 0.921333 too large
    Past duration 0.945320 too large
    Past duration 0.711327 too large    7680kB time=00:00:10.49 bitrate=5994.1kbits/s dup=0 drop=130 speed=1.29x
    Past duration 0.841652 too large
    Past duration 0.948997 too large
    Past duration 0.994652 too large
    Past duration 0.759987 too large    8448kB time=00:00:11.04 bitrate=6267.0kbits/s dup=0 drop=138 speed=1.28x
    Past duration 0.860985 too large
    Past duration 0.984993 too large
    Past duration 0.796989 too large    8960kB time=00:00:11.50 bitrate=6382.1kbits/s dup=0 drop=145 speed=1.26x
    Past duration 0.914665 too large
    Past duration 0.804329 too large    9472kB time=00:00:12.02 bitrate=6452.2kbits/s dup=0 drop=152 speed=1.25x
    frame=  303 fps= 31 q=-1.0 Lsize=   10246kB time=00:00:12.33 bitrate=6803.2kbits/s dup=0 drop=156 speed=1.25x
    video:10039kB audio:193kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.140463%
    [libx264 @ 000002aa202d9600] frame I:2     Avg QP:18.00  size:199681
    [libx264 @ 000002aa202d9600] frame P:301   Avg QP:18.96  size: 32823
    [libx264 @ 000002aa202d9600] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 000002aa202d9600] mb P  I16..4:  9.3%  0.0%  0.0%  P16..4: 32.1%  0.0%  0.0%  0.0%  0.0%    skip:58.6%
    [libx264 @ 000002aa202d9600] coded y,uvDC,uvAC intra: 12.9% 34.0% 11.0% inter: 12.0% 22.7% 6.2%
    [libx264 @ 000002aa202d9600] i16 v,h,dc,p: 38% 49%  9%  4%
    [libx264 @ 000002aa202d9600] i8c dc,h,v,p: 38% 42% 14%  6%
    [libx264 @ 000002aa202d9600] kb/s:6833.78
    Exiting normally, received signal 2.

    third :
    Combine RTMP from phone and RTSP video from server

    ffmpeg -i rtsp://192.168.1.203:554/livecast -i rtmp://192.168.1.152:1935/ingest/test -filter_complex "[0]scale=-1:-1[b];[1]scale=200:200[w];[b][w] overlay=10:10" -c:v libx264 -preset ultrafast -f flv outputRTMP.mp4
    ffmpeg version N-89672-g41e51fbcd9 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --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-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  3.100 / 58.  3.100
     libavdevice    58.  0.100 / 58.  0.100
     libavfilter     7.  8.100 /  7.  8.100
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    [udp @ 0000018c0ccbca40] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 0000018c0ccd2900] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 0000018c0cce3dc0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    [udp @ 0000018c0ccf4080] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
    Input #0, rtsp, from 'rtsp://192.168.1.203:554/livecast':
     Metadata:
       title           : session
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp
       Stream #0:1: Video: h264 (Constrained Baseline), yuv420p(progressive), 1920x1080, 30 fps, 30 tbr, 90k tbn, 60 tbc
    Input #1, flv, from 'rtmp://192.168.1.152:1935/ingest/test':
     Metadata:
       Server          : NGINX RTMP (github.com/arut/nginx-rtmp-module)
       displayWidth    : 640
       displayHeight   : 480
       fps             : 0
       profile         :
       level           :
     Duration: 00:00:00.00, start: 173.197000, bitrate: N/A
       Stream #1:0: Audio: aac (LC), 44100 Hz, mono, fltp, 47 kb/s
       Stream #1:1: Video: h264 (Baseline), yuv420p(tv, smpte170m/bt470bg/smpte170m, progressive), 640x480, 1999 kb/s, 29.92 fps, 29.92 tbr, 1k tbn
    File 'outputRTMP.mp4' already exists. Overwrite ? [y/N] y
    Stream mapping:
     Stream #0:1 (h264) -> scale (graph 0)
     Stream #1:1 (h264) -> scale (graph 0)
     overlay (graph 0) -> Stream #0:0 (libx264)
     Stream #0:0 -> #0:1 (aac (native) -> mp3 (libmp3lame))
    Press [q] to stop, [?] for help
    [libx264 @ 0000018c0d1321c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0000018c0d1321c0] profile Constrained Baseline, level 4.0
    [libx264 @ 0000018c0d1321c0] 264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
    Output #0, flv, to 'outputRTMP.mp4':
     Metadata:
       title           : session
       encoder         : Lavf58.3.100
       Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1920x1080, q=-1--1, 30 fps, 1k tbn, 30 tbc (default)
       Metadata:
         encoder         : Lavc58.9.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 48000 Hz, stereo, fltp
       Metadata:
         encoder         : Lavc58.9.100 libmp3lame
    Past duration 0.931999 too large
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 92 packets
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 2904 packets
    Past duration 0.671654 too large
    [h264 @ 0000018c0d0da140] concealing 4160 DC, 4160 AC, 4160 MV errors in I frame
    Past duration 0.991997 too large
    Past duration 0.791328 too large     256kB time=00:00:05.12 bitrate= 409.3kbits/s dup=0 drop=12 speed=4.14x
    Past duration 0.969994 too large
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 573 packets
    [h264 @ 0000018c0d0d8a80] concealing 2468 DC, 2468 AC, 2468 MV errors in P frame
    Past duration 0.670326 too large
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 25 packets
    [h264 @ 0000018c0d0d8a80] concealing 6479 DC, 6479 AC, 6479 MV errors in P frame
    Past duration 0.961327 too large     512kB time=00:00:11.10 bitrate= 377.7kbits/s dup=0 drop=16 speed=1.57x
    Past duration 0.689323 too large
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 620 packets
    [h264 @ 0000018c0d0da140] negative number of zero coeffs at 33 32
    [h264 @ 0000018c0d0da140] error while decoding MB 33 32
    [h264 @ 0000018c0d0da140] concealing 4336 DC, 4336 AC, 4336 MV errors in P frame
    Past duration 0.790321 too large
    Past duration 0.910332 too large     768kB time=00:00:12.23 bitrate= 514.3kbits/s dup=0 drop=18 speed=1.62x
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 24 packets
    [h264 @ 0000018c0d0da140] corrupted macroblock 22 25 (total_coeff=-1)
    [h264 @ 0000018c0d0da140] error while decoding MB 22 25
    [h264 @ 0000018c0d0da140] concealing 5151 DC, 5151 AC, 5151 MV errors in P frame
    Past duration 0.924324 too large    1024kB time=00:00:17.03 bitrate= 492.5kbits/s dup=0 drop=19 speed= 1.3x
    Past duration 0.656654 too large
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 516 packets
    [h264 @ 0000018c0d0daf00] Invalid level prefix
    [h264 @ 0000018c0d0daf00] error while decoding MB 0 36
    [h264 @ 0000018c0d0daf00] concealing 3889 DC, 3889 AC, 3889 MV errors in P frame
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 132 packets
    [h264 @ 0000018c0d0d8a80] top block unavailable for requested intra mode -1
    [h264 @ 0000018c0d0d8a80] error while decoding MB 55 26
    [h264 @ 0000018c0d0d8a80] concealing 5034 DC, 5034 AC, 5034 MV errors in I frame
    [h264 @ 0000018c0d0d9cc0] concealing 2621 DC, 2621 AC, 2621 MV errors in P frame
    Past duration 0.935661 too large
    Past duration 0.878319 too large
    Past duration 0.929329 too large    1280kB time=00:00:18.32 bitrate= 572.1kbits/s dup=0 drop=22 speed=1.27x
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 560 packets
    [h264 @ 0000018c0d0d8140] Invalid level prefix
    Past duration 0.661659 too large
    [h264 @ 0000018c0d0d8140] error while decoding MB 91 24
    [h264 @ 0000018c0d0d8140] concealing 5214 DC, 5214 AC, 5214 MV errors in P frame
    Past duration 0.823662 too large
    Past duration 0.864662 too large
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 29 packets
    [h264 @ 0000018c0d0d8140] corrupted macroblock 42 3 (total_coeff=-1)
    [h264 @ 0000018c0d0d8140] error while decoding MB 42 3
    [h264 @ 0000018c0d0d8140] concealing 7760 DC, 7760 AC, 7760 MV errors in P frame
    Past duration 0.780663 too large    1792kB time=00:00:19.50 bitrate= 752.8kbits/s dup=0 drop=24 speed=1.27x
    Past duration 0.900322 too large
    Past duration 0.990990 too large
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 565 packets
    [h264 @ 0000018c0d0d8140] corrupted macroblock 83 27 (total_coeff=-1)
    [h264 @ 0000018c0d0d8140] Past duration 0.862999 too large
    error while decoding MB 83 27
    [h264 @ 0000018c0d0d8140] concealing 4866 DC, 4866 AC, 4866 MV errors in P frame
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 7 packets
    [h264 @ 0000018c0d0d8f00] top block unavailable for requested intra mode
    [h264 @ 0000018c0d0d8f00] error while decoding MB 79 16
    [h264 @ 0000018c0d0d8f00] concealing 2661 DC, 2661 AC, 2661 MV errors in P frame
    Past duration 0.907997 too large
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet= 816.0kbits/s dup=0 drop=28 speed=1.29x
    [rtsp @ 0000018c0ccba6c0] RTP: missed 19 packets
    [h264 @ 0000018c0d0d9cc0] corrupted macroblock 88 59 (total_coeff=-1)
    [h264 @ 0000018c0d0d9cc0] error while decoding MB 88 59
    [h264 @ 0000018c0d0d9cc0] concealing 1041 DC, 1041 AC, 1041 MV errors in P frame
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 6 packets
    [h264 @ 0000018c0d0d8140] out of range intra chroma pred mode
    [h264 @ 0000018c0d0d8140] error while decoding MB 118 6
    [h264 @ 0000018c0d0d8140] concealing 3320 DC, 3320 AC, 3320 MV errors in P frame
    Past duration 0.845665 too large    2304kB time=00:00:20.72 bitrate= 910.6kbits/s dup=0 drop=29 speed=1.23x
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 574 packets
    [h264 @ 0000018c0d0d8140] negative number of zero coeffs at 39 26
    [h264 @ 0000018c0d0d8140] error while decoding MB 39 26
    [h264 @ 0000018c0d0d8140] concealing 5050 DC, 5050 AC, 5050 MV errors in P frame
    Past duration 0.950996 too large
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 37 packets
    [h264 @ 0000018c0d0d8140] corrupted macroblock 48 37 (total_coeff=-1)
    [h264 @ 0000018c0d0d8140] error while decoding MB 48 37
    [h264 @ 0000018c0d0d8140] concealing 3721 DC, 3721 AC, 3721 MV errors in P frame
    Past duration 0.789330 too large    2816kB time=00:00:22.02 bitrate=1047.5kbits/s dup=0 drop=33 speed=1.23x
    Past duration 0.848320 too large
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet
    [rtsp @ 0000018c0ccba6c0] RTP: missed 581 packets
    [h264 @ 0000018c0d0d8f00] corrupted macroblock 13 10 (total_coeff=-1)
    [h264 @ 0000018c0d0d8f00] error while decoding MB 13 10
    Past duration 0.875664 too large
    [h264 @ 0000018c0d0d8f00] concealing 6952 DC, 6952 AC, 6952 MV errors in P frame
    [rtsp @ 0000018c0ccba6c0] max delay reached. need to consume packet=1181.0kbits/s dup=0 drop=35 speed=1.25x
    [rtsp @ 0000018c0ccba6c0] RTP: missed 6 packets
    [h264 @ 0000018c0d0d8f00] corrupted macroblock 72 37 (total_coeff=-1)
    [h264 @ 0000018c0d0d8f00] error while decoding MB 72 37
    [h264 @ 0000018c0d0d8f00] concealing 3675 DC, 3675 AC, 3675 MV errors in P frame
    frame=  101 fps=5.3 q=-1.0 Lsize=    4095kB time=00:00:23.67 bitrate=1417.0kbits/s dup=0 drop=37 speed=1.25x
    video:3739kB audio:340kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.405426%
    [libx264 @ 0000018c0d1321c0] frame I:1     Avg QP:20.00  size:178581
    [libx264 @ 0000018c0d1321c0] frame P:100   Avg QP:20.42  size: 36495
    [libx264 @ 0000018c0d1321c0] mb I  I16..4: 100.0%  0.0%  0.0%
    [libx264 @ 0000018c0d1321c0] mb P  I16..4: 11.8%  0.0%  0.0%  P16..4: 31.7%  0.0%  0.0%  0.0%  0.0%    skip:56.5%
    [libx264 @ 0000018c0d1321c0] coded y,uvDC,uvAC intra: 26.5% 36.0% 9.2% inter: 15.0% 18.5% 3.4%
    [libx264 @ 0000018c0d1321c0] i16 v,h,dc,p: 44% 39% 10%  7%
    [libx264 @ 0000018c0d1321c0] i8c dc,h,v,p: 36% 36% 21%  7%
    [libx264 @ 0000018c0d1321c0] kb/s:1383.65
    Exiting normally, received signal 2.

    So If you have some ideas for me it will help. Thank you

  • Creating a video using ffmpeg in a PHP script

    30 décembre 2017, par Femzy

    I have been trying to solve this problem for a while now, but i have not got it through please someone should help me..
    My main objective is to collect user’n inputs and convert it to a video with black background, then the input text will be moving from left to right while the video is playing with audio in the background. Currently i was suggested to use "drawtext" but i have not find it working
    This is the code I use just to test the drawtext but the thing is, if i try it 10 times it will create a video file ones in many times i tried and even the video file would have 0 kb in size
    The Below code is my code

    The Below is the Report i got from the not working ffmpeg cmmand

    echo shell_exec('ffmpeg -f lavfi -i testsrc=duration=5:size=800x600:rate=30 -vf drawtext="fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf:textfile=text.txt: x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000000@1" -preset ultrafast outex.mp4');

    ffmpeg started on 2017-12-29 at 16:43:24

    Report written to "ffmpeg-20171229-164324.log"
    Command line :
    ffmpeg -f test.mp4 -vf "drawtext=fontsize=64:fontcolor=white@0.8:box=1:boxcolor=black@0.75:boxborderw=16:fontfile=OCRA.ttf:text=my_video:x=(w-tw)/2:y=th" textover09.mpg -report
    ffmpeg version git-2017-12-28-be4dfbf Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
    configuration : —prefix=/usr/local/ffmpeg —extra-cflags=-I/usr/local/ffmpeg/include —extra-ldflags=-L/usr/local/ffmpeg/lib —bindir=/usr/local/bin —enable-gpl —enable-nonfree —enable-libfdk_aac —enable-libmp3lame —enable-libopus —enable-libvpx —enable-libx264 —enable-libtheora —enable-filter=drawtext
    libavutil 56. 7.100 / 56. 7.100
    libavcodec 58. 9.100 / 58. 9.100
    libavformat 58. 3.100 / 58. 3.100
    libavdevice 58. 0.100 / 58. 0.100
    libavfilter 7. 8.100 / 7. 8.100
    libswscale 5. 0.101 / 5. 0.101
    libswresample 3. 0.101 / 3. 0.101
    libpostproc 55. 0.100 / 55. 0.100
    Splitting the commandline.
    Reading option ’-f’ ... matched as option ’f’ (force format) with argument ’test.mp4’.
    Reading option ’-vf’ ... matched as option ’vf’ (set video filters) with argument ’drawtext=fontsize=64:fontcolor=white@0.8:box=1:boxcolor=black@0.75:boxborderw=16:fontfile=OCRA.ttf:text=my_video:x=(w-tw)/2:y=th’.
    Reading option ’textover09.mpg’ ... matched as output url.
    Reading option ’-report’ ... matched as option ’report’ (generate a report) with argument ’1’.
    Finished splitting the commandline.
    Parsing a group of options : global .
    Applying option report (generate a report) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options : output url textover09.mpg.
    Applying option f (force format) with argument test.mp4.
    Applying option vf (set video filters) with argument drawtext=fontsize=64:fontcolor=white@0.8:box=1:boxcolor=black@0.75:boxborderw=16:fontfile=OCRA.ttf:text=my_video:x=(w-tw)/2:y=th.
    Successfully parsed a group of options.
    Opening an output file : textover09.mpg.
    [NULL @ 0x4671e80] Requested output format ’test.mp4’ is not a suitable output format
    textover09.mpg : Invalid argument

    This is Another report i got, in this report it is saying" Drawtext no such filters"

    ffmpeg started on 2017-12-29 at 09:00:43
    Report written to "ffmpeg-20171229-090043.log"
    Command line:
    ffmpeg -i test.mp4 -vf "drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf:textfile=text.txt:reload=1:y=h-line_h-10:x=(W/tw)*n" textover7.mpg -report
    ffmpeg version git-2017-12-28-be4dfbf Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
     configuration: --prefix=/usr/local/ffmpeg --extra-cflags=-I/usr/local/ffmpeg/include --extra-ldflags=-L/usr/local/ffmpeg/lib --bindir=/usr/local/bin --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libx264 --enable-libtheora --enable-filter=drawtext
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  3.100 / 58.  3.100
     libavdevice    58.  0.100 / 58.  0.100
     libavfilter     7.  8.100 /  7.  8.100
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Splitting the commandline.
    Reading option '-i' ... matched as input url with argument 'test.mp4'.
    Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf:textfile=text.txt:reload=1:y=h-line_h-10:x=(W/tw)*n'.
    Reading option 'textover7.mpg' ... matched as output url.
    Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option report (generate a report) with argument 1.
    Successfully parsed a group of options.
    Parsing a group of options: input url test.mp4.
    Successfully parsed a group of options.
    Opening an input file: test.mp4.
    [NULL @ 0x42d2d80] Opening 'test.mp4' for reading
    [file @ 0x42d3700] Setting default whitelist 'file,crypto'
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x42d2d80] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x42d2d80] ISO: File Type Major Brand: mp42
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x42d2d80] Unknown dref type 0x206c7275 size 12
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x42d2d80] Processing st: 0, edit list 0 - media time: 0, duration: 13049
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x42d2d80] Unknown dref type 0x206c7275 size 12
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x42d2d80] Before avformat_find_stream_info() pos: 112452 bytes read:141356 seeks:0 nb_streams:2
    [h264 @ 0x42d4640] nal_unit_type: 7, nal_ref_idc: 3
    [h264 @ 0x42d4640] nal_unit_type: 8, nal_ref_idc: 3
    [h264 @ 0x42d4640] nal_unit_type: 5, nal_ref_idc: 3
    [h264 @ 0x42d4640] Format yuv420p chosen by get_format().
    [h264 @ 0x42d4640] Reinit context to 640x368, pix_fmt: yuv420p
    [h264 @ 0x42d4640] nal_unit_type: 1, nal_ref_idc: 2
    [h264 @ 0x42d4640] nal_unit_type: 1, nal_ref_idc: 2
    [h264 @ 0x42d4640] nal_unit_type: 1, nal_ref_idc: 2
    [h264 @ 0x42d4640] nal_unit_type: 1, nal_ref_idc: 2
    [h264 @ 0x42d4640] nal_unit_type: 1, nal_ref_idc: 2
    [h264 @ 0x42d4640] nal_unit_type: 1, nal_ref_idc: 2
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x42d2d80] All info found
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x42d2d80] After avformat_find_stream_info() pos: 159483 bytes read:174124 seeks:0 frames:9
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2014-01-19T03:12:30.000000Z
     Duration: 00:07:15.00, start: 0.000000, bitrate: 201 kb/s
       Stream #0:0(und), 8, 1/30: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x360, 103 kb/s, 15 fps, 15 tbr, 30 tbn, 30 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und), 1, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
       Metadata:
         creation_time   : 2014-01-19T03:12:31.000000Z
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    Successfully opened the file.
    Parsing a group of options: output url textover7.mpg.
    Applying option vf (set video filters) with argument drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf:textfile=text.txt:reload=1:y=h-line_h-10:x=(W/tw)*n.
    Successfully parsed a group of options.
    Opening an output file: textover7.mpg.
    [file @ 0x42e9e40] Setting default whitelist 'file,crypto'
    Successfully opened the file.
    detected 12 logical cores
    [h264 @ 0x43ece00] nal_unit_type: 7, nal_ref_idc: 3
    [h264 @ 0x43ece00] nal_unit_type: 8, nal_ref_idc: 3
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> mpeg1video (native))
     Stream #0:1 -> #0:1 (aac (native) -> mp2 (native))
    Press [q] to stop, [?] for help
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x43ece00] nal_unit_type: 5, nal_ref_idc: 3
    [h264 @ 0x43ece00] Format yuv420p chosen by get_format().
    [h264 @ 0x43ece00] Reinit context to 640x368, pix_fmt: yuv420p
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x43f91c0] nal_unit_type: 1, nal_ref_idc: 2
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x43376c0] nal_unit_type: 1, nal_ref_idc: 2
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x4339d40] nal_unit_type: 1, nal_ref_idc: 2
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x43c1840] nal_unit_type: 1, nal_ref_idc: 2
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x43de0c0] nal_unit_type: 1, nal_ref_idc: 2
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x439b000] nal_unit_type: 1, nal_ref_idc: 2
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x445ae80] nal_unit_type: 1, nal_ref_idc: 2
    [graph_1_in_0_1 @ 0x4657a40] Setting 'time_base' to value '1/44100'
    [graph_1_in_0_1 @ 0x4657a40] Setting 'sample_rate' to value '44100'
    [graph_1_in_0_1 @ 0x4657a40] Setting 'sample_fmt' to value 'fltp'
    [graph_1_in_0_1 @ 0x4657a40] Setting 'channel_layout' to value '0x3'
    [graph_1_in_0_1 @ 0x4657a40] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3
    [format_out_0_1 @ 0x4657cc0] Setting 'sample_fmts' to value 's16'
    [format_out_0_1 @ 0x4657cc0] Setting 'sample_rates' to value '44100|48000|32000|22050|24000|16000'
    [format_out_0_1 @ 0x4657cc0] Setting 'channel_layouts' to value '0x4|0x3'
    [format_out_0_1 @ 0x4657cc0] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
    [AVFilterGraph @ 0x42d2c40] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
    [auto_resampler_0 @ 0x4658dc0] [SWR @ 0x4659140] Using fltp internally between filters
    [auto_resampler_0 @ 0x4658dc0] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:2 chl:stereo fmt:s16 r:44100Hz
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x4477580] nal_unit_type: 1, nal_ref_idc: 2
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x4493cc0] nal_unit_type: 1, nal_ref_idc: 2
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x44b0340] nal_unit_type: 1, nal_ref_idc: 2
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [h264 @ 0x44cca80] nal_unit_type: 1, nal_ref_idc: 2
    [AVFilterGraph @ 0x466e4c0] No such filter: 'drawtext'
    Error reinitializing filters!
    Failed to inject frame into filter network: Invalid argument
    Error while processing the decoded data for stream #0:0
    [h264 @ 0x44e91c0] nal_unit_type: 1, nal_ref_idc: 2
    [AVIOContext @ 0x43c0280] Statistics: 0 seeks, 0 writeouts
    [AVIOContext @ 0x42db980] Statistics: 174124 bytes read, 0 seeks
    Conversion failed!