Recherche avancée

Médias (91)

Autres articles (78)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (8304)

  • Using ffmpeg to overlay dvdsub subtitles

    7 mai 2019, par ib11

    I am trying to overlay a dvdsub file pair (*.idx + *.sub) to a video file.

    Here is the sub pair.

    This is the batch script with the command line I am trying to use :

    @echo off
    set srcVidFile1="myvideo.mov"
    set srcSubFile=mysub.sub
    set srcIdxFile=mysub.idx
    set destFile=D:\testsub.mp4

    ffmpeg.exe -i %srcVidFile1% -i %srcSubFile% -i %srcIdxFile%
       -filter_complex "[0:v][1:s]overlay" -c:s dvdsub -c:v
       libx264 -crf 24 -c:a aac -b:a 160K -ar 48K -strict -2 -y
       %destFile%

    This however only accepts 720x576 VOBsub files. And also the color gets inverted.

    My video however is 1080p and do have a 1920x1080 VOBsub file pair, but when I trying use them, I get an error sub2video : rectange (xxx xxx xxx xxx) overflowing 720 576

    Looks like adding -canvas_size 1920x1080 before -i %srcSubFile% handles the error on the canvas size. But I can’t figure out the color.

    The full output :

       ffmpeg version N-81516-gbe07c25 Copyright (c) 2000-2016 the FFmpeg developers
         built with gcc 5.4.0 (GCC)
         configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
         libavutil      55. 29.100 / 55. 29.100
         libavcodec     57. 54.101 / 57. 54.101
         libavformat    57. 48.101 / 57. 48.101
         libavdevice    57.  0.102 / 57.  0.102
         libavfilter     6. 58.100 /  6. 58.100
         libswscale      4.  1.100 /  4.  1.100
         libswresample   2.  1.100 /  2.  1.100
         libpostproc    54.  0.100 / 54.  0.100
       Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'myvideo.mov':
         Metadata:
           major_brand     : qt  
           minor_version   : 537199360
           compatible_brands: qt  
           creation_time   : 2017-07-18T19:00:46.000000Z
           timecode        : 00:59:58;00
         Duration: 00:01:19.01, start: 0.000000, bitrate: 146880 kb/s
           Stream #0:0(eng): Video: dnxhd (DNXHD) (AVdn / 0x6E645641), yuv422p(tv, bt709/unknown/unknown), 1920x1080, 145344 kb/s, 29.97 fps,
    29.97 tbr, 29970 tbn, 29970 tbc (default)
           Metadata:
             creation_time   : 2017-07-18T19:00:46.000000Z
             handler_name    : Apple Alias Data Handler
             encoder         : Avid DNxHD Codec
           Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
           Metadata:
             creation_time   : 2017-07-18T19:00:46.000000Z
             handler_name    : Apple Alias Data Handler
           Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
           Metadata:
             creation_time   : 2017-07-18T19:01:18.000000Z
             handler_name    : Apple Alias Data Handler
             timecode        : 00:59:58;00
       Input #1, mpeg, from 'mysub.sub':
         Duration: 00:00:52.88, start: 3600.042000, bitrate: 10 kb/s
           Stream #1:0[0x20]: Subtitle: dvd_subtitle
       Input #2, vobsub, from 'mysub.idx':
         Duration: N/A, bitrate: N/A
           Stream #2:0[0x0](en): Subtitle: dvd_subtitle, 1920x1080 (default)
       [mpeg @ 0000000002de4580] sub2video: using 720x576 canvas
       [libx264 @ 00000000005234c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
       [libx264 @ 00000000005234c0] profile High, level 4.0
       [libx264 @ 00000000005234c0] 264 - core 148 r2705 3f5ed56 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 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=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=24.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
       [mp4 @ 00000000005218a0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
           Last message repeated 2 times
       Output #0, mp4, to 'D:\testsub.mp4':
         Metadata:
           major_brand     : qt  
           minor_version   : 537199360
           compatible_brands: qt  
           timecode        : 00:59:58;00
           encoder         : Lavf57.48.101
           Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080, q=-1--1, 0.03 fps, 11988 tbn, 29.97 tbc (default)
           Metadata:
             encoder         : Lavc57.54.101 libx264
           Side data:
             cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
           Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, delay 1024, padding 0, 160 kb/s (default)
           Metadata:
             creation_time   : 2017-07-18T19:00:46.000000Z
             handler_name    : Apple Alias Data Handler
             encoder         : Lavc57.54.101 aac
           Stream #0:2: Subtitle: dvd_subtitle (dvdsub) ([224][0][0][0] / 0x00E0), 720x480
           Metadata:
             encoder         : Lavc57.54.101 dvdsub
       Stream mapping:
         Stream #0:0 (dnxhd) -> overlay:main (graph 0)
         Stream #1:0 (dvdsub) -> overlay:overlay (graph 0)
         overlay (graph 0) -> Stream #0:0 (libx264)
         Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
         Stream #1:0 -> #0:2 (dvd_subtitle (dvdsub) -> dvd_subtitle (dvdsub))
       Press [q] to stop, [?] for help
       sub2video: rectangle (942 858 163 60) overflowing 720 576
           Last message repeated 1 times
       frame=   33 fps=0.0 q=0.0 size=       0kB time=00:00:07.08 bitrate=   0.1kbits/s speed=14.1x    
       frame=   63 fps= 62 q=30.0 size=      10kB time=00:00:07.08 bitrate=  11.1kbits/s speed=7.01x    
       frame=   91 fps= 59 q=30.0 size=      30kB time=00:00:07.08 bitrate=  34.7kbits/s speed= 4.6x    
       frame=  112 fps= 55 q=30.0 size=     197kB time=00:00:07.08 bitrate= 227.9kbits/s speed=3.45x    
       frame=  124 fps= 47 q=30.0 size=     407kB time=00:00:07.08 bitrate= 470.6kbits/s speed=2.69x    
       frame=  137 fps= 44 q=30.0 size=     639kB time=00:00:07.08 bitrate= 738.6kbits/s speed=2.26x    
       frame=  152 fps= 41 q=30.0 size=     861kB time=00:00:07.08 bitrate= 995.4kbits/s speed=1.89x    
       frame=  163 fps= 37 q=30.0 size=    1002kB time=00:00:07.08 bitrate=1158.6kbits/s speed=1.63x    
       frame=  175 fps= 36 q=30.0 size=    1412kB time=00:00:07.08 bitrate=1633.3kbits/s speed=1.46x    
       frame=  187 fps= 35 q=30.0 size=    1642kB time=00:00:07.31 bitrate=1838.4kbits/s speed=1.36x    
       frame=  202 fps= 34 q=30.0 size=    1892kB time=00:00:07.82 bitrate=1979.7kbits/s speed=1.31x    
       frame=  213 fps= 33 q=30.0 size=    2071kB time=00:00:08.19 bitrate=2071.2kbits/s speed=1.26x    
       sub2video: rectangle (419 785 1209 133) overflowing 720 576
       frame=  225 fps= 32 q=30.0 size=    2363kB time=00:00:09.54 bitrate=2028.5kbits/s speed=1.36x    
       frame=  236 fps= 31 q=30.0 size=    2554kB time=00:00:09.54 bitrate=2192.6kbits/s speed=1.26x    
       frame=  249 fps= 31 q=30.0 size=    2760kB time=00:00:09.54 bitrate=2369.7kbits/s speed=1.18x    
       frame=  262 fps= 30 q=30.0 size=    2957kB time=00:00:09.83 bitrate=2463.4kbits/s speed=1.14x    
       frame=  272 fps= 29 q=30.0 size=    3111kB time=00:00:10.15 bitrate=2509.4kbits/s speed=1.09x    
       frame=  283 fps= 29 q=30.0 size=    3796kB time=00:00:10.51 bitrate=2957.1kbits/s speed=1.07x    
       sub2video: rectangle (942 858 163 60) overflowing 720 576
       frame=  289 fps= 28 q=30.0 size=    4144kB time=00:00:13.62 bitrate=2491.4kbits/s speed=1.32x    
       frame=  297 fps= 27 q=30.0 size=    4613kB time=00:00:13.62 bitrate=2773.6kbits/s speed=1.26x    
       frame=  304 fps= 27 q=30.0 size=    5036kB time=00:00:13.62

       [---TRUNCATED REST OF FRAMES---]

       video:94601kB audio:1616kB subtitle:52kB other streams:0kB global headers:0kB muxing overhead: 0.085206%
       [libx264 @ 00000000005234c0] frame I:35    Avg QP:23.92  size:153135
       [libx264 @ 00000000005234c0] frame P:958   Avg QP:26.88  size: 69163
       [libx264 @ 00000000005234c0] frame B:1375  Avg QP:26.60  size: 18365
       [libx264 @ 00000000005234c0] consecutive B-frames: 22.2%  0.7%  1.3% 75.8%
       [libx264 @ 00000000005234c0] mb I  I16..4: 11.8% 84.0%  4.2%
       [libx264 @ 00000000005234c0] mb P  I16..4:  3.2% 22.6%  0.4%  P16..4: 40.9% 10.7%  6.7%  0.0%  0.0%    skip:15.4%
       [libx264 @ 00000000005234c0] mb B  I16..4:  0.3%  2.2%  0.0%  B16..8: 44.9%  2.2%  0.4%  direct: 2.8%  skip:47.2%  L0:45.9% L1:51.3% BI: 2.8%
       [libx264 @ 00000000005234c0] 8x8 transform intra:86.2% inter:89.3%
       [libx264 @ 00000000005234c0] coded y,uvDC,uvAC intra: 76.4% 65.9% 37.2% inter: 23.4% 29.3% 3.5%
       [libx264 @ 00000000005234c0] i16 v,h,dc,p: 18% 42%  5% 34%
       [libx264 @ 00000000005234c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10%  9% 47%  5%  6%  5%  6%  5%  6%
       [libx264 @ 00000000005234c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 18% 17%  7% 11%  9% 10%  6%  7%
       [libx264 @ 00000000005234c0] i8c dc,h,v,p: 63% 16% 16%  5%
       [libx264 @ 00000000005234c0] Weighted P-Frames: Y:5.2% UV:2.9%
       [libx264 @ 00000000005234c0] ref P L0: 50.5% 14.8% 22.5% 11.6%  0.6%
       [libx264 @ 00000000005234c0] ref B L0: 87.9%  9.7%  2.4%
       [libx264 @ 00000000005234c0] ref B L1: 95.2%  4.8%
       [libx264 @ 00000000005234c0] kb/s:9808.13
       [aac @ 0000000000524340] Qavg: 574.088

    Original subtitle :
    Subtitle image

    Rendered frame :
    Rendered frame

    I would like to input the 1920x1080 VOBsub file pair and overlay it on the 1080p video with 24bit original colors.

    Can somebody give me the correct command line for this ?

    And as it seems that the VOBsub are low res, is there any means that allow overlaying 1920x1080 24 bit pngs using ffmpeg ?

  • FFmpeg mosaic video creation, Why it doesn't work ?

    3 mai 2019, par Ege Darçın

    I am trying to build a mosaic from multiple videos in an android application using FFmpeg, I have found the wiki on how to do it. The link explains the process well but I am getting this error while processing it :

    I/Videokit : start run in main.

    register_exit

    term_init & parse options.

    D/Videokit : ERROR OCCURED

    The library that I’m using is WritingMinds, which is FFmpeg for Android compiled with x264, libass, fontconfig, freetype, fribidi and lame (Supports Android 4.1+). Basically, you write a string array of code which is passed to FFmpeg and it runs FFmpeg for you.

    Clearly, it is a parsing error but I believe that I have put the command in order. I have tested the files, locations and FFmpeg with other commands like trim, mute audio etc and only mosaic doesn’t work. I have tried different options, string manipulations but that didn’t work, Furthermore, I’ve seen OpenGl error if I put a big typo error.
    Here is the code on the wiki :

       -i 1.avi -i 2.avi -i 3.avi -i 4.avi
       -filter_complex "
           nullsrc=size=640x480 [base];
           [0:v] setpts=PTS-STARTPTS, scale=320x240 [upperleft];
           [1:v] setpts=PTS-STARTPTS, scale=320x240 [upperright];
           [2:v] setpts=PTS-STARTPTS, scale=320x240 [lowerleft];
           [3:v] setpts=PTS-STARTPTS, scale=320x240 [lowerright];
           [base][upperleft] overlay=shortest=1 [tmp1];
           [tmp1][upperright] overlay=shortest=1:x=320 [tmp2];
           [tmp2][lowerleft] overlay=shortest=1:y=240 [tmp3];
           [tmp3][lowerright] overlay=shortest=1:x=320:y=240
       "
       -c:v libx264 output.mkv

    This is the code which is on the wiki

    String[] m =new String[]{"-i",
                   DestPath1.toString(),
                   "-i",
                   DestPath2.toString(),
                   "-i",
                   DestPath3.toString(),
                   "-i",
                   DestPath4.toString(),
                   "-filter_complex",
                   "\"",
                   "nullsrc=size=640x480 [base];",
                   "[0:v] setpts=PTS-STARTPTS, scale=320x240 [upperleft];",
                   "[1:v] setpts=PTS-STARTPTS, scale=320x240 [upperright];",
                   "[2:v] setpts=PTS-STARTPTS, scale=320x240 [lowerleft];",
                   "[3:v] setpts=PTS-STARTPTS, scale=320x240 [lowerright];",
                   "[base][upperleft], overlay=shortest=1", "[tmp1];",
                   "[tmp1][upperright] overlay=shortest=1:x=320 [tmp2];",
                   "[tmp2][lowerleft] overlay=shortest=1:y=240 [tmp3];",
                   "[tmp3][lowerright] overlay=shortest=1:x=320:y=240",
                   "\"",
                   " -c:v",
                   "libx264",
                   FinalPath.toString()};
                   execFFmpegBinary(m);

    This is the string that I send to the FFmpeg.

    The expected result would be a video created on the "FinalPath" which is on the external storage. However, I am getting an error message and nothing else. I have a tight deadline so it would be hard for me to switch to another system and learn it, I’m already new to FFmpeg stuff. Any suggestions ?

    Update : I’ve implemented error handlers of the library, not just FFmpeg part, and it points reports as (’"nullsrc’ is not a filter) . However, I need to put (") into there to run the code and I use it as (\"), which does not solve the problem. Removing them is not an option because the statement after the filter needs the quotation marks.

    Update2 : Here is the current log :

    D/FileLog: Started command : ffmpeg [Ljava.lang.String;@7931693
       FAILED with output : ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
         built with gcc 4.8 (GCC)
         configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
         libavutil      55. 17.103 / 55. 17.103
         libavcodec     57. 24.102 / 57. 24.102
         libavformat    57. 25.100 / 57. 25.100
         libavdevice    57.  0.101 / 57.  0.101
         libavfilter     6. 31.100 /  6. 31.100
         libswscale      4.  0.100 /  4.  0.100
         libswresample   2.  0.101 /  2.  0.101
         libpostproc    54.  0.100 / 54.  0.100
       Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/appName/Vid1.mp4':
         Metadata:
           major_brand     : isom
           minor_version   : 512
           compatible_brands: isomiso2avc1mp41
           encoder         : Lavf56.25.101
         Duration: 00:00:45.05, start: 0.033333, bitrate: 694 kb/s
           Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 460x258 [SAR 1:1 DAR 230:129], 562 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
           Metadata:
             handler_name    : VideoHandler
           Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
           Metadata:
             handler_name    : SoundHandler
       Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/appName/Vid2.mp4':
         Metadata:
           major_brand     : mp42
           minor_version   : 0
           compatible_brands: isommp42
           creation_time   : 2017-01-15 09:57:32
         Duration: 00:00:40.82, start: 0.000000, bitrate: 352 kb/s
           Stream #1:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 360x360 [SAR 1:1 DAR 1:1], 253 kb/s, 28.90 fps, 29 tbr, 29 tbn, 58 tbc (default)
           Metadata:
             handler_name    : VideoHandler
           Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s (default)
           Metadata:
             creation_time   : 2017-01-15 09:57:32
             handler_name    : IsoMedia File Produced by Google, 5-11-2011
       Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/appName/Vid3.mp4':
         Metadata:
           major_brand     : mp42
           minor_version   : 1
           compatible_brands: mp41mp42isom
           creation_time   : 2017-12-15 12:10:56
         Duration: 00:00:47.26, start: 0.000000, bitrate: 775 kb/s
           Stream #2:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 480x480, 706 kb/s, 26.98 fps, 27 tbr, 600 tbn, 1200 tbc (default)
           Metadata:
             creation_time   : 2017-12-15 12:10:56
             handler_name    : Core Media Video
           Stream #2:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 65 kb/s (default)
           Metadata:
             creation_time   : 2017-12-15 12:10:56
             handler_name    : Core Media Audio
       Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Pictures/appName/Vid4.mp4':
         Metadata:
           major_brand     : mp42
           minor_version   : 19529854
           compatible_brands: mp42isom
           creation_time   : 2017-12-17 10:05:07
         Duration: 00:00:14.33, start: 0.000000, bitrate: 803 kb/s
           Stream #3:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 96 k
    D/FileLog: Finished command : ffmpeg [Ljava.lang.String;@7931693
    V/FA: Inactivity, disconnecting from the service
  • HLS - ffmpeg fails with Could not write header for output file #0 (incorrect codec parameters ?) : No such file or directory

    11 mai 2019, par Slim

    I’m struggling with this issue since a couple of days.
    I’m trying to convert an mkv movie and ffmpeg fail with this error when he try to write to the *.ts file.
    I have tried the same command on many hosts (Mac, CentOS, Unraid) but the results was the same. Here the command :

    $ ffmpeg -i MYMOVIE\ FRENCH\ HDLight\ 1080p\ x264\ AC3.mkv -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -c:a aac -ar 48000 -b:a 128k -c:v h264 -profile:v main -crf 20 -g 48 -keyint_min 48 -sc_threshold 0 -b:v 2500k -maxrate 2675k -bufsize 3750k -hls_time 4 -hls_playlist_type vod -hls_segment_filename mymovie/720p_%03d.ts mymovie/720p.m3u8

    Please find below the entire output of the ffmpeg command :

    ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 8.1.0 (clang-802.0.42)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libavresample   3.  5.  0 /  3.  5.  0
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, matroska,webm, from 'MYMOVIE FRENCH HDLight 1080p x264 AC3.mkv':
     Metadata:
       title           : ˜”*°• Wita •°*”˜
       encoder         : libebml v1.3.3 + libmatroska v1.4.4
       creation_time   : 2016-01-18T20:04:46.000000Z
     Duration: 02:28:06.88, start: 0.000000, bitrate: 3276 kb/s
       Chapter #0:0: start 0.000000, end 369.119000
       Metadata:
         title           : 00:00:00.000
       Chapter #0:1: start 369.119000, end 784.784000
       Metadata:
         title           : 00:06:09.119
       Chapter #0:2: start 784.784000, end 1138.471000
       Metadata:
         title           : 00:13:04.784
       Chapter #0:3: start 1138.471000, end 1486.777000
       Metadata:
         title           : 00:18:58.471
       Chapter #0:4: start 1486.777000, end 1684.057000
       Metadata:
         title           : 00:24:46.777
       Chapter #0:5: start 1684.057000, end 1935.559000
       Metadata:
         title           : 00:28:04.057
       Chapter #0:6: start 1935.559000, end 2218.591000
       Metadata:
         title           : 00:32:15.559
       Chapter #0:7: start 2218.591000, end 2516.639000
       Metadata:
         title           : 00:36:58.591
       Chapter #0:8: start 2516.639000, end 2773.145000
       Metadata:
         title           : 00:41:56.639
       Chapter #0:9: start 2773.145000, end 3051.924000
       Metadata:
         title           : 00:46:13.145
       Chapter #0:10: start 3051.924000, end 3223.220000
       Metadata:
         title           : 00:50:51.924
       Chapter #0:11: start 3223.220000, end 3621.368000
       Metadata:
         title           : 00:53:43.220
       Chapter #0:12: start 3621.368000, end 4008.213000
       Metadata:
         title           : 01:00:21.368
       Chapter #0:13: start 4008.213000, end 4258.963000
       Metadata:
         title           : 01:06:48.213
       Chapter #0:14: start 4258.963000, end 4514.093000
       Metadata:
         title           : 01:10:58.963
       Chapter #0:15: start 4514.093000, end 4735.648000
       Metadata:
         title           : 01:15:14.093
       Chapter #0:16: start 4735.648000, end 5171.041000
       Metadata:
         title           : 01:18:55.648
       Chapter #0:17: start 5171.041000, end 5380.000000
       Metadata:
         title           : 01:26:11.041
       Chapter #0:18: start 5380.000000, end 5803.548000
       Metadata:
         title           : 01:29:40.000
       Chapter #0:19: start 5803.548000, end 6104.390000
       Metadata:
         title           : 01:36:43.548
       Chapter #0:20: start 6104.390000, end 6546.415000
       Metadata:
         title           : 01:41:44.390
       Chapter #0:21: start 6546.415000, end 6952.821000
       Metadata:
         title           : 01:49:06.415
       Chapter #0:22: start 6952.821000, end 7179.214000
       Metadata:
         title           : 01:55:52.821
       Chapter #0:23: start 7179.214000, end 7459.744000
       Metadata:
         title           : 01:59:39.214
       Chapter #0:24: start 7459.744000, end 7768.511000
       Metadata:
         title           : 02:04:19.744
       Chapter #0:25: start 7768.511000, end 8045.663000
       Metadata:
         title           : 02:09:28.511
       Chapter #0:26: start 8045.663000, end 8382.374000
       Metadata:
         title           : 02:14:05.663
       Chapter #0:27: start 8382.374000, end 8886.880000
       Metadata:
         title           : 02:19:42.374
       Stream #0:0(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default) (forced)
       Metadata:
         title           : AC3 Fr
         BPS             : 448000
         BPS-eng         : 448000
         DURATION        : 02:28:06.880000000
         DURATION-eng    : 02:28:06.880000000
         NUMBER_OF_FRAMES: 277715
         NUMBER_OF_FRAMES-eng: 277715
         NUMBER_OF_BYTES : 497665280
         NUMBER_OF_BYTES-eng: 497665280
         _STATISTICS_WRITING_APP: mkvmerge v8.8.0 ('Wind at my back') 64bit
         _STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 ('Wind at my back') 64bit
         _STATISTICS_WRITING_DATE_UTC: 2016-01-18 20:04:46
         _STATISTICS_WRITING_DATE_UTC-eng: 2016-01-18 20:04:46
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
       Stream #0:1(fre): Subtitle: subrip (default) (forced)
       Metadata:
         title           : FR Forcé
         BPS             : 1
         BPS-eng         : 1
         DURATION        : 02:27:01.396000000
         DURATION-eng    : 02:27:01.396000000
         NUMBER_OF_FRAMES: 53
         NUMBER_OF_FRAMES-eng: 53
         NUMBER_OF_BYTES : 1254
         NUMBER_OF_BYTES-eng: 1254
         _STATISTICS_WRITING_APP: mkvmerge v8.8.0 ('Wind at my back') 64bit
         _STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 ('Wind at my back') 64bit
         _STATISTICS_WRITING_DATE_UTC: 2016-01-18 20:04:46
         _STATISTICS_WRITING_DATE_UTC-eng: 2016-01-18 20:04:46
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
       Stream #0:2(fre): Video: h264 (High), yuv420p(progressive), 1920x808 [SAR 1:1 DAR 240:101], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) (forced)
       Metadata:
         title           : ˜”*°• Wita •°*”˜
         BPS             : 2826414
         BPS-eng         : 2826414
         DURATION        : 02:28:06.837000000
         DURATION-eng    : 02:28:06.837000000
         NUMBER_OF_FRAMES: 213071
         NUMBER_OF_FRAMES-eng: 213071
         NUMBER_OF_BYTES : 3139735201
         NUMBER_OF_BYTES-eng: 3139735201
         _STATISTICS_WRITING_APP: mkvmerge v8.8.0 ('Wind at my back') 64bit
         _STATISTICS_WRITING_APP-eng: mkvmerge v8.8.0 ('Wind at my back') 64bit
         _STATISTICS_WRITING_DATE_UTC: 2016-01-18 20:04:46
         _STATISTICS_WRITING_DATE_UTC-eng: 2016-01-18 20:04:46
         _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
         _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream mapping:
     Stream #0:2 -> #0:0 (h264 (native) -> h264 (libx264))
     Stream #0:0 -> #0:1 (ac3 (native) -> aac (native))
     Stream #0:1 -> #0:2 (subrip (srt) -> webvtt (native))
    Press [q] to stop, [?] for help
    [libx264 @ 0x7f967102da00] using SAR=1/1
    [libx264 @ 0x7f967102da00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x7f967102da00] profile Main, level 4.0
    [hls @ 0x7f9671037200] Opening 'mymovie/720p_000.ts' for writing
    Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory
    Error initializing output stream 0:0 --
    [aac @ 0x7f967102f200] Qavg: 27242.438
    [aac @ 0x7f967102f200] 2 frames left in the queue on closing
    Conversion failed!

    Could you help please ?