
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (92)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...) -
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)
Sur d’autres sites (3186)
-
FFMPEG conversion error from MKV to MP4 using libfdk_aac codec
23 août 2014, par Charlie BrownThe purpose of doing this is because my "Smart" samsung TV doesn’t play MKV files.
This thread mentions that there is no need for video conversion, just changing the container might suffice. After reading multiple threads on how to change the container of MKV to MP4, I downloaded and compiled the FFMPEG with libfdk_aac support from here. I tried converting a sample MKV file using this command :
ffmpeg -i "C:\VideoTest\Sample1.mkv" -c:v copy -c:a libfdk_aac -b:a 384k "C:\VideoTest\Sample2.mp4"
but getting the following errors (copied from command prompt) :
[hevc @ 0000000000308ae0] Could not find ref with POC 113
[hevc @ 0000000000308ae0] Could not find ref with POC 111
[hevc @ 0000000000308ae0] Could not find ref with POC 109
[hevc @ 0000000000308ae0] Could not find ref with POC 107
Input #0, matroska,webm, from 'C:\VideoTest\Sample-1.mk
v':
Metadata:
encoder : libebml v1.3.0 + libmatroska v1.4.1
creation_time : 2014-07-16 08:54:02
Duration: 00:00:58.68, start: 0.042000, bitrate: 3520 kb/s
Chapter #0.0: start 0.000000, end 58.717000
Metadata:
title : Chapter 4
Stream #0:0: Video: hevc (Main), yuv420p(tv), 1920x816, SAR 1:1 DAR 40:17, 2
4 fps, 24 tbr, 1k tbn, 1k tbc (default)
Metadata:
_STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on
Jun 9 2014 15:16:27
_STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit buil
t on Jun 9 2014 15:16:27
_STATISTICS_WRITING_DATE_UTC: 2014-07-16 08:54:02
_STATISTICS_WRITING_DATE_UTC-eng: 2014-07-16 08:54:02
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
BPS : 2733260
BPS-eng : 2733260
DURATION : 00:00:58.667000000
DURATION-eng : 00:00:58.667000000
NUMBER_OF_FRAMES: 1408
NUMBER_OF_FRAMES-eng: 1408
NUMBER_OF_BYTES : 20044023
NUMBER_OF_BYTES-eng: 20044023
Stream #0:1: Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768 kb/s (default)
Metadata:
_STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on
Jun 9 2014 15:16:27
_STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit buil
t on Jun 9 2014 15:16:27
_STATISTICS_WRITING_DATE_UTC: 2014-07-16 08:54:02
_STATISTICS_WRITING_DATE_UTC-eng: 2014-07-16 08:54:02
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
BPS : 767986
BPS-eng : 767986
DURATION : 00:00:58.625000000
DURATION-eng : 00:00:58.625000000
NUMBER_OF_FRAMES: 5496
NUMBER_OF_FRAMES-eng: 5496
NUMBER_OF_BYTES : 5627904
NUMBER_OF_BYTES-eng: 5627904
Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080 (default)
Metadata:
_STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on
Jun 9 2014 15:16:27
_STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit buil
t on Jun 9 2014 15:16:27
_STATISTICS_WRITING_DATE_UTC: 2014-07-16 08:54:02
_STATISTICS_WRITING_DATE_UTC-eng: 2014-07-16 08:54:02
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
BPS : 17485
BPS-eng : 17485
DURATION : 00:00:56.750000000
DURATION-eng : 00:00:56.750000000
NUMBER_OF_FRAMES: 40
NUMBER_OF_FRAMES-eng: 40
NUMBER_OF_BYTES : 124036
NUMBER_OF_BYTES-eng: 124036
Output #0, mp4, to 'C:\VideoTest\Sample.mp4':
Metadata:
encoder : Lavf56.1.100
Chapter #0.0: start 0.000000, end 58.675000
Metadata:
title : Chapter 4
Stream #0:0: Video: hevc ([35][0][0][0] / 0x0023), yuv420p, 1920x816 [SAR 1:
1 DAR 40:17], q=2-31, 24 fps, 16k tbn, 1k tbc (default)
Metadata:
_STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on
Jun 9 2014 15:16:27
_STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit buil
t on Jun 9 2014 15:16:27
_STATISTICS_WRITING_DATE_UTC: 2014-07-16 08:54:02
_STATISTICS_WRITING_DATE_UTC-eng: 2014-07-16 08:54:02
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
BPS : 2733260
BPS-eng : 2733260
DURATION : 00:00:58.667000000
DURATION-eng : 00:00:58.667000000
NUMBER_OF_FRAMES: 1408
NUMBER_OF_FRAMES-eng: 1408
NUMBER_OF_BYTES : 20044023
NUMBER_OF_BYTES-eng: 20044023
Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 48000 Hz, 5.1
, s16, 128 kb/s (default)
Metadata:
_STATISTICS_WRITING_APP: mkvmerge v7.0.0 ('Where We Going') 64bit built on
Jun 9 2014 15:16:27
_STATISTICS_WRITING_APP-eng: mkvmerge v7.0.0 ('Where We Going') 64bit buil
t on Jun 9 2014 15:16:27
_STATISTICS_WRITING_DATE_UTC: 2014-07-16 08:54:02
_STATISTICS_WRITING_DATE_UTC-eng: 2014-07-16 08:54:02
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
BPS : 767986
BPS-eng : 767986
DURATION : 00:00:58.625000000
DURATION-eng : 00:00:58.625000000
NUMBER_OF_FRAMES: 5496
NUMBER_OF_FRAMES-eng: 5496
NUMBER_OF_BYTES : 5627904
NUMBER_OF_BYTES-eng: 5627904
encoder : Lavc56.0.101 libfdk_aac
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (dts (dca) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[mp4 @ 0000000003be0500] Invalid DTS: 656 PTS: -672 in output stream 0:0
av_interleaved_write_frame(): Invalid argument
[libfdk_aac @ 00000000042fa640] Trying to remove 1024 samples, but the queue is
empty
[mp4 @ 0000000003be0500] Encoder did not produce proper pts, making some up.
[libfdk_aac @ 00000000042fa640] Trying to remove 1024 samples, but the queue is
empty
frame= 2 fps=0.0 q=-1.0 Lsize= 96kB time=00:00:00.04 bitrate=18415.0kbit
s/s
video:95kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing ov
erhead: 0.570364%
Conversion failed!Also tried using this command :
ffmpeg -i input.wav -c:a libfdk_aac -b:a 128k output.mp4
But this screws up the video quality and I start seeing some bad pixelated patches during the playback.
Any help would be appreciated.
Just an FYI : I got this far by reading blogs and posts. I have 0 knowledge about video conversion.
-
ffmpeg creating image slideshow in audio concat command
17 janvier 2023, par MartinI have a working ffmpeg which when ran in windows 10 command prompt will combine 3 audio files with 1 image file into a video.
The single image file is used as just a static image for the entire video's duration. (16:50 or 1010 seconds)


song1.mp3 00:00:00-00:06:23
song2.mp3 00:06:23-00:12:04
song3.wav 00:12:04-00:16:50



I am trying to change this so that instead of a single static image, I have a slideshow of 4 different images play during the duration of the video.
I was thinking of doing this by taking the total length in seconds (1010) divided by 4 would mean 252.5 seconds per image, so a timeline like :


img1: 0 - 252.5
img2: 252.5 - 505
img3: 505 - 757.5
img4: 757.5 - 252.5



How can I change my command so that the output video is a slideshow of images with the timestamps above ?
Here is my working ffmpeg command with explanation from myself which hopefully explains some of it :


ffmpeg -loop 1 -framerate 2 -i "C:\Users\...local_filepath...\ffmpeg-commands\images\img1.png" -i "C:\Users\...local_filepath...\ffmpeg-commands\audio files\song1.mp3" -i "C:\Users\...local_filepath...\ffmpeg-commands\audio files\song2.mp3" -i "C:\Users\...local_filepath...\ffmpeg-commands\audio files\song3.wav" -c:a pcm_s32le -filter_complex concat=n=3:v=0:a=1 -vcodec libx264 -bufsize 3M -filter:v "scale=w=640:h=638,pad=ceil(iw/2)*2:ceil(ih/2)*2" -crf 18 -pix_fmt yuv420p -shortest -tune stillimage -t 1010 "C:\Users\...local_filepath...\ffmpeg-commands\videos\outputvideo.mkv"


ffmpeg

//loop single image 
-loop 1 
//set video framerate
-framerate 2 
//take image and audio files
-i "C:\Users\...local_filepath...\ffmpeg-commands\images\img1.png" 
-i "C:\Users\...local_filepath...\ffmpeg-commands\audio files\song1.mp3" 
-i "C:\Users\...local_filepath...\ffmpeg-commands\audio files\song2.mp3" 
-i "C:\Users\...local_filepath...\ffmpeg-commands\audio files\song3.wav"
//set audio codec
-c:a pcm_s32le 
//organize the audio files (?)
-filter_complex concat=n=3:v=0:a=1 
//set video codec
-vcodec libx264 
//limiting the output bitrate
-bufsize 3M 
//scale single image to 640x638 resolution
-filter:v "scale=w=640:h=638,pad=ceil(iw/2)*2:ceil(ih/2)*2" 
//range of the CRF scale is 0–51, where 0 is lossless (for 8 bit only, for 10 bit use -qp 0), 23 is the default, and 51 is worst quality
-crf 18 
//set pixel format
-pix_fmt yuv420p 
//try to ensure video is not longer then concatenated audio files
-shortest 
//use still image 
-tune stillimage 
//specify output video time to ensure it is exactly the same length as concattenated audio
-t 1010 
//specify output filepath
"C:\Users\...local_filepath...\ffmpeg-commands\videos\outputvideo.mkv"



And here is the command raw how you would run it.


ffmpeg -loop 1 -framerate 2 -i "C:\Users\marti\Documents\projects\jan2023-rendertune\ffmpeg-commands\images\img1.png" -i "C:\Users\marti\Documents\projects\jan2023-rendertune\ffmpeg-commands\audio files\song1.mp3" -i "C:\Users\marti\Documents\projects\jan2023-rendertune\ffmpeg-commands\audio files\song2.mp3" -i "C:\Users\marti\Documents\projects\jan2023-rendertune\ffmpeg-commands\audio files\song3.wav" -c:a pcm_s32le -filter_complex concat=n=3:v=0:a=1 -vcodec libx264 -bufsize 3M -filter:v "scale=w=640:h=638,pad=ceil(iw/2)*2:ceil(ih/2)*2" -crf 18 -pix_fmt yuv420p -shortest -tune stillimage -t 1010 "C:\Users\marti\Documents\projects\jan2023-rendertune\ffmpeg-commands\videos\concatVideo-250771.mkv"



And here is my ffmpeg version info :


ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 9.3.1 (GCC) 20200621
 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-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100



-
ffmpeg fails to convert an uploaded video file whose size greater than 14mb when executed through c#.net
10 novembre 2017, par HarunI am converting videos to flv using ffmpeg.exe through c# and the process gets stuck and the conversion fails if the file size exceeds 14mb. I’ve tried to run ffmpeg directly through command prompt and it works fine regardless of size.
My conversion code is as follows :
OutputFile = SavePath + "SWF\\" + WithOutExt + ".flv";
FilArgs = string.Format("-i {0} -ar 22050 -qscale 1 {1}",InputFile,OutputFile);
Process proc;
proc = new Process();
try
{
proc.StartInfo.FileName = spath + "\\ffmpeg\\ffmpeg.exe";
proc.StartInfo.Arguments = FilArgs;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = false;
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.RedirectStandardError = true;
proc.Start();
string StdOutVideo = proc.StandardOutput.ReadToEnd();
string StdErrVideo = proc.StandardError.ReadToEnd();
}
finally
{
proc.WaitForExit();
proc.Close();
}When I tried to manually stop the running process The
stderroutput
is as follows :FFmpeg version SVN-r21231-Sherpya, Copyright (c) 2000-2010 Fabrice Bellard, et al.
built on Jan 16 2010 05:42:31 with gcc 4.2.5 20080919 (prerelease) [Sherpya]
libavutil 50. 7. 0 / 50. 7. 0
libavcodec 52.47. 0 / 52.47. 0
libavformat 52.47. 0 / 52.47. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.15. 0 / 1.15. 0
libswscale 0. 8. 0 / 0. 8. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’C :\Project-Folder-Files\ThirtySecondPitch\video\7.mp_c88a8ec2-3a60-4133-aee6-7e2d93b62324.mp4’ :
Metadata :
major_brand : isom
minor_version : 512
compatible_brands : isomiso2mp41
Duration : 00:00:23.13, start : 0.000000, bitrate : 9261 kb/s
Stream #0.0(jpn) : Video : mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 9128 kb/s, 30 tbr, 30 tbn, 30 tbc
Stream #0.1(jpn) : Audio : aac, 48000 Hz, stereo, s16, 127 kb/s
Output #0, flv, to ’C :\Project-Folder-Files\ThirtySecondPitch\video\SWF\7.mp_c88a8ec2-3a60-4133-aee6-7e2d93b62324.flv’ :
Stream #0.0(jpn) : Video : flv, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 1k tbn, 30 tbc
Stream #0.1(jpn) : Audio : libmp3lame, 22050 Hz, stereo, s16, 64 kb/s
Stream mapping :
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 19 fps= 0 q=1.0 size= 596kB time=0.50 bitrate=9839.2kbits/s
frame= 36 fps= 33 q=1.0 size= 1284kB time=1.07 bitrate=9822.2kbits/s
frame= 55 fps= 34 q=1.0 size= 2076kB time=1.70 bitrate=10013.6kbits/s
frame= 74 fps= 35 q=1.0 size= 2819kB time=2.35 bitrate=9822.2kbits/s
frame= 93 fps= 35 q=1.0 size= 3583kB time=2.95 bitrate=9943.3kbits/s
frame= 113 fps= 36 q=1.0 size= 4457kB time=3.63 bitrate=10056.2kbits/s
frame= 132 fps= 36 q=1.0 size= 5157kB time=4.26 bitrate=9922.3kbits/s
frame= 152 fps= 37 q=1.0 size= 5972kB time=4.91 bitrate=9961.6kbits/s
frame= 172 fps= 37 q=1.0 size= 6817kB time=5.62 bitrate=9943.9kbits/s
frame= 192 fps= 37 q=1.0 size= 7676kB time=6.27 bitrate=10030.1kbits/s
frame= 212 fps= 37 q=1.0 size= 8488kB time=6.92 bitrate=10045.9kbits/s
frame= 232 fps= 37 q=1.0 size= 9306kB time=7.58 bitrate=10062.8kbits/s
frame= 251 fps= 37 q=1.0 size= 10150kB time=8.26 bitrate=10072.1kbits/s
frame= 271 fps= 37 q=1.0 size= 10970kB time=8.88 bitrate=10117.6kbits/s
frame= 291 fps= 38 q=1.0 size= 11815kB time=9.56 bitrate=10123.7kbits/s
frame= 311 fps= 38 q=1.0 size= 12625kB time=10.24 bitrate=10100.1kbits/s
frame= 331 fps= 38 q=1.0 size= 13414kB time=10.89 bitrate=10088.0kbits/s
frame= 351 fps= 38 q=1.0 size= 14125kB time=11.55 bitrate=10021.7kbits/s
frame= 371 fps= 38 q=1.0 size= 14929kB time=12.25 bitrate=9983.0kbits/s
frame= 391 fps= 38 q=1.0 size= 15701kB time=12.90 bitrate=9967.8kbits/s
frame= 411 fps= 38 q=1.0 size= 16385kB time=13.56 bitrate=9899.9kbits/s
frame= 431 fps= 38 q=1.0 size= 17137kB time=14.21 bitrate=9878.7kbits/s
frame= 451 fps= 38 q=1.0 size= 17938kB time=14.92 bitrate=9851.7kbits/s
frame= 471 fps= 38 q=1.0 size= 18663kB time=15.57 bitrate=9820.0kbits/s
frame= 491 fps= 38 q=1.0 size= 19379kB time=16.22 bitrate=9786.4kbits/s
frame= 511 fps= 38 q=1.0 size= 20179kB time=16.90 bitrate=9780.9kbits/s
frame= 530 fps= 38 q=1.0 size= 20893kB time=17.53 bitrate=9764.8kbits/s
frame= 550 fps= 38 q=1.0 size= 21633kB time=18.18 bitrate=9747.3kbits/s
frame= 570 fps= 38 q=1.0 size= 22464kB time=18.89 bitrate=9743.5kbits/s
frame= 590 fps= 38 q=1.0 size= 23227kB time=19.54 bitrate=9737.7kbits/s
frame= 609 fps= 38 q=1.0 size= 23992kB time=20.17 bitrate=9745.8kbits/s
frame= 629 fps= 38 q=1.0 size= 24804kB time=20.85 bitrate=9747.4kbits/s
frame= 648 fps= 38 q=1.0 size= 25501kB time=21.45 bitrate=9740.6kbits/s
frame= 668 fps= 38 q=1.0 size= 26306kB time=22.13 bitrate=9739.7kbits/s
frame= 687 fps= 38 q=1.0 size= 27040kB time=22.80 bitrate=9713.2kbits/s