Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (59)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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

Sur d’autres sites (14069)

  • Windows video player cannot play cropped video from ffmpeg

    28 juillet 2019, par Chen Clarence

    I am trying to crop video with ffmpeg, I have encountered three problems.
    First, I used the following code to crop a 1080p video.

    ffmpeg -i 1080vid.avi -vf "crop=1920:1080:0:0" -c:v libx264 -crf 1 -c:a copy output.mp4

    However, in the compression rate argument, it only works if I set -crf to a positive value. If I set it to 0, then the output video cannot be played by my Windows 10 video player. However, since I am pursuing a lossless conversion, this is problematic. The output mp4 is smaller than 5% of the original size.

    The original goal was to cut a 1080*15360 video into 8 1080p videos. However, using the following code, I get unplayable output after playing with all the settings.

    ffmpeg -i sample.avi -vf "crop=1920:1080:0:0" -c:v libx264 -crf 1 -c:a copy output.mp4

    The input sample.avi is a lossless avi with bitrate larger than 1GB/s, and the output is a 70kb unplayable file. When opened, a pop up window displays :

    Choose something else to play. This item is in a format we don't support.
    0xc00d36b4

    The following is the command line output.

    ffmpeg version N-94396-g47b6ca0b02 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.1.1 (GCC) 20190716
     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-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
     libavutil      56. 32.100 / 56. 32.100
     libavcodec     58. 55.100 / 58. 55.100
     libavformat    58. 30.100 / 58. 30.100
     libavdevice    58.  9.100 / 58.  9.100
     libavfilter     7. 58.100 /  7. 58.100
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, avi, from 'sample.avi':
     Metadata:
       date            : 2019-07-26T07:09:04.185811
     Duration: 00:00:03.00, start: 0.000000, bitrate: 11932176 kb/s
       Stream #0:0: Video: rawvideo, bgr24, 15360x1080, 12066071 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
    File 'output.mp4' already exists. Overwrite ? [y/N] y
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 000002a4a910b900] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 000002a4a910b900] profile High 4:4:4 Predictive, level 6.0, 4:4:4, 8-bit
    [libx264 @ 000002a4a910b900] 264 - core 157 r2970 5493be8 - 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=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=1.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:
       date            : 2019-07-26T07:09:04.185811
       encoder         : Lavf58.30.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 15360x1080, q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc
       Metadata:
         encoder         : Lavc58.55.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    frame=   90 fps=8.0 q=-1.0 Lsize=      65kB time=00:00:02.90 bitrate= 183.7kbits/s speed=0.258x
    video:63kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.042484%
    [libx264 @ 000002a4a910b900] frame I:1     Avg QP: 0.35  size: 22252
    [libx264 @ 000002a4a910b900] frame P:23    Avg QP: 0.09  size:   476
    [libx264 @ 000002a4a910b900] frame B:66    Avg QP: 0.00  size:   467
    [libx264 @ 000002a4a910b900] consecutive B-frames:  2.2%  0.0%  0.0% 97.8%
    [libx264 @ 000002a4a910b900] mb I  I16..4: 92.1%  6.5%  1.5%
    [libx264 @ 000002a4a910b900] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
    [libx264 @ 000002a4a910b900] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
    [libx264 @ 000002a4a910b900] 8x8 transform intra:6.5% inter:0.0%
    [libx264 @ 000002a4a910b900] coded y,u,v intra: 0.4% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
    [libx264 @ 000002a4a910b900] i16 v,h,dc,p: 96%  2%  2%  0%
    [libx264 @ 000002a4a910b900] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 93%  1%  7%  0%  0%  0%  0%  0%  0%
    [libx264 @ 000002a4a910b900] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 25% 31%  0%  0%  0%  0%  0%  0%
    [libx264 @ 000002a4a910b900] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 000002a4a910b900] kb/s:170.49
  • Failed Concatenate after segmentation with time_timestamps 1

    30 juillet 2019, par user2190197

    I’m trying strip video file to segments, and concatenate some parts :
    code for strip video :

    -y -i $dirs[input] -c copy -map 0 -segment_time 0.001 -f segment -reset_timestamps 1 $dirs[process_dir]%d.mp4

    Concat :

    -y -safe 0 -f concat -i $temp_file -c copy \"$dirs[output]\"

    Where $temp_file is correct .txt file ;

    Sometimes ffmpeg ruins final video length. There’s log :

    ffmpeg version 3.3.4-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 6.4.0 (Debian 6.4.0-4) 20170820
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fa57a0] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from '/var/www/vhost.d/ffmpeg/htdocs/output_videos/0/227/2019-07-30-09-29-36.txt':
     Duration: N/A, start: -0.046440, bitrate: 1822 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1370x720 [SAR 2056:2055 DAR 257:135], 1757 kb/s, 29.95 fps, 29.95 tbr, 19168 tbn, 59.90 tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s
       Metadata:
         handler_name    : SoundHandler
    Output #0, mp4, to '/var/www/vhost.d/ffmpeg/htdocs/output_videos/0/227/227_45.mp4':
     Metadata:
       encoder         : Lavf57.71.100
       Stream #0:0(und): Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p, 1370x720 [SAR 2056:2055 DAR 257:135], q=2-31, 1757 kb/s, 29.95 fps, 29.95 tbr, 19168 tbn, 19168 tbc
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 64 kb/s
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fa57a0] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 19 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fae700] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 2 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x3fa57a0] Auto-inserting h264_mp4toannexb bitstream filter
       Last message repeated 15 times
    [mp4 @ 0x3fe61a0] Non-monotonous DTS in output stream 0:0; previous: 2156122, current: 2156089; changing to 2156123. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3fe61a0] Non-monotonous DTS in output stream 0:1; previous: 4961225, current: 4960677; changing to 4961226. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3fe61a0] Application provided duration: 189408058806 is invalid
    av_interleaved_write_frame(): Invalid argument
    frame= 3364 fps=0.0 q=-1.0 Lsize=   26195kB time=00:01:52.51 bitrate=1907.2kbits/s speed= 237x
    video:25192kB audio:884kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.457517%
    Conversion failed!

    If i remove reset_timestamps 1, video duration would be correct, but the video will have bugs, for example, some parts will slow down

  • ffmpeg 4.1.4 wav to mp3 error who can help me

    23 août 2019, par yang jia

    [swscaler @ 0xc946d000] deprecated pixel format used, make sure you did set range correctly

    [mp3 @ 0xc9621600] Frame rate very high for a muxer not efficiently supporting it.

    Please consider specifying a lower framerate, a different muxer or -vsync 2

    [auto_resampler_0 @ 0xd8e73be0] [SWR @ 0xc8058000] Output channel layout ’6 channels (FLC+BC+SL+SR+TC+TFL)’ is not supported

    [auto_resampler_0 @ 0xd8e73be0] Failed to configure output pad on auto_resampler_0

    Error reinitializing filters !

    Failed to inject frame into filter network : Invalid argument
    Error while processing the decoded data for stream #0:0
    --------- beginning of crash
    2019-02-26 16:04:58.368 27737-27737/com.blplayer.jbl.blplayer A/libc : Fatal signal 7 (SIGBUS), code 1, fault addr 0xc5ca in tid 27737 (er.jbl.blplayer)

    cmd

    ffmpeg -i test.wav -acodec libmp3lame -ar 8000 -ac 2 -y wav2mp3.mp3

     ![enter image description here]this is the log(https://i.stack.imgur.com/Kjs1Q.png)