Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (41)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (4774)

  • FFMpeg is dropping video track when clipping an mpg video

    16 juin 2017, par M. Grishaber

    I am extracting a clip from an mpg video using the following command.
    ffmpeg.exe -i 271b.mpg -ss 00:00:05.000 -t 00:00:03.200 -c copy out_271b.mpg

    I am using the copy parameter to avoid reencoding the clip.
    The resulting mpg file only has the audio track, no video.
    The following is the FFMpeg screen dump.

    C:\ffmpeg-20170615\bin>ffmpeg.exe -i 271b.mpg -ss 00:00:05.000 -t 00:00:03.200 -c copy out_271b.mpg
       ffmpeg version N-86482-gbc40674 Copyright (c) 2000-2017 the FFmpeg developers
         built with gcc 7.1.0 (GCC)
         configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --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-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-zlib
         libavutil      55. 66.100 / 55. 66.100
         libavcodec     57. 99.100 / 57. 99.100
         libavformat    57. 73.100 / 57. 73.100
         libavdevice    57.  7.100 / 57.  7.100
         libavfilter     6. 92.100 /  6. 92.100
         libswscale      4.  7.101 /  4.  7.101
         libswresample   2.  8.100 /  2.  8.100
         libpostproc    54.  6.100 / 54.  6.100
       Input #0, mpeg, from '271b.mpg':
         Duration: 00:01:11.44, start: 0.460000, bitrate: 2154 kb/s
           Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], 2000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
           Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
       [mpeg @ 0000000000666aa0] VBV buffer size not set, using default size of 130KB
       If you want the mpeg file to be compliant to some specification
       Like DVD, VCD or others, make sure you set the correct buffer size
       Output #0, mpeg, to 'out_271b.mpg':
         Metadata:
           encoder         : Lavf57.73.100
           Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], q=2-31, 2000 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
           Stream #0:1: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
       Stream mapping:
         Stream #0:0 -> #0:0 (copy)
         Stream #0:1 -> #0:1 (copy)
       Press [q] to stop, [?] for help
       frame=   74 fps=0.0 q=-1.0 Lsize=     786kB time=00:00:03.17 bitrate=2027.2kbits/s speed= 198x
       video:730kB audio:50kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.843343%

    Thanks

    Addition : I tried to open the generated clip file with ffplay and got the following results. Note that ffplay was able to open and play the original mpg file.

    ffplay.exe out_271b.mpg
    ffplay version N-86482-gbc40674 Copyright (c) 2003-2017 the FFmpeg developers
     built with gcc 7.1.0 (GCC)
     configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --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-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-zlib
     libavutil      55. 66.100 / 55. 66.100
     libavcodec     57. 99.100 / 57. 99.100
     libavformat    57. 73.100 / 57. 73.100
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 92.100 /  6. 92.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    [mpeg @ 00000000023cde80] probed stream 2 failedB sq=    0B f=0/0
    [mpeg @ 00000000023cde80] start time for stream 0 is not set in estimate_timings_from_pts
    [mpeg @ 00000000023cde80] Could not find codec parameters for stream 2 (Video: none, none): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mpeg, from 'out_271bb.mpg':
     Duration: 00:00:03.22, start: 0.500000, bitrate: 2068 kb/s
       Stream #0:0[0x1bf]: Data: dvd_nav_packet  0KB sq=    0B f=0/0
       Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
       Stream #0:2[0x1e0]: Video: none, none, 25 fps, 25 tbr, 90k tbn
    SDL_OpenAudio (1 channels, 44100 Hz): DirectSoundCreate: No audio device found
    No more combinations to try, audio open failed
    No codec could be found with id 0
    Failed to open file 'out_271b.mpg' or configure filtergraph
  • ffmpeg : how to correctly program input framerate calculation, given desired video length duration and output framerate ?

    19 septembre 2015, par user89

    Let us say that I have n pictures named as imgXY.png (where XY represent the numbers 0 to n-1, properly padded with zeros).

    From these, I would like to create a video that is t seconds long, that has an (output) framerate R.

    I want to figure out what the input framerate should be, so I do the following calculation :

    • time spent per frame : t_per_frame = t/n

    • input framerate : 1/t_per_frame = n/t

    However, when I then try to create a movie using the following command :

    ffmpeg -framerate n/t -i img%02d.png -r 30 test_output.mp4

    I don’t get a movie that is t seconds long, and only two of the frames end up getting displayed. Why is this the case ?

    The following questions were unhelpful :

    How to successfully use ffmpeg to convert images into videos

    Turning images into videos with ffmpeg

    I think I am misunderstanding what is meant by input framerate, and what is meant by output framerate. Could you help clarify ? I am using a Python script to call ffmpeg, as documented here : http://zulko.github.io/blog/2013/09/27/read-and-write-video-frames-in-python-using-ffmpeg/

    Here’s the output from the following manually executed command :

    ffmpeg -framerate 24/5 -i img%02d.png -c:v libx264 -r 30 -pix_fmt yuv420p test_output.mp4

    ffmpeg version N-75204-g314bc20 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.3 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --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 --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
    able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
    ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
    e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
    ble-decklink --enable-opencl --enable-zlib
     libavutil      55.  2.100 / 55.  2.100
     libavcodec     57.  1.100 / 57.  1.100
     libavformat    57.  0.100 / 57.  0.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6.  1.100 /  6.  1.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.100 /  2.  0.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, image2, from 'img%02d.png':
     Duration: 00:00:00.42, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgb24(pc), 800x400, 4.80 tbr, 4.80 tbn, 4.80 tbc
    File 'test_output.mp4' already exists. Overwrite ? [y/N] y
    [libx264 @ 0000000004f16ba0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0000000004f16ba0] profile High, level 3.0
    [libx264 @ 0000000004f16ba0] 264 - core 148 r2597 e86f3a1 - H.264/MPEG-4 AVC cod
    ec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 r
    ef=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_pski
    p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 dec
    imate=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 'test_output.mp4':
     Metadata:
       encoder         : Lavf57.0.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 800x40
    0, q=-1--1, 30 fps, 15360 tbn, 30 tbc
       Metadata:
         encoder         : Lavc57.1.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=   12 fps=0.0 q=-1.0 Lsize=       3kB time=00:00:00.33 bitrate=  62.2kbits
    /s dup=10 drop=0
    video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing ove
    rhead: 60.557274%
    [libx264 @ 0000000004f16ba0] frame I:1     Avg QP:10.12  size:   566
    [libx264 @ 0000000004f16ba0] frame P:3     Avg QP:18.10  size:    62
    [libx264 @ 0000000004f16ba0] frame B:8     Avg QP:13.75  size:    22
    [libx264 @ 0000000004f16ba0] consecutive B-frames:  8.3%  0.0% 25.0% 66.7%
    [libx264 @ 0000000004f16ba0] mb I  I16..4: 99.4%  0.0%  0.6%
    [libx264 @ 0000000004f16ba0] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0
    %  0.0%  0.0%  0.0%    skip:99.9%
    [libx264 @ 0000000004f16ba0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.1%  0.0
    %  0.0%  direct: 0.0%  skip:99.9%  L0:37.5% L1:62.5% BI: 0.0%
    [libx264 @ 0000000004f16ba0] 8x8 transform intra:0.0% inter:0.0%
    [libx264 @ 0000000004f16ba0] coded y,uvDC,uvAC intra: 0.6% 0.0% 0.0% inter: 0.0%
    0.0% 0.0%
    [libx264 @ 0000000004f16ba0] i16 v,h,dc,p: 96%  0%  4%  0%
    [libx264 @ 0000000004f16ba0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 18% 36%  2%  2%
    3%  3%  5%  1%
    [libx264 @ 0000000004f16ba0] i8c dc,h,v,p: 100%  0%  0%  0%
    [libx264 @ 0000000004f16ba0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0000000004f16ba0] ref P L0: 50.0% 50.0%
    [libx264 @ 0000000004f16ba0] kb/s:18.50
  • FFMPEG - Concatenate 2 MP4 Files, one has video and audio and the other has only audio

    5 août 2016, par Avi

    I am trying to merge 2 mp4 files using FFMPEG. One of these files has both video and audio (track1.mp4), while the other one has only audio (track2.mp4). The names of these files are listed in a text file called 'filesToMerge.txt' in the following manner :

    file 'track1.mp4'
    file 'track2.mp4'

    I then execute the following ffmpeg command to merge them.

    ffmpeg -f concat -i filesToMerge.txt -c copy output.mp4

    However, the concatenated file that is generated consists of only the first file that is listed in filesToMerge.txt. That is, if track1.mp4 (which has both video and audio) is the first file in the list, then only that file makes up output.mp4 (the concatenated file produced) and vice versa.

    I would like for both files to be in output.mp4. I am using Ubuntu 14.04 (if that helps). How can I solve this problem ?

    When I run this command
    ffmpeg -i track1.mp4 -i track2.mp4 output.mp4
    I get the following

    ffmpeg version N-76944-g15206ff Copyright (c) 2000-2015 the FFmpeg developers
         built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
         configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
         libavutil      55.  9.100 / 55.  9.100
         libavcodec     57. 16.101 / 57. 16.101
         libavformat    57. 19.100 / 57. 19.100
         libavdevice    57.  0.100 / 57.  0.100
         libavfilter     6. 17.100 /  6. 17.100
         libavresample   3.  0.  0 /  3.  0.  0
         libswscale      4.  0.100 /  4.  0.100
         libswresample   2.  0.101 /  2.  0.101
         libpostproc    54.  0.100 / 54.  0.100
       Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'track1.mp4':
         Metadata:
           major_brand     : isom
           minor_version   : 512
           compatible_brands: isomiso2avc1mp41
           encoder         : Lavf56.40.101
         Duration: 00:00:10.76, start: 0.023220, bitrate: 351 kb/s
           Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 800x400 [SAR 400:533 DAR 800:533], 181 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
           Metadata:
             handler_name    : VideoHandler
           Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 194 kb/s (default)
           Metadata:
             handler_name    : SoundHandler
       Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'track2.mp4':
         Metadata:
           major_brand     : isom
           minor_version   : 512
           compatible_brands: isomiso2mp41
           creation_time   : 1970-01-01 00:00:00
           encoder         : Lavf52.32.0
         Duration: 00:00:32.21, start: 0.000000, bitrate: 46 kb/s
           Stream #1:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 43 kb/s (default)
           Metadata:
             creation_time   : 1970-01-01 00:00:00
             handler_name    : SoundHandler
       [libx264 @ 0x3950ce0] using SAR=400/533
       [libx264 @ 0x3950ce0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
       [libx264 @ 0x3950ce0] profile High, level 3.0
       [libx264 @ 0x3950ce0] 264 - core 142 r2491 24e4fed - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=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=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 'output.mp4':
         Metadata:
           major_brand     : isom
           minor_version   : 512
           compatible_brands: isomiso2avc1mp41
           encoder         : Lavf57.19.100
           Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 800x400 [SAR 400:533 DAR 800:533], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
           Metadata:
             handler_name    : VideoHandler
             encoder         : Lavc57.16.101 libx264
           Stream #0:1(und): Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default)
           Metadata:
             handler_name    : SoundHandler
             encoder         : Lavc57.16.101 libfdk_aac
       Stream mapping:
         Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
         Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
       Press [q] to stop, [?] for help
       frame=  270 fps= 99 q=28.0 Lsize=     382kB time=00:00:10.72 bitrate= 291.9kbits/s dup=1 drop=0    
       video:230kB audio:143kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.482656%
       [libx264 @ 0x3950ce0] frame I:2     Avg QP:18.87  size:109452
       [libx264 @ 0x3950ce0] frame P:68    Avg QP:15.09  size:   171
       [libx264 @ 0x3950ce0] frame B:200   Avg QP:23.33  size:    23
       [libx264 @ 0x3950ce0] consecutive B-frames:  1.1%  0.0%  1.1% 97.8%
       [libx264 @ 0x3950ce0] mb I  I16..4: 11.0% 39.6% 49.5%
       [libx264 @ 0x3950ce0] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  5.9%  0.1%  0.0%  0.0%  0.0%    skip:93.9%
       [libx264 @ 0x3950ce0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.3%  0.0%  0.0%  direct: 0.0%  skip:99.7%  L0:21.8% L1:78.2% BI: 0.0%
       [libx264 @ 0x3950ce0] 8x8 transform intra:39.7% inter:92.8%
       [libx264 @ 0x3950ce0] coded y,uvDC,uvAC intra: 92.0% 95.0% 73.2% inter: 0.1% 1.4% 0.0%
       [libx264 @ 0x3950ce0] i16 v,h,dc,p:  1% 30%  4% 66%
       [libx264 @ 0x3950ce0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  6% 55% 16%  2%  4%  2%  8%  2%  6%
       [libx264 @ 0x3950ce0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 18% 13%  7%  9%  7% 12%  6% 11%
       [libx264 @ 0x3950ce0] i8c dc,h,v,p: 44% 35% 10% 11%
       [libx264 @ 0x3950ce0] Weighted P-Frames: Y:0.0% UV:0.0%
       [libx264 @ 0x3950ce0] ref P L0: 98.1%  0.2%  1.1%  0.5%
       [libx264 @ 0x3950ce0] ref B L0: 85.1% 13.2%  1.7%
       [libx264 @ 0x3950ce0] ref B L1: 93.6%  6.4%
       [libx264 @ 0x3950ce0] kb/s:174.10