
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (24)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...)
Sur d’autres sites (6413)
-
M2TS from FREEBOX V6 -> Subtitle issue : Unsupported codec
2 avril 2016, par httpwaysI would like to extract subtitles of an M2TS file coming from my FREEBOX V6.
Below the command I typed :
$ avprobe source.m2ts
avprobe version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2007-2014 the Libav developers
built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[aac @ 0x224c0c0] get_buffer() failed
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[aac @ 0x2267a80] get_buffer() failed
[aac @ 0x224b6a0] get_buffer() failed
[h264 @ 0x2249700] non-existing PPS referenced
[h264 @ 0x2249700] non-existing PPS 0 referenced
[h264 @ 0x2249700] decode_slice_header error
[h264 @ 0x2249700] no frame!
[mpegts @ 0x2244200] max_analyze_duration reached
[mpegts @ 0x2244200] PES packet size mismatch
[mpegts @ 0x2244200] PES packet size mismatch
[mpegts @ 0x2244200] PES packet size mismatch
[mpegts @ 0x2244200] PES packet size mismatch
Input #0, mpegts, from 'source.m2ts':
Duration: 00:55:00.23, start: 19624.453300, bitrate: 4608 kb/s
Program 4106
Stream #0.0[0x140]: Video: h264 (High), yuv420p, 1440x1080 [PAR 4:3 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x14a](fra): Audio: aac, 48000 Hz, stereo, fltp, 66 kb/s
Stream #0.2[0x14b](qad): Audio: aac, 48000 Hz, stereo, fltp, 54 kb/s
Stream #0.3[0x14c](qaa): Audio: aac, 48000 Hz, stereo, fltp, 65 kb/s
Stream #0.4[0x155](fre): Subtitle: [6][0][0][0] / 0x0006
[h264 @ 0x2249f80] Ignoring NAL unit 9 during extradata parsing
Unsupported codec with id 94215 for input stream 4
# avprobe outputAs you can see, I have an unsupported codec for the Subtitle stream n°4 [b]Unsupported codec with id 94215 for input stream 4[/b]
Any idea on how to fix it ?
Below is the mediainfo to show you more information about the file M2TS generated by the FREEBOX V6 :
$ mediainfo source.m2ts
General
ID : 4106 (0x100A)
Complete name : source.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 1.77 GiB
Duration : 54mn 59s
Overall bit rate mode : Variable
Overall bit rate : 4 609 Kbps
Video
ID : 320 (0x140)
Menu ID : 4106 (0x100A)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Format settings, GOP : M=4, N=25
Codec ID : 27
Duration : 54mn 59s
Width : 1 440 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Audio #1
ID : 330 (0x14A)
Menu ID : 4106 (0x100A)
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 2
Format profile : HE-AAC / LC
Muxing mode : ADTS
Codec ID : 15
Duration : 54mn 59s
Bit rate mode : Variable
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz / 24.0 KHz
Compression mode : Lossy
Delay relative to video : -104ms
Language : French
Audio #2
ID : 331 (0x14B)
Menu ID : 4106 (0x100A)
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 2
Format profile : HE-AAC / LC
Muxing mode : ADTS
Codec ID : 15
Duration : 54mn 59s
Bit rate mode : Variable
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz / 24.0 KHz
Compression mode : Lossy
Delay relative to video : -104ms
Language : qad
Audio #3
ID : 332 (0x14C)
Menu ID : 4106 (0x100A)
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 2
Format profile : HE-AAC / LC
Muxing mode : ADTS
Codec ID : 15
Duration : 54mn 59s
Bit rate mode : Variable
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz / 24.0 KHz
Compression mode : Lossy
Delay relative to video : -104ms
Language : qaa
Text #1
ID : 341 (0x155)-100
Menu ID : 4106 (0x100A)
Format : Teletext
Language : French
Text #2
ID : 341 (0x155)-888
Menu ID : 4106 (0x100A)
Format : Teletext Subtitle
Language : French
Text #3
ID : 341 (0x155)-889
Menu ID : 4106 (0x100A)
Format : Teletext Subtitle
Language : French
Menu
ID : 66 (0x42)
Menu ID : 4106 (0x100A)
Duration : 54mn 59s
List : 320 (0x140) (AVC) / 330 (0x14A) (AAC, French) / 331 (0x14B) (AAC, qad) / 332 (0x14C) (AAC, qaa) / 341 (0x155) ()
Language : / French / qad / qaaAs we can, I have 3 Text section which logic with the Teletext subtitle I originnaly have on my internet box...
Thanks for any help
-
Merging two audio files in Android using FFMPEG
3 août 2016, par JeremyI’m working on an application that takes two audio files, and merges them into the respected channels. The way they are being equalized are not as good as I had hoped, So I want to adjust the volume of each file during the mixing phase. I’ve seen a couple of examples online, like this, this, and
[this][3]
.. but none of them are working for me. Can someone direct me in the right direction with this ? Much appreciation !I am using this library to execute : https://github.com/WritingMinds/ffmpeg-android-java
Here is my code (EDIT)
String files = "-i " + mVoiceFile.getAbsolutePath() + " -i " + mBeatFile.getAbsolutePath();
String filter = "-filter_complex [0:a]volume=0.99[a1];[1:a]volume=0.3[a2][a1][a2]amerge=inputs=2,volume=1.3,pan=stereo|c0code>enter code here
and here are my errors from running.
04-06 12:17:34.079 30975-30975/me.rapchat.rapchat E/Studio Process: WARNING: linker: /data/user/0/me.rapchat.rapchat/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
04-06 12:17:34.306 30975-30975/me.rapchat.rapchat E/Studio Process: ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
04-06 12:17:34.306 30975-30975/me.rapchat.rapchat E/Studio Process: built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
04-06 12:17:34.306 30975-30975/me.rapchat.rapchat E/Studio Process: configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
04-06 12:17:34.307 30975-30975/me.rapchat.rapchat E/Studio Process: libavutil 54. 7.100 / 54. 7.100
04-06 12:17:34.307 30975-30975/me.rapchat.rapchat E/Studio Process: libavcodec 56. 1.100 / 56. 1.100
04-06 12:17:34.307 30975-30975/me.rapchat.rapchat E/Studio Process: libavformat 56. 4.101 / 56. 4.101
04-06 12:17:34.307 30975-30975/me.rapchat.rapchat E/Studio Process: libavdevice 56. 0.100 / 56. 0.100
04-06 12:17:34.308 30975-30975/me.rapchat.rapchat E/Studio Process: libavfilter 5. 1.100 / 5. 1.100
04-06 12:17:34.308 30975-30975/me.rapchat.rapchat E/Studio Process: libswscale 3. 0.100 / 3. 0.100
04-06 12:17:34.308 30975-30975/me.rapchat.rapchat E/Studio Process: libswresample 1. 1.100 / 1. 1.100
04-06 12:17:34.308 30975-30975/me.rapchat.rapchat E/Studio Process: libpostproc 53. 0.100 / 53. 0.100
04-06 12:17:34.372 30975-30975/me.rapchat.rapchat E/Studio Process: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/data/user/0/me.rapchat.rapchat/cache/recording.m4a':
04-06 12:17:34.373 30975-30975/me.rapchat.rapchat E/Studio Process: Metadata:
04-06 12:17:34.373 30975-30975/me.rapchat.rapchat E/Studio Process: major_brand : mp42
04-06 12:17:34.373 30975-30975/me.rapchat.rapchat E/Studio Process: minor_version : 0
04-06 12:17:34.374 30975-30975/me.rapchat.rapchat E/Studio Process: compatible_brands: isommp42
04-06 12:17:34.374 30975-30975/me.rapchat.rapchat E/Studio Process: creation_time : 2016-04-06 19:17:33
04-06 12:17:34.374 30975-30975/me.rapchat.rapchat E/Studio Process: Duration: 00:00:01.56, start: 0.000000, bitrate: 144 kb/s
04-06 12:17:34.375 30975-30975/me.rapchat.rapchat E/Studio Process: Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 128 kb/s (default)
04-06 12:17:34.375 30975-30975/me.rapchat.rapchat E/Studio Process: Metadata:
04-06 12:17:34.375 30975-30975/me.rapchat.rapchat E/Studio Process: creation_time : 2016-04-06 19:17:33
04-06 12:17:34.375 30975-30975/me.rapchat.rapchat E/Studio Process: handler_name : SoundHandle
04-06 12:17:34.401 30975-30975/me.rapchat.rapchat E/Studio Process: Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/data/user/0/me.rapchat.rapchat/cache/beats/d3c37d60-ed50-4c00-b454-4e399a7858ff.m4a':
04-06 12:17:34.401 30975-30975/me.rapchat.rapchat E/Studio Process: Metadata:
04-06 12:17:34.401 30975-30975/me.rapchat.rapchat E/Studio Process: major_brand : mp42
04-06 12:17:34.401 30975-30975/me.rapchat.rapchat E/Studio Process: minor_version : 0
04-06 12:17:34.401 30975-30975/me.rapchat.rapchat E/Studio Process: compatible_brands: mp42isom
04-06 12:17:34.401 30975-30975/me.rapchat.rapchat E/Studio Process: creation_time : 1993-11-24 14:46:42
04-06 12:17:34.401 30975-30975/me.rapchat.rapchat E/Studio Process: encoder : Max 0.9.1
04-06 12:17:34.401 30975-30975/me.rapchat.rapchat E/Studio Process: iTunSMPB : 00000000 00000840 000003c0 000000000035dc00 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
04-06 12:17:34.401 30975-30975/me.rapchat.rapchat E/Studio Process: date : 2015
04-06 12:17:34.401 30975-30975/me.rapchat.rapchat E/Studio Process: Duration: 00:01:20.04, start: 0.047891, bitrate: 129 kb/s
04-06 12:17:34.402 30975-30975/me.rapchat.rapchat E/Studio Process: Stream #1:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
04-06 12:17:34.402 30975-30975/me.rapchat.rapchat E/Studio Process: Metadata:
04-06 12:17:34.402 30975-30975/me.rapchat.rapchat E/Studio Process: creation_time : 1993-11-24 14:46:42
04-06 12:17:34.404 30975-30975/me.rapchat.rapchat E/Studio Process: [NULL @ 0xb5e4fc00] Unable to find a suitable output format for '[a1][a2]amerge,pan=stereo|c0me.rapchat.rapchat E/Studio Process: [a1][a2]amerge,pan=stereo|c0me.rapchat.rapchat E/Studio Status Failed: WARNING: linker: /data/user/0/me.rapchat.rapchat/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/data/user/0/me.rapchat.rapchat/cache/recording.m4a':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2016-04-06 19:17:33
Duration: 00:00:01.56, start: 0.000000, bitrate: 144 kb/s
Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 128 kb/s (default)
Metadata:
creation_time : 2016-04-06 19:17:33
handler_name : SoundHandle
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/data/user/0/me.rapchat.rapchat/cache/beats/d3c37d60-ed50-4c00-b454-4e399a7858ff.m4a':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
creation_time : 1993-11-24 14:46:42
encoder : Max 0.9.1
iTunSMPB : 00000000 00000840 000003c0 000000000035dc00 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
date : 2015
Duration: 00:01:20.04, start: 0.047891, bitrate: 129 kb/s
Stream #1:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
creation_time : 1993-11-24 14:46:42
[NULL @ 0xb5e4fc00] Unable to find a suitable output format for '[a1][a2]amerge,pan=stereo|c0code> -
Using FFMPEG Android Library to convert PCM to m4a [duplicate]
11 avril 2016, par CvongrimThis question already has an answer here :
-
ffmpeg Too many bits per frame requested
2 answers
I am using https://github.com/WritingMinds/ffmpeg-android-java.
I have a PCM file that I created using AudioRecord.
I am now trying to convert the PCM file to an m4a file.
Running the following command converts it but it speeds up the audio making the voices on the recording sound like the chipmunks.
Finished command : ffmpeg -f s16be -i /storage/emulated/0/GMT/recordTestNew.pcm -strict -2 -y -c:a aac -b:a 176k /storage/emulated/0/GMT/recordTestFFMPEG.m4a
Which gives
SUCCESS with output : WARNING: linker: /data/user/0/com.globalmedicaltranscriptionapp/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
[s16be @ 0xf72ba000] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, s16be, from '/storage/emulated/0/GMT/recordTestNew.pcm':
Duration: 00:00:02.70, bitrate: 705 kb/s
Stream #0:0: Audio: pcm_s16be, 44100 Hz, 1 channels, s16, 705 kb/s
Output #0, ipod, to '/storage/emulated/0/GMT/recordTestFFMPEG.m4a':
Metadata:
encoder : Lavf56.4.101
Stream #0:0: Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 128 kb/s
Metadata:
encoder : Lavc56.1.100 aac
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16be (native) -> aac (native))
Press [q] to stop, [?] for help
size= 30kB time=00:00:01.90 bitrate= 130.0kbits/s
size= 44kB time=00:00:02.71 bitrate= 131.8kbits/s
video:0kB audio:43kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.801121%The audio clip should actually be about 11 seconds long. The frequency should be 11025, The encoding is using Android’s AudioFormat.ENCODING_PCM_16BIT, the channels are using AndioFormat.CHANNEL_IN_DEFAULT.
This is my first time working with audio so it’s been a struggle. The reason why I am using AudioRecord is because I need the audio files to be in a form that allows me to split them and potentially add new audio clips in the middle.
It seems like an issue due to the frequency not being passed to the output. I tried updating the above command to
Finished command : ffmpeg -f s16be -ar 11025 -i /storage/emulated/0/GMT/recordTestNew.pcm -strict -2 -y -c:a aac /storage/emulated/0/GMT/recordTestFFMPEG.m4a
Which gives
FAILED with output : WARNING: linker: /data/user/0/com.globalmedicaltranscriptionapp/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
[s16be @ 0xf707a000] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, s16be, from '/storage/emulated/0/GMT/recordTestNew.pcm':
Duration: 00:00:10.81, bitrate: 176 kb/s
Stream #0:0: Audio: pcm_s16be, 11025 Hz, 1 channels, s16, 176 kb/s
[aac @ 0xf7043c00] Too many bits per frame requested
Output #0, ipod, to '/storage/emulated/0/GMT/recordTestFFMPEG.m4a':
Stream #0:0: Audio: aac, 0 channels, 128 kb/s
Metadata:
encoder : Lavc56.1.100 aac
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16be (native) -> aac (native))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height04-11 14:22:23.029 11026-11026/com.globalmedicaltranscriptionapp D/AudioPlayer : Finished command : ffmpeg -f s16be -ar 11025 -i /storage/emulated/0/GMT/recordTestNew.pcm -strict -2 -y -c:a aac /storage/emulated/0/GMT/recordTestFFMPEG.m4a
Doing that makes the input seem to have the correct duration and bit rate but then I get the following error.
Stream #0:0 -> #0:0 (pcm_s16be (native) -> aac (native))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heightI have tried a million other configurations but still can’t get it to work.
What am I doing wrong ?
-
ffmpeg Too many bits per frame requested