Recherche avancée

Médias (91)

Autres articles (111)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (15456)

  • Remove unnecessary avassert.h inclusions

    22 juillet 2021, par Andreas Rheinhardt
    Remove unnecessary avassert.h inclusions
    

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] fftools/ffplay.c
    • [DH] libavcodec/ass.c
    • [DH] libavcodec/cfhd.h
    • [DH] libavcodec/cfhddsp.c
    • [DH] libavcodec/cfhdenc.c
    • [DH] libavcodec/cfhdencdsp.c
    • [DH] libavcodec/dirac_dwt.c
    • [DH] libavcodec/dstdec.c
    • [DH] libavcodec/ffv1.h
    • [DH] libavcodec/g729_parser.c
    • [DH] libavcodec/gif_parser.c
    • [DH] libavcodec/jpeg2000dwt.c
    • [DH] libavcodec/libopenjpegenc.c
    • [DH] libavcodec/libuavs3d.c
    • [DH] libavcodec/movtextenc.c
    • [DH] libavcodec/nvenc.c
    • [DH] libavcodec/photocd.c
    • [DH] libavcodec/rasc.c
    • [DH] libavcodec/sga.c
    • [DH] libavcodec/sgidec.c
    • [DH] libavdevice/v4l2-common.h
    • [DH] libavdevice/v4l2.c
    • [DH] libavfilter/aeval.c
    • [DH] libavfilter/af_agate.c
    • [DH] libavfilter/af_aiir.c
    • [DH] libavfilter/af_alimiter.c
    • [DH] libavfilter/af_amultiply.c
    • [DH] libavfilter/af_anlms.c
    • [DH] libavfilter/af_asetnsamples.c
    • [DH] libavfilter/af_asr.c
    • [DH] libavfilter/af_axcorrelate.c
    • [DH] libavfilter/af_join.c
    • [DH] libavfilter/af_lv2.c
    • [DH] libavfilter/af_mcompand.c
    • [DH] libavfilter/af_sidechaincompress.c
    • [DH] libavfilter/avf_abitscope.c
    • [DH] libavfilter/avf_aphasemeter.c
    • [DH] libavfilter/avf_concat.c
    • [DH] libavfilter/avf_showcqt.c
    • [DH] libavfilter/buffersrc.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_depth2space.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_mathbinary.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_mathunary.c
    • [DH] libavfilter/dnn/dnn_backend_native_layer_maximum.c
    • [DH] libavfilter/dnn/queue.c
    • [DH] libavfilter/drawutils.c
    • [DH] libavfilter/f_loop.c
    • [DH] libavfilter/src_movie.c
    • [DH] libavfilter/trim.c
    • [DH] libavfilter/vf_bm3d.c
    • [DH] libavfilter/vf_bwdif.c
    • [DH] libavfilter/vf_cover_rect.c
    • [DH] libavfilter/vf_datascope.c
    • [DH] libavfilter/vf_deinterlace_vaapi.c
    • [DH] libavfilter/vf_epx.c
    • [DH] libavfilter/vf_fftdnoiz.c
    • [DH] libavfilter/vf_freezedetect.c
    • [DH] libavfilter/vf_freezeframes.c
    • [DH] libavfilter/vf_fspp.c
    • [DH] libavfilter/vf_histogram.c
    • [DH] libavfilter/vf_lensfun.c
    • [DH] libavfilter/vf_median.c
    • [DH] libavfilter/vf_mestimate.c
    • [DH] libavfilter/vf_minterpolate.c
    • [DH] libavfilter/vf_misc_vaapi.c
    • [DH] libavfilter/vf_nnedi.c
    • [DH] libavfilter/vf_overlay_qsv.c
    • [DH] libavfilter/vf_pp7.c
    • [DH] libavfilter/vf_procamp_vaapi.c
    • [DH] libavfilter/vf_scale.c
    • [DH] libavfilter/vf_scale_vaapi.c
    • [DH] libavfilter/vf_scdet.c
    • [DH] libavfilter/vf_showpalette.c
    • [DH] libavfilter/vf_shuffleframes.c
    • [DH] libavfilter/vf_spp.c
    • [DH] libavfilter/vf_tonemap_vaapi.c
    • [DH] libavfilter/vf_tpad.c
    • [DH] libavfilter/vf_transpose_opencl.c
    • [DH] libavfilter/vf_transpose_vaapi.c
    • [DH] libavfilter/vf_vignette.c
    • [DH] libavfilter/vf_vpp_qsv.c
    • [DH] libavfilter/vf_waveform.c
    • [DH] libavfilter/vf_xbr.c
    • [DH] libavfilter/vf_yadif.c
    • [DH] libavfilter/vf_zoompan.c
    • [DH] libavfilter/vf_zscale.c
    • [DH] libavfilter/video.c
    • [DH] libavformat/aaxdec.c
    • [DH] libavformat/apm.c
    • [DH] libavformat/concatdec.c
    • [DH] libavformat/dash.c
    • [DH] libavformat/fifo_test.c
    • [DH] libavformat/gif.c
    • [DH] libavformat/hashenc.c
    • [DH] libavformat/img2enc.c
    • [DH] libavformat/imx.c
    • [DH] libavformat/libsrt.c
    • [DH] libavformat/mxfdec.c
    • [DH] libavformat/rawdec.c
    • [DH] libavformat/rtpdec_asf.c
    • [DH] libavformat/sapdec.c
    • [DH] libavformat/subfile.c
    • [DH] libavformat/subtitles.c
    • [DH] libavformat/tests/fifo_muxer.c
    • [DH] libavformat/westwood_audenc.c
    • [DH] libavutil/avsscanf.c
    • [DH] libavutil/bprint.c
    • [DH] libavutil/mem.c
    • [DH] libavutil/tests/bprint.c
    • [DH] libavutil/tx_priv.h
  • 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 h264_v4l2m2m to rtmp

    6 juillet 2021, par KnightRex

    On an up to date Raspberry Pi 4 B+ 4GB with the Raspberry OS 32bit I'm attempting to stream to an rtmp service, like Youtube or Twitch with FFmpeg using the hardware encoder h264_v4l2m2m but it fails.

    &#xA;

    Issue

    &#xA;

    When streaming the streaming service it ingests the input, bitrate and goes live but no output is shown. When connecting to Twitch the stream inspector correctly detects video resolution but fails to detect the codec or fps.

    &#xA;

    When I replace the stream output to for example a file, test.flv, it records a viewable video with the correct codec (h264/aac) codecs in vlc and ffplay.

    &#xA;

    When I replace the h264_v4l2m2m encoder with h264_omx it streams the video correctly.

    &#xA;

    Steps

    &#xA;

      &#xA;
    • Installed a clean version of the latest Raspi OS 32bit

      &#xA;

    • &#xA;

    • Recompiled FFmpeg to 4.3.2 (to the solve green screen)

      &#xA;

    • &#xA;

    • Record video, creates viewable video :

      &#xA;

      ffmpeg \&#xA;-f v4l2 -input_format mjpeg -video_size 1280x720 -framerate 30 -i /dev/video0 \&#xA;-c:v h264_v4l2m2m -g 60 -pix_fmt yuv420p -b:v 3000k -minrate 3000k -maxrate 3000k -r 30 -an \&#xA;-t 15 test.flv&#xA;

      &#xA;

    • &#xA;

    • Start stream, unable to view :

      &#xA;

      ffmpeg \&#xA;-f v4l2 -input_format mjpeg -video_size 1280x720 -framerate 30 -i /dev/video0 \&#xA;-c:v h264_v4l2m2m -g 60 -pix_fmt yuv420p -b:v 3000k -minrate 3000k -maxrate 3000k -r 30 -an \&#xA;-f flv "<destination uri="uri">"&#xA;</destination>

      &#xA;

    • &#xA;

    • Start stream, unable to view (Extended based on comments below) :

      &#xA;

      ffmpeg \&#xA; -re -f lavfi -i anullsrc \&#xA; -f v4l2 -input_format mjpeg -video_size 1280x720 -framerate 30 -i /dev/video0 \&#xA; -c:v h264_v4l2m2m -g 60 -pix_fmt yuv420p -b:v 3000k -minrate 3000k -maxrate 3000k -r 30 \&#xA; -c:a aac \&#xA; -f flv "<destination uri="uri">"&#xA;</destination>

      &#xA;

    • &#xA;

    • Start stream, with omx works :

      &#xA;

      ffmpeg \&#xA;-f v4l2 -input_format mjpeg -video_size 1280x720 -framerate 30 -i /dev/video0 \&#xA;-c:v h264_omx -preset ultrafast -pix_fmt yuv420p -g 60 -b:v 3000k -minrate 3000k -maxrate 3000k -r 30 -an \&#xA;-f flv "<destination uri="uri">"&#xA;</destination>

      &#xA;

    • &#xA;

    &#xA;

    Output

    &#xA;

    With h264_v4l2m2m (invalid output - loglevel verbose) :

    &#xA;

    $ ffmpeg -re -f lavfi -i anullsrc  -f v4l2 -input_format mjpeg -video_size 1280x720 -framerate 30 -i /dev/video0  -c:v h264_v4l2m2m -g 60 -pix_fmt yuv420p -b:v 3000k -minrate 3000k -maxrate 3000k -r 30 -c:a aac -f flv <destination url="url">&#xA;ffmpeg version n4.3.2 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 8 (Raspbian 8.3.0-6&#x2B;rpi1)&#xA;  configuration: --prefix=/home/pi/ffmpeg_build --bindir=/home/pi/bin --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=&#x27;-lpthread -lm -latomic&#x27; --enable-omx --enable-encoder=h264_omx&#xA;  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;[Parsed_anullsrc_0 @ 0x7215c0] sample_rate:44100 channel_layout:&#x27;stereo&#x27; nb_samples:1024&#xA;Input #0, lavfi, from &#x27;anullsrc&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: 705 kb/s&#xA;    Stream #0:0: Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s&#xA;[video4linux2,v4l2 @ 0x725350] fd:3 capabilities:84a00001&#xA;[mjpeg @ 0x1e10210] EOI missing, emulating&#xA;Input #1, video4linux2,v4l2, from &#x27;/dev/video0&#x27;:&#xA;  Duration: N/A, start: 42396.344658, bitrate: N/A&#xA;    Stream #1:0: Video: mjpeg (Baseline), yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 30 fps, 30 tbr, 1000k tbn, 1000k tbc&#xA;[tcp @ 0x72cac0] Starting connection attempt to <destination ip="ip"> port 1935&#xA;[tcp @ 0x72cac0] Successfully connected to <destination ip="ip"> port 1935&#xA;Stream mapping:&#xA;  Stream #1:0 -> #0:0 (mjpeg (native) -> h264 (h264_v4l2m2m))&#xA;  Stream #0:0 -> #0:1 (pcm_u8 (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[graph 0 input from stream 1:0 @ 0x73de00] w:1280 h:720 pixfmt:yuvj422p tb:1/1000000 fr:30/1 sar:0/1 sws_param:flags=2&#xA;[auto_scaler_0 @ 0x745400] w:iw h:ih flags:&#x27;bicubic&#x27; interl:0&#xA;[format @ 0x73e750] auto-inserting filter &#x27;auto_scaler_0&#x27; between the filter &#x27;Parsed_null_0&#x27; and the filter &#x27;format&#x27;&#xA;[swscaler @ 0x1e300b0] deprecated pixel format used, make sure you did set range correctly&#xA;[auto_scaler_0 @ 0x745400] w:1280 h:720 fmt:yuvj422p sar:0/1 -> w:1280 h:720 fmt:yuv420p sar:0/1 flags:0x4&#xA;[h264_v4l2m2m @ 0x72a500] driver &#x27;bcm2835-codec&#x27; on card &#x27;bcm2835-codec-isp&#x27;&#xA;[h264_v4l2m2m @ 0x72a500] driver &#x27;uvcvideo&#x27; on card &#x27;USB Video: USB Video&#x27;&#xA;    Last message repeated 1 times&#xA;[h264_v4l2m2m @ 0x72a500] driver &#x27;bcm2835-codec&#x27; on card &#x27;bcm2835-codec-encode&#x27;&#xA;[h264_v4l2m2m @ 0x72a500] Using device /dev/video11&#xA;[h264_v4l2m2m @ 0x72a500] driver &#x27;bcm2835-codec&#x27; on card &#x27;bcm2835-codec-encode&#x27;&#xA;[h264_v4l2m2m @ 0x72a500] Failed to set number of B-frames&#xA;    Last message repeated 1 times&#xA;[h264_v4l2m2m @ 0x72a500] Failed to set gop size&#xA;[h264_v4l2m2m @ 0x72a500] h264 profile not found&#xA;[h264_v4l2m2m @ 0x72a500] Encoder adjusted: qmin (0), qmax (51)&#xA;[h264_v4l2m2m @ 0x72a500] Failed to set minimum video quantizer scale&#xA;[h264_v4l2m2m @ 0x72a500] Failed to set maximum video quantizer scale&#xA;[graph_1_in_0_0 @ 0x786f90] tb:1/44100 samplefmt:u8 samplerate:44100 chlayout:0x3&#xA;[format_out_0_1 @ 0x7871d0] auto-inserting filter &#x27;auto_resampler_0&#x27; between the filter &#x27;Parsed_anull_0&#x27; and the filter &#x27;format_out_0_1&#x27;&#xA;[auto_resampler_0 @ 0x7887f0] ch:2 chl:stereo fmt:u8 r:44100Hz -> ch:2 chl:stereo fmt:fltp r:44100Hz&#xA;Output #0, flv, to &#x27;<destination url="url">&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0: Video: h264 (h264_v4l2m2m) ([7][0][0][0] / 0x0007), yuv420p(progressive), 1280x720, q=-1--1, 3000 kb/s, 30 fps, 1k tbn, 30 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 h264_v4l2m2m&#xA;    Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 aac&#xA;[video4linux2,v4l2 @ 0x1e0f410] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)&#xA;frame= 1966 fps= 24 q=-0.0 size=   13016kB time=00:01:23.60 bitrate=1275.4kbits/s speed=   1x&#xA;</destination></destination></destination></destination>

    &#xA;

      &#xA;
    • deprecated pixel format yuvy422p : video0 has mjpeg and raw output in pixel format yuvy422p.
    • &#xA;

    &#xA;

    With h264 omx (works)

    &#xA;

      libavutil      56. 22.100 / 56. 22.100&#xA;  libavcodec     58. 35.100 / 58. 35.100&#xA;  libavformat    58. 20.100 / 58. 20.100&#xA;  libavdevice    58.  5.100 / 58.  5.100&#xA;  libavfilter     7. 40.101 /  7. 40.101&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  3.100 /  5.  3.100&#xA;  libswresample   3.  3.100 /  3.  3.100&#xA;  libpostproc    55.  3.100 / 55.  3.100&#xA;Input #0, lavfi, from &#x27;anullsrc&#x27;:&#xA;  Duration: N/A, start: 0.000000, bitrate: 705 kb/s&#xA;    Stream #0:0: Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s&#xA;[mjpeg @ 0x7c7320] EOI missing, emulating&#xA;Input #0, video4linux2,v4l2, from &#x27;/dev/video0&#x27;:&#xA;  Duration: N/A, start: 71.378330, bitrate: N/A&#xA;    Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 1280x720, 30 fps, 30 tbr, 1000k tbn, 1000k tbc&#xA;Codec AVOption preset (Configuration preset) specified for output file #0 (<destination url="url">) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (h264_omx))&#xA;  Stream #0:0 -> #0:1 (pcm_u8 (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 0x7e5180] deprecated pixel format used, make sure you did set range correctly&#xA;[h264_omx @ 0x7cb800] Using OMX.broadcom.video_encode&#xA;Output #0, flv, to &#x27;<destination url="url">&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.20.100&#xA;    Stream #0:0: Video: h264 (h264_omx) ([7][0][0][0] / 0x0007), yuv420p(progressive), 1280x720, q=2-31, 3000 kb/s, 30 fps, 1k tbn, 30 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.35.100 h264_omx&#xA;    Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc58.35.100 aac&#xA;[flv @ 0x7ca190] Failed to update header with correct duration.rate=1438.3kbits/s speed=   1x&#xA;[flv @ 0x7ca190] Failed to update header with correct filesize.&#xA;frame= 2190 fps= 24 q=-0.0 Lsize=   16424kB time=00:01:33.20 bitrate=1443.6kbits/s speed=   1x&#xA;</destination></destination>

    &#xA;