Recherche avancée

Médias (91)

Autres articles (81)

  • 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.

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (5721)

  • FFmpeg (Thumbnail from video) works in command line, but not in PHP script

    2 mars 2017, par Jun Kim

    I looked at the similar questions, and the solutions there do not work in my case. Anyone has any idea ? I am trying to capture a thumbnail from a given video file.

    Later, my goal is to capture a thumbnail from live streaming video file.

    Below is my current set up.

    Linux Ubuntu 16.04

    PHP version 7.0

    Nginx Version 1.10.3

    FFmpeg Version FFmpeg 2.8.11

    I installed FFmpeg through below commands in my Ubuntu server.

    apt-get update
    apt-get install ffmpeg

    When I type the below command line in the terminal, it does the conversion fine.

    ffmpeg -i /etc/nginx/html/test.mp4 -ss 00:00:01 -vframes 1 -vf scale=240:120 /etc/nginx/html/Share/ffmpeg/thumbnails/test.png;

    In order to use it in php file, I confirmed the location of ffmpeg binaries by I typing in the terminal, which ffmpeg, and it returns /usr/bin/ffmpeg

    I also gave permission to the directory by using chmod 755 command line.

    Here is what I have in my ffmpeg.php file.
    I included the full path to my ffmpeg as you can see.

    <?php
    header("Content-Type: text/html;charset=UTF-8");

    $ffmpeg = "/usr/bin/ffmpeg";
    $videoFile="/etc/nginx/html/test.mp4";
    $thumbnail= "/etc/nginx/html/Share/ffmpeg/thumbnails/thumbnail1.jpg";

    $cmd = "$ffmpeg -i $videoFile -ss 00:00:01 -vframes 1 -vf scale=240:120 $thumbnail 2>&1 &";

    $output = shell_exec($cmd);
    echo "<pre>".$output."</pre>";
    ?>

    This returns the message like below.

    ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 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 '/etc/nginx/html/Share/test.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.24.2
     Duration: 00:00:06.40, start: 0.000000, bitrate: 1321 kb/s
       Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x368 [SAR 1:1 DAR 40:23], 932 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 383 kb/s (default)
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : SoundHandler
    [swscaler @ 0x1621be0] deprecated pixel format used, make sure you did set range correctly
    Output #0, image2, to '/etc/nginx/html/Share/ffmpeg/thumbnails/thumbnail1.jpg':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       encoder         : Lavf56.40.101
       Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 240x120 [SAR 20:23 DAR 40:23], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : VideoHandler
         encoder         : Lavc56.60.100 mjpeg
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 (native) -> mjpeg (native))
    Press [q] to stop, [?] for help
    [image2 @ 0x16165a0] Could not open file : /etc/nginx/html/Share/ffmpeg/thumbnails/thumbnail1.jpg
    av_interleaved_write_frame(): Input/output error
    frame=    1 fps=0.0 q=3.9 Lsize=N/A time=00:00:00.04 bitrate=N/A    
    video:8kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Conversion failed!

    UPDATED : I also gave permission to ffmpeg by chmod +x $(which ffmpeg)

    I tried php /etc/nginx/html/Share/ffmpeg/ffmpeg.php in the terminal, and it also does conversion fine.

     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 '/etc/nginx/html/Share/test.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       creation_time   : 1970-01-01 00:00:00
       encoder         : Lavf53.24.2
     Duration: 00:00:06.40, start: 0.000000, bitrate: 1321 kb/s
       Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 640x368 [SAR 1:1 DAR 40:23], 932 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 383 kb/s (default)
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : SoundHandler
    [swscaler @ 0x72dbe0] deprecated pixel format used, make sure you did set range correctly
    Output #0, image2, to '/etc/nginx/html/Share/ffmpeg/thumbnails/thumbnail.jpg':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       encoder         : Lavf56.40.101
       Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 240x120 [SAR 20:23 DAR 40:23], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
       Metadata:
         creation_time   : 1970-01-01 00:00:00
         handler_name    : VideoHandler
         encoder         : Lavc56.60.100 mjpeg
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 (native) -> mjpeg (native))
    Press [q] to stop, [?] for help
    frame=    1 fps=0.0 q=3.9 Lsize=N/A time=00:00:00.04 bitrate=N/A    
    video:8kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
  • Using ffmpeg to overlay dvdsub

    27 avril 2019, par ib11

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

    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

    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

    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 ?

  • How can I remove "original display aspect ratio" from a mp4 file using ffmpeg ?

    21 juin 2020, par aveceux

    I wish to remove the "original display aspect ratio" entry from the video section.

    &#xA;&#xA;

    Video&#xA;ID                             : 1&#xA;Format                         : AVC&#xA;Format/Info                    : Advanced Video Codec&#xA;Format profile                 : High@L4&#xA;Format settings                : CABAC / 4 Ref Frames&#xA;Format settings, CABAC         : Yes&#xA;Format settings, ReFrames      : 4 frames&#xA;Codec ID                       : avc1&#xA;Codec ID/Info                  : Advanced Video Coding&#xA;Duration                       : 44 min 29 s&#xA;Bit rate                       : 5 001 kb/s&#xA;Width                          : 1 920 pixels&#xA;Height                         : 1 072 pixels&#xA;Display aspect ratio           : 16:9&#xA;Original display aspect ratio  : 16:9&#xA;Frame rate mode                : Constant&#xA;Frame rate                     : 25.000 FPS&#xA;Color space                    : YUV&#xA;Chroma subsampling             : 4:2:0&#xA;Bit depth                      : 8 bits&#xA;Scan type                      : Progressive&#xA;Bits/(Pixel*Frame)             : 0.097&#xA;Stream size                    : 1.55 GiB (97%)&#xA;

    &#xA;&#xA;

    I tried the following commands,

    &#xA;&#xA;

    ffmpeg -i input.mp4 -map_metadata -1 -c copy output.mp4

    &#xA;&#xA;

    ffmpeg -i input.mp4 -metadata original_display_aspect_ratio=0 -c copy output.mp4

    &#xA;&#xA;

    but none of them worked.

    &#xA;&#xA;

    If I want to remove the "original display aspect ratio" entry completely, what ffmpeg command can I use to achieve that ?

    &#xA;&#xA;

    Thank you.

    &#xA;&#xA;

    EDIT :&#xA;The result of mediainfo -f :

    &#xA;&#xA;

    General&#xA;Count                                    : 331&#xA;Count of stream of this kind             : 1&#xA;Kind of stream                           : General&#xA;Kind of stream                           : General&#xA;Stream identifier                        : 0&#xA;Count of video streams                   : 1&#xA;Count of audio streams                   : 1&#xA;Video_Format_List                        : AVC&#xA;Video_Format_WithHint_List               : AVC&#xA;Codecs Video                             : AVC&#xA;Audio_Format_List                        : AAC LC&#xA;Audio_Format_WithHint_List               : AAC LC&#xA;Audio codecs                             : AAC LC&#xA;Complete name                            : Downloads/3.mp4&#xA;File name                                : Downloads/3.mp4&#xA;File name                                : Downloads/3&#xA;File extension                           : mp4&#xA;Format                                   : MPEG-4&#xA;Format                                   : MPEG-4&#xA;Format/Extensions usually used           : mov mp4 m4v m4a m4b m4p 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v&#xA;Commercial name                          : MPEG-4&#xA;Format profile                           : Base Media&#xA;Internet media type                      : video/mp4&#xA;Codec ID                                 : isom&#xA;Codec ID                                 : isom (isom/iso2/avc1/mp41/letv)&#xA;Codec ID/Url                             : http://www.apple.com/quicktime/download/standalone.html&#xA;CodecID_Compatible                       : isom/iso2/avc1/mp41/letv&#xA;File size                                : 1715744367&#xA;File size                                : 1.60 GiB&#xA;File size                                : 2 GiB&#xA;File size                                : 1.6 GiB&#xA;File size                                : 1.60 GiB&#xA;File size                                : 1.598 GiB&#xA;Duration                                 : 2670080&#xA;Duration                                 : 44 min 30 s&#xA;Duration                                 : 44 min 30 s 80 ms&#xA;Duration                                 : 44 min 30 s&#xA;Duration                                 : 00:44:30.080&#xA;Duration                                 : 00:44:29:24&#xA;Duration                                 : 00:44:30.080 (00:44:29:24)&#xA;Overall bit rate                         : 5140653&#xA;Overall bit rate                         : 5 141 kb/s&#xA;Frame rate                               : 25.000&#xA;Frame rate                               : 25.000 FPS&#xA;Frame count                              : 66749&#xA;Stream size                              : 3988740&#xA;Stream size                              : 3.80 MiB (0%)&#xA;Stream size                              : 4 MiB&#xA;Stream size                              : 3.8 MiB&#xA;Stream size                              : 3.80 MiB&#xA;Stream size                              : 3.804 MiB&#xA;Stream size                              : 3.80 MiB (0%)&#xA;Proportion of this stream                : 0.00232&#xA;HeaderSize                               : 1510470&#xA;DataSize                                 : 1711755635&#xA;FooterSize                               : 2478262&#xA;IsStreamable                             : Yes&#xA;File creation date                       : UTC 2019-02-20 11:24:46.448&#xA;File creation date (local)               : 2019-02-20 19:24:46.448&#xA;File last modification date              : UTC 2017-05-26 00:00:00.000&#xA;File last modification date (local)      : 2017-05-26 08:00:00.000&#xA;Writing application                      : Lavf56.15.102&#xA;Writing application                      : Lavf56.15.102&#xA;&#xA;Video&#xA;Count                                    : 348&#xA;Count of stream of this kind             : 1&#xA;Kind of stream                           : Video&#xA;Kind of stream                           : Video&#xA;Stream identifier                        : 0&#xA;StreamOrder                              : 0&#xA;ID                                       : 1&#xA;ID                                       : 1&#xA;Format                                   : AVC&#xA;Format                                   : AVC&#xA;Format/Info                              : Advanced Video Codec&#xA;Format/Url                               : http://developers.videolan.org/x264.html&#xA;Commercial name                          : AVC&#xA;Format profile                           : High@L4&#xA;Format settings                          : CABAC / 4 Ref Frames&#xA;Format settings, CABAC                   : Yes&#xA;Format settings, CABAC                   : Yes&#xA;Format settings, ReFrames                : 4&#xA;Format settings, ReFrames                : 4 frames&#xA;Internet media type                      : video/H264&#xA;Codec ID                                 : avc1&#xA;Codec ID/Info                            : Advanced Video Coding&#xA;Duration                                 : 2669960&#xA;Duration                                 : 44 min 29 s&#xA;Duration                                 : 44 min 29 s 960 ms&#xA;Duration                                 : 44 min 29 s&#xA;Duration                                 : 00:44:29.960&#xA;Duration                                 : 00:44:29:24&#xA;Duration                                 : 00:44:29.960 (00:44:29:24)&#xA;Bit rate                                 : 5000927&#xA;Bit rate                                 : 5 001 kb/s&#xA;Width                                    : 1920&#xA;Width                                    : 1 920 pixels&#xA;Height                                   : 1072&#xA;Height                                   : 1 072 pixels&#xA;Sampled_Width                            : 1920&#xA;Sampled_Height                           : 1072&#xA;Pixel aspect ratio                       : 0.993&#xA;Display aspect ratio                     : 1.779&#xA;Display aspect ratio                     : 16:9&#xA;Original display aspect ratio            : 1.778&#xA;Original display aspect ratio            : 16:9&#xA;Rotation                                 : 0.000&#xA;Frame rate mode                          : CFR&#xA;Frame rate mode                          : Constant&#xA;FrameRate_Mode_Original                  : VFR&#xA;Frame rate                               : 25.000&#xA;Frame rate                               : 25.000 FPS&#xA;Frame count                              : 66749&#xA;Color space                              : YUV&#xA;Chroma subsampling                       : 4:2:0&#xA;Chroma subsampling                       : 4:2:0&#xA;Bit depth                                : 8&#xA;Bit depth                                : 8 bits&#xA;Scan type                                : Progressive&#xA;Scan type                                : Progressive&#xA;Bits/(Pixel*Frame)                       : 0.097&#xA;Stream size                              : 1669034254&#xA;Stream size                              : 1.55 GiB (97%)&#xA;Stream size                              : 2 GiB&#xA;Stream size                              : 1.6 GiB&#xA;Stream size                              : 1.55 GiB&#xA;Stream size                              : 1.554 GiB&#xA;Stream size                              : 1.55 GiB (97%)&#xA;Proportion of this stream                : 0.97278&#xA;Codec configuration box                  : avcC&#xA;&#xA;Audio&#xA;Count                                    : 277&#xA;Count of stream of this kind             : 1&#xA;Kind of stream                           : Audio&#xA;Kind of stream                           : Audio&#xA;Stream identifier                        : 0&#xA;StreamOrder                              : 1&#xA;ID                                       : 2&#xA;ID                                       : 2&#xA;Format                                   : AAC&#xA;Format                                   : AAC LC&#xA;Format/Info                              : Advanced Audio Codec Low Complexity&#xA;Commercial name                          : AAC&#xA;Format_AdditionalFeatures                : LC&#xA;Codec ID                                 : mp4a-40-2&#xA;Duration                                 : 2670080&#xA;Duration                                 : 44 min 30 s&#xA;Duration                                 : 44 min 30 s 80 ms&#xA;Duration                                 : 44 min 30 s&#xA;Duration                                 : 00:44:30.080&#xA;Duration                                 : 00:44:34:09&#xA;Duration                                 : 00:44:30.080 (00:44:34:09)&#xA;Bit rate mode                            : CBR&#xA;Bit rate mode                            : Constant&#xA;Bit rate                                 : 128000&#xA;Bit rate                                 : 128 kb/s&#xA;Channel(s)                               : 2&#xA;Channel(s)                               : 2 channels&#xA;Channel positions                        : Front: L R&#xA;Channel positions                        : 2/0/0&#xA;Channel layout                           : L R&#xA;Samples per frame                        : 1024&#xA;Sampling rate                            : 44100&#xA;Sampling rate                            : 44.1 kHz&#xA;Samples count                            : 117750528&#xA;Frame rate                               : 43.066&#xA;Frame rate                               : 43.066 FPS (1024 SPF)&#xA;Frame count                              : 114991&#xA;Compression mode                         : Lossy&#xA;Compression mode                         : Lossy&#xA;Stream size                              : 42721373&#xA;Stream size                              : 40.7 MiB (2%)&#xA;Stream size                              : 41 MiB&#xA;Stream size                              : 41 MiB&#xA;Stream size                              : 40.7 MiB&#xA;Stream size                              : 40.74 MiB&#xA;Stream size                              : 40.7 MiB (2%)&#xA;Proportion of this stream                : 0.02490&#xA;Default                                  : Yes&#xA;Default                                  : Yes&#xA;Alternate group                          : 1&#xA;Alternate group                          : 1&#xA;

    &#xA;