<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I agree with you Mateusz, FFMPEG makes use of libav. If I remember well, it is built on libav + proper extensions.<div>It is true that FFMPEG does everything that libav does, and more, but that would be sectarian to say that this mailing list can not help you.</div><div>Technically, we can.</div><div><br></div><div><br><div><br></div><div><br><div><div>Le 8 juil. 2015 à 21:17, Mateusz Koslacz <<a href="mailto:mateusz.koslacz@4vod.tv">mateusz.koslacz@4vod.tv</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Well, so why list I'm mailing is called "Libav-user -- This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.", if you can't help me if I use Libav?<div class="gmail_extra"><br><div class="gmail_quote">2015-07-08 19:26 GMT+02:00 Paul B Mahol <span dir="ltr"><<a href="mailto:onemda@gmail.com" target="_blank">onemda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p><br>
Dana 8. 7. 2015. 15:05 osoba "Mateusz Koslacz" <<a href="mailto:mateusz.koslacz@4vod.tv" target="_blank">mateusz.koslacz@4vod.tv</a>> napisala je:</p><div><div class="h5"><br>
><br>
> Hi,<br>
><br>
> In our project we use janus-gateway (<a href="http://janus.conf.meetecho.com/" target="_blank">http://janus.conf.meetecho.com/</a>) as a webRTC gateway and also as a stream recorder. We are on the tests stage of our project, and after very long development time we have ecountered a bug that is a blocker for whole project. After real tests of recording streams using janus we realized that audio and video are out of sync in recordings, despite of fact, that live they are perfectly in sync.<br>
><br>
> Janus records two *.mjr files for each recording - one for video, and one for audio. Janus also provides own converter to convert this files to *.webm for video and *.opus for audio. After that, we use ffmpeg to merge this files. By recording stopwatch view on the stream we concluded, that video has correct length and speed, so most probably this is something wrong with audio recording or converting.<br>
><br>
> Firstly, janus was using libogg for converting *.mjr audio to *.opus. Regarding described issues author decided to switch to libav audio processing. You can check how it's done in this file <a href="https://github.com/meetecho/janus-gateway/blob/pprec-opus-libav/postprocessing/pp-opus.c" target="_blank">https://github.com/meetecho/janus-gateway/blob/pprec-opus-libav/postprocessing/pp-opus.c</a> starting from 90 line.<br>
><br>
> Returned data is a lil bit smaller than data obtained using libogg:<br>
><br>
>> -rw-r--r-- 1 mateusz mateusz 17987445 lip 8 11:58 rec-2215547545-audio-nolibogg.opus<br>
>> -rw-r--r-- 1 mateusz mateusz 221841174 lip 8 11:56 rec-2215547545-video.webm<br>
>> -rw-r--r-- 1 mateusz mateusz 18074102 lip 8 11:52 rec-2215547545-audio-libogg.opus<br>
><br>
><br>
> Unfortunately, returned data is somehow corrupted - ffprobe results for libav processing output:<br>
><br>
>> [ogg @ 0x4336540] Codec not found<br>
>> rec-2215547545-audio-nolibogg.opus: End of file<br>
><br>
><br>
> and for compare, for libogg version:<br>
><br>
>> Input #0, ogg, from 'rec-2215547545-audio-libogg.opus':<br>
>> Duration: 01:20:32.98, start: 0.000000, bitrate: 29 kb/s<br>
>> Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp<br>
><br>
><br>
> Moreover, no player can play this file - VLC just does nothing, and Rythmbox says "Can't play file: {null}".<br>
><br>
><br>
> Is this because of improper use of libav api, or maybe it is some libav bug? How could we possibly overcome this problems?<br>
><br>
> For more details you can read our whole conversation with janus author here:<br>
> <a href="https://groups.google.com/forum/#!topic/meetecho-janus/lMCtBm7VbMY" target="_blank">https://groups.google.com/forum/#!topic/meetecho-janus/lMCtBm7VbMY</a><br>
><br>
></div></div><div><br class="webkit-block-placeholder"></div><p>From that conversation it is evident you are using Libav and not FFmpeg. And so we can not help you.</p><p>> Regards,<br>
><br>
> Mateusz Koślacz<br>
><br>
> _______________________________________________<br>
> Libav-user mailing list<br>
> <a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
> <a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
><br>
</p>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div></div>
_______________________________________________<br>Libav-user mailing list<br><a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>http://ffmpeg.org/mailman/listinfo/libav-user<br></blockquote></div><br></div></div></body></html>