Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (67)

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

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

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (5676)

  • ffmpeg overlay not showing on first frame

    5 mai 2016, par Nic Wilson

    I’m trying to use ffmpeg to overlay a 720x720 video (previd.mp4) onto a background image (bg.jpg). I have it working except that the first frame of the video that is created shows the background only for a frame before the overlay video is shown on top of it.

    This is what I’m using to create the video and overlay :

    ffmpeg -loop 1 -i bg.jpg -i previd.mp4 -filter_complex "[1:v]scale=-1:1080[a]; [0:v][a]overlay=(main_w/2)-(overlay_w/2):0:shortest=1[video]" -map "[video]" -map 1:a -codec:a copy vid.mp4

    ffmpeg version 3.0.2-tessus Copyright (c) 2000-2016 the FFmpeg developers
     built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
     configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
     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
    [mjpeg @ 0x7fa934808600] Changing bps to 8
    Input #0, image2, from 'bg.jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 16835 kb/s
       Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'previd_2_0.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.25.100
     Duration: 00:00:06.57, start: 0.023220, bitrate: 1395 kb/s
       Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x720, 1261 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #1:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    [swscaler @ 0x7fa93400b000] deprecated pixel format used, make sure you did set range correctly
    [libx264 @ 0x7fa934001200] using SAR=1/1
    [libx264 @ 0x7fa934001200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x7fa934001200] profile High, level 4.0
    [libx264 @ 0x7fa934001200] 264 - core 148 - 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=12 lookahead_threads=2 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=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'vid0.mp4':
     Metadata:
       encoder         : Lavf57.25.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         encoder         : Lavc57.24.102 libx264
       Side data:
         unknown side data type 10 (24 bytes)
       Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 131 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 (mjpeg) -> overlay:main
     Stream #1:0 (h264) -> scale
     overlay -> Stream #0:0 (libx264)
     Stream #1:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=   26 fps=0.0 q=0.0 size=       0kB time=00:00:01.32 bitrate=   0.3kbits/sframe=   49 fps= 48 q=0.0 size=       0kB time=00:00:02.20 bitrate=   0.2kbits/sframe=   69 fps= 45 q=28.0 size=     146kB time=00:00:03.01 bitrate= 396.3kbits/frame=   92 fps= 45 q=28.0 size=     315kB time=00:00:03.94 bitrate= 654.7kbits/frame=  115 fps= 45 q=28.0 size=     514kB time=00:00:04.87 bitrate= 863.3kbits/frame=  137 fps= 45 q=28.0 size=     677kB time=00:00:05.73 bitrate= 966.9kbits/frame=  155 fps= 43 q=28.0 size=     831kB time=00:00:06.50 bitrate=1046.8kbits/frame=  164 fps= 34 q=-1.0 Lsize=    1812kB time=00:00:06.57 bitrate=2259.0kbits/s speed=1.35x    
    video:1700kB audio:106kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.344859%
    [libx264 @ 0x7fa934001200] frame I:1     Avg QP:20.13  size: 36046
    [libx264 @ 0x7fa934001200] frame P:91    Avg QP:24.37  size: 15003
    [libx264 @ 0x7fa934001200] frame B:72    Avg QP:24.43  size:  4709
    [libx264 @ 0x7fa934001200] consecutive B-frames: 38.4%  8.5%  1.8% 51.2%
    [libx264 @ 0x7fa934001200] mb I  I16..4: 30.2% 67.1%  2.7%
    [libx264 @ 0x7fa934001200] mb P  I16..4:  8.6% 17.6%  0.8%  P16..4: 16.6%  3.1%  0.9%  0.0%  0.0%    skip:52.3%
    [libx264 @ 0x7fa934001200] mb B  I16..4:  0.7%  1.3%  0.1%  B16..8: 21.3%  1.2%  0.1%  direct: 0.7%  skip:74.7%  L0:44.5% L1:54.2% BI: 1.4%
    [libx264 @ 0x7fa934001200] 8x8 transform intra:65.0% inter:93.5%
    [libx264 @ 0x7fa934001200] coded y,uvDC,uvAC intra: 32.3% 45.6% 4.6% inter: 4.3% 8.5% 0.0%
    [libx264 @ 0x7fa934001200] i16 v,h,dc,p: 30% 30%  5% 35%
    [libx264 @ 0x7fa934001200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 25% 14%  4%  5%  5%  5%  5%  4%
    [libx264 @ 0x7fa934001200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 27% 11%  3%  7%  5%  5%  3%  2%
    [libx264 @ 0x7fa934001200] i8c dc,h,v,p: 52% 20% 22%  6%
    [libx264 @ 0x7fa934001200] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x7fa934001200] ref P L0: 74.9%  8.3% 12.6%  4.2%
    [libx264 @ 0x7fa934001200] ref B L0: 92.4%  6.8%  0.9%
    [libx264 @ 0x7fa934001200] ref B L1: 97.5%  2.5%
    [libx264 @ 0x7fa934001200] kb/s:2122.37
  • How to embed subtitles to .mp4 movie using ffmpeg

    2 septembre 2021, par hudac

    I'm trying to embed subtitles I wrote to a movie I created.
    
I'm using FFmpeg version : ffmpeg-20150418-git-edbb9b5-win64-static with the command :

    


    ffmpeg -i in.mp4 -f srt -i subs.srt -c:v copy -c:a copy -c:s mov_text out.mp4


    


    I saw here.

    


    But I get errors during the process, and when the process is done there's an output file out.mp4 without subtitles embedded.
    
When I play the in.mp4 in some player such as media player classic with the subtitles separately, the subtitles are sync and everything is fine.

    


    The subtitles are subrip encoded in UTF8.

    


    I tried to look out for these errors but didn't find anything useful. it seems something ridiculous.
    
What am I doing wrong ?

    


    Errors such as :

    


    [mp4 @ 00000000003fe020] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 00000000003fe020] Codec for stream 1 does not use global headers but container format requires global headers
[mp4 @ 00000000003fe020] Application provided duration: -8 / timestamp: 72205 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value


    


    Movie details from Media info :

    


    Video  
ID: 1  
Format: AVC  
Format/Info: Advanced Video Codec  
Format profile: Main@L4.2  
Format settings, CABAC: Yes  
Format settings, ReFrames: 3 frames  
Format settings, GOP: M=4, N=24  
Codec ID: avc1  
Codec ID/Info: Advanced Video Coding  
Duration: 8mn 32s  
Source duration: 8mn 32s  
Bit rate: 23.4 Mbps  
Width: 1920 pixels  
Height: 1080 pixels  
Display aspect ratio: 16:9  
Original display aspect ratio: 2.2:1  
Frame rate mode: Variable  
Frame rate: 23.976 fps  
Minimum frame rate: 23.976 fps  
Maximum frame rate: 24.000 fps  
Standard: NTSC  
Color space: YUV  
Chroma subsampling: 4:2:0  
Bit depth: 8 bits  
Scan type: Progressive  
Bits/(Pixel*Frame): 0.472  
Stream size: 1.40 GiB (99%)  
Source stream size: 1.40 GiB (99%)  
Language: English  
Encoded date: UTC 2015-04-28 20:31:41  
Tagged date: UTC 2015-04-28 20:31:41  
mdhd_Duration: 512137  


    


    Ffmpeg command output :

    


    ffmpeg version N-71497-gedbb9b5 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil      54. 22.101 / 54. 22.101
  libavcodec     56. 34.100 / 56. 34.100
  libavformat    56. 30.100 / 56. 30.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 14.100 /  5. 14.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'in.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2015-04-28 20:31:41
  Duration: 00:08:32.17, start: 0.000000, bitrate: 23640 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1920x1080 [SAR 40:33 DAR 640:297], 23444 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 t
bc (default)
    Metadata:
      creation_time   : 2015-04-28 20:31:41
      handler_name    : ?Mainconcept Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
    Metadata:
      creation_time   : 2015-04-28 20:31:41
      handler_name    : #Mainconcept MP4 Sound Media Handler
Input #1, srt, from 'subs.srt':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Subtitle: subrip
[mp4 @ 00000000003fe020] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 00000000003fe020] Codec for stream 1 does not use global headers but container format requires global headers
Output #0, mp4, to 'out.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    encoder         : Lavf56.30.100
    Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 40:33 DAR 640:297], q=2-31, 23444 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k t
bc (default)
    Metadata:
      creation_time   : 2015-04-28 20:31:41
      handler_name    : ?Mainconcept Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 189 kb/s (default)
    Metadata:
      creation_time   : 2015-04-28 20:31:41
      handler_name    : #Mainconcept MP4 Sound Media Handler
    Stream #0:2: Subtitle: mov_text ([8][0][0][0] / 0x0008)
    Metadata:
      encoder         : Lavc56.34.100 mov_text
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #1:0 -> #0:2 (subrip (srt) -> mov_text (native))
Press [q] to stop, [?] for help
[mp4 @ 00000000003fe020] Application provided duration: -8 / timestamp: 72205 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -7 / timestamp: 74217 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -8 / timestamp: 76267 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -4 / timestamp: 77872 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -7 / timestamp: 79260 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -1 / timestamp: 88987 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -60 / timestamp: 91489 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -4 / timestamp: 108080 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -1 / timestamp: 112974 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -8 / timestamp: 115528 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -9 / timestamp: 122758 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 124862 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -12 / timestamp: 130307 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -140 / timestamp: 150079 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -144 / timestamp: 156606 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -245 / timestamp: 158916 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 231587 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -1 / timestamp: 234743 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -9 / timestamp: 239406 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 242670 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -4 / timestamp: 249833 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -9 / timestamp: 252669 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 257713 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -2 / timestamp: 272866 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -152 / timestamp: 276417 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -3 / timestamp: 290209 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 302825 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 305466 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -3 / timestamp: 314151 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -8 / timestamp: 315957 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -1 / timestamp: 322568 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -164 / timestamp: 333373 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -3 / timestamp: 379341 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -5 / timestamp: 385070 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -7 / timestamp: 396166 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -7 / timestamp: 402007 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -4 / timestamp: 404571 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -2 / timestamp: 418218 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -5 / timestamp: 428136 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -5 / timestamp: 433347 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -4 / timestamp: 438939 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -7 / timestamp: 445657 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 449039 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -6 / timestamp: 451870 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
[mp4 @ 00000000003fe020] Application provided duration: -5 / timestamp: 456582 is out of range for mov/mp4 format
[mp4 @ 00000000003fe020] pts has no value
frame=12279 fps=138 q=-1.0 Lsize= 1477815kB time=00:08:32.16 bitrate=23637.2kbits/s
video:1465658kB audio:11840kB subtitle:8kB other streams:0kB global headers:0kB muxing overhead: 0.020907%


    


  • FFMPEG resizes processed video

    15 septembre 2021, par Peter Mark Friedladner

    I have this simple code, whcih compresses videos to mp4. Everythign works well but when looking at the final video, it is upscaled higher. Example would be an original video file of 1920 × 1080 turns out to be 4096 × 2160. I do not want this to happen, instead if FFMPEG finds a video of 720x1080,1920x180 etc.. it should keep the original video size, and not alter. Any help would be appreciated.

    


    #find . \( -name "*.mov" -o -name "*.MOV" \);
#do echo $i; done
for i in $(find . -name '*.mov' -or -name '*.MOV'); do 
ffmpeg -i "$i" "${i%.*}.mp4";
rm "$i"
done