
Recherche avancée
Autres articles (51)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (7064)
-
Remove Rotate metadata from mp4
25 avril, par mbajurI'm trying to remove or modify a
rotate
param from my mp4 file using ffmpeg. Based on some google results, i've ended up with such command (i've tried a few more but none of them worked) :


$ ffmpeg -i ./source.mp4 -metadata rotate=0 ./output.mp4




But it's not working at all. The
rotate=270
metadata param is still there in the output file. Can you please advise me on how it should be done ?


I'm using



ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers
 built on Dec 9 2013 20:00:03 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid






Output :



ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers
 built on Dec 9 2013 20:00:03 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
 libavutil 52. 18.100 / 52. 18.100
 libavcodec 54. 92.100 / 54. 92.100
 libavformat 54. 63.104 / 54. 63.104
 libavdevice 54. 3.103 / 54. 3.103
 libavfilter 3. 42.103 / 3. 42.103
 libswscale 2. 2.100 / 2. 2.100
 libswresample 0. 17.102 / 0. 17.102
 libpostproc 52. 2.100 / 52. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/michal/Downloads/mp4_c8ffe9a587b126f152ed3d89a146b445.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf54.63.104
 Duration: 00:00:13.80, start: 0.021333, bitrate: 437 kb/s
 Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 313 kb/s, 7.50 fps, 7.50 tbr, 15360 tbn, 15 tbc
 Metadata:
 rotate : 270
 handler_name : VideoHandler
 Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 134 kb/s
 Metadata:
 handler_name : SoundHandler
File '/Users/michal/Desktop/mp4.mp4' already exists. Overwrite ? [y/N] y 
using SAR=1/1
[libx264 @ 0x7fb17b01ec00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[libx264 @ 0x7fb17b01ec00] profile High, level 2.2
[libx264 @ 0x7fb17b01ec00] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - 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=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=7 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 '/Users/michal/Desktop/mp4.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 rotate : 0
 encoder : Lavf54.63.104
 Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 15360 tbn, 7.50 tbc
 Metadata:
 rotate : 270
 handler_name : VideoHandler
 Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s
 Metadata:
 handler_name : SoundHandler
Stream mapping:
 Stream #0:0 -> #0:0 (h264 -> libx264)
 Stream #0:1 -> #0:1 (aac -> libfaac)
Press [q] to stop, [?] for help
frame= 99 fps= 39 q=32766.0 Lsize= 730kB time=00:00:13.80 bitrate= 433.1kbits/s 
video:497kB audio:226kB subtitle:0 global headers:0kB muxing overhead 0.821272%
[libx264 @ 0x7fb17b01ec00] frame I:8 Avg QP:14.85 size: 11183
[libx264 @ 0x7fb17b01ec00] frame P:68 Avg QP:17.68 size: 5348
[libx264 @ 0x7fb17b01ec00] frame B:23 Avg QP:18.26 size: 2419
[libx264 @ 0x7fb17b01ec00] consecutive B-frames: 53.5% 46.5% 0.0% 0.0%
[libx264 @ 0x7fb17b01ec00] mb I I16..4: 31.9% 55.9% 12.1%
[libx264 @ 0x7fb17b01ec00] mb P I16..4: 8.2% 9.1% 0.3% P16..4: 54.3% 13.0% 7.6% 0.0% 0.0% skip: 7.4%
[libx264 @ 0x7fb17b01ec00] mb B I16..4: 0.2% 0.2% 0.0% B16..8: 49.9% 4.0% 0.3% direct: 8.6% skip:36.8% L0:45.5% L1:50.9% BI: 3.6%
[libx264 @ 0x7fb17b01ec00] 8x8 transform intra:53.3% inter:90.4%
[libx264 @ 0x7fb17b01ec00] coded y,uvDC,uvAC intra: 41.7% 90.1% 55.3% inter: 23.9% 56.7% 7.1%
[libx264 @ 0x7fb17b01ec00] i16 v,h,dc,p: 12% 20% 10% 59%
[libx264 @ 0x7fb17b01ec00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 20% 28% 8% 8% 4% 8% 5% 5%
[libx264 @ 0x7fb17b01ec00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 23% 18% 6% 11% 5% 8% 3% 3%
[libx264 @ 0x7fb17b01ec00] i8c dc,h,v,p: 57% 22% 18% 4%
[libx264 @ 0x7fb17b01ec00] Weighted P-Frames: Y:5.9% UV:0.0%
[libx264 @ 0x7fb17b01ec00] ref P L0: 61.2% 2.2% 23.5% 12.5% 0.6%
[libx264 @ 0x7fb17b01ec00] ref B L0: 74.2% 25.8%
[libx264 @ 0x7fb17b01ec00] kb/s:308.34



-
Rotate Video- Could not write header for output file #0 (incorrect codec parameters ?)
26 août 2018, par varmashrivastavaI am using below command to rotate video-
{"-y", "-ss", "" + startMs / 1000, "-t", "" + (endMs - startMs) / 1000, "-i", inputPath, "-vf", "transpose=" + type,"-c:a", "copy", outputPath}
I am getting below failure message in Android Oreo-
"ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers\n
built with gcc 4.8 (GCC)\n configuration : —target-os=linux
—cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi-
—arch=arm —cpu=cortex-a8 —enable-runtime-cpudetect —sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot
—enable-pic —enable-libx264 —enable-libass —enable-libfreetype —enable-libfribidi —enable-libmp3lame —enable-fontconfig —enable-pthreads —disable-debug —disable-ffserver —enable-version3 —enable-hardcoded-tables —disable-ffplay —disable-ffprobe —enable-gpl —enable-yasm —disable-doc —disable-shared —enable-static —pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config —prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a —extra-cflags=’-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all’ —extra-ldflags=’-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib
-Wl,-z,relro -Wl,-z,now -pie’ —extra-libs=’-lpng -lexpat -lm’ —extra-cxxflags=\n libavutil 55. 17.103 / 55. 17.103\n libavcodec 57. 24.102 / 57. 24.102\n libavformat 57. 25.100 /
57. 25.100\n libavdevice 57. 0.101 / 57. 0.101\n libavfilter 6. 31.100 / 6. 31.100\n libswscale 4. 0.100 / 4. 0.100\n libswresample 2. 0.101 / 2. 0.101\n libpostproc 54. 0.100 /
54. 0.100\nInput #0, mov,mp4,m4a,3gp,3g2,mj2, from ’/storage/emulated/0/Download/dolbycanyon.3gp’ :\n Metadata :\n
major_brand : 3gp4\n minor_version : 512\n
compatible_brands : isomiso23gp4\n Duration : 00:00:38.07, start :
0.006250, bitrate : 402 kb/s\n Stream #0:0(und) : Video : h263 (s263 / 0x33363273), yuv420p, 704x576 [SAR 12:11 DAR 4:3], 384 kb/s, 29.97
fps, 29.97 tbr, 30k tbn, 29.97 tbc (default)\n Metadata :\n
handler_name : VideoHandler\n Stream #0:1(und) : Audio : amr_nb
(samr / 0x726D6173), 8000 Hz, mono, flt, 12 kb/s (default)\n
Metadata :\n handler_name : SoundHandler\n[libx264 @
0xf64e5400] using SAR=11/12\n[libx264 @ 0xf64e5400] using cpu
capabilities : none !\n[libx264 @ 0xf64e5400] profile High, level
3.1\n[libx264 @ 0xf64e5400] 264 - core 148 - 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=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\n[mp4 @ 0xf64a8600] Could not find tag for codec amr_nb in
stream #1, codec not currently supported in container\nOutput #0, mp4,
to ’/storage/emulated/0/Movies/rotate_video4.mp4’ :\n Metadata :\n
major_brand : 3gp4\n minor_version : 512\n
compatible_brands : isomiso23gp4\n encoder : Lavf57.25.100\n
Stream #0:0(und) : Video : h264 (libx264) ([33][0][0][0] / 0x0021),
yuv420p, 576x704 [SAR 11:12 DAR 3:4], q=-1—1, 29.97 fps, 30k tbn,
29.97 tbc (default)\n Metadata :\n handler_name : VideoHandler\n encoder : Lavc57.24.102 libx264\n Side
data :\n unknown side data type 10 (24 bytes)\n Stream
0:1(und) : Audio : amr_nb (samr / 0x726D6173), 8000 Hz, mono, 12 kb/s (default)\n Metadata :\n handler_name : SoundHandler\nStream
mapping :\n Stream #0:0 -> #0:0 (h263 (native) -> h264 (libx264))\n
Stream #0:1 -> #0:1 (copy)\nCould not write header for output file #0
(incorrect codec parameters ?) : Invalid argument\n"Why am i getting this error and how can i resolve it ?
-
How to convert first few seconds of a video to multiple output formats using ffmpeg
5 juin 2012, par HadiI want to convert first few seconds (say 5 seconds) of a video to multiple output formats using ffmpeg.
when I Use this syntax to convert whole video, everything goes ok :
(to be simple, i left all options to be default)ffmpeg -i input.flv output1.mp4 output2.avi
but when trying for just first 5 seconds using this syntax :
ffmpeg -t 5 -i input.flv output1.mp4 output2.avi
first output file (i.e ouptput1.mp4) is ok and it is 5 seconds length, but the second (and next outputs, if present) has a size of original file.
this is what ffmpeg prints out on the screen.
D:\ffmpeg\bin>ffmpeg -t 5 -i input.flv output1.mp4 output2.avi
ffmpeg version N-40301-gc1fe2db Copyright (c) 2000-2012 the FFmpeg developers
built on May 3 2012 11:40:38 with gcc 4.6.3
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass
--enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libope
njpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libth
eora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --e
nable-zlib
libavutil 51. 49.100 / 51. 49.100
libavcodec 54. 17.101 / 54. 17.101
libavformat 54. 3.100 / 54. 3.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 72.104 / 2. 72.104
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 11.100 / 0. 11.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, flv, from 'input.flv':
Duration: 00:00:37.00, start: 0.000000, bitrate: 366 kb/s
Stream #0:0: Video: flv1, yuv420p, 320x240, 300 kb/s, 29.97 tbr, 1k tbn, 1k
tbc
Stream #0:1: Audio: mp3, 22050 Hz, mono, s16, 56 kb/s
[buffer @ 01de98c0] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:fl
ags=2
[buffer @ 01dea4e0] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:fl
ags=2
[libx264 @ 02b067a0] using cpu capabilities: MMX2 Cache64
[libx264 @ 02b067a0] profile High, level 1.3
[libx264 @ 02b067a0] 264 - core 120 r2164 da19765 - H.264/MPEG-4 AVC codec - Cop
yleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deb
lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m
e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chro
ma_qp_offset=-2 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_c
ompat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 we
ightb=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 'output1.mp4':
Metadata:
encoder : Lavf54.3.100
Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 320x240, q=-1--1, 3
0k tbn, 29.97 tbc
Stream #0:1: Audio: aac (@[0][0][0] / 0x0040), 22050 Hz, mono, s16, 128 kb/s
Output #1, avi, to 'output2.avi':
Metadata:
ISFT : Lavf54.3.100
Stream #1:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 320x240, q=2-31, 200
kb/s, 29.97 tbn, 29.97 tbc
Stream #1:1: Audio: mp3 (U[0][0][0] / 0x0055), 22050 Hz, mono, s16
Stream mapping:
Stream #0:0 -> #0:0 (flv -> libx264)
Stream #0:1 -> #0:1 (mp3 -> libvo_aacenc)
Stream #0:0 -> #1:0 (flv -> mpeg4)
Stream #0:1 -> #1:1 (mp3 -> libmp3lame)
Press [q] to stop, [?] for help
frame= 48 fps=0.0 q=29.0 q=2.4 size= 8kB time=00:00:00.16 bitrate= 399.6
frame= 62 fps= 59 q=29.0 q=2.4 size= 32kB time=00:00:00.63 bitrate= 408.8
frame= 73 fps= 46 q=29.0 q=3.5 size= 57kB time=00:00:01.00 bitrate= 466.1
frame= 104 fps= 50 q=29.0 q=3.5 size= 87kB time=00:00:02.03 bitrate= 349.7
frame= 134 fps= 52 q=29.0 q=3.6 size= 113kB time=00:00:03.03 bitrate= 303.9
***frame= 150 fps= 49 q=29.0 q=2.4 size= 126kB time=00:00:03.57 bitrate= 289.3
frame= 150 fps= 42 q=29.0 q=8.8 size= 126kB time=00:00:03.57 bitrate= 289.3
frame= 150 fps= 37 q=29.0 q=6.9 size= 126kB time=00:00:03.57 bitrate= 289.3
frame= 150 fps= 33 q=29.0 q=9.7 size= 126kB time=00:00:03.57 bitrate= 289.3
frame= 150 fps= 29 q=29.0 q=6.0 size= 126kB time=00:00:03.57 bitrate= 289.3
frame= 150 fps= 27 q=29.0 q=11.2 size= 126kB time=00:00:03.57 bitrate= 289.***
frame= 150 fps= 24 q=29.0 Lq=11.0 size= 171kB time=00:00:04.93 bitrate= 283
.7kbits/s
video:1282kB audio:225kB global headers:0kB muxing overhead -88.650217%
[libx264 @ 02b067a0] frame I:1 Avg QP:10.27 size: 74
[libx264 @ 02b067a0] frame P:114 Avg QP:23.49 size: 727
[libx264 @ 02b067a0] frame B:35 Avg QP:29.30 size: 124
[libx264 @ 02b067a0] consecutive B-frames: 68.0% 2.7% 0.0% 29.3%
[libx264 @ 02b067a0] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 02b067a0] mb P I16..4: 2.1% 3.2% 0.1% P16..4: 19.2% 5.1% 3.6%
0.0% 0.0% skip:66.6%
[libx264 @ 02b067a0] mb B I16..4: 0.2% 0.5% 0.0% B16..8: 9.6% 1.2% 0.4%
direct: 0.6% skip:87.4% L0:46.1% L1:42.5% BI:11.4%
[libx264 @ 02b067a0] 8x8 transform intra:51.7% inter:78.4%
[libx264 @ 02b067a0] coded y,uvDC,uvAC intra: 29.8% 44.5% 10.3% inter: 8.9% 10.3
% 2.2%
[libx264 @ 02b067a0] i16 v,h,dc,p: 52% 31% 16% 1%
[libx264 @ 02b067a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 25% 45% 1% 0% 1% 0%
1% 3%
[libx264 @ 02b067a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 48% 23% 2% 1% 2% 3%
2% 1%
[libx264 @ 02b067a0] i8c dc,h,v,p: 54% 26% 16% 3%
[libx264 @ 02b067a0] Weighted P-Frames: Y:2.6% UV:0.9%
[libx264 @ 02b067a0] ref P L0: 79.8% 7.0% 9.6% 3.6% 0.0%
[libx264 @ 02b067a0] ref B L0: 92.5% 6.7% 0.8%
[libx264 @ 02b067a0] ref B L1: 96.8% 3.2%
[libx264 @ 02b067a0] kb/s:139.51
D:\ffmpeg\bin>How is the correct syntax to get all output files same size ?
isn't this a bug with ffmpeg ? (note last lines of conversion progress, which all timestamps look same)
thanks in advance.