[Ffmpeg-devel-irc] ffmpeg.log.20170828

burek burek021 at gmail.com
Tue Aug 29 03:05:01 EEST 2017


[00:03:29 CEST] <DHE> that's been a feature request for a while..
[00:03:40 CEST] <DHE> what are you trying to accomplish exactly?
[00:05:25 CEST] <selsta> so here is my current code: https://github.com/selsta/hlsdl/blob/master/src/hls.c#L292
[00:05:25 CEST] <selsta> problem is, I cant get the sample rate and the frame size because the audio is encrypted
[00:06:40 CEST] <selsta> avformat_write_header() crashes because I dont have a sample rate
[00:12:29 CEST] <DHE> huh... I always thought that mpegts encrypted in (up to) 184 byte frames
[00:13:51 CEST] <JEEB> yea, the mpeg-ts layer is 188 byte packets
[00:13:58 CEST] <selsta> its sample-aes hls encryption, not mpeg-ts encryption
[00:14:16 CEST] <JEEB> and yea, you can just encrypt the payload in that case
[00:14:24 CEST] <DHE> yes, with a 4 byte header
[00:14:48 CEST] <DHE> ah, yes HLS does have another encryption mode. but ffmpeg only supports the full encryption option
[00:15:17 CEST] <selsta> my program is a decrypter for that other encryption mode
[00:15:27 CEST] <JEEB> anyways, not fully sure libavformat is the thing to use in this case since it's supposed to be dealing with unecrypted data after it goes through the demuxer. esp. if you want to keep the original mpeg-ts structure
[00:15:56 CEST] <DHE> sounds more like you want to implement an HLS->MPEGTS converter that does the on-the-fly decryption and just provides ffmpeg with an IOContext (?)
[00:16:20 CEST] <JEEB> (36
[00:16:51 CEST] <selsta> yess
[00:17:19 CEST] <selsta> the code already works for one stream that I have
[00:17:34 CEST] <selsta> but dosent work for another stream
[00:19:42 CEST] <selsta> Im just out of ideas how I should implement this properly
[00:21:14 CEST] <__jack__> HLS -> mpegts ? that's really easy, is not it ? you just need to parse the HLS playlist, curl (and decrypt) the files, and concat them (using cat for instance, so really a plain dummy concat)
[00:22:20 CEST] <selsta> sample-aes decryption is more complicated I need the mpeg-ts packets
[00:57:26 CEST] <gtxbb> hi
[00:57:55 CEST] <stimple> hullo, trying to cut a mp4 with -ss and -t but the vid seems to lack a keyframe anywhere near where i want to cut
[00:58:04 CEST] <stimple> hi gtxbb
[00:59:13 CEST] <stimple> what format should i encode to let me cut with -ss and not have garbage at the beginning?
[01:01:04 CEST] <gtxbb> wondering if i can ask for help lol
[01:01:19 CEST] <gtxbb> stimple, hey im a bit of a noob too
[01:01:32 CEST] <gtxbb> stimple, i was looking at -ss, you'll need to use -ts i tihnk
[01:01:45 CEST] <gtxbb> stimple, you need to specify a time offset
[01:02:33 CEST] <gtxbb> stimple, https://libav.org/avconv.html#Main-options
[01:03:10 CEST] <gtxbb> sorry wrong page lol.. must be a ffmpeg equivalent i guess
[01:03:11 CEST] <stimple> no ffmpeg option -ts
[01:03:37 CEST] <gtxbb> https://ffmpeg.org/ffmpeg.html#Main-options
[01:04:27 CEST] <gtxbb> i'm perusing tools...
[01:04:39 CEST] <gtxbb> hmm not sure if I can use unix://  << is this a control socket?
[01:05:14 CEST] <stimple>  don't know
[01:05:32 CEST] <Nitori> -ss description already says why that happens. you basically have to reencode the video. with simple copy it doesn't work
[01:05:41 CEST] <stimple> ty
[01:06:04 CEST] Action: gtxbb https://ffmpeg.org/ffmpeg-protocols.html#unix
[01:06:09 CEST] <Nitori> so use -ss after the input (on the output)
[01:07:05 CEST] <gtxbb> what can i use a unix local socket?
[01:07:18 CEST] <gtxbb> is that a controller socket for command?
[01:07:31 CEST] <gtxbb> (i can do this with vlc, can i do this with ffmpeg?)
[01:08:06 CEST] <Nitori> what exactly?
[01:19:39 CEST] <gtxbb> cant seem to find a way to use it.. my ffmpeg build supports it, anyone?
[01:21:46 CEST] <DHE> it's a variant that's like TCP and local only and performs better when dealing with lots of data
[01:25:29 CEST] <stimple> what's a good output format for video editing? there used to be something called huffyuv but i think that might exceed my space
[01:25:39 CEST] <stimple> don't need perfect quality
[01:27:52 CEST] <gtxbb> DHE, i want to use it, i'm trying to use it..
[01:28:02 CEST] <gtxbb> (i need it)
[01:31:08 CEST] <gtxbb> echo help |nc -w 2 -U avconv.socket
[01:31:08 CEST] <gtxbb> nc: unix connect failed: Connection refused
[01:32:12 CEST] <stimple> i guess mjpeg
[01:32:30 CEST] <stimple> maybe not
[01:49:27 CEST] <DHE> huffyuv if you're using yuv colourspace. ffmpeg also provides its own variant of huffyuv and you can also try ffv1
[01:49:44 CEST] <stimple> ty!
[01:53:21 CEST] <furq> ffv1 will be much smaller than huffyuv but also a bit slower
[01:53:49 CEST] <furq> but if you need compatibility with premiere, final cut etc then ffv1 is tricky
[01:54:03 CEST] <furq> ut video is probably the best thing if you need NLE compatibility
[01:54:24 CEST] <dan2wik> Is there a way I can set which decoder to use?
[01:54:46 CEST] <furq> -c before -i
[01:54:59 CEST] <dan2wik> Oh, ok thanks
[02:07:02 CEST] <dan2wik> I have a camera that can output h264 video, I am using v4l2 to access it, could I specify "-c:v h264_mmal" to use the Pi's hardware decoder?
[02:07:19 CEST] <dan2wik> I'm still compiling ffmpeg so I'm unable to try it right now
[02:21:06 CEST] <furq> yeah that should work
[06:58:24 CEST] <basse_> hi anyone with experience capturing audio with ffmpeg and pulseaudio? I want to capture audio from a specific browser tab when I have multiple tabs open, by using -f pulse -i default, I capture all the sounds within the system, but I want to capture teh sounds of s single tab, any ideas?
[13:44:32 CEST] <mozzarella> guys help
[13:45:43 CEST] <meriipu> what happened to --enable-libnpp ? I have added these https://bpaste.net/show/f7125fe366da options, but recently I get a "libnpp not found"-error when building. It used to work as far as I remember.  This is to get the scale_npp filter.
[13:49:28 CEST] <meriipu> I have an npp.h in /opt/cuda/include/ (as well as nppi.h and npps.h).  I have libnppc.so, libnppi.so, and libnpps.so in lib64 (though no libnpp.so that I can find, I can not remember if I used to have one).
[13:50:48 CEST] <meriipu> the answer to https://stackoverflow.com/questions/41870137/ffmpeg-error-libnpp-not-found-in-windows  mentions something about a broken configuration script, but I do not quite understand the implications.
[13:51:37 CEST] <JEEB> "--enable-libnpp" is at least the correct parameter in the configure script
[13:52:10 CEST] <meriipu> (for what it is worth, it builds without --enable-libnpp all other things the same, but that does not make the filter available it seems).
[13:52:10 CEST] <JEEB> check where it fails in ffbuild/config.log with regards to libnpp
[13:53:03 CEST] <BtbN> The guy claiming configure to be broken is just talking nonsense.
[13:53:27 CEST] <JEEB> yea, just check what the configure script fails with
[13:53:36 CEST] <BtbN> The configure options name has no relation to the libraries it actually checks for.
[13:53:55 CEST] <JEEB> people often jump into conclusions
[13:54:05 CEST] <BtbN> If you are using the CUDA 9 RC SDK: They renamed one of the libraries there. Once it's released, I will update configure accordingly.
[13:54:23 CEST] <JEEB> kek, changing names :D
[13:54:54 CEST] <BtbN> They are intended to be bundled with the application, and not installed into the system
[13:54:59 CEST] <BtbN> as such, they are free to rename them
[13:55:19 CEST] <BtbN> And it also makes them kind of horrible to use in ffmpeg
[13:56:33 CEST] <meriipu> it seems to consider the ones it found incompatible https://bpaste.net/show/9f4b57d33b3a
[13:57:07 CEST] <BtbN> you're compiling 32bit, and CUDA is x86_64
[13:57:22 CEST] <meriipu> aaa
[13:59:14 CEST] <meriipu> yes I remember some install flag change earlier that enabled the 32bit version as well so that is likely it
[13:59:28 CEST] <meriipu> (that some other package I have wanted I think)
[13:59:42 CEST] <BtbN> It's 100% clearly what's happening. Not only likely.
[13:59:54 CEST] <BtbN> gcc is instructed to build in 32bit mode, and cuda is 64bit only
[14:00:31 CEST] <meriipu> that makes sense thanks
[14:13:21 CEST] <meriipu> seems to have been my (32+64bit) install of opencv wanting 32bit ffmpeg, causing 32bit ffmpeg to be built. Rebuilding only 64bit ffmpeg worked sucessfully. Thanks for the help
[15:13:51 CEST] <Fyr> guys, when remuxing video with simple copying of the streams, a mjpeg image is marked as Video #2.
[15:14:05 CEST] <Fyr> what is the option to mark it as attachment?
[15:19:10 CEST] <JEEB> Fyr: it's side data as far as I know in the stream
[15:19:17 CEST] <Fyr> yes
[15:19:28 CEST] <Fyr> how do I set it as an attachment?
[15:21:29 CEST] <JEEB> AV_DISPOSITION_ATTACHED_PIC
[15:21:32 CEST] <JEEB> seems to be the thing
[15:21:47 CEST] <JEEB> seems to be a flag in stream->disposition
[15:22:01 CEST] <Fyr> thanks, I'll try that.
[15:22:57 CEST] <Fyr> JEEB, there are many dispositions, however, there is none for image.
[15:23:10 CEST] <Fyr> default, karaoke, forced etc.
[15:24:13 CEST] <JEEB> you can see it if you git grep FFmpeg's code :P
[15:26:12 CEST] <JEEB> https://www.ffmpeg.org/doxygen/trunk/avformat_8h.html#aa8e9704bcc842236ad048062dcf45d45
[15:26:18 CEST] <JEEB> it's right there
[15:26:24 CEST] <JEEB> just not sure how many muxers take it in
[15:30:52 CEST] <Fyr> Unable to parse option value "attached_pic"
[15:31:08 CEST] <Fyr> it's in the source code, however, there is no option for this define.
[15:37:19 CEST] <JEEB> oh, you're using the cli?
[15:37:22 CEST] <JEEB> nfi then :D
[15:51:56 CEST] <Fyr> JEEB, do you happen to know how mux some stream into NULL?
[15:52:16 CEST] <Fyr> I'll try to copy everything except or selected streams.
[16:09:19 CEST] <rungcc_from_work> hi guys
[16:09:26 CEST] <rungcc_from_work> could someone help me with something?
[16:10:08 CEST] <rungcc_from_work> I'm trying to make ffmpeg create a 100% transparent 1920x1080 23.976fps video
[16:11:06 CEST] <rungcc_from_work> but I'm not being able to find the right command, I'm trying a lot of things here and looking at the help files, but I'm confused as a MF.
[16:19:19 CEST] <furq> rungcc_from_work: -f lavfi -i color=#00000000:s=1920x1080:r=24000/1001,format=yuva420p
[16:21:51 CEST] <rungcc_from_work> hi furq, unfortunately this also generate a black video instead of a transparent one
[16:22:03 CEST] <rungcc_from_work> at lease final cut identify it as black instead of transparent
[16:28:40 CEST] <charly> hello, there is a simple way to convert an AVFrame (with all data) into AVPacket ?
[16:30:10 CEST] <jsbilodeau> Hi all! What is the best way to add a klv stream (SMPTE 336M KLV Data Encoding Protocol Using Key-Length-Value) using libavformat in c++? I quickly read mxf.h mxf_enc.c and there is some mention about the klv. Would the best way to do this is to use AVIOContext and avio_w * () and get inspiration from mxf_enc.f?
[16:55:21 CEST] <Trel> I was looking at the encoding options for libx264 and more specifically at two pass encoding.  I'm curious, since I'm not entirely familiar with the program yet, but how would the 2 pass encoding be separated out into two distinct steps?
[16:59:18 CEST] <furq> you run ffmpeg twice
[16:59:48 CEST] <furq> assuming you actually want 2-pass, which is unlikely
[17:02:56 CEST] <Trel> furq: I would want 2 pass, but I'm not sure how to do that as two commands. https://trac.ffmpeg.org/wiki/Encode/H.264#twopass  I'm looking at the example there.  I'm not sure what input would be on the second pass
[17:03:59 CEST] <furq> the same as it would be on the first pass
[17:04:10 CEST] <furq> the first pass writes a log file to the working directory
[17:04:14 CEST] <furq> the second pass will automatically read from that
[17:04:55 CEST] <furq> like it says, unless you're targeting a specific filesize then you shouldn't use 2pass with x264
[17:08:56 CEST] <Trel> I AM targeting a specific filesize.
[17:09:08 CEST] <Trel> Is it the -pass 1 and -pass 2 that make it read/write the log
[17:09:48 CEST] <c_14> yes
[17:09:49 CEST] <kepstin> with -pass 1 it writes the log, with -pass 2 it reads it, yes.
[17:10:15 CEST] <Trel> Cool, that's all I needed then ,thanks :)  (I'm putting a video on the remaining space on a flash drive for family).
[17:10:23 CEST] <Trel> Hence why I'm targeting size
[17:38:40 CEST] <Fyr> guys, when remuxing, I set one of the streams as default, however, the output file has two streams set as default. how do I mark one of them as non-default?
[17:46:33 CEST] <Fyr> Google doesn't know the answer.
[17:51:48 CEST] <atomnuker> Fyr: -map "0:v"?
[17:52:33 CEST] <Fyr> what?
[17:53:17 CEST] <atomnuker> map the outputs you want manually
[17:53:48 CEST] <Fyr> -i file -map 0:0 -map 0:3 -map 0:1 -map 0:11 -map 0:5 -c copy -metadata:s:v:0 language=English -metadata:s:a:0 language=English -disposition:a:0 default -metadata:s:a:1 language=Russian -metadata:s:s:0 language=English -disposition:s:0 default -metadata:s:s:1 language=Russian
[17:54:31 CEST] <atomnuker> oh, I didn't read
[17:54:51 CEST] <atomnuker> which streams are default?
[17:55:00 CEST] <Fyr> both audio
[17:57:33 CEST] <Fyr> atomnuker, how is it going with AAC?
[17:58:10 CEST] <atomnuker> nowhere, I'm doing the opus encoder now
[17:58:24 CEST] <atomnuker> I'm pretty sure s:v:0 is incorrect
[17:58:39 CEST] <atomnuker> 0th stream's video's subtitle stream?
[17:58:57 CEST] <Fyr> the problem is with audio streams.
[17:59:36 CEST] <atomnuker> disposition is copied afaik
[18:00:03 CEST] <atomnuker> so you need to 0 the russian streams's disposition if the input file has it as the default
[18:00:04 CEST] <Fyr> then how to remove disposition?
[18:00:18 CEST] <atomnuker> -disposition:a:1 0
[18:00:25 CEST] <Fyr> thanks
[00:00:00 CEST] --- Tue Aug 29 2017


More information about the Ffmpeg-devel-irc mailing list