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

burek burek at teamnet.rs
Mon Sep 16 03:05:04 EEST 2019


[17:04:36 CEST] <beniamino> I am trying to modify some code which uses libav to do mp3 encoding. Currently the encoder uses libmp3lame. I want it to use libshine. The code selects the codec with codec_desc = avcodec_descriptor_get(AV_CODEC_ID_MP3); encoder = avcodec_find_encoder(AV_CODEC_ID_MP3); I had expected to be able to replace AV_CODEC_ID_MP3 with an equivalent for
[17:04:36 CEST] <beniamino> libshine, but I see that all mp3 encoders have the same ID, and libav chooses the default mp3 codec. How can I change the default, or otherwise select libshine instead of libmp3lame?
[17:06:14 CEST] <pink_mist> I don't know the proper answer to your question, but perhaps you could rebuild your ffmpeg libraries to remove libmp3lame support
[17:06:25 CEST] <pink_mist> and only have libshine support included?
[17:08:32 CEST] <durandal_1707> avcodec_find_encoder_by_name
[17:11:49 CEST] <beniamino> pink_mist: that's a reasonable work around but i'd like to avoid that if possible
[17:15:39 CEST] <JEEB> I don't think that's a workaround
[17:15:45 CEST] <JEEB> if you want a specific encoder, you want a specific encoder
[17:16:31 CEST] <JEEB> also geez, I didn't even remember we had shine :P
[17:16:57 CEST] <JEEB> beniamino: the name is the only outwards visible explicit unique identifier
[17:17:14 CEST] <JEEB> so for an external API user that is the only way to get a specific decoder or encoder
[17:20:57 CEST] <pink_mist> JEEB: the workaround was recompiling ffmpeg, not using the API like durandal_1707 suggested
[17:20:59 CEST] <DHE> can confirm. go with an exact name match if you want. if not available, go with the auto-selected by codec ID. If not available, complain and fail.
[17:21:09 CEST] <JEEB> pink_mist: roger
[17:21:39 CEST] <JEEB> DHE: depends on the use case. if the API application specifically wants some encoder you can fail at failing to find the encoder
[17:22:02 CEST] <DHE> I'm doing that with AAC. fdk if it's available, else let libavcodec choose for me.
[17:22:18 CEST] <beniamino> ok, i think i am making progress with durandal_1707 suggestion using avcodec_descriptor_get_by_name("mp3") and avcodec_find_encoder_by_name("libshine")
[19:18:09 CEST] <friki> Hi, my watermarking script (overlay filter) doesn't works fine when non-square pixels in original video. The input file will be always h=1080 16:9, the overlay file is a 1920x1080 PNG. The expected output is h=1080 16:9 (width may be 1920 or the original, don't really care). Any recommendation on how to handle it with ffmpeg?
[19:19:06 CEST] <JEEB> scale one or the other to match the other
[19:19:07 CEST] <durandal_1707> get both to same SAR
[19:58:13 CEST] <cards> does anyone know anything about converting SWF to MP4?   I have a rather extensive collection of shockwave flash videos i'd like to archive in 1080p
[19:58:55 CEST] <JEEB> if it's actual FLV inside it should be quite possible relatively easily
[19:59:01 CEST] <JEEB> if it's vector stuff
[19:59:09 CEST] <JEEB> then you will have to screen capture and render
[19:59:16 CEST] <cards> vector stuff.
[19:59:22 CEST] <JEEB> ouch
[19:59:30 CEST] <JEEB> I wonder what's the best solution for that
[19:59:42 CEST] <JEEB> I've before just used some screen/window capture for that
[19:59:57 CEST] <JEEB> (and most solutions that say they do that do exactly that as well)
[20:00:05 CEST] <cards> there has to be a better way than taking snapshots.  computational rendering via commandline
[20:00:15 CEST] <JEEB> you'd wish for that yes
[20:00:44 CEST] <JEEB> but unfortunately as far as I know all of the solutions marketed did just embed the flash in themselves and did screen capture
[20:01:06 CEST] <cards> bleh
[20:01:20 CEST] <JEEB> flash does have an API (f.ex. you can find the headers in mpc-hc's repo for example)
[20:01:35 CEST] <JEEB> that's for the activex component
[20:01:47 CEST] <JEEB> you could look if it looks like something could be possible to utilize for less realtime-requiring rendering
[20:21:34 CEST] <cards> This may be something.
[20:21:38 CEST] <cards> https://github.com/Herschel/Swivel -- https://www.newgrounds.com/wiki/creator-resources/flash-resources/swivel?path=/wiki/creator-resources/flash-resources/swivel
[20:22:05 CEST] <cards> and also testing this site based converter @ https://cloudconvert.com/swf-to-mp4
[22:48:33 CEST] <nicolas17> can I speed up a video introducing motion blur instead of dropping frames entirely?
[22:56:52 CEST] <Neomoon> Hello everyone, in looking at the ffmpeg documentation on the .org site I'm trying to understand how the ffpeg documentation differs from ffpeg-all. It appears ffpeg-all includes ffmepg components, my issue is that I'm trying to execute the "-user_agent" command but it appear my homebrew install doesn't support this option.
[00:00:00 CEST] --- Mon Sep 16 2019


More information about the Ffmpeg-devel-irc mailing list