Recherche avancée

Médias (1)

Mot : - Tags -/remix

Autres articles (63)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (12923)

  • 12 ways Matomo Analytics helps you to protect your visitor’s privacy

    5 mai 2020, par InnoCraft — Analytics Tips, Privacy, Security

    This post was originally published on January 11, 2017, and updated on May, 2020.

    At Matomo we think privacy matters. From the beginning, Matomo has had a strong focus on privacy and ensuring the privacy of your visitors and analytics data. 

    Here are some ways how you can ensure your users and visitors privacy by using Matomo (Piwik).

    1. Owning the data gives you power to protect user privacy

    Whether you host Matomo on-premises yourself, or whether you use Matomo’s cloud, YOU keep control of your data and nobody else. By knowing exactly where your data is stored and having full control over what happens to it, you have the power to protect your user’s privacy. No-one else can claim ownership. 

    2. GDPR compliance

    GDPR is one of the most important privacy laws to have come out in the last few years. As such, Matomo takes GDPR compliance very seriously. There’s even a 12-step checklist for you to follow to ensure your Matomo is GDPR compliant. Not only that Matomo is HIPAA, CCPA, LGPD, and PECR compliant.

    3. Data anonymization

    For better privacy by default, Matomo implements a range of data anonymization techniques. One of the main techniques is not recording the full IP address of your visitors. Some countries even require you to anonymize additional info considered Personally Identifiable Information (PII).

    To change the IP anonymization settings go to “Administration > Privacy”. 

    anonymize ip

    4. Configuring Matomo to not process personal data or personally identifiable information (PII)

    To further protect the privacy of your visitors, you can learn how to not process any personal information or PII

    5. Deleting old visitor logs

    The is important because visitor logs contain information all the collected raw data about every visitor and every action. You can configure Matomo to automatically delete logs from the database. When you delete old logs, only the real time and visitor log reports will no longer work for this old time period, all other aggregated reports will still work.

    For privacy reasons, we highly recommend that you keep the detailed Matomo logs for only 3 to 6 months and delete older log data. This has one other nice side effect : it will free significant database space, which will, in turn, slightly increase performance !

    6. Supporting the Do Not Track preference

    Do Not Track enables users to opt out of any tracking by websites they do not visit, including analytics services, advertising networks, and social platforms. By default, Matomo respects users preference and will not track visitors which have specified “I do not want to be tracked” in their web browsers. Get more information about DoNotTrack.

    To make sure Do Not Track is respected, go to “Administration => Privacy”.

    7. Including an Opt-Out Feature on your website or app

    By embedding the Opt-Out feature in your website, you give your visitors the possibility to opt-out of the tracking. When you go to “Administration > Privacy”, you will be able to copy and paste an HTML Iframe code to embed the opt-out feature for example into your privacy policy page or in your ‘Legal’ page. Your users can then click on a link to opt-out.

    On the Matomo Marketplace there are also some plugins available to customize the Opt-Out experience. For example AjaxOptOut and CustomOptOut.

    8. Disabling Live features

    The Real-Time, Visitor Log and Visitor Profile features give you insights into the tracked raw data by showing you details about every visitor and every action they performed. To protect the privacy of your visitors you may decide to prevent access to such features by disabling the “Live” plugin in “Administration => Plugins”. This way only aggregated reports will be shown in your Matomo.

    9. Disabling fingerprinting across websites

    By default, when one of your visitors visits several of your websites, Matomo will create a fingerprint for this user that will be different across the websites to increase the visitors’ privacy. You can make sure that this feature is disabled by going to “Administration => Config file” and verifying that the value of “enable_fingerprinting_across_websites” is set to zero.

    10. Disabling tracking cookies

    Matomo uses first-party cookies to store some information about visitors between visits. In some countries, the legislation requires websites to provide a way for users to opt-out of all tracking, in particular tracking cookies. You can disable cookies by adding one line in the Matomo Javascript code.

    11. Creating the tool of your dreams by developing your own plugins and getting access to the API

    Matomo is an open platform that lets you extend and customise the tracking ; reporting ; and user interface to your needs and to protect your visitors’ privacy the way you want or need it. Learn more in the Matomo Developer Zone. You may also have a look at our Matomo Marketplace where you can find several free and premium features to extend your Matomo.

    12. Transparency

    By default, all information and all collected data in your Matomo server are protected and nobody can access it. However, Matomo allows you to optionally make your collected data public and you can export any Matomo report including the whole dashboard to embed it into your website. This way you can show your users exactly which information you track. When you decide to make reports public, we do our best to protect privacy and automatically hide any Personally Identifiable Information such as the Visitor Profile and we make sure to not show any Visitor IP address and the Visitor ID.

    Bonus tip – A privacy policy template for you

    When you use Matomo to track your visitors, we recommend you update your Privacy Policy to explain how Matomo is used and what data it gathers. Here’s a Privacy Policy template for you to copy on your site.

    Continuous privacy improvements

    We are always interested in improving the privacy. If you miss any feature or have an idea on how to improve the privacy, please let us know.

    More information about all the Matomo features

    If you want to learn more about all the features in Matomo, have a look at our User Guides and FAQ entries.

  • Generating video from images and audio by FFmpeg

    24 mars 2020, par Cody

    I am new to FFmpeg and video/audio encoding. I try to use Fluent ffmpeg to generate a MP4 video from images and audio.

    There are 2 inputs only :

    If the audio duration is longer video length, just discard the excessive part of audio at the end.
    And all the images have to be shown in same duration.(i.e. The video should be in n/d FPS for n images and video with d second)

    Since the image input are not in number sequence, I use concat demuxer as input :

           let VIDEO_DURATION = 8;
           let ffmpeg = await FfmpegUtil.createCommand();
           let imageFiles: string[] = ["foo.jpg", "bar.jpg", ...]; //assume there are 67 image files
           let demuxerFile = await FfmpegUtil.createConcatDemuxerFile(imageFiles);
           let audioFile: string = "path/to/audio.wav";

           ffmpeg.input(demuxerFile)
               .inputOption(
                   "-f", "concat",
                   "-safe", "0",
               )
               .input(audioFile)
               .outputOption(
                   "-r", `${imageFiles.length}/${VIDEO_DURATION}`,
               )
               .duration(VIDEO_DURATION)
               .save("path/to/output.mp4")
           ;

    it will spawn a ffmpeg command :

    ffmpeg
       -f concat
       -safe 0
       -i path/to/demuxerFile.txt
       -i path/to/audio.wav
       -y
       -r 67/8
       -t 8
       path/to/output.mp4

    However the output file cannot be played.

    I also tried "-framerate", ${imageFiles.length}/${VIDEO_DURATION} in .outputOption(), it still output a file cannot be played and I found the frame rate always be 25 in its file property.

    Update 1 (added spawned command & ffmpeg console log) :

    spawned ffmpeg command & console log ("-r", `${imageFiles.length}/${VIDEO_DURATION}` as outputOption) :

    ffmpeg -f concat -safe 0 -i path/to/demuxerFile.txt -i path/to/audio.wav -y -r 67/8 -t 8 path/to/output_r.mp4

    ffmpeg version git-2020-01-26-5e62100 Copyright (c) 2000-2020 the FFmpeg developers
     built with gcc 9.2.1 (GCC) 20200122
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
     libavutil      56. 38.100 / 56. 38.100
     libavcodec     58. 67.100 / 58. 67.100
     libavformat    58. 36.100 / 58. 36.100
     libavdevice    58.  9.103 / 58.  9.103
     libavfilter     7. 71.100 /  7. 71.100
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, concat, from 'path/to/demuxerFile.txt':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 4677x4677 [SAR 256:256 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
    Guessed Channel Layout for Input Stream #1.0 : stereo
    Input #1, wav, from 'path/to/audio.wav':
     Metadata:
       artist          : TextAloud: IVONA Kimberly22
       date            : 2018
       genre           : Speech
       title           : 38750336.mp3
       album           : Created: 7/26/2018 4:56:13 PM
       encoder         : Lavf58.16.100
       encoded_by      : Lame MP3
     Duration: 00:00:15.57, bitrate: 705 kb/s
       Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, stereo, s16, 705 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
    Press [q] to stop, [?] for help
    [libx264 @ 000001e395041400] using SAR=1/1
    [libx264 @ 000001e395041400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 000001e395041400] profile High 4:4:4 Predictive, level 6.0, 4:4:4, 8-bit
    [libx264 @ 000001e395041400] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - 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=4 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=8 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 'path/to/output_r.mp4':
     Metadata:
       encoder         : Lavf58.36.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj444p(pc, progressive), 4677x4677 [SAR 256:256 DAR 1:1], q=-1--1, 8.38 fps, 17152 tbn, 8.38 tbc
       Metadata:
         encoder         : Lavc58.67.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
       Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 128 kb/s
       Metadata:
         encoder         : Lavc58.67.100 aac
    frame=    3 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=    5 fps=4.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=4 speed=   0x    
    frame=    6 fps=3.4 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=7 speed=   0x    
    frame=    8 fps=3.4 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=10 speed=   0x    
    frame=   10 fps=3.5 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=14 speed=   0x    
    frame=   11 fps=3.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=16 speed=   0x    
    frame=   13 fps=3.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=20 speed=   0x    
    frame=   14 fps=3.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=22 speed=   0x    
    frame=   16 fps=3.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=26 speed=   0x    
    frame=   17 fps=2.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=28 speed=   0x    
    frame=   18 fps=2.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=31 speed=   0x    
    frame=   20 fps=2.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed=   0x    
    frame=   21 fps=2.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=36 speed=   0x    
    frame=   23 fps=2.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=40 speed=   0x    
    frame=   24 fps=2.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 drop=42 speed=   0x    
    frame=   24 fps=0.7 q=-1.0 Lsize=     752kB time=00:00:08.03 bitrate= 766.4kbits/s dup=0 drop=43 speed=0.22x    
    video:624kB audio:125kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.359236%
    [libx264 @ 000001e395041400] frame I:1     Avg QP:12.79  size:257554
    [libx264 @ 000001e395041400] frame P:15    Avg QP:13.10  size: 20487
    [libx264 @ 000001e395041400] frame B:8     Avg QP:13.10  size:  9231
    [libx264 @ 000001e395041400] consecutive B-frames: 45.8% 25.0% 12.5% 16.7%
    [libx264 @ 000001e395041400] mb I  I16..4: 18.4% 79.2%  2.4%
    [libx264 @ 000001e395041400] mb P  I16..4:  1.0%  3.3%  0.4%  P16..4:  1.0%  0.2%  0.2%  0.0%  0.0%    skip:93.9%
    [libx264 @ 000001e395041400] mb B  I16..4:  0.1%  0.2%  0.1%  B16..8:  1.8%  0.1%  0.0%  direct: 2.9%  skip:94.7%  L0:58.1% L1:40.2% BI: 1.7%
    [libx264 @ 000001e395041400] 8x8 transform intra:75.0% inter:82.7%
    [libx264 @ 000001e395041400] coded y,u,v intra: 6.1% 3.5% 4.4% inter: 0.2% 1.2% 0.5%
    [libx264 @ 000001e395041400] i16 v,h,dc,p: 80% 16%  3%  2%
    [libx264 @ 000001e395041400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 46%  8% 44%  0%  0%  0%  0%  0%  0%
    [libx264 @ 000001e395041400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 27% 25%  3%  3%  3%  4%  3%  3%
    [libx264 @ 000001e395041400] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 000001e395041400] ref P L0: 75.6%  3.3% 14.8%  6.3%
    [libx264 @ 000001e395041400] ref B L0: 88.6% 10.7%  0.7%
    [libx264 @ 000001e395041400] ref B L1: 98.7%  1.3%
    [libx264 @ 000001e395041400] kb/s:1783.06
    [aac @ 000001e3951e7f80] Qavg: 55135.730

    spawned ffmpeg command & console log ("-framerate", `${imageFiles.length}/${VIDEO_DURATION}` as outputOption) :

    ffmpeg -f concat -safe 0 -i path/to/demuxerFile.txt -i path/to/audio.wav -y -framerate 67/8 -t 8 path/to/output_framerate.mp4

    ffmpeg version git-2020-01-26-5e62100 Copyright (c) 2000-2020 the FFmpeg developers
     built with gcc 9.2.1 (GCC) 20200122
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
     libavutil      56. 38.100 / 56. 38.100
     libavcodec     58. 67.100 / 58. 67.100
     libavformat    58. 36.100 / 58. 36.100
     libavdevice    58.  9.103 / 58.  9.103
     libavfilter     7. 71.100 /  7. 71.100
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, concat, from 'path/to/demuxerFile.txt':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 4677x4677 [SAR 256:256 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
    Guessed Channel Layout for Input Stream #1.0 : stereo
    Input #1, wav, from 'path/to/audio.wav':
     Metadata:
       artist          : TextAloud: IVONA Kimberly22
       date            : 2018
       genre           : Speech
       title           : 38750336.mp3
       album           : Created: 7/26/2018 4:56:13 PM
       encoder         : Lavf58.16.100
       encoded_by      : Lame MP3
     Duration: 00:00:15.57, bitrate: 705 kb/s
       Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, stereo, s16, 705 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
     Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
    Press [q] to stop, [?] for help
    [libx264 @ 000002460bda4740] using SAR=1/1
    [libx264 @ 000002460bda4740] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 000002460bda4740] profile High 4:4:4 Predictive, level 6.0, 4:4:4, 8-bit
    [libx264 @ 000002460bda4740] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - 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=4 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=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'path/to/output_framerate.mp4':
     Metadata:
       encoder         : Lavf58.36.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj444p(pc, progressive), 4677x4677 [SAR 256:256 DAR 1:1], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc58.67.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
       Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 128 kb/s
       Metadata:
         encoder         : Lavc58.67.100 aac
    frame=    3 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=    6 fps=5.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=    9 fps=5.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   12 fps=5.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   14 fps=4.6 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   16 fps=4.4 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   18 fps=3.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   20 fps=3.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   22 fps=3.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   23 fps=3.6 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   25 fps=3.6 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   27 fps=3.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   28 fps=3.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   30 fps=3.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   33 fps=3.2 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   36 fps=3.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   38 fps=3.1 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   39 fps=3.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   40 fps=2.6 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   41 fps=2.4 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   42 fps=2.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   43 fps=1.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   44 fps=1.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   45 fps=1.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   46 fps=1.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   47 fps=1.4 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   49 fps=1.5 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   50 fps=1.5 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   51 fps=1.5 q=28.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   51 fps=1.3 q=28.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    frame=   52 fps=1.3 q=28.0 size=       0kB time=00:00:00.04 bitrate=   8.3kbits/s speed=0.00114x    
    frame=   53 fps=1.3 q=28.0 size=       0kB time=00:00:00.04 bitrate=   8.3kbits/s speed=0.00111x    
    frame=   54 fps=1.2 q=28.0 size=       0kB time=00:00:00.04 bitrate=   8.3kbits/s speed=0.00101x    
    frame=   55 fps=1.2 q=28.0 size=       0kB time=00:00:00.13 bitrate=   2.8kbits/s speed=0.00297x    
    frame=   56 fps=1.1 q=28.0 size=       0kB time=00:00:00.18 bitrate=   2.1kbits/s speed=0.00377x    
    frame=   57 fps=1.1 q=28.0 size=     256kB time=00:00:00.23 bitrate=9033.3kbits/s speed=0.00461x    
    frame=   58 fps=1.1 q=28.0 size=     256kB time=00:00:00.27 bitrate=7527.8kbits/s speed=0.00514x    
    frame=   59 fps=1.0 q=28.0 size=     256kB time=00:00:00.32 bitrate=6452.4kbits/s speed=0.00571x    
    frame=   60 fps=1.0 q=28.0 size=     256kB time=00:00:00.37 bitrate=5645.8kbits/s speed=0.00643x    
    frame=   62 fps=1.0 q=28.0 size=     256kB time=00:00:00.37 bitrate=5645.8kbits/s speed=0.00605x    
    frame=   62 fps=1.0 q=28.0 size=     256kB time=00:00:00.41 bitrate=5018.5kbits/s speed=0.00668x    
    frame=   63 fps=1.0 q=28.0 size=     256kB time=00:00:00.46 bitrate=4516.7kbits/s speed=0.00727x    
    frame=   64 fps=1.0 q=28.0 size=     256kB time=00:00:00.51 bitrate=4106.1kbits/s speed=0.00778x    
    frame=   65 fps=1.0 q=28.0 size=     256kB time=00:00:00.55 bitrate=3763.9kbits/s speed=0.00827x    
    frame=   66 fps=1.0 q=28.0 size=     256kB time=00:00:00.60 bitrate=3474.4kbits/s speed=0.00884x    
    frame=   67 fps=1.0 q=28.0 size=     256kB time=00:00:00.65 bitrate=3226.2kbits/s speed=0.00943x    
    frame=   67 fps=0.6 q=-1.0 Lsize=     872kB time=00:00:08.03 bitrate= 888.9kbits/s speed=0.0752x    
    video:744kB audio:125kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.391708%
    [libx264 @ 000002460bda4740] frame I:1     Avg QP:15.80  size:216204
    [libx264 @ 000002460bda4740] frame P:29    Avg QP:15.19  size: 10747
    [libx264 @ 000002460bda4740] frame B:37    Avg QP:17.07  size:  6300
    [libx264 @ 000002460bda4740] consecutive B-frames: 17.9% 14.9% 31.3% 35.8%
    [libx264 @ 000002460bda4740] mb I  I16..4: 11.4% 86.0%  2.6%
    [libx264 @ 000002460bda4740] mb P  I16..4:  0.5%  1.9%  0.2%  P16..4:  0.7%  0.2%  0.1%  0.0%  0.0%    skip:96.5%
    [libx264 @ 000002460bda4740] mb B  I16..4:  0.1%  0.2%  0.0%  B16..8:  1.3%  0.2%  0.0%  direct: 0.7%  skip:97.5%  L0:57.4% L1:40.7% BI: 1.9%
    [libx264 @ 000002460bda4740] 8x8 transform intra:79.7% inter:31.4%
    [libx264 @ 000002460bda4740] coded y,u,v intra: 5.7% 2.9% 3.7% inter: 0.1% 0.5% 0.2%
    [libx264 @ 000002460bda4740] i16 v,h,dc,p: 70% 23%  4%  2%
    [libx264 @ 000002460bda4740] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 45%  8% 45%  0%  0%  0%  0%  0%  0%
    [libx264 @ 000002460bda4740] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 26% 25%  3%  3%  4%  4%  3%  2%
    [libx264 @ 000002460bda4740] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 000002460bda4740] ref P L0: 72.6%  3.0% 16.6%  7.7%
    [libx264 @ 000002460bda4740] ref B L0: 75.7% 20.6%  3.7%
    [libx264 @ 000002460bda4740] ref B L1: 97.7%  2.3%
    [libx264 @ 000002460bda4740] kb/s:2271.59
    [aac @ 000002460bda8580] Qavg: 55135.730
  • stream 0, timescale not set when concat video using ffmpeg

    17 février 2018, par no name

    I have 2 video which i want to add them together so i make a text file which contains the file names

    file No-fade_25fps.mp4
    file video.mp4

    then i start using this command

    ffmpeg -f concat -i ffmpeg-sound.txt -c copy final_output.mp4

    the problem is i got this from ffmpeg

       [mov,mp4,m4a,3gp,3g2,mj2 @ 0561dbc0] stream 0, timescale not set
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0561dbc0] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from 'out.txt':
     Duration: N/A, start: 0.000000, bitrate: 464 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 464 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
       Metadata:
         creation_time   : 2018-02-09T10:36:18.000000Z
         handler_name    : Core Media Video
       Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
    Output #0, mp4, to 'final_output.mp4':
     Metadata:
       encoder         : Lavf58.7.100
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 464 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc
       Metadata:
         creation_time   : 2018-02-09T10:36:18.000000Z
         handler_name    : Core Media Video
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [mov,mp4,m4a,3gp,3g2,mj2 @ 05c3e940] Auto-inserting h264_mp4toannexb bitstream filter
    frame= 8194 fps=0.0 q=-1.0 Lsize=    2254kB time=46:35:51.68 bitrate=   0.1kbits/s speed=1.19e+006x
    video:2157kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.486598%

    the result give me a video mp4 file with a long duration like 46:33:20 and it not work, and iam sure that both videos have same reslution.
    what i tried is to use this command to convert the video

    ffmpeg -y -i No-fade_25fps.mp4 -r 25 -s 1280x720 -c:v libx264 -b:v 3M -strict -2 -movflags faststart destination.mp4

    and when i concate them again it worked and give me result mp4 file which have a right duration and worked fine but without a sound, because the first video file i use is muted no sound in it and second one contains a sound.
    my question is how to concate those videos togther without this problem also what make the video have the problem of this long duration and when i convert them using the command line it worked ?
    first video info which is No-fade_25fps.mp4

       [mov,mp4,m4a,3gp,3g2,mj2 @ 03e05000] stream 0, timescale not set
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'No-fade_25fps.mp4':
     Metadata:
       major_brand     : M4V
       minor_version   : 1
       compatible_brands: M4V M4A mp42isom
       creation_time   : 2018-02-09T10:36:18.000000Z
       keywords        : tunepro,orange
       album_artist    : Kiran Khan
       description     : This video is about new tunepro
       artist          : Kiran Khan
       title           : new tunepro
     Duration: 00:00:06.48, start: 0.000000, bitrate: 497 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 464 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
       Metadata:
         creation_time   : 2018-02-09T10:36:18.000000Z
         handler_name    : Core Media Video
       Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
    At least one output file must be specified

    second video video.mp4

       Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.7.100
     Duration: 00:05:21.28, start: 0.000000, bitrate: 181 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], 45 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 127 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    what i want is to add any number of videos togthers without a problems like this they all have same reslution and frame per second is there something else need to be checked before i start merge videos ?
    Update
    this what i get when i use the command without copy codec

    [mov,mp4,m4a,3gp,3g2,mj2 @ 058ddb80] stream 0, timescale not set
    [mov,mp4,m4a,3gp,3g2,mj2 @ 058ddb80] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from 'out.txt':
     Duration: N/A, start: 0.000000, bitrate: 464 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 464 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
       Metadata:
         creation_time   : 2018-02-09T10:36:18.000000Z
         handler_name    : Core Media Video
       Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 72:72 DAR 16:9], 90k tbr, 90k tbn, 90k tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 05937d00] using SAR=1/1
    [libx264 @ 05937d00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 05937d00] profile High, level 3.1
    [libx264 @ 05937d00] 264 - core 155 r2901 7d0ff22 - 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=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 'final_output.mp4':
     Metadata:
       encoder         : Lavf58.7.100
       Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         creation_time   : 2018-02-09T10:36:18.000000Z
         handler_name    : Core Media Video
         encoder         : Lavc58.9.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    [mov,mp4,m4a,3gp,3g2,mj2 @ 058ddb80] Auto-inserting h264_mp4toannexb bitstream filtered=3.41x
    More than 1000 frames duplicated

    and it stop like it’s in infinite loop