Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (41)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (6012)

  • Error while processing the decoded data for stream using ffmpeg

    15 juin 2018, par Robert Smith

    I am using the following command :

    ffmpeg

       -i "video1a.flv"
       -i "video1b.flv"
       -i "video1c.flv"
       -i "video2a.flv"
       -i "video3a.flv"
       -i "video4a.flv"
       -i "video4b.flv"
       -i "video4c.flv"
       -i "video4d.flv"
       -i "video4e.flv"

       -filter_complex

       nullsrc=size=640x480[base];
       [0:v]setpts=PTS-STARTPTS+0.12/TB,scale=320x240[1a];
       [1:v]setpts=PTS-STARTPTS+3469.115/TB,scale=320x240[1b];
       [2:v]setpts=PTS-STARTPTS+7739.299/TB,scale=320x240[1c];
       [5:v]setpts=PTS-STARTPTS+4390.466/TB,scale=320x240[4a];
       [6:v]setpts=PTS-STARTPTS+6803.937/TB,scale=320x240[4b];
       [7:v]setpts=PTS-STARTPTS+8242.005/TB,scale=320x240[4c];
       [8:v]setpts=PTS-STARTPTS+9811.577/TB,scale=320x240[4d];
       [9:v]setpts=PTS-STARTPTS+10765.19/TB,scale=320x240[4e];
       [base][1a]overlay=eof_action=pass[o1];
       [o1][1b]overlay=eof_action=pass[o1];
       [o1][1c]overlay=eof_action=pass:shortest=1[o1];
       [o1][4a]overlay=eof_action=pass:x=320:y=240[o4];
       [o4][4b]overlay=eof_action=pass:x=320:y=240[o4];
       [o4][4c]overlay=eof_action=pass:x=320:y=240[o4];
       [o4][4d]overlay=eof_action=pass:x=320:y=240[o4];
       [o4][4e]overlay=eof_action=pass:x=320:y=240;
       [0:a]asetpts=PTS-STARTPTS+0.12/TB,aresample=async=1,pan=1c|c0=c0,apad[a1a];
       [1:a]asetpts=PTS-STARTPTS+3469.115/TB,aresample=async=1,pan=1c|c0=c0,apad[a1b];
       [2:a]asetpts=PTS-STARTPTS+7739.299/TB,aresample=async=1,pan=1c|c0=c0[a1c];
       [3:a]asetpts=PTS-STARTPTS+82.55/TB,aresample=async=1,pan=1c|c0=c0,apad[a2a];
       [4:a]asetpts=PTS-STARTPTS+2687.265/TB,aresample=async=1,pan=1c|c0=c0,apad[a3a];
       [a1a][a1b][a1c][a2a][a3a]amerge=inputs=5

       -c:v libx264 -c:a aac -ac 2 output.mp4

    This is the stream data from ffmpeg :

    Input #0
       Stream #0:0: Video: vp6f, yuv420p, 160x128, 1k tbr, 1k tbn
       Stream #0:1: Audio: nellymoser, 11025 Hz, mono, flt
    Input #1
       Stream #1:0: Audio: nellymoser, 11025 Hz, mono, flt
       Stream #1:1: Video: vp6f, yuv420p, 160x128, 1k tbr, 1k tbn
    Input #2
       Stream #2:0: Audio: nellymoser, 11025 Hz, mono, flt
       Stream #2:1: Video: vp6f, yuv420p, 160x128, 1k tbr, 1k tbn
    Input #3
       Stream #3:0: Audio: nellymoser, 11025 Hz, mono, flt
    Input #4
       Stream #4:0: Audio: nellymoser, 11025 Hz, mono, flt
    Input #5
       Stream #5:0: Video: vp6f, yuv420p, 1680x1056, 1k tbr, 1k tbn
    Input #6
       Stream #6:0: Video: vp6f, yuv420p, 1680x1056, 1k tbr, 1k tbn
    Input #7
       Stream #7:0: Video: vp6f, yuv420p, 1680x1056, 1k tbr, 1k tbn
    Input #8
       Stream #8:0: Video: vp6f, yuv420p, 1680x1056, 1k tbr, 1k tbn
    Input #9
       Stream #9:0: Video: vp6f, yuv420p, 1680x1056, 1k tbr, 1k tbn
    Stream mapping:
     Stream #0:0 (vp6f) -> setpts
     Stream #0:1 (nellymoser) -> asetpts
     Stream #1:0 (nellymoser) -> asetpts
     Stream #1:1 (vp6f) -> setpts
     Stream #2:0 (nellymoser) -> asetpts
     Stream #2:1 (vp6f) -> setpts
     Stream #3:0 (nellymoser) -> asetpts
     Stream #4:0 (nellymoser) -> asetpts
     Stream #5:0 (vp6f) -> setpts
     Stream #6:0 (vp6f) -> setpts
     Stream #7:0 (vp6f) -> setpts
     Stream #8:0 (vp6f) -> setpts
     Stream #9:0 (vp6f) -> setpts
     overlay -> Stream #0:0 (libx264)
     amerge -> Stream #0:1 (aac)

    This is the error :

    Press [q] to stop, [?] for help

    Enter command: <target>|all <time>|-1 <command>[ <argument>]

    Parse error, at least 3 arguments were expected, only 1 given in string 'ho Oscar'
    [Parsed_amerge_44 @ 0a7238c0] No channel layout for input 1
    [Parsed_amerge_44 @ 0a7238c0] Input channel layouts overlap: output layout will be determined by the number of distinct input channels
    [Parsed_pan_27 @ 07681880] Pure channel mapping detected: 0
    [Parsed_pan_31 @ 07681b40] Pure channel mapping detected: 0
    [Parsed_pan_35 @ 0a7232c0] Pure channel mapping detected: 0
    [Parsed_pan_38 @ 0a7234c0] Pure channel mapping detected: 0
    [Parsed_pan_42 @ 0a723740] Pure channel mapping detected: 0
    [libx264 @ 069e8a40] using SAR=1/1
    [libx264 @ 069e8a40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 069e8a40] profile High, level 3.0
    [libx264 @ 069e8a40] 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=15 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 'output.mp4':
     Metadata:
       canSeekToEnd    : false
       encoder         : Lavf58.16.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         encoder         : Lavc58.19.102 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 11025 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         encoder         : Lavc58.19.102 aac
    frame=  200 fps=0.0 q=28.0 size=       0kB time=00:00:07.82 bitrate=   0.0kbits/s speed=15.6x    
    ...  
    frame=30132 fps=497 q=28.0 size=   29952kB time=00:20:05.14 bitrate= 203.6kbits/s speed=19.9x    
    Error while filtering: Cannot allocate memory
    Failed to inject frame into filter network: Cannot allocate memory
    Error while processing the decoded data for stream #2:1
    [libx264 @ 069e8a40] frame I:121   Avg QP: 8.83  size:  7052
    [libx264 @ 069e8a40] frame P:7609  Avg QP:18.33  size:  1527
    [libx264 @ 069e8a40] frame B:22367 Avg QP:25.44  size:   112
    [libx264 @ 069e8a40] consecutive B-frames:  0.6%  0.7%  1.0% 97.8%
    [libx264 @ 069e8a40] mb I  I16..4: 75.7% 18.3%  6.0%
    [libx264 @ 069e8a40] mb P  I16..4:  0.3%  0.7%  0.1%  P16..4: 10.6%  3.3%  1.6%  0.0%  0.0%    skip:83.4%
    [libx264 @ 069e8a40] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  3.2%  0.2%  0.0%  direct: 0.2%  skip:96.5%  L0:47.7% L1:48.2% BI: 4.0%
    [libx264 @ 069e8a40] 8x8 transform intra:37.4% inter:70.2%
    [libx264 @ 069e8a40] coded y,uvDC,uvAC intra: 38.9% 46.1% 28.7% inter: 1.7% 3.3% 0.1%
    [libx264 @ 069e8a40] i16 v,h,dc,p: 78%  8%  4% 10%
    [libx264 @ 069e8a40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 20% 12%  3%  6%  8%  6%  6%  7%
    [libx264 @ 069e8a40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 22%  9%  4%  6%  7%  5%  5%  4%
    [libx264 @ 069e8a40] i8c dc,h,v,p: 60% 16% 17%  7%
    [libx264 @ 069e8a40] Weighted P-Frames: Y:0.7% UV:0.6%
    [libx264 @ 069e8a40] ref P L0: 65.5% 12.3% 14.2%  8.0%  0.0%
    [libx264 @ 069e8a40] ref B L0: 90.2%  7.5%  2.3%
    [libx264 @ 069e8a40] ref B L1: 96.4%  3.6%
    [libx264 @ 069e8a40] kb/s:99.58
    [aac @ 069e9600] Qavg: 65519.982
    [aac @ 069e9600] 2 frames left in the queue on closing
    Conversion failed!
    </argument></command></time></target>

    I am trying to figure out how to fix these errors :

    Error while filtering: Cannot allocate memory
    Failed to inject frame into filter network: Cannot allocate memory
    Error while processing the decoded data for stream #2:1

    Observation #1

    If I run the following command on stream #2:1 by itself :

    ffmpeg -i video1c.flv -vcodec libx264 -acodec aac video1c.mp4

    The files is converted fine with no errors.

    Observation #2

    Running MediaInfo on video1c.flv (stream #2) shows the following :

    Format: Flash Video
    Video Codecs: On2 VP6
    Audio Codecs: Nellymoser

    Any help would be appreciated in resolving this error.

    Update #1

    I have tried splitting the filter graph into two as requested but I receive the same errors :

    Error while filtering: Cannot allocate memory
    Failed to inject frame into filter network: Cannot allocate memory
    Error while processing the decoded data for stream #1:1

    However, I did discover something, if I try to bring up stream #1:1 mentioned above (video1b.flv) using VLC Media Player, I can hear the audio file but I cannot see the video and I receive this error message :

    No suitable decoder module:
    VLC Does not support the audio or video format "undf".
    Unfortunately there is no way for you to fix this.

    Update #2

    The above error was with the 32bit version of ffmpeg. I switched to a 64 bit machine and am now running the 64 bit ffmpeg version ffmpeg-20180605-b748772-win64-static.

    Now I no longer receive the following error :

    Error while processing the decoded data for stream #1:1

    But, I have a new error. About an hour into running it, I receive the following error :

    av_interleaved_write_frame(): Cannot allocate memory
    [mp4 @ 000000000433f080] Application provided duration: 3327365388930198318
    / timestamp: 17178820096 is out of range for mov/mp4 format

    I also tried first remuxing all the files as suggested and using those files to run the above command and that did not help. I still get the same error.

  • Unmapping memory-mapped images that are created during processing

    23 avril 2013, par user2309283

    I have a pretty big issue, although I only have the symptoms, and a theory on the cause.

    I have a C++ application under Windows 7x64 that uses system calls to FFMPEG 0.7.13 to extract frames from videos. When running, the parent application maintains a nice, predicable memory footprint in memory profilers (task manager, RAMMap) of about 2MB. I can see the individual calls to FFMPEG also come and go without incident. The trouble is, after about 100 calls to FFMPEG, and 70,000+ PNGs created (no one directory has more than 1500 pngs), the Windows memory page size raises gradually from about 2.5GB to over 7.0GB, and the system is brought to its knees. The sum of the processes for all users is no where near the reported Memory Page amount.

    I thought it might be Windows Search indexing related, so I turned off the indexing for the output directories in question using SetFileAttributes() and FILE_ATTRIBUTE_NOT_CONTENT_INDEXED, and while it seems to be working as advertised, it does not seem to combat the issue at hand. My current running theory is that all of these extracted PNGs are either fully or partially memory mapped, by FFMPEG or something else. I can also see the output PNGs under the RAMMap Physical Pages tab as standby mapped files.

    Question :
    - Is there enough information here to possibly diagnose the exact problem ?
    - Do I have a way to combat this issue ?

    Thanks in advance...

  • ffmpeg filters image processing

    15 décembre 2017, par Ja_cpp

    ffmpeg is applying some filters to the images before constructing the video. Is there any way to know those filters ?

    I’m using this command (so every parameters are kept by default) :

    ffmpeg -framerate 12 -i frame%02d.jpg out.mp4

    Example of one frame :

    Image file :

    enter image description here

    From the video :
    enter image description here

    I’m working on image processing with c++ and I’m interested in the way ffmpeg filtering the images

    EDIT

    When I launch the command line, that what I get in the terminal :

    ffmpeg -framerate 5 -i frame%02d.jpg output.mp4


    ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
     libavutil      54. 31.100 / 54. 31.100
     libavcodec     56. 60.100 / 56. 60.100
     libavformat    56. 40.101 / 56. 40.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 40.101 /  5. 40.101
     libavresample   2.  1.  0 /  2.  1.  0
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  2.101 /  1.  2.101
     libpostproc    53.  3.100 / 53.  3.100
    [mjpeg @ 0x23e8600] Changeing bps to 8
    Input #0, image2, from 'frame%02d.jpg':
     Duration: 00:01:40.20, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 2576x1456 [SAR 1:1 DAR 23:13], 5 fps, 5 tbr, 5 tbn, 5 tbc
    No pixel format specified, yuvj420p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 0x23ec680] using SAR=1/1
    [libx264 @ 0x23ec680] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x23ec680] profile High, level 5.0
    [libx264 @ 0x23ec680] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=5 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:
       encoder         : Lavf56.40.101
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 2576x1456 [SAR 1:1 DAR 23:13], q=-1--1, 5 fps, 10240 tbn, 5 tbc
       Metadata:
         encoder         : Lavc56.60.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=  501 fps=3.8 q=-1.0 Lsize=  154288kB time=00:01:39.80 bitrate=12664.6kbits/s    
    video:154284kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.002771%
    [libx264 @ 0x23ec680] frame I:3     Avg QP:17.31  size:564506
    [libx264 @ 0x23ec680] frame P:498   Avg QP:19.27  size:313841
    [libx264 @ 0x23ec680] mb I  I16..4:  0.2% 97.1%  2.7%
    [libx264 @ 0x23ec680] mb P  I16..4:  0.0% 46.3%  0.5%  P16..4: 12.5% 13.0%  7.7%  0.0%  0.0%    skip:20.1%
    [libx264 @ 0x23ec680] 8x8 transform intra:98.9% inter:73.3%
    [libx264 @ 0x23ec680] coded y,uvDC,uvAC intra: 99.0% 99.7% 96.0% inter: 52.0% 57.7% 37.0%
    [libx264 @ 0x23ec680] i16 v,h,dc,p: 17% 16% 13% 54%
    [libx264 @ 0x23ec680] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 12% 33%  6%  7%  6%  8%  7% 10%
    [libx264 @ 0x23ec680] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 13% 14% 10% 13%  9% 11%  8% 10%
    [libx264 @ 0x23ec680] i8c dc,h,v,p: 66% 14% 14%  5%
    [libx264 @ 0x23ec680] Weighted P-Frames: Y:2.0% UV:1.2%
    [libx264 @ 0x23ec680] ref P L0: 45.6% 16.0% 20.4% 17.6%  0.5%
    [libx264 @ 0x23ec680] kb/s:12613.66