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

burek burek021 at gmail.com
Sat Apr 7 03:05:02 EEST 2018


[02:56:32 CEST] <Barrett> I'm using ffmpeg libav to encode some files in avi/mpeg-4
[02:56:43 CEST] <Barrett> the files are created without duration
[02:56:58 CEST] <Barrett> someone have some hint about what it can be?
[02:57:24 CEST] <Barrett> https://github.com/haiku/haiku/blob/master/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp
[02:57:49 CEST] <Barrett> basically, I can't seek the created files
[02:59:07 CEST] <Barrett> this doesn't happen with other codecs
[05:33:59 CEST] <wfbarksdale> does anyone know off hand what AVPacketSideData is used for?
[05:34:59 CEST] <FishPencil> Does FFmpeg support multi bit depth for vpx? I see it supports 10-bit, but can 8-bit also be used in the same build? x264 and x265 support this
[05:35:58 CEST] <kepstin> wfbarksdale: it's in the docs, https://www.ffmpeg.org/doxygen/3.2/group__lavc__packet.html#ga9a80bfcacc586b483a973272800edb97
[05:36:48 CEST] <kepstin> FishPencil: it does for vp9, yes. Note that vp8 is max 8-bit.
[05:39:03 CEST] <wfbarksdale> thank you kepstin
[05:40:10 CEST] <kepstin> palette is missing a comment there, but it's for paletted pixel formats in codecs where the palette can change each frame
[09:21:14 CEST] <alone-y> any one use h264 qsv?
[09:59:38 CEST] <alone-y> any one know how to set compression level of ZMBV?
[10:00:40 CEST] <durandal_1707> alone-y: -compression_level
[10:00:50 CEST] <durandal_1707> 0-9
[10:01:46 CEST] <alone-y> -vcodec zmbv -compression_level=0
[10:01:54 CEST] <alone-y> ?
[10:02:11 CEST] <alone-y> without =
[10:02:14 CEST] <alone-y> i guess
[10:04:43 CEST] <alone-y> size changing 0 = big, 9=ok, but CPU usage - no
[10:04:44 CEST] <alone-y> ;)
[10:05:51 CEST] <alone-y> always 50% of cpu (full load of 1 core from 2)
[10:14:06 CEST] <LigH> Hi
[10:14:29 CEST] <alone-y> hi
[10:15:03 CEST] <LigH> There are several metrics to compare video frames, like PSNR, SSIM, MSE...
[10:15:38 CEST] <LigH> I know that AviSynth offers a few, some via plugins. Does ffmpeg have such a feature built-in as well?
[10:17:46 CEST] <furq> !filter psnr @LigH
[10:17:46 CEST] <nfobot> LigH: http://ffmpeg.org/ffmpeg-filters.html#psnr
[10:17:54 CEST] <furq> there's an ssim filter that does the same thing
[10:18:06 CEST] <furq> and also there's a vmaf filter for netflix libvmaf which is probably what you want for modern codecs
[10:19:33 CEST] <LigH> I do remember that this vmaf just got a memory leak fix... ;)
[10:20:47 CEST] <LigH> Well, in fact I only need a tool which can compare still images and report several metrics. But searching the web for "image quality compare ssim" (etc.) always returns either video tools or junk.
[10:21:00 CEST] <LigH> I believe ffmpeg can process PNG or JPEG as well.
[10:21:47 CEST] <furq> if it's just for png/jpeg then psnr/ssim will be fine
[10:21:57 CEST] <furq> -i foo.png -i bar.jpg -lavfi psnr -f null -
[10:26:06 CEST] <LigH> VMAF requires a model template, that looks more elaborate. Also it's focused on motion.
[10:26:56 CEST] <LigH> MSU VQMT is a tool with a variety of metrics for videos.
[10:27:34 CEST] <LigH> But making videos from single frames to be able to compare them...
[10:35:56 CEST] <LigH> How do I redirect both ssim and psnr statistics into a text file? I found an example for combining both requests wrapped in double quotes, as well as an example specifying a stats_file, using double quotes as well.
[10:36:13 CEST] <LigH> Quoting quotes may fail, I fear.
[10:36:21 CEST] <FishPencil> Is it just me or is AOM (AV1) *really* slow
[10:36:35 CEST] <LigH> Not only you
[10:36:37 CEST] <LigH> It is
[10:36:55 CEST] <FishPencil> I'm getting like .2 fps
[10:37:10 CEST] <LigH> Developers are just being about to finalize the v1 specs. There was no optimization yet.
[10:37:14 CEST] <FishPencil> and it appears to only be using one core
[10:37:21 CEST] <FishPencil> ah
[10:37:26 CEST] <LigH> Except you enable slices.
[10:37:40 CEST] <FishPencil> without filtering though?
[10:38:06 CEST] <LigH> https://forum.doom9.org/showthread.php?t=172550
[10:39:51 CEST] <FishPencil> so -slices 8 doesn't seem to change anything
[10:40:49 CEST] <LigH> Not yet ... but it has to, when it shall substitute VP9 and HEVC.
[10:41:01 CEST] <LigH> :D
[10:41:41 CEST] <FishPencil> I was pretty surprised they choose C+asm for it instead of C++ and asm
[10:42:01 CEST] <FishPencil> but I guess they're trying to maximize their adoption
[10:42:46 CEST] <furq> libvpx is C
[10:42:51 CEST] <furq> so you shouldn't be that surprised
[10:43:07 CEST] <FishPencil> fair point
[10:44:45 CEST] <LigH> Damn, that syntax in the ffmpeg wiki is confusing.
[10:45:28 CEST] <LigH> I really don't understand the stats_file sample in the psnr or ssim filter. Where can I enter a two-line parameter set?
[10:46:11 CEST] <LigH> Also I cannot use -f with a file name to output statistics, no format is recognized.
[10:46:50 CEST] <FishPencil> LigH: recently used ssim and psnr and ended up parsing the output instead of using the log
[10:48:42 CEST] <furq> -lavfi "psnr=stats_file=foo;[0:v][1:v]ssim=stats_file=foo"
[10:48:43 CEST] <furq> works for me
[10:48:49 CEST] <LigH> I believe I will have a look at ImageMagick as well...
[10:49:01 CEST] <LigH> Oh. Too simple.
[10:50:07 CEST] <LigH> I'll just need two separate log files.
[10:50:17 CEST] <LigH> One output overwrites the other.
[10:50:28 CEST] <furq> weird
[10:50:30 CEST] <furq> that worked for me
[10:50:39 CEST] <furq> http://vpaste.net/cZ67d
[10:50:57 CEST] <furq> i guess it probably is a bit hacky though
[10:52:30 CEST] <LigH> May depend on Windows vs. other OS'
[10:52:56 CEST] <LigH> Thanks for now.
[10:52:59 CEST] <LigH> Bye
[10:53:47 CEST] <DrFreeze> I'm using ffmpeg transcode with GPU, i have a 1920:1080 video trying to scale it to 1280:720 with the -vf scale_npp=1280:720. And it working, only issue is, whenever there is motion there is like linear cuttings. What can be the issue?
[10:54:47 CEST] <DrFreeze> I even tried -vf scale_npp=w=1280:h=720:format=yuv420p:interp_algo=lanczos. Still same problem
[11:03:20 CEST] <Mavrik> Is your video interlaced?
[11:27:30 CEST] <meins> Hello, can someone help me with a raspberry pi and the Output sink? I want to use them without x
[11:48:33 CEST] <Chuck_> Good morning, I have questions about the default behaviour of ffmpeg when scaling with different algorithms that I cant seem to understand.The most important question for me is, the upscale of an image with bicubic filtering does it use the Mitchell reconstruction filter?
[11:49:34 CEST] <Chuck_> Also, with bilinear filtering when downscaling what it is done is just an area averaging right?
[11:55:56 CEST] <iive> kind of
[11:59:53 CEST] <alone-y> hello, any one know, how to set screen coordinates with dshow screen capturing?
[12:28:23 CEST] <pimpind_> 2> /path/to/out.txt
[12:28:30 CEST] <pimpind_> that the ending to spit out a logfile?
[13:10:15 CEST] <alone-y> can i set compression level of ffv1?
[13:10:43 CEST] <furq> https://trac.ffmpeg.org/wiki/Encode/FFV1#FFV1version3
[13:11:28 CEST] <alone-y> i know this link, but it's does not help
[13:11:44 CEST] <alone-y> -vcodec ffv1 -level 9
[13:11:50 CEST] <alone-y> same as -vcodec ffv1 -level 0
[13:16:25 CEST] <alone-y> level is version i know what
[13:16:30 CEST] <alone-y> my where is compression level?
[13:48:20 CEST] <m1_> alexpigment: thanks, it seems changing the mapping produced a working output file
[13:48:49 CEST] <m1_> i get a lot of "Past duration 0.604057 too large" messages but don't seem to notice any ill effects
[14:06:10 CEST] <alone-y> ffv1 have no compression rate control?
[14:08:27 CEST] <kepstin> ffv1 has some options that adjust compression tradeoffs
[14:10:21 CEST] <alone-y> -context ?
[14:11:00 CEST] <kepstin> setting -context 1 -coder 1 should make it somewhat slower and compress slightly more
[14:12:22 CEST] <alone-y> no differences
[14:12:25 CEST] <alone-y> 30 mb=5 sec
[14:12:36 CEST] <alone-y> ib both cases ;(
[14:13:00 CEST] <kepstin> i mean, there's only so much you can do with lossless codecs...
[14:13:32 CEST] <alone-y> why?
[14:13:47 CEST] <alone-y> every archivators have ratio control
[14:13:59 CEST] <alone-y> archivator = lossless
[14:14:52 CEST] <alone-y> techsmith screen capture codecs lossless to
[14:14:55 CEST] <alone-y> but have it.
[14:18:34 CEST] <kepstin> the basic thing that most lossless compressors change for different settings is the context size, but ffv1 only has two options there from how the format's designed, and you've tried them both now.
[14:19:05 CEST] <kepstin> assuming you put the options in the right spot in the command so they weren't ignored
[14:19:56 CEST] <alone-y> can i ask, zmbv have ratio control?
[14:21:39 CEST] <kepstin> looks like zmbv just uses gzip internally, so if it has compression complexity settings they're presumably passed straight through
[14:22:16 CEST] <kepstin> also it has actual delta frames, unlike ffv1 which is designed mostly for intra encoding use, which will allow it to be smaller with some input types
[14:22:19 CEST] <alone-y> just compression_level x - no matter for this
[14:23:10 CEST] <alone-y> i mean zmbv
[16:17:59 CEST] <molgrum> hi trying to compile ffmpeg in http://code.google.com/p/amv-codec-tools/ produces linker errors: https://pastebin.com/GBd1jbzf
[16:34:09 CEST] <DHE> the order of linking matters in gcc. it doesn't do repeated searches by default
[16:46:51 CEST] <furq> the ffmpeg in that package is from 2007
[16:46:57 CEST] <furq> i don't think you're going to get much help with that
[16:47:21 CEST] <furq> there's a builtin amv encoder nowadays although i can't say i've ever used it
[16:56:19 CEST] <molgrum> i tried to use it but i failed
[16:56:43 CEST] <molgrum> if anybody can point me to a command to use it to convert into AMV i would be thankful
[17:05:23 CEST] <alexpigment> molgrum: did you use -strict -1 in your command?
[17:05:29 CEST] <alexpigment> also, do you have a target resolution
[17:05:47 CEST] <alexpigment> from what I gather, AMV is a old format used for small displays on MP3 players
[17:05:53 CEST] <alexpigment> *an old format, rather
[17:06:23 CEST] <alexpigment> and the encoder is very specific about testing the player to make sure it works at the resolution chosen
[17:06:35 CEST] <furq> i suspect you'll need something else anyway because there's no adpcm_ima_amv encoder yet
[17:06:46 CEST] <furq> which apparently is the only audio format amv will accept because of course it is
[17:06:56 CEST] <alexpigment> yeah, i saw that error too
[17:07:12 CEST] <alexpigment> it's like "unknown encoder" and then i noticed it doesn't have 'E' in the codecs list
[17:07:46 CEST] <alexpigment> make me wonder tolerant those players are
[17:08:05 CEST] <alexpigment> i suspect you could feed it another variant of adpcm, but i don't have a time machine to go back and test on hardware
[17:08:10 CEST] <furq> they're famously strict about it
[17:08:31 CEST] <furq> i'd like to have said "they were" but apparently i can't
[17:11:12 CEST] <alexpigment> https://trac.ffmpeg.org/ticket/747
[17:11:48 CEST] <alexpigment> i wonder if you could copy those specific source files
[17:12:13 CEST] <alexpigment> even if it broke other adpcm encoding in ffmpeg, i'm not sure that would be a huge loss overall
[17:22:39 CEST] <molgrum> thanks for the help so far it is much info
[17:24:09 CEST] <molgrum> six years later people on IRC are still talking about AMV...
[17:24:25 CEST] <alexpigment> well, it *is* IRC :)
[17:25:12 CEST] <alexpigment> i would probably be in a VCR-related channel if i knew of one
[18:08:26 CEST] <YokoBR> hi folks
[18:09:33 CEST] <YokoBR> I'm trying to stream with ffmpeg to rtmp
[18:09:47 CEST] <YokoBR> But to more than 1 service
[18:10:39 CEST] <YokoBR> if I do '-f', 'tee', '-map', '0','[f=flv:onfail=ignore]rtmp://live-api.facebook.com:80/rtmp/123|[f=flv:onfail=ignore]rtmp://a.rtmp.youtube.com/live2/123|[f=flv:onfail=ignore]rtmp://live-sao.twitch.tv/app/123', only the first one has video
[18:29:00 CEST] <YokoBR> :(
[19:28:55 CEST] <jgkamat> Hi, I'm not very faimilar with ffmpeg. I can extract a mp3's album art to png with ffmpeg -i file.mp3 out.png, but I can't seem to use it with pipe. For example, ffmpeg -i file.mp3 -f png pipe:1 fails with "'png' is not a suitable output format". Anything I am doing wrong?
[19:31:15 CEST] <c_14> -f image2pipe -c:v png
[19:31:56 CEST] <jgkamat> c_14: thanks, that works perfectly :)
[19:38:50 CEST] <YokoBR> guys
[19:40:31 CEST] <durandal_1707> this is not unpaid support channel
[21:35:00 CEST] <sine0> a while back some big man in here suggested a local streaming application, I had it running on my server and streamed via the browser. I have just had to reboot after realising old office harddrives dont like having new lives as media servers
[21:35:24 CEST] <sine0> reboot > reinstall
[21:35:30 CEST] <sine0> but I cant remember the application name
[21:38:15 CEST] <sine0> it was emby! yay
[23:17:13 CEST] <alonex> any ony know ffmpeg can encode to zrle?
[23:17:29 CEST] <alonex> (vnc codec)
[23:18:20 CEST] <durandal_1707> alonex: fourcc?
[23:19:13 CEST] <alonex> (trying to looking for)
[23:21:01 CEST] <kepstin> alonex: if it doesn't have an "E" in the "ffmpeg -codecs" list, then your build doesn't support it
[23:21:22 CEST] <kepstin> (although that might be because it was disabled at build time)
[23:21:25 CEST] <alonex> kepstin, thank you
[23:21:47 CEST] <alonex> just as i know, techsmith codec = zrle
[23:22:01 CEST] <alonex> but ffmpeg have only ecode techsmith
[23:22:05 CEST] <alonex> but i need encoe ;)
[23:22:08 CEST] <alonex> encode
[23:23:43 CEST] <kepstin> yeah, looks like nobody's written an ffmpeg encoder for the techsmith screen capture codecs
[23:24:28 CEST] <alonex> yes, but may be exist zrle?
[23:25:13 CEST] <alonex> i foun topic about techsmith with reverse engeneering of this codec with conclusion, that this is zrle.
[23:33:24 CEST] <alonex> https://github.com/powturbo/TurboRLE
[23:43:24 CEST] <alonex> Mespotine RLE = mrle
[23:44:07 CEST] <durandal_1707> alonex: use utvideo encoder
[23:44:29 CEST] <alonex> 1 sec
[23:53:21 CEST] <alonex> durandal_1707, 367 mb
[23:53:27 CEST] <alonex> several secons
[23:54:39 CEST] <durandal_1707> alonex: what kind of stuff you are recording?
[23:54:57 CEST] <alonex> just desktop with text and several colors
[23:55:14 CEST] <durandal_1707> alonex: are you on windows?
[23:55:15 CEST] <alonex> black-white, green-re
[23:55:17 CEST] <alonex> yes
[23:55:32 CEST] <alonex> red, blue may be. that's all
[23:56:12 CEST] <durandal_1707> try ScreenPressor, it is paidware, but i could write encoder for ffmpeg, there is already decoder for 1.X and 2.X version
[23:56:14 CEST] <alonex> zmbe give a good size, but techsmith good speed+ size
[23:57:09 CEST] <alonex> just i am trying tohave techsmith(thisis zrle 10 years old i guess) WITHOUT camtasia
[23:57:15 CEST] <alonex> only with ffmpeg...
[23:58:23 CEST] <alonex> techsmith avantage: 4 mins 1600*900=100mb, but CPU usage - several %!!!
[23:58:32 CEST] <alonex> thank u i will try
[00:00:00 CEST] --- Sat Apr  7 2018


More information about the Ffmpeg-devel-irc mailing list