[Ffmpeg-devel-irc] ffmpeg.log.20190218
burek
burek021 at gmail.com
Tue Feb 19 03:05:02 EET 2019
[04:11:59 CET] <FurretUber> I'm trying to generate a visualization and encode it using VAAPI, but I'm not finding how to make the command work. The command is: ffmpeg -vaapi_device /dev/dri/renderD128 -i snd.wav -filter_complex "[0:a]extrastereo=m=0,showwaves=s=800x450:mode=p2p:r=30:colors=white|white[vid],format=nv12,hwupload" -map "[vid]" -map 0:a -acodec copy -threads 4 -vcodec h264_vaapi -low_power 1 -r 30 -f nut - and the output is: https://termbin.com/ha20
[04:14:25 CET] <FurretUber> Doing this generating the visualization encoded with rawvideo and piped to vaapi encode works but is too expensive
[04:27:43 CET] <FurretUber> I found where to insert the VAAPI filters, the correct command line is: ffmpeg -vaapi_device /dev/dri/renderD128 -i snd.wav -filter_complex "[0:a]extrastereo=m=0,showwaves=s=800x450:mode=p2p:r=30:colors=white|white,format=nv12,hwupload[vid]" -map "[vid]" -map 0:a -acodec copy -vcodec h264_vaapi -low_power 1 -r 30 -f nut - . Many iterations were required until finding the right place
[10:17:59 CET] <DimasSup> Hello!
[10:20:06 CET] <DimasSup> Can any one help me with build ffmpeg for android on macos? i have build script like https://pastebin.com/74GBUZk6, but when i run this script i got error Android/sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-gcc is unable to create an executable file.
[10:20:06 CET] <DimasSup> C compiler test failed.
[10:24:05 CET] <JEEB> ffbuild/config.log contains the failure
[10:24:20 CET] <JEEB> I've built for android just fine and I've moved to the included clang quite some time ago
[10:24:31 CET] <JEEB> (I think the gcc thing at this point is a wrapper that points towards clang)
[10:25:58 CET] <JEEB> so for 32bit ARM I do `--arch=armv7 --cpu=armv7-a --enable-cross-compile --target-os=android --cross-prefix=arm-linux-androideabi- --cc=arm-linux-androideabi-clang --cxx=arm-linux-androideabi-clang++`
[10:26:04 CET] <JEEB> you can also take a look at FATE
[10:26:08 CET] <JEEB> it IIRC has NDK builds as well
[10:28:31 CET] <JEEB> http://fate.ffmpeg.org/report.cgi?time=20190217183217&slot=armv8-linux-clang-7
[10:28:39 CET] <JEEB> although I see at least one recent aarch64 build failing
[10:45:04 CET] <DimasSup> sorry for my stupd questions, i just starting with ffmpeg.
[10:45:37 CET] <DimasSup> i tried change to clang but same error about not found. list in toolchains for platform are
[10:45:40 CET] <DimasSup> aarch64-linux-android-addr2line aarch64-linux-android-c++filt aarch64-linux-android-gprof aarch64-linux-android-ld.gold aarch64-linux-android-objdump aarch64-linux-android-size
[10:45:40 CET] <DimasSup> aarch64-linux-android-ar aarch64-linux-android-dwp aarch64-linux-android-ld aarch64-linux-android-nm aarch64-linux-android-ranlib aarch64-linux-android-strings
[10:45:41 CET] <DimasSup> aarch64-linux-android-as aarch64-linux-android-elfedit aarch64-linux-android-ld.bfd aarch64-linux-android-objcopy aarch64-linux-android-readelf aarch64-linux-android-strip
[10:45:57 CET] <DimasSup> there are not 'clang' and 'gcc'
[10:46:23 CET] <JEEB> ok, then you aren't looking in the correct place
[10:46:35 CET] <JEEB> use the standalone toolchain script to make it clear where things are :P
[10:46:45 CET] <JEEB> (even though with the newer NDKs those don't really do anything)
[10:46:59 CET] <JEEB> google "ndk standalone toolchain script"
[10:47:03 CET] <JEEB> it comes with the NDK
[10:50:05 CET] <DimasSup> thank you, i will google it
[10:57:36 CET] <DimasSup> about place where i looking are 'Android/sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/'
[11:00:03 CET] <Mavrik> JEEB: standalone toolchain was removed in latest NDK :)
[11:01:13 CET] <Mavrik> DimasSup: binaries are in toolchains/llvm/...
[11:01:19 CET] <Mavrik> not toolchains/aarch64..
[11:01:56 CET] <JEEB> Mavrik: it is effectively non-op now, yes
[11:02:09 CET] <JEEB> so it mostly just copies stuff in a simple manner now
[11:02:16 CET] <JEEB> mostly to just make the person look into the right dir :P
[11:02:25 CET] <Mavrik> ah, I thought even the .sh was removed
[11:02:27 CET] <JEEB> as in, make him create the sysroot and make him look into that
[11:02:32 CET] <JEEB> ah yes, sh mighthave been removed
[11:02:35 CET] <JEEB> python script is still there
[11:02:42 CET] <JEEB> the python script is what I meant
[12:01:21 CET] <zetheroo> Can ffmpeg repair video files?
[12:40:22 CET] <zetheroo> I am trying to convert a file but am getting this output: openmpt_module_create_from_memory2: ERROR: error loading file
[14:39:12 CET] <DHE> zetheroo: repairing video files isn't officially something ffmpeg does. it might work, it might not. simple things like a corrupted seek index are probably easily repaired by remuxing. anything more serious might not be.
[15:39:18 CET] <^T> cut a files beggining of? mp3 -> mp3 ? i tried the -ss <TIMEINSECONDS> but that kept the beggining instead of cutting it
[15:44:32 CET] <c_14> ffmpeg -ss <time> -i file -c copy out.mp3
[15:54:09 CET] <^T> thanks
[18:09:01 CET] <giaco> hello
[18:11:21 CET] <giaco> what is the correct way to ask ffmpeg to exit cleanly? SIGINT or SIGTERM? I am trasforming a stream to dash, everything works but I am killing ffmpeg with SIGTERM when the stream ends and .tmp files are left behind. I'd like to ask ffmpeg to exit cleanly (so that it closes stream.mpd, that's the most important thing). Thank you
[18:12:27 CET] <giaco> I am asking before trying because I am launching & doing the piping from within a java virtual machine and is not so linear to send a signal like sigint from there
[18:19:17 CET] <bruce-> I use the ProcessBuilder and to stop I close the stream and use waitFor() on the process
[18:20:31 CET] <JEEB> giaco: whatever ctrl+C gives does lead to an OK exit at least
[18:20:48 CET] <JEEB> try with mp4 output and with something like libx264 where you have a queue of frames in your encoder
[18:21:03 CET] <giaco> bruce-: you just close the stream without calling process.destory()? That should be sigterm
[18:21:20 CET] <giaco> JEEB: ctrl-c is sigint
[18:21:28 CET] <giaco> in most terminals
[18:25:43 CET] <giaco> bruce-: you're right, I just had to comment out the process.destroy() call. Ffmpeg is quitting nicely when the input stream is closed. Thank you
[18:28:18 CET] <pagios> hi, maybe it is a silly question but is there any adaptive bitrating for the publishing side, like the ABR for viewwing side? For example to avoid dropped frames when publishing using rtmp and just lowering the quality
[18:32:20 CET] <giaco> I have another question, a noob one but please be patient. I'd like to amplify the input stream before writing the output dash, I'm reading the ffmpeg wiki page but this phrase confuses me "Note that the volume filter only adjusts the volume. It does not set the volume. To set or otherwise normalize the volume of a stream, see the sections below."
[00:00:00 CET] --- Tue Feb 19 2019
More information about the Ffmpeg-devel-irc
mailing list