Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (102)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

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

    


  • Ffmpeg not fully functioning

    26 août 2014, par Joshua

    Hello i have problem with ffmpeg i’m using phpvibe cms already asked in their forums but they don’t know the answer which leads me that it’s probably my fault so the problem is when i upload :

    6 seconds avi video which weights 817 KB it uploads perfectlly plays like it should run.

    However when i try upload 12mb avi sample i see that it does not work in folder where should be that video converted it shows 0kb size

    That means it didn’t start converting somewhow i think this is ffmpeg issue also i have spoted that my ffmpeg is placed in /usr/local/bin/ and in phpvibe cms systems there is different location for ffmpeg it looks like this : Img link

    Why when i upload small avi video it converts good and when i try longer it fails maybe it converts while upload process is going on but than why it shows 0b in folder where converted videos should be placed ?

    P.s i tried couple avi videos that weights more than 10 mb same thing and my code for ffmpeg conversation is :

    $output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags faststart {output}.mp4";

    Also tried :

    output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 {output}.mp4 2>&1";

    Same thing + im using Debian 7 Wheezy. Thanks !

    EDIT :

    i have made a test script it gives this output :

    array(21) {
     [0]=>
     string(83) "ffmpeg version git-2014-08-25-bb29896 Copyright (c) 2000-2014 the FFmpeg developers"
     [1]=>
     string(61) "  built on Aug 25 2014 19:52:12 with gcc 4.7 (Debian 4.7.2-5)"
     [2]=>
     string(62) "  configuration: --enable-shared --enable-libx264 --enable-gpl"
     [3]=>
     string(40) "  libavutil      54.  7.100 / 54.  7.100"
     [4]=>
     string(40) "  libavcodec     56.  0.101 / 56.  0.101"
     [5]=>
     string(40) "  libavformat    56.  3.100 / 56.  3.100"
     [6]=>
     string(40) "  libavdevice    56.  0.100 / 56.  0.100"
     [7]=>
     string(40) "  libavfilter     5.  0.103 /  5.  0.103"
     [8]=>
     string(40) "  libswscale      3.  0.100 /  3.  0.100"
     [9]=>
     string(40) "  libswresample   1.  1.100 /  1.  1.100"
     [10]=>
     string(40) "  libpostproc    53.  0.100 / 53.  0.100"
     [11]=>
     string(31) "Input #0, avi, from 'test.avi':"
     [12]=>
     string(11) "  Metadata:"
     [13]=>
     string(36) "    encoder         : Nandub v1.0rc2"
     [14]=>
     string(60) "  Duration: 00:01:09.78, start: 0.000000, bitrate: 1517 kb/s"
     [15]=>
     string(126) "    Stream #0:0: Video: msmpeg4v3 (DIV3 / 0x33564944), yuv420p, 640x352, 1279 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc"
     [16]=>
     string(83) "    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 222 kb/s"
     [17]=>
     string(87) "[libx264 @ 0x6c31e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX"
     [18]=>
     string(44) "[libx264 @ 0x6c31e0] profile High, level 3.0"
     [19]=>
     string(649) "[libx264 @ 0x6c31e0] 264 - core 124 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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 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=23 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"
     [20]=>
     string(131) "[aac @ 0x6c3c20] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it."
    }
    int(1)

    i get this output with this :

    $output ="{ffmpeg-cmd} -y -i {input} {output}.mp4 2<&1"";

    simple ffmpeg command also tried :

    $output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 {output}.mp4 2>&1";

    With this command it gives this output :

    array(21) {
     [0]=>
     string(83) "ffmpeg version git-2014-08-25-bb29896 Copyright (c) 2000-2014 the FFmpeg developers"
     [1]=>
     string(61) "  built on Aug 25 2014 19:52:12 with gcc 4.7 (Debian 4.7.2-5)"
     [2]=>
     string(62) "  configuration: --enable-shared --enable-libx264 --enable-gpl"
     [3]=>
     string(40) "  libavutil      54.  7.100 / 54.  7.100"
     [4]=>
     string(40) "  libavcodec     56.  0.101 / 56.  0.101"
     [5]=>
     string(40) "  libavformat    56.  3.100 / 56.  3.100"
     [6]=>
     string(40) "  libavdevice    56.  0.100 / 56.  0.100"
     [7]=>
     string(40) "  libavfilter     5.  0.103 /  5.  0.103"
     [8]=>
     string(40) "  libswscale      3.  0.100 /  3.  0.100"
     [9]=>
     string(40) "  libswresample   1.  1.100 /  1.  1.100"
     [10]=>
     string(40) "  libpostproc    53.  0.100 / 53.  0.100"
     [11]=>
     string(31) "Input #0, avi, from 'test.avi':"
     [12]=>
     string(11) "  Metadata:"
     [13]=>
     string(36) "    encoder         : Nandub v1.0rc2"
     [14]=>
     string(60) "  Duration: 00:01:09.78, start: 0.000000, bitrate: 1517 kb/s"
     [15]=>
     string(126) "    Stream #0:0: Video: msmpeg4v3 (DIV3 / 0x33564944), yuv420p, 640x352, 1279 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc"
     [16]=>
     string(83) "    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 222 kb/s"
     [17]=>
     string(88) "[libx264 @ 0x13046c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX"
     [18]=>
     string(45) "[libx264 @ 0x13046c0] profile High, level 3.0"
     [19]=>
     string(650) "[libx264 @ 0x13046c0] 264 - core 124 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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 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=23 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"
     [20]=>
     string(132) "[aac @ 0x13055a0] The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it."
    }
    int(1)

    And also tried thi command :

    $output ="{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags faststart {output}.mp4";

    And with this it gives :

       array(0) {
    }
    int(1)

    in all cases file that weitghs 12 mb doest not convert it’s 0kb in ftp

  • ffmpeg created video from images does not play in jwplayer

    10 septembre 2013, par user2281222

    I have created a video from images with ffmpeg. Created video plays fine in my local machine with vlc. But it does not play in jwplayer/any web player.

    Commands used :

    ffmpeg -f image2 -r 1/4 -i image_%d.png -c:v libx264 -pix_fmt yuv420p -vf fps=fps=30 int_video.mp4

    ffmpeg -i int_video.mp4 -c:v libx264 -b:v 500k -pix_fmt yuv420p final.mp4"

    Information about the create video is as below :

           General
           Complete name                    : /home/oodles/git/picdeo/web-app/uservideos/admin/z4/username_admin__s3vidname_z4.mp4
           Format                           : MPEG-4
           Format profile                   : Base Media
           Codec ID                         : isom
           File size                        : 691 KiB
           Duration                         : 20s 34ms
           Overall bit rate                 : 282 Kbps
           Writing application              : Lavf55.12.100

           Video
           ID                               : 1
           Format                           : AVC
           Format/Info                      : Advanced Video Codec
           Format profile                   : High@L3.0
           Format settings, CABAC           : Yes
           Format settings, ReFrames        : 4 frames
           Codec ID                         : avc1
           Codec ID/Info                    : Advanced Video Coding
           Duration                         : 20s 34ms
           Bit rate                         : 279 Kbps
           Nominal bit rate                 : 500 Kbps
           Width                            : 480 pixels
           Height                           : 360 pixels
           Display aspect ratio             : 4:3
           Frame rate mode                  : Constant
           Frame rate                       : 30.000 fps
           Color space                      : YUV
           Chroma subsampling               : 4:2:0
           Bit depth                        : 8 bits
           Scan type                        : Progressive
           Bits/(Pixel*Frame)               : 0.054
           Stream size                      : 683 KiB (99%)
           Writing library                  : x264 core 135 r2 f0c1c53
           Encoding settings                : 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=1 / 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=abr / mbtree=1 / bitrate=500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

    How can I use ffmpeg to create a video that works in jwplayer ?