If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:ffmpegconv

From BoxMatrix


BoxMatrix >> Shell-Commands >> ffmpegconv @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

AVM-Command

Goto:   Examples  -  Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

ffmpegconv converts MP3 or WAV to various Telephony Codec formats.
According to AVM the supported input formats are[1]:

  • WAV format: 8000 Hz, 16-bit, mono (recommended)
  • MP3 format: Fixed data rate, 128 kbit/s, 44.1 kHz, stereo

ffmpegconv is an AVM enhanced stripped down FFmpeg subset and can perform Transcoding, Resampling and Normalizing.
Further stripped down FFmpeg parts used by ffmpegconv are libavcodec.so, libavformat.so and libavutil.so.

AVM added libresample.so for Resampling and Normalizing, libmscodex.so for Speex support and the *optionally loaded*
(no dependency) libceltcodec.so for CELT support.

ffmpegconv requires playerd_tables to be run once before using it. It creates the required ffmpeg_mp3.tables.

fw 7.29 help:

root@fritz2:/var/mod/root# ffmpegconv -?

ffmpegconv convert MP3 / WAV to various formats

       -i <MP3/WAV-infile>
       -o <outfile>
       --limit <kbyte>

       --type 0: PCM (resampled to 16 KHz) 
              1: G.722 (default)
              2: PCM (original) mono 
              3: PCM (original) 
              4: PCM (resampled to 8 KHz) 
              5: Speex (TAM-format)
              6: PCMA-4kHz 0 sec Format (Header: AB AA AA AA) 
              7: PCMA-4Khz 1 sec-Format (Header: AA AA AA AA) 
              8: PCMA 0 sec-Format (Header: AB AB AA AA) 
              9: PCMA 1 sec-Format (Header: AA AB AA AA) 
             10: CELT

	+n/-n: normalize (default)

Output has been altered to add links.

Examples

MOH samples are used by telefon and always PCMA encoded, sample rate and limit depend on available storage space.
Simplified from moh_upload:

ffmpegconv -i <file> -o fx_moh --limit 32 --type 6
ffmpegconv -i <file> -o fx_moh --limit 480 --type 8
ffmpegconv -i <file> -o fx_moh --limit 32 --type 7
ffmpegconv -i <file> -o fx_moh --limit 480 --type 9

TAM voice prompts are used by libtam.so for telefon and always Speex encoded.
Simplified from tam_upload_voice_prompt:

ffmpegconv -i tam_upload -o tam_upload.spx --type 5

Ringtones are stored in the Phonebook for FRITZ!Fon and are either CELT or G.722 encoded.
Simplified from pbd_upload_ringtone:

ffmpegconv -i upload.mp3 -o <file>.celt --limit 240 --type 10 +n
ffmpegconv -i upload.mp3 -o <file>.g722 --limit 240

dect_ringtone_conversion.sh also converts Ringtones.

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.39 source files:

$ strings /bin/ffmpegconv | grep -e '\.c$' -e '\.cpp$'

<empty>  

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-04-19 07:32 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Depends on lib ld.so 22 7.08 - 7.90 Dynamic linker / loader Linux
Depends on lib libavcodec.so 79 5.01 - 7.90 FFmpeg library with audio / video Codecs FFmpeg
Depends on lib libavformat.so 32 5.01 - 6.69 FFmpeg library with (de)muxers for multimedia Containers FFmpeg
Depends on lib libavmcsock.so 57 6.98 - 7.90 Networking, I/O and helper functions AVM
Depends on lib libavutil.so 79 5.01 - 7.90 FFmpeg library with functions for simplifying programming FFmpeg
Depends on lib libbacktrace.so 79 5.01 - 7.90 Crash handler and logger AVM
Depends on lib libc.so 79 5.01 - 7.90 Standard C library Linux
Depends on lib libdl.so 74 5.01 - 7.90 Dynamic linking library Linux
Depends on lib libgcc_s.so 31 5.01 - 6.110 GCC low-level runtime library Linux
Depends on lib libmscodex.so 79 5.04 - 7.90 Audio Codec library for Speex AVM
Depends on lib libpthread.so 74 5.01 - 7.90 POSIX threading library Linux
Depends on lib libresample.so 75 6.10 - 7.90 Audio Resampling, Normalizing and conversion to Mono Linux
12 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-04-19 05:14 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 3272 5.50 - 6.89 /bin 30.4k - 34.4k
FRITZ!Box WLAN 3370 5.59 - 6.56 /bin 29.8k - 34.4k
FRITZ!Box 3390 5.59 - 6.56 /bin 29.8k - 34.4k
FRITZ!Box 3490 (main) 6.20 - 7.30 /bin 29.5k - 35.3k
FRITZ!Box 4020 7.39 /bin 29.6k
FRITZ!Box 4040 6.98 - 7.57 /bin 23.8k - 29.6k
FRITZ!Box 4050 7.57 /bin 29.5k
FRITZ!Box 4060 7.26 - 7.57 /bin 29.4k - 29.6k
FRITZ!Box 5490 (main) 6.51 - 7.29 /bin 29.5k - 35.3k
FRITZ!Box 5491 (main) 7.01 - 7.29 /bin 29.5k - 35.3k
FRITZ!Box 5530 Fiber (main) 7.21 - 7.80 /bin 29.6k - 31.2k
FRITZ!Box 5590 Fiber (arm) 7.27 - 7.90 /bin 29.4k - 29.6k
FRITZ!Box 5690 Pro (arm) 7.59 /bin 29.5k
FRITZ!Box 6320 Cable v1 6.03 - 6.04 /bin 27.6k
FRITZ!Box 6320 Cable v2 6.21 /bin 24.7k
FRITZ!Box 6360 Cable 5.05 - 6.51 /bin 24.7k - 27.6k
FRITZ!Box 6430 Cable (arm) 6.84 - 7.57 /bin 25.9k - 29.6k
FRITZ!Box 6430 Cable (atom) 6.84 - 7.29 /bin 25.9k - 29.4k
FRITZ!Box 6490 Cable (arm) 6.20 - 7.57 /bin 24.7k - 29.6k
FRITZ!Box 6490 Cable (atom) 6.83 - 7.51 /bin 25.9k - 29.4k
FRITZ!Box 6590 Cable (arm) 6.83 - 7.57 /bin 25.9k - 29.6k
FRITZ!Box 6590 Cable (atom) 6.83 - 7.51 /bin 25.9k - 29.4k
FRITZ!Box 6591 Cable (arm) 7.04 - 7.57 /bin 25.8k - 29.7k
FRITZ!Box 6591 Cable (atom) 7.04 - 7.57 /bin 25.8k - 29.7k
FRITZ!Box 6660 Cable (arm) 7.14 - 7.57 /bin 25.8k - 29.9k
FRITZ!Box 6660 Cable (atom) 7.14 - 7.57 /bin 25.8k - 29.9k
FRITZ!Box 6670 Cable (arm) 7.57 - 7.62 /bin 29.6k - 33.6k
FRITZ!Box 6670 Cable (atom) 7.61 - 7.62 /bin 33.6k
FRITZ!Box 6690 Cable (arm) 7.28 - 7.57 /bin 29.5k - 29.6k
FRITZ!Box 6690 Cable (atom) 7.28 - 7.57 /bin 29.5k - 29.6k
FRITZ!Box 6810 LTE 6.35 /bin 30.4k - 34.4k
FRITZ!Box 6820 LTE v1 7.39 /bin 29.6k
FRITZ!Box 6820 LTE v2 7.39 /bin 29.6k
FRITZ!Box 6840 LTE 5.08 - 7.39 /bin 29.6k - 38.6k
FRITZ!Box 6842 LTE /bin 30.4k - 34.4k
FRITZ!Box 6850 LTE 7.21 - 7.58 /bin 29.5k - 31.2k
FRITZ!Box 6850 5G 7.24 - 7.51 /bin 29.5k - 29.6k
FRITZ!Box 6890 LTE 6.84 - 7.51 /bin 29.3k - 35.3k
FRITZ!Box 6890 LTE v1 6.84 - 7.51 /bin 29.3k - 35.3k
FRITZ!Box 6890 LTE v2 6.84 - 7.51 /bin 29.3k - 35.3k
FRITZ!Box Fon WLAN 7240 5.04 - 6.06 /bin 32.8k - 37.1k
FRITZ!Box Fon WLAN 7270 v2 5.01 - 6.06 /bin 30.5k - 41.0k
FRITZ!Box Fon WLAN 7270 v3 5.01 - 6.06 /bin 30.5k - 41.0k
FRITZ!Box 7272 5.55 - 7.39 /bin 29.6k - 34.4k
FRITZ!Box 7312 5.23 - 6.56 /bin 30.4k - 34.4k
FRITZ!Box Fon WLAN 7320 5.09 - 6.35 /bin 30.4k - 34.4k
FRITZ!Box 7330 5.06 - 6.56 /bin 30.4k - 38.6k
FRITZ!Box 7330 SL 5.08 - 6.56 /bin 30.4k - 38.6k
FRITZ!Box Fon WLAN 7340 5.04 - 5.05 /bin 29.9k - 36.8k
FRITZ!Box Fon WLAN 7360 SL 5.04 - 6.34 /bin 30.4k - 38.6k
FRITZ!Box Fon WLAN 7360 v1 5.06 - 6.36 /bin 30.4k - 38.6k
FRITZ!Box Fon WLAN 7360 v2 5.22 - 6.88 /bin 29.8k - 34.4k
FRITZ!Box 7362 SL 5.53 - 7.14 /bin 29.5k - 35.3k
FRITZ!Box 7369 6.30 - 6.32 /bin 30.4k
FRITZ!Box Fon WLAN 7390 5.01 - 5.22 /bin 28.0k - 36.8k
FRITZ!Box 7412 6.21 - 6.88 /bin 29.8k - 30.4k
FRITZ!Box 7430 6.26 - 7.39 /bin 29.5k - 35.3k
FRITZ!Box 7490 (main) 5.57 - 7.57 /bin 29.4k - 35.3k
FRITZ!Box 7510 7.30 - 7.57 /bin 29.4k - 29.5k
FRITZ!Box 7520 6.98 - 7.51 /bin 23.8k - 29.6k
FRITZ!Box 7520 v2 (arm) 7.30 - 7.57 /bin 29.5k - 29.6k
FRITZ!Box 7530 6.98 - 7.56 /bin 23.8k - 29.6k
FRITZ!Box 7530 AX 7.20 - 7.90 /bin 29.6k - 29.7k
FRITZ!Box 7560 6.51 - 7.39 /bin 29.3k - 35.3k
FRITZ!Box 7580 6.53 - 7.30 /bin 29.3k - 35.3k
FRITZ!Box 7581 6.54 - 7.16 /bin 24.0k - 29.6k
FRITZ!Box 7582 6.83 - 7.17 /bin 24.0k - 29.6k
FRITZ!Box 7583 7.01 - 7.57 /bin 29.5k - 35.3k
FRITZ!Box 7583 VDSL 7.19 - 7.31 /bin 31.2k
FRITZ!Box 7590 6.83 - 7.90 /bin 29.3k - 35.3k
FRITZ!Box 7590 AX 7.19 - 7.90 /bin 29.6k - 31.2k
FRITZ!Box 7690 7.59 /bin 29.5k
FRITZ!Repeater 600 7.39 /bin 29.6k
FRITZ!Repeater 1200 7.39 /bin 29.6k
FRITZ!WLAN Repeater 1750E 7.39 /bin 29.6k
FRITZ!Repeater 2400 7.39 /bin 29.6k
FRITZ!Repeater 3000 7.39 /bin 29.6k
FRITZ!Repeater 3000 AX 7.39 /bin 29.6k
FRITZ!Powerline 1260E 7.39 /bin 29.6k
79 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-04-19 07:32 GMT.

Firmware Symbol
5.01 - 7.90 CmdLine_FillValues
5.01 - 7.90 CmdLine_Help
5.01 - 7.90 CmdLine_IsDec
5.01 - 7.90 CmdLine_IsHex
5.01 - 7.90 PrintHelp
5.01 - 6.06 convert_to_mono
5.01 - 7.90 ffmpeg_conv
5.01 - 7.90 ffmpegconv_signalinit
5.01 - 7.90 g722_encode
5.01 - 7.90 g722_encoder_exit
5.01 - 7.90 g722_encoder_init
5.01 - 7.90 g722_file
5.01 - 7.90 g722_hsbcod
5.01 - 7.90 g722_lsbcod
5.01 - 7.90 g722_qmf_tx
7.08 - 7.21 le_be_cpy
6.10 - 7.90 libcelt_close
6.10 - 7.90 libcelt_open
5.01 - 7.90 main
5.01 - 6.06 normalizer_addstatistic
5.01 - 6.06 normalizer_file
5.01 - 6.06 normalizer_init
7.08 - 7.90 pcm4ALaw
5.59 - 7.90 pcma_conv
5.01 - 6.06 resample
5.01 - 6.06 resample_exit
5.01 - 6.06 resample_init
5.04 - 7.90 speex_codec_limit
5.04 - 7.90 speex_encoder
5.04 - 7.90 wav_conv
5.04 - 7.90 wavheader_fileparse
31 symbols for this command

References

SMW-Browser

Information is currently being retrieved from the backend.