Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (71)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (7604)

  • FFmpeg Pydub Debugging/Conversion Failed, ffmpeg returned error code : 1

    21 juillet 2021, par Draco

    


    I have a simple line of code importing an mp3 file, it used to give me a WinError2 error which I fixed by adding the ffmpeg exe's into the script directory. But now I have another error which I cannot really make heads or tails of :

    


    The lines of code :

    


    AudioSegment.converter = r"path/to/directory/ffmpeg.exe"

    


    AudioSegment.ffprobe = r"path/to/directory/ffprobe.exe"

    


    imported_mp3 = AudioSegment.from_mp3(Path(file_path))

    


    The error message :

    


    Traceback (most recent call last):&#xA;  File "C:\Users\my_user\OneDrive\Desktop\DIR\project.py", line 673, in <module>&#xA;    main()&#xA;  File "C:\Users\my_user\OneDrive\Desktop\DIR\project.py", line 665, in main&#xA;    read_titles(txt_path)&#xA;  File "C:\Users\my_user\OneDrive\Desktop\DIR\project.py", line 588, in the_function&#xA;    temp_voice = AudioSegment.from_mp3(import_path)&#xA;  File "C:\Users\my_user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pydub\audio_segment.py", line 796, in from_mp3&#xA;    return cls.from_file(file, &#x27;mp3&#x27;, parameters=parameters)&#xA;  File "C:\Users\my_user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pydub\audio_segment.py", line 773, in from_file&#xA;    raise CouldntDecodeError(&#xA;pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 1&#xA;&#xA;Output from ffmpeg/avlib:&#xA;&#xA;ffmpeg version 2021-07-14-git-ca56299fb3-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 10.3.0 (Rev2, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint&#xA;  libavutil      57.  0.100 / 57.  0.100&#xA;  libavcodec     59.  3.101 / 59.  3.101&#xA;  libavformat    59.  4.100 / 59.  4.100&#xA;  libavdevice    59.  0.100 / 59.  0.100&#xA;  libavfilter     8.  0.103 /  8.  0.103&#xA;  libswscale      6.  0.100 /  6.  0.100&#xA;  libswresample   4.  0.100 /  4.  0.100&#xA;  libpostproc    56.  0.100 / 56.  0.100&#xA;[mp3float @ 000001bf73e87b80] Header missing&#xA;    Last message repeated 27 times&#xA;[mp3 @ 000001bf73e7e540] decoding for stream 0 failed&#xA;[mp3 @ 000001bf73e7e540] Could not find codec parameters for stream 0 (Audio: mp3 (mp3float), 0 channels, fltp): unspecified frame size&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;Input #0, mp3, from &#x27;C:\Users\my_user\0.mp3&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: N/A&#xA;  Stream #0:0: Audio: mp3, 0 channels, fltp&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mp3 (mp3float) -> pcm_s16le (native))&#xA;Press [q] to stop, [?] for help&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[mp3float @ 000001bf73e90f80] Header missing&#xA;Error while decoding stream #0:0: Invalid data found when processing input&#xA;[abuffer @ 000001bf73e9b240] Value inf for parameter &#x27;time_base&#x27; out of range [0 - 2.14748e&#x2B;09]&#xA;    Last message repeated 3 times&#xA;[abuffer @ 000001bf73e9b240] Error setting option time_base to value 1/0.&#xA;[graph_0_in_0_0 @ 000001bf73e9c2c0] Error applying options to the filter.&#xA;Error reinitializing filters!&#xA;Error while filtering: Result too large&#xA;Finishing stream 0:0 without any data written to it.&#xA;[abuffer @ 000001bf73e9d4c0] Value inf for parameter &#x27;time_base&#x27; out of range [0 - 2.14748e&#x2B;09]&#xA;    Last message repeated 3 times&#xA;[abuffer @ 000001bf73e9d4c0] Error setting option time_base to value 1/0.&#xA;[graph_0_in_0_0 @ 000001bf73eaa0c0] Error applying options to the filter.&#xA;Error configuring filter graph&#xA;Conversion failed!&#xA;</module>

    &#xA;


    &#xA;
  • Extracting mp3 from mp4 via FFMPEG doesn't apply audio bitrate

    17 juillet 2021, par Mohammad Zamanian

    I want to extract a simplified mono low bitrate low frequency and basically low sized audio from any mp4 file. I use the following FFMPEG command but the resulting audio somehow has 2 channels and its bitrate is the same as the original audio from mp4.

    &#xA;

    ffmpeg.exe -report -y -i "{mp4}" -vn -acodec libmp3lame -ac 1 -ab 64k -ar 24000 -f mp3 output "{mp3}"&#xA;

    &#xA;

    Here is my report :

    &#xA;

    ffmpeg started on 2021-07-17 at 18:30:20&#xA;Report written to "ffmpeg-20210717-183020.log"&#xA;Log level: 48&#xA;Command line:&#xA;"C:\\ffmpeg\\bin\\ffmpeg.exe" -report -y -i "C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Video1.mp4" -vn -acodec libmp3lame -ac 1 -ab 64k -f mp3 output "C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Audio.mp3"&#xA;ffmpeg version 4.3.1-2021-01-01-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 10.2.0 (Rev5, Built by MSYS2 project)&#xA;  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-l  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Splitting the commandline.&#xA;Reading option &#x27;-report&#x27; ... matched as option &#x27;report&#x27; (generate a report) with argument &#x27;1&#x27;.&#xA;Reading option &#x27;-y&#x27; ... matched as option &#x27;y&#x27; (overwrite output files) with argument &#x27;1&#x27;.&#xA;Reading option &#x27;-i&#x27; ... matched as input url with argument &#x27;C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Video1.mp4&#x27;.&#xA;Reading option &#x27;-vn&#x27; ... matched as option &#x27;vn&#x27; (disable video) with argument &#x27;1&#x27;.&#xA;Reading option &#x27;-acodec&#x27; ... matched as option &#x27;acodec&#x27; (force audio codec (&#x27;copy&#x27; to copy stream)) with argument &#x27;libmp3lame&#x27;.&#xA;Reading option &#x27;-ac&#x27; ... matched as option &#x27;ac&#x27; (set number of audio channels) with argument &#x27;1&#x27;.&#xA;Reading option &#x27;-ab&#x27; ... matched as option &#x27;ab&#x27; (audio bitrate (please use -b:a)) with argument &#x27;64k&#x27;.&#xA;Reading option &#x27;-f&#x27; ... matched as option &#x27;f&#x27; (force format) with argument &#x27;mp3&#x27;.&#xA;Reading option &#x27;output&#x27; ... matched as output url.&#xA;Reading option &#x27;C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Audio.mp3&#x27; ... matched as output url.&#xA;Finished splitting the commandline.&#xA;Parsing a group of options: global .&#xA;Applying option report (generate a report) with argument 1.&#xA;Applying option y (overwrite output files) with argument 1.&#xA;Successfully parsed a group of options.&#xA;Parsing a group of options: input url C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Video1.mp4.&#xA;Successfully parsed a group of options.&#xA;Opening an input file: C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Video1.mp4.&#xA;[NULL @ 000002e7d956ed40] Opening &#x27;C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Video1.mp4&#x27; for reading&#xA;[file @ 000002e7d956fd80] Setting default whitelist &#x27;file,crypto,data&#x27;&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000002e7d956ed40] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000002e7d956ed40] ISO: File Type Major Brand: mp42&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000002e7d956ed40] Unknown dref type 0x206c7275 size 12&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000002e7d956ed40] Setting codecpar->delay to 1 for stream st: 0&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000002e7d956ed40] Unknown dref type 0x206c7275 size 12&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000002e7d956ed40] Before avformat_find_stream_info() pos: 139797 bytes read:65536 seeks:1 nb_streams:2&#xA;[h264 @ 000002e7d9570c00] nal_unit_type: 7(SPS), nal_ref_idc: 3&#xA;[h264 @ 000002e7d9570c00] nal_unit_type: 8(PPS), nal_ref_idc: 3&#xA;[h264 @ 000002e7d9570c00] nal_unit_type: 5(IDR), nal_ref_idc: 3&#xA;[h264 @ 000002e7d9570c00] Format yuv420p chosen by get_format().&#xA;[h264 @ 000002e7d9570c00] Reinit context to 1920x1088, pix_fmt: yuv420p&#xA;[h264 @ 000002e7d9570c00] no picture &#xA;[h264 @ 000002e7d9570c00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2&#xA;[h264 @ 000002e7d9570c00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0&#xA;[h264 @ 000002e7d9570c00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0&#xA;[h264 @ 000002e7d9570c00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0&#xA;[h264 @ 000002e7d9570c00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2&#xA;[h264 @ 000002e7d9570c00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0&#xA;[h264 @ 000002e7d9570c00] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 0&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000002e7d956ed40] All info found&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000002e7d956ed40] After avformat_find_stream_info() pos: 158020 bytes read:65536 seeks:1 frames:11&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Video1.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    creation_time   : 2020-11-24T06:56:49.000000Z&#xA;  Duration: 00:00:56.45, start: 0.000000, bitrate: 893 kb/s&#xA;    Stream #0:0(eng), 10, 1/30000: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 749 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-11-24T06:56:49.000000Z&#xA;      handler_name    : Mainconcept Video Media Handler&#xA;      encoder         : AVC Coding&#xA;    Stream #0:1(eng), 1, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-11-24T06:56:49.000000Z&#xA;      handler_name    : #Mainconcept MP4 Sound Media Handler&#xA;Successfully opened the file.&#xA;Parsing a group of options: output url output.&#xA;Applying option vn (disable video) with argument 1.&#xA;Applying option acodec (force audio codec (&#x27;copy&#x27; to copy stream)) with argument libmp3lame.&#xA;Applying option ac (set number of audio channels) with argument 1.&#xA;Applying option ab (audio bitrate (please use -b:a)) with argument 64k.&#xA;Applying option f (force format) with argument mp3.&#xA;Successfully parsed a group of options.&#xA;Opening an output file: output.&#xA;[file @ 000002e7d958e340] Setting default whitelist &#x27;file,crypto,data&#x27;&#xA;Successfully opened the file.&#xA;Parsing a group of options: output url C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Audio.mp3.&#xA;Successfully parsed a group of options.&#xA;Opening an output file: C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Audio.mp3.&#xA;[file @ 000002e7da1bc480] Setting default whitelist &#x27;file,crypto,data&#x27;&#xA;Successfully opened the file.&#xA;Stream mapping:&#xA;  Stream #0:1 -> #0:0 (aac (native) -> mp3 (libmp3lame))&#xA;  Stream #0:1 -> #1:0 (aac (native) -> mp3 (libmp3lame))&#xA;Press [q] to stop, [?] for help&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:0 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;detected 8 logical cores&#xA;[graph_0_in_0_1 @ 000002e7dac2b7c0] Setting &#x27;time_base&#x27; to value &#x27;1/44100&#x27;&#xA;[graph_0_in_0_1 @ 000002e7dac2b7c0] Setting &#x27;sample_rate&#x27; to value &#x27;44100&#x27;&#xA;[graph_0_in_0_1 @ 000002e7dac2b7c0] Setting &#x27;sample_fmt&#x27; to value &#x27;fltp&#x27;&#xA;[graph_0_in_0_1 @ 000002e7dac2b7c0] Setting &#x27;channel_layout&#x27; to value &#x27;0x3&#x27;&#xA;[graph_0_in_0_1 @ 000002e7dac2b7c0] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3&#xA;[format_out_0_0 @ 000002e7dac2b8c0] Setting &#x27;sample_fmts&#x27; to value &#x27;s32p|fltp|s16p&#x27;&#xA;[format_out_0_0 @ 000002e7dac2b8c0] Setting &#x27;sample_rates&#x27; to value &#x27;44100|48000|32000|22050|24000|16000|11025|12000|8000&#x27;&#xA;[format_out_0_0 @ 000002e7dac2b8c0] Setting &#x27;channel_layouts&#x27; to value &#x27;0x4&#x27;&#xA;[format_out_0_0 @ 000002e7dac2b8c0] auto-inserting filter &#x27;auto_resampler_0&#x27; between the filter &#x27;Parsed_anull_0&#x27; and the filter &#x27;format_out_0_0&#x27;&#xA;[AVFilterGraph @ 000002e7da1bdfc0] query_formats: 4 queried, 7 merged, 3 already done, 0 delayed&#xA;[auto_resampler_0 @ 000002e7d958edc0] [SWR @ 000002e7d95fd240] Using fltp internally between filters&#xA;[auto_resampler_0 @ 000002e7d958edc0] [SWR @ 000002e7d95fd240] Matrix coefficients:&#xA;[auto_resampler_0 @ 000002e7d958edc0] [SWR @ 000002e7d95fd240] FC: FL:0.707107 FR:0.707107 &#xA;[auto_resampler_0 @ 000002e7d958edc0] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:1 chl:mono fmt:fltp r:44100Hz&#xA;Output #0, mp3, to &#x27;output&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    TSSE            : Lavf58.45.100&#xA;    Stream #0:0(eng), 0, 1/44100: Audio: mp3 (libmp3lame), 44100 Hz, mono, fltp, 64 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-11-24T06:56:49.000000Z&#xA;      handler_name    : #Mainconcept MP4 Sound Media Handler&#xA;      encoder         : Lavc58.91.100 libmp3lame&#xA;[graph_1_in_0_1 @ 000002e7d9a5bf00] Setting &#x27;time_base&#x27; to value &#x27;1/44100&#x27;&#xA;[graph_1_in_0_1 @ 000002e7d9a5bf00] Setting &#x27;sample_rate&#x27; to value &#x27;44100&#x27;&#xA;[graph_1_in_0_1 @ 000002e7d9a5bf00] Setting &#x27;sample_fmt&#x27; to value &#x27;fltp&#x27;&#xA;[graph_1_in_0_1 @ 000002e7d9a5bf00] Setting &#x27;channel_layout&#x27; to value &#x27;0x3&#x27;&#xA;[graph_1_in_0_1 @ 000002e7d9a5bf00] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3&#xA;[format_out_1_0 @ 000002e7da1b8580] Setting &#x27;sample_fmts&#x27; to value &#x27;s32p|fltp|s16p&#x27;&#xA;[format_out_1_0 @ 000002e7da1b8580] Setting &#x27;sample_rates&#x27; to value &#x27;44100|48000|32000|22050|24000|16000|11025|12000|8000&#x27;&#xA;[format_out_1_0 @ 000002e7da1b8580] Setting &#x27;channel_layouts&#x27; to value &#x27;0x4|0x3&#x27;&#xA;[AVFilterGraph @ 000002e7da1be5c0] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed&#xA;Output #1, mp3, to &#x27;C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Audio.mp3&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    TSSE            : Lavf58.45.100&#xA;    Stream #1:0(eng), 0, 1/44100: Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-11-24T06:56:49.000000Z&#xA;      handler_name    : #Mainconcept MP4 Sound Media Handler&#xA;      encoder         : Lavc58.91.100 libmp3lame&#xA;cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)&#xA;size=     129kB time=00:00:16.40 bitrate=  64.2kbits/s speed=32.8x    &#xA;size=     254kB time=00:00:32.49 bitrate=  64.1kbits/s speed=32.5x    &#xA;size=     256kB time=00:00:47.83 bitrate=  43.8kbits/s speed=31.8x    &#xA;[out_0_0 @ 000002e7d95b3d40] EOF on sink link out_0_0:default.&#xA;[out_1_0 @ 000002e7d9bae780] EOF on sink link out_1_0:default.&#xA;No more output streams to write to, finishing.&#xA;[libmp3lame @ 000002e7d958dbc0] Trying to remove 175 more samples than there are in the queue&#xA;[libmp3lame @ 000002e7da1bb940] Trying to remove 175 more samples than there are in the queue&#xA;size=     442kB time=00:00:56.45 bitrate=  64.1kbits/s speed=  33x    &#xA;video:0kB audio:1324kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;Input file #0 (C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Video1.mp4):&#xA;  Input stream #0:0 (video): 10 packets read (17858 bytes); &#xA;  Input stream #0:1 (audio): 2431 packets read (886147 bytes); 2431 frames decoded (2489344 samples); &#xA;  Total: 2441 packets (904005 bytes) demuxed&#xA;Output file #0 (output):&#xA;  Output stream #0:0 (audio): 2161 frames encoded (2489344 samples); 2162 packets muxed (451813 bytes); &#xA;  Total: 2162 packets (451813 bytes) muxed&#xA;Output file #1 (C:/Users/ScottRobertson/Desktop/VirtualExhibition/Final Booth Data/1-Abidi (gold)/Video/Audio.mp3):&#xA;  Output stream #1:0 (audio): 2161 frames encoded (2489344 samples); 2162 packets muxed (903627 bytes); &#xA;  Total: 2162 packets (903627 bytes) muxed&#xA;2431 frames successfully decoded, 0 decoding errors&#xA;[AVIOContext @ 000002e7d958e400] Statistics: 2 seeks, 3 writeouts&#xA;[AVIOContext @ 000002e7da1bc580] Statistics: 2 seeks, 5 writeouts&#xA;[AVIOContext @ 000002e7d9578040] Statistics: 2725576 bytes read, 65 seeks&#xA;

    &#xA;

    How can I force the desired audio bitrate ?

    &#xA;

    Also, why is there 2 outputs called Output file #0 and Output file #1 and why the #0 doesn't have any path ?

    &#xA;

  • FFMpeg produces low quality target file with just 1 second length on Ubuntu 20.04

    16 juillet 2021, par Matt

    I'm using FFMpeg locally on a Mac (actually using PHP-FFMpeg) and it's working perfectly. I'm running the same code on an Ubuntu server and whatever I try the output file is a tiny, low quality video with just 1 second length (the original is about 15 seconds).

    &#xA;

    I installed it on the server with

    &#xA;

    sudo apt update&#xA;sudo apt install ffmpeg&#xA;

    &#xA;

    and then restarted the server. To test now I'm running

    &#xA;

    ffmpeg -i source.mp4 target.mp4&#xA;

    &#xA;

    from the terminal and getting this output

    &#xA;

    ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)&#xA;  configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;source.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : iso5&#xA;    minor_version   : 1&#xA;    compatible_brands: isomiso5hlsf&#xA;    creation_time   : 2021-07-16T05:37:58.000000Z&#xA;  Duration: 00:00:00.66, start: 0.000000, bitrate: 74037 kb/s&#xA;    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 640x480 [SAR 1:1 DAR 4:3], 83522 kb/s, 30.20 fps, 600 tbr, 600 tbn, 1200 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-07-16T05:37:58.000000Z&#xA;      handler_name    : Core Media Video&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 1774 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-07-16T05:37:58.000000Z&#xA;      handler_name    : Core Media Audio&#xA;File &#x27;target.mp4&#x27; already exists. Overwrite ? [y/N] y&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;  Stream #0:1 -> #0:1 (aac (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 0x55db778748c0] using SAR=1/1&#xA;[libx264 @ 0x55db778748c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 0x55db778748c0] profile High, level 3.0&#xA;[libx264 @ 0x55db778748c0] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=3 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=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&#xA;frame=    8 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbOutput #0, mp4, to &#x27;target.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : iso5&#xA;    minor_version   : 1&#xA;    compatible_brands: isomiso5hlsf&#xA;    encoder         : Lavf58.29.100&#xA;    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 30.20 fps, 28k tbn, 30.20 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-07-16T05:37:58.000000Z&#xA;      handler_name    : Core Media Video&#xA;      encoder         : Lavc58.54.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 69 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-07-16T05:37:58.000000Z&#xA;      handler_name    : Core Media Audio&#xA;      encoder         : Lavc58.54.100 aac&#xA;frame=   15 fps= 14 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=3 droframe=   18 fps= 11 q=0.0 size=       0kB time=00:00:00.46 bitrate=   0.8kbits/sframe=   18 fps=7.9 q=0.0 size=       0kB time=00:00:00.46 bitrate=   0.8kbits/sframe=   18 fps=6.4 q=0.0 size=       0kB time=00:00:00.46 bitrate=   0.8kbits/sframe=   19 fps=5.8 q=0.0 size=       0kB time=00:00:00.46 bitrate=   0.8kbits/sframe=   19 fps=5.0 q=0.0 size=       0kB time=00:00:00.46 bitrate=   0.8kbits/sframe=   20 fps=4.6 q=0.0 size=       0kB time=00:00:00.46 bitrate=   0.8kbits/s[aac @ 0x55db778a2f00] Queue input is backward in time&#xA;[mp4 @ 0x55db77876100] Non-monotonous DTS in output stream 0:1; previous: 23552, current: 20480; changing to 23553. This may result in incorrect timestamps in the output file.&#xA;[mp4 @ 0x55db77876100] Non-monotonous DTS in output stream 0:1; previous: 23553, current: 21504; changing to 23554. This may result in incorrect timestamps in the output file.&#xA;[mp4 @ 0x55db77876100] Non-monotonous DTS in output stream 0:1; previous: 23554, current: 22528; changing to 23555. This may result in incorrect timestamps in the output file.&#xA;[mp4 @ 0x55db77876100] Non-monotonous DTS in output stream 0:1; previous: 23555, current: 23552; changing to 23556. This may result in incorrect timestamps in the output file.&#xA;frame=   20 fps=3.3 q=-1.0 Lsize=      77kB time=00:00:00.56 bitrate=1122.7kbits/s dup=3 drop=3 speed=0.0936x    &#xA;video:69kB audio:6kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.688508%&#xA;[libx264 @ 0x55db778748c0] frame I:1     Avg QP:22.13  size: 14863&#xA;[libx264 @ 0x55db778748c0] frame P:5     Avg QP:25.37  size:  6279&#xA;[libx264 @ 0x55db778748c0] frame B:14    Avg QP:26.80  size:  1720&#xA;[libx264 @ 0x55db778748c0] consecutive B-frames:  5.0%  0.0% 15.0% 80.0%&#xA;[libx264 @ 0x55db778748c0] mb I  I16..4: 15.9% 65.9% 18.2%&#xA;[libx264 @ 0x55db778748c0] mb P  I16..4: 10.6% 11.7%  1.3%  P16..4: 52.4% 11.2%  5.5%  0.0%  0.0%    skip: 7.4%&#xA;[libx264 @ 0x55db778748c0] mb B  I16..4:  1.0%  1.3%  0.4%  B16..8: 35.8%  3.0%  0.5%  direct: 2.4%  skip:55.6%  L0:41.2% L1:55.5% BI: 3.3%&#xA;[libx264 @ 0x55db778748c0] 8x8 transform intra:56.1% inter:82.3%&#xA;[libx264 @ 0x55db778748c0] coded y,uvDC,uvAC intra: 54.1% 75.0% 21.1% inter: 14.6% 25.2% 0.1%&#xA;[libx264 @ 0x55db778748c0] i16 v,h,dc,p:  9% 19%  3% 70%&#xA;[libx264 @ 0x55db778748c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 18% 24%  5%  6%  9%  6%  6%  6%&#xA;[libx264 @ 0x55db778748c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 20% 16%  6%  7%  7%  6%  5%  3%&#xA;[libx264 @ 0x55db778748c0] i8c dc,h,v,p: 48% 25% 22%  5%&#xA;[libx264 @ 0x55db778748c0] Weighted P-Frames: Y:40.0% UV:40.0%&#xA;[libx264 @ 0x55db778748c0] ref P L0: 62.4% 17.4% 14.3%  5.7%  0.1%&#xA;[libx264 @ 0x55db778748c0] ref B L0: 87.6% 10.7%  1.7%&#xA;[libx264 @ 0x55db778748c0] ref B L1: 95.0%  5.0%&#xA;[libx264 @ 0x55db778748c0] kb/s:849.86&#xA;[aac @ 0x55db778a2f00] Qavg: 4594.708&#xA;

    &#xA;

    Here's what the files look like

    &#xA;

    enter image description here

    &#xA;

    Any ideas what could be wrong ?&#xA;Thanks for your help !

    &#xA;