Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (5)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (4992)

  • Could not find tag for codec h264 in stream #2 when trim video and add watermark, music background

    13 août 2020, par Nguyễn Trọng

    I'm doing cut video into chunks, then join them and add watermark and background music with the command below.

    


    "[-y, -i, /storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20200726-WA0154.mp4, -i, /storage/emulated/0/FXMotion/.cache/.watermark/logo_watermark.png, -stream_loop, -1, -i, /storage/emulated/0/WhatsApp/Media/WhatsApp Documents/DripReport_-_Skechers_(Lyrics)(MP3_160K).mp3, -filter_complex, [1:v]scale=640/4:-1[logo1];[0:v]trim=0:2.483,setpts=PTS-STARTPTS[v1];[0:v]trim=2.483:7.45,setpts=2.0*(PTS-STARTPTS)[v2];[0:v]trim=7.45:9.933,setpts=PTS-STARTPTS[v3];[v1][v2][v3]concat=n=3:v=1[video];[video][logo1]overlay=main_w-overlay_w-10:main_h-overlay_h-10[vw], -map, [vw], -map, 2, -c:v, libx264, -crf, 23, -preset, veryfast, -shortest, /storage/emulated/0/FXMotion/FXMotion-200810e.mp4, -hide_banner]"


    


    But when running I get the following error :

    


    
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/WhatsApp/Media/WhatsApp Video/VID-20200726-WA0154.mp4':\n  
Metadata:
major_brand     : mp4v
    minor_version   : 0
    compatible_brands: mp4vmp42isom\n  Duration: 00:00:09.93, start: 0.000000, bitrate: 2080 kb/s
    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, unknown/bt470bg/unknown), 640x352, 2078 kb/s, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
    Metadata:\n      rotate          : 270
    Side data:
      displaymatrix: rotation of 90.00 degrees\nInput #1, png_pipe, from '/storage/emulated/0/FXMotion/.cache/.watermark/logo_watermark.png':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, rgba(pc), 335x51, 25 tbr, 25 tbn, 25 tbc
Input #2, mp3, from '/storage/emulated/0/WhatsApp/Media/WhatsApp Documents/DripReport_-_Skechers_(Lyrics)(MP3_160K).mp3':
  Metadata:
    encoder         : Lavf57.56.101
    title           : DripReport - Skechers (Lyrics)
    artist          : DripReport
    album           : DripReport\n  Duration: 00:01:46.06, start: 0.011021, bitrate: 167 kb/s
    Stream #2:0: Audio: mp3, 48000 Hz, stereo, fltp, 160 kb/s
    Metadata:
      encoder         : Lavc57.64
    Stream #2:1: Video: png, rgb24(pc), 400x225, 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      title           : attached picture
      comment         : Cover (front)
Stream mapping:
  Stream #0:0 (h264) -> trim (graph 0)
  Stream #0:0 (h264) -> trim (graph 0)
  Stream #0:0 (h264) -> trim (graph 0)
  Stream #1:0 (png) -> scale (graph 0)
  overlay (graph 0) -> Stream #0:0 (libx264)
  Stream #2:0 -> #0:1 (mp3 (mp3float) -> aac (native))
  Stream #2:1 -> #0:2 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help\n[graph 0 input from stream 1:0 @ 0x6f73832bc0] sws_param option is deprecated and ignored
[graph 0 input from stream 0:0 @ 0x6f73832c80] sws_param option is deprecated and ignored\n[graph 0 input from stream 0:0 @ 0x6f73833400] sws_param option is deprecated and ignored\n[graph 0 input from stream 0:0 @ 0x6f73833580] sws_param option is deprecated and ignored
[libx264 @ 0x6f44476300] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x6f44476300] profile High, level 3.0, 4:2:0, 8-bit
[libx264 @ 0x6f44476300] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[graph 2 input from stream 2:1 @ 0x6ed501c380] sws_param option is deprecated and ignored
[mp4 @ 0x6ed53b9a00] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2\n[libx264 @ 0x6f445de500] MB rate (33750000) > level limit (16711680)
[libx264 @ 0x6f445de500] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x6f445de500] profile High 4:4:4 Predictive, level 6.2, 4:4:4, 8-bit\n[libx264 @ 0x6f445de500] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=6 threads=7 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x6ed53b9a00] Could not find tag for codec h264 in stream #2, codec not currently supported in container\nCould not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:1 --[aac @ 0x6f44478600] Qavg: nan\nConversion failed!",
 
 


    


    i run ffmpeg on :

    


    Device
"os_version" : "10"
"model" : "SM-A217F"
"brand" : "samsung"

    


    


    How to fix it ? thank advance !

    


  • Why does FFMPEG work with 1080p but doesn't work with 720p size… (code included)

    2 avril 2017, par JavaRunner

    I’ve uploaded my fully compiled code with its Makefile here :

    https://pastebin.com/xtCTj06F

    If I set 1280x720 I get the segmentation fault :

    [libx264 @ 0x7fdf4d25a600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x7fdf4d25a600] profile High, level 3.1
    [libx264 @ 0x7fdf4d25a600] 264 - core 148 r2748 97eaef2 - 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=12 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=12 rc=abr mbtree=1 bitrate=3400 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to '1.mp4':
       Stream #0:0: Video: h264, yuv420p, 1280x720, q=2-31, 3400 kb/s, 20 tbn
       Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 64 kb/s
    sws_scale BEGIN
    ./MakeVideo.sh: line 2: 26422 Segmentation fault: 11  ./MakeVideo 1.mp4

    There’s some problem with this line :

    std::cout << "sws_scale BEGIN\n";
    sws_scale( sws_context, ( const uint8_t * const * ) &rgb, inLinesize, 0, frame->height, frame->data, frame->linesize );
    std::cout << "sws_scale END\n";

    but if I set the size of a video to 1920x1080 or to 320x240 - all works fine.

    Is that some sort of a magick ?? Or a bug ?

    OS X 10.12.3
    ffmpeg/3.2.4 —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

  • FFmpeg - MP4 file converted from PNG files is not playable [closed]

    2 mai 2024, par StamShamen

    I am attempting to use FFmpeg and JavaScript to convert multiple PNG files to an MP4 video. However, sometimes the output video is not playable (1kb) and no error appears in the output.

    


    This is the command that I run :

    


    ffmpeg -y -r 25 -i "videos-reporter/123/screenshots/%04d.png" -c:v libx264 -preset medium -crf 20 -pix_fmt yuv420p -vf "scale=1200:trunc(ow/a/2)*2,setpts=3.0*PTS" -threads 4 "videos-reporter/123/video.mp4"


    


    Output of playable video :

    


    Input #0, image2, from '/workspace/1/s/videos-reporter/MC4wMDM0NzUwNjg5NTc2NzMwMjI=/a464584b4d03585bd68abc0326e20b9a/screenshots/%04d.png':
  Duration: 00:00:01.44, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgba(pc), 1920x1080, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x53a1000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x53a1000] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x53a1000] 264 - core 157 r2935 545de2f - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=4 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=10 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 'videos-reporter/MC4wMDM0NzUwNjg5NTc2NzMwMjI=/a464584b4d03585bd68abc0326e20b9a/video.mp4':
  Metadata:
    encoder         : Lavf58.24.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1200x674, q=-1--1, 10 fps, 10240 tbn, 10 tbc
    Metadata:
      encoder         : Lavc58.42.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame=   52 fps=0.0 q=25.0 size=       0kB time=00:00:00.10 bitrate=   3.8kbits/s dup=34 drop=0 speed=0.125x    
video:84kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.457641%
[libx264 @ 0x53a1000] frame I:4     Avg QP: 5.16  size: 14568
[libx264 @ 0x53a1000] frame P:27    Avg QP:15.86  size:   790
[libx264 @ 0x53a1000] frame B:76    Avg QP:12.71  size:    73
[libx264 @ 0x53a1000] consecutive B-frames:  3.7%  1.9%  8.4% 86.0%
[libx264 @ 0x53a1000] mb I  I16..4: 87.8%  4.1%  8.1%
[libx264 @ 0x53a1000] mb P  I16..4:  3.1%  2.0%  0.4%  P16..4:  0.4%  0.1%  0.0%  0.0%  0.0%    skip:93.9%
[libx264 @ 0x53a1000] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  1.3%  0.1%  0.0%  direct: 0.0%  skip:98.6%  L0:42.1% L1:57.7% BI: 0.2%
[libx264 @ 0x53a1000] 8x8 transform intra:12.8% inter:47.1%
[libx264 @ 0x53a1000] coded y,uvDC,uvAC intra: 5.9% 5.8% 5.1% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x53a1000] i16 v,h,dc,p: 81% 18%  1%  0%
[libx264 @ 0x53a1000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 16% 60%  0%  0%  0%  0%  0%  1%
[libx264 @ 0x53a1000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 48% 16%  1%  2%  2%  3%  2%  4%
[libx264 @ 0x53a1000] i8c dc,h,v,p: 90%  7%  2%  0%
[libx264 @ 0x53a1000] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x53a1000] ref P L0: 72.8%  2.5% 14.1% 10.6%
[libx264 @ 0x53a1000] ref B L0: 88.2% 11.0%  0.9%
[libx264 @ 0x53a1000] ref B L1: 99.3%  0.7%
[libx264 @ 0x53a1000] kb/s:63.64


    


    Output of not-playable video :

    


    Input #0, image2, from '/workspace/1/s/videos-reporter/MC4zOTQ2Nzk4NzMwMjU0MTU5Ng==/20ae4ef3d1e642b26d348adc4246965d/screenshots/%04d.png':
  Duration: 00:00:01.60, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgba(pc), 1920x1080, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x5490c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
[libx264 @ 0x5490c00] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x5490c00] 264 - core 157 r2935 545de2f - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=4 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=10 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 'videos-reporter/MC4zOTQ2Nzk4NzMwMjU0MTU5Ng==/20ae4ef3d1e642b26d348adc4246965d/video.mp4':
  Metadata:
    encoder         : Lavf58.24.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1200x674, q=-1--1, 10 fps, 10240 tbn, 10 tbc
    Metadata:
      encoder         : Lavc58.42.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1

stderr: frame=   19 fps=5.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=12 drop=0 speed=   0x    
stderr: frame=   64 fps= 17 q=25.0 size=       0kB time=00:00:01.30 bitrate=   0.3kbits/s dup=42 drop=0 speed=0.343x    
stderr: frame=  119 fps= 25 q=-1.0 Lsize=     153kB time=00:00:11.60 bitrate= 108.2kbits/s dup=79 drop=0 speed=2.46x    
video:151kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.431093%

stderr: [libx264 @ 0x5490c00] frame I:5     Avg QP: 6.42  size: 14533
[libx264 @ 0x5490c00] frame P:32    Avg QP:16.29  size:  2284
[libx264 @ 0x5490c00] frame B:82    Avg QP:14.77  size:   100
[libx264 @ 0x5490c00] consecutive B-frames:  5.9%  1.7% 15.1% 77.3%
[libx264 @ 0x5490c00] mb I  I16..4: 77.0% 14.4%  8.6%

stderr: [libx264 @ 0x5490c00] mb P  I16..4:  9.2%  3.4%  1.3%  P16..4:  2.5%  0.2%  0.1%  0.0%  0.0%    skip:83.3%
[libx264 @ 0x5490c00] mb B  I16..4:  0.1%  0.0%  0.0%  B16..8:  1.8%  0.1%  0.0%  direct: 0.0%  skip:97.9%  L0:42.9% L1:56.4% BI: 0.7%
[libx264 @ 0x5490c00] 8x8 transform intra:19.2% inter:66.1%
[libx264 @ 0x5490c00] coded y,uvDC,uvAC intra: 6.1% 7.5% 5.4% inter: 0.3% 0.4% 0.0%
[libx264 @ 0x5490c00] i16 v,h,dc,p: 61% 38%  1%  0%
[libx264 @ 0x5490c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 15% 37%  0%  0%  0%  0%  0%  0%
[libx264 @ 0x5490c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 46% 14%  1%  2%  2%  3%  2%  3%
[libx264 @ 0x5490c00] i8c dc,h,v,p: 85% 13%  3%  0%
[libx264 @ 0x5490c00] Weighted P-Frames: Y:6.2% UV:6.2%
[libx264 @ 0x5490c00] ref P L0: 75.1%  5.0% 16.0%  3.9%  0.0%
[libx264 @ 0x5490c00] ref B L0: 77.6% 19.7%  2.7%
[libx264 @ 0x5490c00] ref B L1: 97.9%  2.1%
[libx264 @ 0x5490c00] kb/s:103.49


    


    Your help is appreciated since I couldn't find any solution for it.