
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (90)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccé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 (...)
Sur d’autres sites (10517)
-
No output file when converting audio using FFmpeg in Android
18 mars 2017, par ShaI’m trying to convert
m4a
audio file towav
using FFmpeg. The code executes fine and gives no error, but I don’t see any output file in my directory.This is what I am executing :
String[] cmd = {"-y", "-i", "/storage/emulated/0/jd.m4a", "-f","wav" ,"/storage/emulated/0/DCIM/Camera/output.wav"};
And this is what gets printed :
03-17 15:40:51.539 10111-10111/io.whispero.soundmerger E/onProgress: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
03-17 15:40:51.542 10111-10111/io.whispero.soundmerger E/onProgress: built with gcc 4.8 (GCC)
03-17 15:40:51.545 10111-10111/io.whispero.soundmerger E/onProgress: configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --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/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
03-17 15:40:51.547 10111-10111/io.whispero.soundmerger E/onProgress: libavutil 55. 17.103 / 55. 17.103
03-17 15:40:51.552 10111-10111/io.whispero.soundmerger E/onProgress: libavcodec 57. 24.102 / 57. 24.102
03-17 15:40:51.554 10111-10111/io.whispero.soundmerger E/onProgress: libavformat 57. 25.100 / 57. 25.100
03-17 15:40:51.556 10111-10111/io.whispero.soundmerger E/onProgress: libavdevice 57. 0.101 / 57. 0.101
03-17 15:40:51.559 10111-10111/io.whispero.soundmerger E/onProgress: libavfilter 6. 31.100 / 6. 31.100
03-17 15:40:51.561 10111-10111/io.whispero.soundmerger E/onProgress: libswscale 4. 0.100 / 4. 0.100
03-17 15:40:51.562 10111-10111/io.whispero.soundmerger E/onProgress: libswresample 2. 0.101 / 2. 0.101
03-17 15:40:51.564 10111-10111/io.whispero.soundmerger E/onProgress: libpostproc 54. 0.100 / 54. 0.100
03-17 15:40:51.581 10111-10111/io.whispero.soundmerger E/onProgress: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/jd.m4a':
03-17 15:40:51.585 10111-10111/io.whispero.soundmerger E/onProgress: Metadata:
03-17 15:40:51.587 10111-10111/io.whispero.soundmerger E/onProgress: major_brand : M4A
03-17 15:40:51.589 10111-10111/io.whispero.soundmerger E/onProgress: minor_version : 0
03-17 15:40:51.593 10111-10111/io.whispero.soundmerger E/onProgress: compatible_brands: M4A mp42isom
03-17 15:40:51.595 10111-10111/io.whispero.soundmerger E/onProgress: creation_time : 2017-02-16 10:36:39
03-17 15:40:51.597 10111-10111/io.whispero.soundmerger E/onProgress: Duration: 00:00:03.39, start: 0.000000, bitrate: 82 kb/s
03-17 15:40:51.602 10111-10111/io.whispero.soundmerger E/onProgress: Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 24 kb/s (default)
03-17 15:40:51.608 10111-10111/io.whispero.soundmerger E/onProgress: Metadata:
03-17 15:40:51.612 10111-10111/io.whispero.soundmerger E/onProgress: creation_time : 2017-02-16 10:36:39
03-17 15:40:51.614 10111-10111/io.whispero.soundmerger E/onProgress: Output #0, wav, to '/storage/emulated/0/DCIM/Camera/hyder.wav':
03-17 15:40:51.617 10111-10111/io.whispero.soundmerger E/onProgress: Metadata:
03-17 15:40:51.619 10111-10111/io.whispero.soundmerger E/onProgress: major_brand : M4A
03-17 15:40:51.621 10111-10111/io.whispero.soundmerger E/onProgress: minor_version : 0
03-17 15:40:51.623 10111-10111/io.whispero.soundmerger E/onProgress: compatible_brands: M4A mp42isom
03-17 15:40:51.625 10111-10111/io.whispero.soundmerger E/onProgress: ISFT : Lavf57.25.100
03-17 15:40:51.627 10111-10111/io.whispero.soundmerger E/onProgress: Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s (default)
03-17 15:40:51.629 10111-10111/io.whispero.soundmerger E/onProgress: Metadata:
03-17 15:40:51.631 10111-10111/io.whispero.soundmerger E/onProgress: creation_time : 2017-02-16 10:36:39
03-17 15:40:51.633 10111-10111/io.whispero.soundmerger E/onProgress: encoder : Lavc57.24.102 pcm_s16le
03-17 15:40:51.636 10111-10111/io.whispero.soundmerger E/onProgress: Stream mapping:
03-17 15:40:51.639 10111-10111/io.whispero.soundmerger E/onProgress: Stream #0:0 -> #0:0 (aac (native) -> pcm_s16le (native))
03-17 15:40:51.642 10111-10111/io.whispero.soundmerger E/onProgress: Press [q] to stop, [?] for help
03-17 15:40:51.645 10111-10111/io.whispero.soundmerger E/onProgress: size= 106kB time=00:00:03.39 bitrate= 256.2kbits/s speed= 181x
03-17 15:40:51.647 10111-10111/io.whispero.soundmerger E/onProgress: video:0kB audio:106kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.071860%
03-17 15:40:51.650 10111-10111/io.whispero.soundmerger E/SUCCESS: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --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/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/jd.m4a':
Metadata:
major_brand : M4A
minor_version : 0
compatible_brands: M4A mp42isom
creation_time : 2017-02-16 10:36:39
Duration: 00:00:03.39, start: 0.000000, bitrate: 82 kb/s
Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, mono, fltp, 24 kb/s (default)
Metadata:
creation_time : 2017-02-16 10:36:39
Output #0, wav, to '/storage/emulated/0/DCIM/Camera/hyder.wav':
Metadata:
major_brand : M4A
minor_version : 0
compatible_brands: M4A mp42isom
ISFT : Lavf57.25.100
Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s (default)
Metadata:
creation_time : 2017-02-16 10:36:39
encoder : Lavc57.24.102 pcm_s16le
Stream mapping:
Stream #0:0 -> #0:0 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
size= 106kB time=00:00:03.39 bitrate= 256.2kbits/s speed= 181x
video:0kB audio:106kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.071860%
03-17 15:40:51.653 10111-10111/io.whispero.soundmerger E/onFinish: onFinishPlease help why I am not seeing any output audio file :(
Thanks.
-
FFmpeg "Unrecognized option" error when trying to merge 2 audio files in Android
20 mars 2017, par ShaLooked at This and This links to create a command to merge 2 audio files using
ffmpeg
but it’s not working.My command :
String input1 = "/storage/emulated/0/jd.m4a ";
String input2 = "/storage/emulated/0/jd.m4a "; //trying with same audio just to check if it works or not
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>The console output :
03-20 13:52:04.981 32013-32013/io.whispero.soundmerger E/onProgress: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
03-20 13:52:04.981 32013-32013/io.whispero.soundmerger E/onProgress: built with gcc 4.8 (GCC)
03-20 13:52:04.982 32013-32013/io.whispero.soundmerger E/onProgress: configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --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/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
03-20 13:52:04.982 32013-32013/io.whispero.soundmerger E/onProgress: libavutil 55. 17.103 / 55. 17.103
03-20 13:52:04.983 32013-32013/io.whispero.soundmerger E/onProgress: libavcodec 57. 24.102 / 57. 24.102
03-20 13:52:04.983 32013-32013/io.whispero.soundmerger E/onProgress: libavformat 57. 25.100 / 57. 25.100
03-20 13:52:04.984 32013-32013/io.whispero.soundmerger E/onProgress: libavdevice 57. 0.101 / 57. 0.101
03-20 13:52:04.984 32013-32013/io.whispero.soundmerger E/onProgress: libavfilter 6. 31.100 / 6. 31.100
03-20 13:52:04.985 32013-32013/io.whispero.soundmerger E/onProgress: libswscale 4. 0.100 / 4. 0.100
03-20 13:52:04.985 32013-32013/io.whispero.soundmerger E/onProgress: libswresample 2. 0.101 / 2. 0.101
03-20 13:52:04.985 32013-32013/io.whispero.soundmerger E/onProgress: libpostproc 54. 0.100 / 54. 0.100
03-20 13:52:04.986 32013-32013/io.whispero.soundmerger E/onProgress: Unrecognized option 'filter_complex [0:a]volume=0.99[a1];[1:a]volume=0.3[a2];[a1][a2]amerge=inputs=2,volume=1.3,pan=stereo|c0io.whispero.soundmerger E/onProgress: Error splitting the argument list: Option not foundFrom what I can understand is that
ffmpeg
is unable to split and differentiate the inputs, filter and output from thecommand
, but I tried with a lot of variations, still not working :(Please help. Looked around a lot but none of the commands is working.
Thanks in advance !
EDIT :
Added-report
before-filter_complex
and ran. LOG is below AS @Mulvya asked03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: built with gcc 4.8 (GCC)
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --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/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: libavutil 55. 17.103 / 55. 17.103
03-20 16:29:06.830 27671-27671/io.whispero.soundmerger E/onProgress: libavcodec 57. 24.102 / 57. 24.102
03-20 16:29:06.832 27671-27671/io.whispero.soundmerger E/onProgress: libavformat 57. 25.100 / 57. 25.100
03-20 16:29:06.832 27671-27671/io.whispero.soundmerger E/onProgress: libavdevice 57. 0.101 / 57. 0.101
03-20 16:29:06.833 27671-27671/io.whispero.soundmerger E/onProgress: libavfilter 6. 31.100 / 6. 31.100
03-20 16:29:06.834 27671-27671/io.whispero.soundmerger E/onProgress: libswscale 4. 0.100 / 4. 0.100
03-20 16:29:06.834 27671-27671/io.whispero.soundmerger E/onProgress: libswresample 2. 0.101 / 2. 0.101
03-20 16:29:06.835 27671-27671/io.whispero.soundmerger E/onProgress: libpostproc 54. 0.100 / 54. 0.100
03-20 16:29:06.836 27671-27671/io.whispero.soundmerger E/onProgress: Unrecognized option 'i '.
03-20 16:29:06.837 27671-27671/io.whispero.soundmerger E/onProgress: Error splitting the argument list: Option not found
03-20 16:29:06.846 27671-27671/io.whispero.soundmerger E/onFailure: ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (GCC)
configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --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/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/armeabi-v7a --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
libavutil 55. 17.103 / 55. 17.103
libavcodec 57. 24.102 / 57. 24.102
libavformat 57. 25.100 / 57. 25.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 31.100 / 6. 31.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Unrecognized option 'i '.
Error splitting the argument list: Option not found
03-20 16:29:06.848 27671-27671/io.whispero.soundmerger E/onFinish: onFinish -
Stream RTP packets to FFMPEG [duplicate]
21 mars 2017, par Johnathan KanarekThis question already has an answer here :
-
Stream RTP to FFMPEG using SDP
1 answer
I get RTP stream from WebRTC server (I used mediasoup) using node.js and I get the decrypted RTP packets raw data from the stream. I want to forward this RTP data to ffmpeg. I create SDP file that describes both the audio and video streams and send the packets through UDP.
The SDP :v=0
o=mediasoup 7199daf55e496b370e36cd1d25b1ef5b9dff6858 0 IN IP4 192.168.193.182
s=7199daf55e496b370e36cd1d25b1ef5b9dff6858
c=IN IP4 192.168.193.182
t=0 0
m=audio 33400 RTP/AVP 111
a=rtpmap:111 /opus/48000
a=fmtp:111 minptime=10;useinbandfec=1
a=rtcp-fb:111 transport-cc
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=mid:audio
a=recvonly
m=video 33402 RTP/AVP 100
a=rtpmap:100 /VP8/90000
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=extmap:2 urn:ietf:params:rtp-hdrext:toffset
a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 urn:3gpp:video-orientation
a=extmap:5 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=mid:video
a=recvonly
a=rtcp-muxThe command :
ffmpeg -loglevel debug -analyzeduration 2147483647 -probesize 2147483647 -protocol_whitelist file,crypto,udp,rtp -re -vcodec vp8 -acodec opus -i test.sdp -vcodec h264 -acodec aac -y output.mp4The log :
ffmpeg version 3.2
Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
configuration: --prefix=/opt/kaltura/ffmpeg-3.2 --libdir=/opt/kaltura/ffmpeg-3.2/lib --shlibdir=/opt/kaltura/ffmpeg-3.2/lib --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -I/opt/kaltura/include' --extra-ldflags=-L/opt/kaltura/lib --disable-devices --enable-bzlib --enable-libgsm --enable-libmp3lame --enable-libschroedinger --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libx265 --enable-avisynth --enable-libxvid --enable-filter=movie --enable-avfilter --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libvpx --enable-libspeex --enable-libass --enable-postproc --enable-pthreads --enable-static --enable-shared --enable-gpl --disable-debug --disable-optimizations --enable-gpl --enable-pthreads --enable-swscale --enable-vdpau --enable-bzlib --disable-devices --enable-filter=movie --enable-version3 --enable-indev=lavfi --enable-x11grab
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Splitting the commandline.
Reading option '-loglevel' ...
matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-analyzeduration' ...
matched as AVOption 'analyzeduration' with argument '2147483647'.
Reading option '-probesize' ...
matched as AVOption 'probesize' with argument '2147483647'.
Reading option '-protocol_whitelist' ...
matched as AVOption 'protocol_whitelist' with argument 'file,crypto,udp,rtp'.
Reading option '-re' ...
matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-vcodec' ...
matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'vp8'.
Reading option '-acodec' ...
matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'opus'.
Reading option '-i' ... matched as input file with argument 'test.sdp'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'h264'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'aac'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option 'output.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file test.sdp.
Applying option re (read input at native frame rate) with argument 1.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument vp8.
Applying option acodec (force audio codec ('copy' to copy stream)) with argument opus.
Successfully parsed a group of options.
Opening an input file: test.sdp.
[sdp @ 0xb1ef00] Format sdp probed with size=2048 and score=50
[sdp @ 0xb1ef00] audio codec set to: (null)
[sdp @ 0xb1ef00] audio samplerate set to: 44100
[sdp @ 0xb1ef00] audio channels set to: 1
[sdp @ 0xb1ef00] video codec set to: (null)
[udp @ 0xb21940] end receive buffer size reported is 131072
[udp @ 0xb21660] end receive buffer size reported is 131072
[sdp @ 0xb1ef00] setting jitter buffer size to 500
[udp @ 0xb21da0] end receive buffer size reported is 131072
[udp @ 0xb22060] end receive buffer size reported is 131072
[sdp @ 0xb1ef00] setting jitter buffer size to 500
[sdp @ 0xb1ef00] Before avformat_find_stream_info() pos: 889 bytes read:889 seeks:0 nb_streams:2
[vp8 @ 0xb27600] Header size larger than data provided
Last message repeated 2 times
[sdp @ 0xb1ef00] Non-increasing DTS in stream 1: packet 2 with DTS 0, packet 3 with DTS 0
[vp8 @ 0xb27600] Header size larger than data provided
... repeats many times until I kill the socket ...
Last message repeated 1 times
[sdp @ 0xb1ef00] Non-increasing DTS in stream 1: packet 273 with DTS 553050, packet 274 with DTS 553050
[vp8 @ 0xb27600] Header size larger than data provided
received id=7199daf55e496b370e36cd1d25b1ef5b9dff6858 type=bye
PeerConnection close. id=7199daf55e496b370e36cd1d25b1ef5b9dff6858
-- PeerConnection.closed, err: undefined
-- peers in the room = 0
[sdp @ 0xb1ef00] decoding for stream 1 failed
[sdp @ 0xb1ef00] Could not find codec parameters for stream 1 (Video: vp8, 1 reference frame, yuv420p): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[sdp @ 0xb1ef00] After avformat_find_stream_info() pos: 889 bytes read:889 seeks:0 frames:584
Input #0, sdp, from 'test.sdp':
Metadata:
title : 7199daf55e496b370e36cd1d25b1ef5b9dff6858
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0, 309, 1/90000: Audio: opus, 48000 Hz, mono, fltp
Stream #0:1, 275, 1/90000: Video: vp8, 1 reference frame, yuv420p, 90k tbr, 90k tbn, 90k tbc
Successfully opened the file.
Parsing a group of options: output file output.mp4.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument h264.
Applying option acodec (force audio codec ('copy' to copy stream)) with argument aac.
Successfully parsed a group of options.
Opening an output file: output.mp4.
Matched encoder 'libx264' for codec 'h264'.
[file @ 0xbc56e0]
Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 1 logical cores
[graph 0 input from stream 0:1 @ 0xb1eca0]
Setting 'video_size' to value '0x0'
[buffer @ 0xbc54e0]
Unable to parse option value "0x0" as image size
[graph 0 input from stream 0:1 @ 0xb1eca0]
Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:1 @ 0xb1eca0]
Setting 'time_base' to value '1/90000'
[graph 0 input from stream 0:1 @ 0xb1eca0] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:1 @ 0xb1eca0] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:1 @ 0xb1eca0] Setting 'frame_rate' to value '90000/1'
[buffer @ 0xbc54e0] Unable to parse option value "0x0" as image size
[buffer @ 0xbc54e0] Error setting option video_size to value 0x0.
[graph 0 input from stream 0:1 @ 0xb1eca0] Error applying options to the filter.
Error opening filters!
[AVIOContext @ 0xbc57c0] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0xb1f8c0]
Statistics: 889 bytes read, 0 seeksAs you can see, at the beginning of the log the SDP parsed without recognizing the codecs :
Opening an input file: test.sdp.
[sdp @ 0xb1ef00] Format sdp probed with size=2048 and score=50
[sdp @ 0xb1ef00] audio codec set to: (null)
[sdp @ 0xb1ef00] audio samplerate set to: 44100
[sdp @ 0xb1ef00] audio channels set to: 1
[sdp @ 0xb1ef00] video codec set to: (null)Then it’s trying to read the packets from the sockets.
Only when I close the socket, ffmpeg continues to parse the SDP, this time finding the correct codec :Opening an input file: test.sdp.
[sdp @ 0xb1ef00] Format sdp probed with size=2048 and score=50
[sdp @ 0xb1ef00] audio codec set to: (null)
[sdp @ 0xb1ef00] audio samplerate set to: 44100
[sdp @ 0xb1ef00] audio channels set to: 1
[sdp @ 0xb1ef00] video codec set to: (null)I suspect that the "Non-increasing DTS" and "Header size larger than data provided" errors are caused by wrong parsing of the packets due to usage with the wrong codec.
I checked the SDP order and it seems the same as in other examples I have.
Can someone suggest an explanation ?
BTW, audio only works fine, but I guess it’s because of the simplicity of OPUS.
Thanks.
-
Stream RTP to FFMPEG using SDP