
Recherche avancée
Autres articles (59)
-
Submit bugs and patches
13 avril 2011Unfortunately 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 (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (11106)
-
Create 4K video with Mjpeg codec in ffmpeg
25 novembre 2018, par SulliI’m trying to produce a simple 6 seconds video clip by zooming on an image (.mov output, mjpeg codec). I can get this command to work when I set the output to be 1920x1080 :
ffmpeg -y -r 25 -nostdin -loop 1 -i input.jpg -vf "zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'" -c:v mjpeg -qscale:v 1 -t 6 -s "1920x1080" "test/output.mov"
but it’s not working anymore when I set the output to be 4K (3840x2160) : the command hangs, is killed or produces a corrupted output.
My input.jpg resolution is 4240x2832.
What am I missing ?
Edit : here is the full log :
ffmpeg version 2.8.15-0ubuntu0.16.04.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 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 @ 0x151da00] Changeing bps to 8
Input #0, image2, from 'input.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: 760992 kb/s
Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 4240x2832, 25 tbr, 25 tbn, 25 tbc
[swscaler @ 0x153cf80] deprecated pixel format used, make sure you did set range correctly
Output #0, mov, to 'test/output.mov':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: mjpeg (jpeg / 0x6765706A), yuvj444p(pc), 3840x2160, q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc56.60.100 mjpeg
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native))
[swscaler @ 0x43c82c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x43c82c0] Warning: data is not aligned! This can lead to a speedloss
[swscaler @ 0x43c7dc0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x444d0a0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 0x444cdc0] deprecated pixel format used, make sure you did set range correctly
Last message repeated 5 times
[swscaler @ 0x4439e20] deprecated pixel format used, make sure you did set range correctly
Last message repeated 6 times
[swscaler @ 0x43df9c0] deprecated pixel format used, make sure you did set range correctly
Last message repeated 83 times
[output stream 0:0 @ 0x15240c0] 100 buffers queued in output stream 0:0, something may be wrong.
[swscaler @ 0x43df9c0] deprecated pixel format used, make sure you did set range correctly
creer_videos.sh: line 10: 18 Killed ffmpeg -y -r 25 -nostdin -loop 1 -i input.jpg -vf "zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'" -c:v mjpeg -qscale:v 1 -t 6 -s "3840x2160" "test/output.mov" -
Not able to scale, pad and combine 2 videos using FFmpeg
21 novembre 2018, par MayankI am using FFMpeg to scale, pad and merge 2 videos and generate one mp4 file. I am using the following command which leads to an output file with no audio for few seconds in the middle of the second video. Also, there is a faint white border displayed for few seconds on the black frame that I am creating. Though there are no errors in the command but I am getting a warning "[swscaler @ 0x6987800] Warning : data is not aligned ! This can lead to a speed loss".
I checked other posts here and tried the solutions provided but it didn’t work for me. It would be great if some one can help point out what I am missing.
Thanks in advance.
Here is the command :
ffmpeg -i 1_a.opus -i 2_a.opus -itsoffset 0.024181 -i 01_v.webm -itsoffset 0.113192 -i 02_v.webm -filter_complex \
"[1:a]adelay=15726.168|15726.168[a1]; \
[0:a][a1]amix; \
[3:v]trim=0:15.726168,geq=0:128:128[silence]; \
[3:v]fifo[3v]; \
[silence][3v]concat[3_v_silence]; \
[3_v_silence]scale=-1:240[3v_scaled_240]; \
[3v_scaled_240]pad=width=320:height=240:x=(320-in_w)/2:y=(240-in_h)/2:color=black[3v_padded]; \
[2:v]scale=-1:240[2v_scaled_240]; \
[2v_scaled_240]pad=width=320:height=240:x=(320-in_w)/2:y=(240-in_h)/2:color=black[2v_padded]; \
[2v_padded]fifo[2v]; \
[2v][3v_padded]hstack[out_v]; \
[out_v]pad=width=640:height=480:x=(640-in_w)/2:y=(480-in_h)/2:color=black" \
-crf 40 -preset ultrafast -y -r pal out.mp4Console output :
ffmpeg version 4.0.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
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-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, ogg, from '1_a.opus':
Duration: 00:01:03.82, start: -0.020000, bitrate: 37 kb/s
Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
Input #1, ogg, from '2_a.opus':
Duration: 00:00:52.40, start: -0.020000, bitrate: 44 kb/s
Stream #1:0: Audio: opus, 48000 Hz, stereo, fltp
Input #2, matroska,webm, from '01_v.webm':
Metadata:
encoder : Lavf56.40.101
Duration: 00:01:03.83, start: 0.000000, bitrate: 202 kb/s
Stream #2:0: Video: vp8, yuv420p(progressive), 640x480, SAR 1:1 DAR 4:3, 333 fps, 333 tbr, 1k tbn, 1k tbc (default)
Input #3, matroska,webm, from '02_v.webm':
Metadata:
encoder : Lavf56.40.101
Duration: 00:00:52.34, start: 0.000000, bitrate: 200 kb/s
Stream #3:0: Video: vp8, yuv420p(progressive), 480x640, SAR 1:1 DAR 3:4, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
Stream mapping:
Stream #0:0 (opus) -> amix:input0
Stream #1:0 (opus) -> adelay
Stream #2:0 (vp8) -> scale
Stream #3:0 (vp8) -> trim
Stream #3:0 (vp8) -> fifo
amix -> Stream #0:0 (aac)
pad -> Stream #0:1 (libx264)
Press [q] to stop, [?] for help
[swscaler @ 0x6484740] Warning: data is not aligned! This can lead to a speed loss
[libx264 @ 0x63a0d40] using SAR=1/1
[libx264 @ 0x63a0d40] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
[libx264 @ 0x63a0d40] profile Constrained Baseline, level 3.0
[libx264 @ 0x63a0d40] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=40.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
Output #0, mp4, to 'out.mp4':
Metadata:
encoder : Lavf58.12.100
Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
encoder : Lavc58.18.100 aac
Stream #0:1: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Metadata:
encoder : Lavc58.18.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 1598 fps=131 q=-1.0 Lsize= 1375kB time=00:01:08.16 bitrate= 165.3kbits/s dup=2 drop=1047 speed=5.57x
video:455kB audio:883kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.787654%
[aac @ 0x63a31c0] Qavg: 32520.934
[libx264 @ 0x63a0d40] frame I:7 Avg QP:32.00 size: 5746
[libx264 @ 0x63a0d40] frame P:1591 Avg QP:33.93 size: 267
[libx264 @ 0x63a0d40] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x63a0d40] mb P I16..4: 0.3% 0.0% 0.0% P16..4: 4.2% 0.0% 0.0% 0.0% 0.0% skip:95.5%
[libx264 @ 0x63a0d40] coded y,uvDC,uvAC intra: 21.3% 18.9% 3.0% inter: 1.1% 0.5% 0.0%
[libx264 @ 0x63a0d40] i16 v,h,dc,p: 54% 27% 11% 9%
[libx264 @ 0x63a0d40] i8c dc,h,v,p: 69% 17% 10% 4%
[libx264 @ 0x63a0d40] kb/s:58.22 -
How to remove everything but video and stereo audio stream from video with ffmpeg ?
20 octobre 2019, par user3776738I’m trying to get a clean h264 video from a mkv file.With clean I mean that it has only a video stream plus stereo sound.
The inputfile can have multiple channels and subtitles and other unknown stuff, which I don’t need.
I’m using ffmpeg with this command :ffmpeg -i "input.mkv" -ac 2 -vf scale=trunc(oh*a/2)*2:480 -c:v libx264 "output.mp4"
This should give me a 480p video with stereo sound,which I require.
I tried multiple -map or dispositions commands with ffmpeg to remove the subtitles whithout any success.How can I remove everything but video and stereo stream with ffmpeg and get a 480p stereo sound video ?
Edit :
Output of ffmpeg - "input.mkv" -i "output.mp4" :ffmpeg -i "input.mkv" -i "output.mp4"
ffmpeg version N-91972-gbd10c1e9a8 Copyright (c) 2000-2018 the FFmpeg developer
built with gcc 8.2.1 (GCC) 20180813
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconf
g --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-li
freetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-am
wb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy -
enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-
ibwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 -
enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --e
able-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --e
able-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --
nable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --ena
le-avisynth
libavutil 56. 19.101 / 56. 19.101
libavcodec 58. 30.100 / 58. 30.100
libavformat 58. 18.101 / 58. 18.101
libavdevice 58. 4.103 / 58. 4.103
libavfilter 7. 32.100 / 7. 32.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
[hevc @ 00000000004a5940] Invalid default display window
Input #0, matroska,webm, from 'input.mkv':
Metadata:
title : Elysium (2013)
encoder : libebml v1.3.3 + libmatroska v1.4.4
creation_time : 2016-01-05T22:30:41.000000Z
Duration: 00:01:02.73, start: 0.166000, bitrate: 53638 kb/s
Chapter #0:0: start 0.000000, end 62.896000
Metadata:
title : 00:00:00.000
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv), 3840x1606, SAR 1:
DAR 1920:803, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
title : Elysium (2013) - Release for ULTRAHDCLUB
BPS : 51036975
BPS-eng : 51036975
DURATION : 00:01:02.604000000
DURATION-eng : 00:01:02.604000000
NUMBER_OF_FRAMES: 1501
NUMBER_OF_FRAMES-eng: 1501
NUMBER_OF_BYTES : 399389852
NUMBER_OF_BYTES-eng: 399389852
_STATISTICS_WRITING_APP: mkvmerge v8.7.0 ('All of the above') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.7.0 ('All of the above') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-01-05 22:30:41
_STATISTICS_WRITING_DATE_UTC-eng: 2016-01-05 22:30:41
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s16p (default)
Metadata:
title : DTS-HD MA 7.1 - Blu-ray CEE
BPS : 2706639
BPS-eng : 2706639
DURATION : 00:01:02.561000000
DURATION-eng : 00:01:02.561000000
NUMBER_OF_FRAMES: 5865
NUMBER_OF_FRAMES-eng: 5865
NUMBER_OF_BYTES : 21166260
NUMBER_OF_BYTES-eng: 21166260
_STATISTICS_WRITING_APP: mkvmerge v8.7.0 ('All of the above') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.7.0 ('All of the above') 64bit
_STATISTICS_WRITING_DATE_UTC: 2016-01-05 22:30:41
_STATISTICS_WRITING_DATE_UTC-eng: 2016-01-05 22:30:41
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
title : Elysium (2013)
encoder : Lavf58.18.101
Duration: 00:01:02.73, start: 0.000000, bitrate: 1671 kb/s
Chapter #1:0: start 0.000000, end 62.730000
Metadata:
title : 00:00:00.000
Stream #1:0(eng): Video: h264 (High 10) (avc1 / 0x31637661), yuv420p10le, 1
46x480 [SAR 2030:2027 DAR 38773:16216], 1543 kb/s, SAR 15563:15540 DAR 1920:803
23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #1:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fl
p, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream #1:2(eng): Data: bin_data (text / 0x74786574), 0 kb/s
Metadata:
handler_name : SubtitleHandler
At least one output file must be specified