
Recherche avancée
Autres articles (7)
-
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...) -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)
Sur d’autres sites (4452)
-
Ffmpeg : How to fix error "Please choose an encoder manually" ?
9 juillet 2023, par AlexI am trying to convert a x265 videofile to a x264 format so it can be played on a television. I am trying the following command


ffmpeg -i input.mkv -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -map 0:0 -map 0:1 -map 0:2 test.mp4



to select videos stream 0:0 for video, stream 0:1 for audio and stream 0:2 for the subtitle. However I get an error


Automatic encoder selection failed Default encoder for format mp4 (codec none) is probably disabled. Please choose an encoder manually.
Error selecting an encoder



How to fix this command ?


P.S. I am not an expert in
ffmpeg
or videos conversion/formats/encodings/audio formats/subtitle formats.

I found EXACTLY ONE google search result with the exact error phrase HERE. And that is not helping as I do not even understand the first sentence.


Below is the output for the first three streams :


Input #0, matroska,webm, from 'input.mkv':
 Metadata:
 creation_time : 2021-03-25T09:13:20.000000Z
 ENCODER : Lavf58.29.100
 Duration: 00:23:57.65, start: 0.000000, bitrate: 2103 kb/s
 Stream #0:0(jpn): Video: hevc (Main 10), yuv420p10le(tv), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn (default)
 Metadata:
 title : [Judas] x265 10b
 ENCODER : Lavc58.54.100 libx265
 BPS-eng : 1973938
 DURATION-eng : 00:23:55.017000000
 NUMBER_OF_FRAMES-eng: 34406
 NUMBER_OF_BYTES-eng: 354079423
 _STATISTICS_WRITING_APP-eng: mkvmerge v48.0.0 ('Fortress Around Your Heart') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2021-03-25 09:13:20
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1(jpn): Audio: aac (LC), 44100 Hz, stereo, fltp (default)
 Metadata:
 title : Japanese
 BPS-eng : 128000
 DURATION-eng : 00:23:55.086000000
 NUMBER_OF_FRAMES-eng: 61804
 NUMBER_OF_BYTES-eng: 22961378
 _STATISTICS_WRITING_APP-eng: mkvmerge v48.0.0 ('Fortress Around Your Heart') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2021-03-25 09:13:20
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:2(eng): Subtitle: ass
 Metadata:
 title : English
 BPS-eng : 196
 DURATION-eng : 00:23:53.580000000
 NUMBER_OF_FRAMES-eng: 478
 NUMBER_OF_BYTES-eng: 35129
 _STATISTICS_WRITING_APP-eng: mkvmerge v48.0.0 ('Fortress Around Your Heart') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2021-03-25 09:13:20
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES



I found a related question HERE whose answer I do not fully understand. However, I tried the following command


ffmpeg -i input.mkv -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -map 0:0 -map 0:1 -map 0:2 -c:s mov_text test.mp4



but got a new error


Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height



I thought I am defining an "encoder" for output stream "#0:0" (which I think is video), namely libx264. So what else to do here ?


I tried
-acode copy
and also to use-qp 0
in the command line which all did not work.

-
Is there a way to find out whether ffmpeg is performing optimally in my system using a ffmpeg command of sorts ?
17 octobre 2020, par Aspiring DevI'm encoding a file (mediainfo below) using the following command :


ffmpeg -i AHomeMovie.mkv -map 0 -c copy -c:v libx264 -preset veryslow -crf 17 -c:a aac -b:a 256k -threads 8 resultdir/AHomeMovie.mkv



And getting more or less the following performance after a couple of minutes :


frame= 2036 fps=2.5 q=22.0 size= 87535kB time=00:01:25.25 bitrate=8411.2kbits/s speed=0.104x 



Is this normal performance for a laptop with a i7-8550U, 16gb of RAM, UHD graphics 620 running Linux ? Is there a way to find out whether ffmpeg is performing optimally using a ffmpeg command of sorts ? I know it's commodity hardware by now but I just want to get some perspective on how the system is performing. I'm aware that I can use a different -preset speed btw.


Mediainfo :


General
Unique ID : 25145236523685421256398752247554522365 (0x14258745965823652446224452555874)
Complete name : AHomeMovie.mkv
Format : Matroska
Format version : Version 4
File size : 6.35 GiB
Duration : 22 min 47 s
Overall bit rate mode : Variable
Overall bit rate : 39.9 Mb/s
Movie name : A Home Movie
Encoded date : UTC 2020-09-10 22:10:12
Writing application : mkvmerge v42.0.0 ('Overtime') 64-bit
Writing library : libebml v1.3.10 + libmatroska v1.5.2

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 22 min 45 s
Bit rate mode : Variable
Bit rate : 38.0 Mb/s
Maximum bit rate : 40.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.764
Stream size : 6.04 GiB (95%)
Default : Yes
Forced : No

Audio #1
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 22 min 45 s
Bit rate mode : Variable
Bit rate : 614 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 11.719 FPS (4096 SPF)
Bit depth : 16 bits
Compression mode : Lossless
Stream size : 100 MiB (2%)
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)
Language : Japanese
Default : Yes
Forced : No

Audio #2
ID : 3
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 22 min 46 s
Bit rate mode : Variable
Bit rate : 1 317 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 11.719 FPS (4096 SPF)
Bit depth : 24 bits
Compression mode : Lossless
Delay relative to video : 24 ms
Stream size : 215 MiB (3%)
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)
Language : English
Default : No
Forced : No



-
ffmpeg : Error while saving or converting video to .mp4 format
16 juillet 2018, par user4215048sorry for my english...
On my hosting - ffmpeg is installed as a php module. I’m having errors when converting video to mp4 format
Error :
Error while opening the encoder for output stream # 0 : 0 - maybe incorrect parameters such as bit_rate, rate, width or height
Example of the ffmpeg command :
/usr/bin/ffmpeg -y -i /home/afk/public_html/webroot/files/video.flv -vcodec libx264 -acodec libvo_aacenc /home/afk/public_html/webroot/files/video_text.mp4 2 <& 1
I run this command through the php exec() function in the script :
exec ($command, $res) ;
And here is the result that I get ($res array) :
Array ( [0] => ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers [1] => built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16) [2] => configuration : —prefix=/usr —bindir=/usr/bin —datadir=/usr/share/ffmpeg —incdir=/usr/include/ffmpeg —libdir=/usr/lib64 —mandir=/usr/share/man —arch=x86_64 —optflags=’-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector —param=ssp-buffer-size=4 -m64 -mtune=generic’ —enable-bzlib —disable-crystalhd —enable-gnutls —enable-ladspa —enable-libass —enable-libdc1394 —enable-libfaac —enable-nonfree —disable-indev=jack —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-openal —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libvorbis —enable-libv4l2 —enable-libx264 —enable-libx265 —enable-libxvid —enable-x11grab —enable-avfilter —enable-avresample —enable-postproc —enable-pthreads —disable-static —enable-shared —enable-gpl —disable-debug —disable-stripping —shlibdir=/usr/lib64 —enable-runtime-cpudetect [3] => libavutil 54. 20.100 / 54. 20.100 [4] => libavcodec 56. 26.100 / 56. 26.100 [5] => libavformat 56. 25.101 / 56. 25.101 [6] => libavdevice 56. 4.100 / 56. 4.100 [7] => libavfilter 5. 11.102 / 5. 11.102 [8] => libavresample 2. 1. 0 / 2. 1. 0 [9] => libswscale 3. 1.101 / 3. 1.101 [10] => libswresample 1. 1.100 / 1. 1.100 [11] => libpostproc 53. 3.100 / 53. 3.100 [12] => Input #0, flv, from ’/home/afk/public_html/webroot/files/video.flv’ : [13] => Metadata : [14] => title : Title of the video [15] => encoder : Lavf56.25.101 [16] => Duration : 00:00:24.00, start : 0.000000, bitrate : 1364 kb/s [17] => Stream #0:0 : Video : flv1, yuv420p, 500x500, 200 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc [18] => [libx264 @ 0x1ec6720] using cpu capabilities : MMX2 SSE2Fast SSSE3 SSE4.2 AVX [19] => Output #0, mp4, to ’/home/afk/public_html/webroot/files/video_text.mp4’ : [20] => Metadata : [21] => title : Title of the video [22] => encoder : Lavf56.25.101 [23] => Stream #0:0 : Video : h264, none, q=2-31, 128 kb/s, 25 fps [24] => Metadata : [25] => encoder : Lavc56.26.100 libx264 [26] => Stream mapping : [27] => Stream #0:0 -> #0:0 (flv1 (flv) -> h264 (libx264)) [28] => Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height )
The same error occurs when converting any video into this format. I’ve already used the examples from the ffmpeg documentation, but the error remains. Help to understand and solve this problem.
At the same time, the conversion from flv to ogg format works normally, or the creation of video from images into flv and ogg formats