[Ffmpeg-devel-irc] ffmpeg.log.20140803
burek
burek021 at gmail.com
Mon Aug 4 02:05:01 CEST 2014
[00:43] <Nopik> I'm playing with AVFrame*, I'm getting frames with format=300, how to figure out which format it is? AVPixelFormat doesn't seem to reach 300
[00:45] <Nopik> well, actually it does reach 317
[00:45] <Nopik> is there any to_string() kind of function on pixel format?
[00:48] <Nopik> av_get_pix_fmt_name, thanks! ;)
[03:47] <x0fis> hi. when I scale input which have another aspect ratio than output, it will loss part off video. is possible fill space with black color instead losing?
[03:47] <x0fis> *which has
[03:48] <sacarasc> It will stretch, I believe.
[03:50] <x0fis> sacarasc: no it doesn't. it made only part of input file(which is image)
[03:53] <x0fis> sacarasc: ok sorry, it does
[03:55] <x0fis> it wasn't visible on the monitor
[10:29] <Fjorgynn> welcome
[11:09] <slowguy> http://fpaste.org/122821/07056899/ i try to output to ftp server but ffmpeg says input/ouput error :(
[11:11] <ersatzbeardr> like i said the other day
[11:11] <ersatzbeardr> why not let a network file system handle it
[11:11] <ersatzbeardr> isntead of using one of the worst protocols ever invented
[11:11] <ersatzbeardr> hurr i grew up with ftp it must be great
[11:11] <ersatzbeardr> ^ fucked in the heda
[11:11] <slowguy> oh god u again :P
[11:12] <ersatzbeardr> you realise that's reciprocative eh
[11:12] <slowguy> haha
[11:12] <ersatzbeardr> guy using a dumb protocol
[11:12] <ersatzbeardr> https://www.stunnel.org/index.html <- even something like this
[11:12] <sacarasc> slowguy: Are you using the right user/password?
[11:13] <slowguy> yes it is able to login
[11:13] <slowguy> i can see a successful login in filezilla
[11:13] <sacarasc> From ffmpeg?
[11:13] <slowguy> yes
[11:14] <slowguy> as you can see its a local filezilla server i watch the connection coming
[11:14] <sacarasc> Does the user have write permissions?
[11:14] <slowguy> and using the same id and password i can create files delete files etc with other clients
[11:15] <slowguy> i guess ffmpeg doesn't even try to create the file
[11:15] <slowguy> otherwise i would have something about that in the filezilla panel
[11:15] <sacarasc> What does the ftp logs say?
[11:16] <slowguy> http://fpaste.org/122823/40705738/
[11:16] <slowguy> this is the ftp log
[11:17] <sacarasc> You're outputting mp4?
[11:17] <sacarasc> There's the problem!
[11:17] <slowguy> yes
[11:17] <slowguy> we can't output mp4 to ftp?
[11:17] <sacarasc> It opens it and doesn't write until it is complete, because mp4.
[11:17] <sacarasc> I guess.
[11:18] <slowguy> right
[11:18] <slowguy> let me try something else .ts ?
[11:18] <sacarasc> That should work, I think.
[11:19] <slowguy> naah
[11:19] <slowguy> doesn't even try to create the file
[11:21] <slowguy> ftp://manas:mhsadmin1@127.0.0.1/hd.ts: Input/output error
[11:21] <ersatzbeardr> why not take the protocol out of the hands of ffmpeg
[11:21] <ersatzbeardr> http://curlftpfs.sourceforge.net/
[11:21] <ersatzbeardr> ftp is still dumb as shit but
[11:21] <sacarasc> slowguy: Can you add a few levels of verbosity to the ffmpeg command, maybe it will help shed light.
[11:22] <slowguy> sacarasc: -vvv ?
[11:23] <sacarasc> ffmpeg -loglevel verbose then the rest of it
[11:23] <sacarasc> Maybe -loglevel debug
[11:26] <slowguy> http://fpaste.org/122824/07057939/ last portion of the verbose output
[11:26] <slowguy> still it is silent after loggin on
[11:26] <sacarasc> It's beyond me, then.
[11:26] <slowguy> at last message from ftp
[11:26] <slowguy> [ftp @ 0000000000485300] 421 No-transfer-time exceeded. Closing control connecti
[11:26] <slowguy> on.
[11:26] <slowguy> [ftp @ 0000000002247fe0] FTP open failed
[11:26] <slowguy> ftp://manas:mhsadmin1@127.0.0.1/hd.ts: Input/output error
[11:26] <slowguy> ffmpeg dint try to create any file :(
[11:27] <sacarasc> Try ffmpeg -i blah.mkv -c copy ftp://manas:mhsadmin1@127.0.0.1/hd.ts
[11:27] <sacarasc> If that does nothing, then I am all out of ideas.
[11:29] <slowguy> no gain..i think i just need to scrap ftp
[12:23] <xecycle> How can I know the bit depth of a pcm_bluray track? ffprobe says pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s32, 2304 kb/s
[12:26] <sacarasc> Try using MediaInfo (a different program, warning, the installer on Windows will try to install crapware).
[12:27] <xecycle> sacarasc: Okay; I'm installing it from homebrew.
[12:31] <Kolizer> how to grab only window title in ffmpeg?
[12:35] <sacarasc> What do you mean?
[12:35] <Kolizer> how to grab only window title in ffmpeg?
[12:36] <sacarasc> What do you mean?
[12:36] <Kolizer> i need grab window screen
[12:37] <sacarasc> You just want to grab the title bars?
[12:38] <Kolizer> no
[12:38] <Kolizer> window
[12:38] <Kolizer> output window
[12:41] <Kolizer> how do it?
[12:41] <xecycle> Well... The term "window" seems ambiguous in the world of ffmpeg.
[12:42] <Kolizer> i know x11grab
[12:43] <xecycle> But x11grab is an input source; I don't know of anything within x11grab named "output window".
[12:44] <Kolizer> i need grab output window
[12:45] <Kolizer> ou
[12:45] <Kolizer> yes input windows
[12:47] <Kolizer> i need grab my game in window
[12:49] <xecycle> Okay so you specify an input window to x11grab, and you want its title bar, either with or without the window content. From the X11 point of view, title bars are unknown to the application drawing the windows; they are drawn by the window manager (or composite manager). So you would need to communicate with that, instead of the application, for position and dimensions of title bars; or simply specify that by hand.
[12:53] <Kolizer> what functions to use?
[12:54] <Kolizer> Just do have such an opportunity in ffmpeg
[12:54] <Kolizer> ?
[12:57] <Kolizer> I need a tool in OBS capture windows
[12:58] <xecycle> I don't know of any; nor do I think it possible. Now that there are dozens of different window managers and compositors out there, incompatible with each other, I don't think anyone will bother to do that.
[13:03] <xreal> LAV seems to be superior to ffmpeg: "ffdshow only has DXVA, it does not support CUDA." "ffdshow only uses a subset of its functionality"
[13:03] <sacarasc> Kolizer: You're using OBS?
[13:04] <Kolizer> no
[13:05] <sacarasc> To do it in ffmpeg, you have to do something like: ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f alsa -ac 2 -i pulse blah.mkv
[13:05] <sacarasc> This will capture a 1024 by 768 part of whatever is showing on your screen, starting at 100 pixels from the left, and 200 from the top.
[13:06] <Kolizer> i know it
[13:08] <sacarasc> You want to be able to pick the window, like in OBS?
[13:08] <sacarasc> ffmpeg can't do that.
[13:09] <Kolizer> yes
[13:36] <holljen> hello, I'm making a video based on pictures (using -i filename%03d.png) and added a few pictures at the end of the series (series is complete). They are not picked up by ffmpeg. I've tried to touch the files to no avail.
[13:36] <holljen> any ideas?
[13:38] <Mavrik> are they of different format?
[13:39] <holljen> no, they are copies of the other pictures
[13:39] <holljen> from earlier in the series
[13:42] <holljen> I've probably made a really stupid mistake :)
[13:43] <holljen> is there a way to make ffmpeg show which input files it intends to use?
[13:45] <holljen> ah... I found it
[13:46] <holljen> I did indeed make a stupid mistake.. i had deleted an eariler frame by accident with a command line error a few hours ago :/
[13:46] <holljen> sorry about the fuzz
[14:43] <Xardas> Hello, I've got a problem with webms, every webm I create doesn't work in Firefox but works completly fine in Chrome or MPHC. I've tried both 32 and 64 bit versions and my OS is Win7Sp1.
[14:44] <ersatzbeardr> paste bin the ffprobe output
[14:47] <Xardas> okay
[14:50] <Xardas> ffprobe version N-65201-gd0f56ca Copyright (c) 2007-2014 the FFmpeg developers
[14:50] <Xardas> built on Aug 3 2014 02:15:34 with gcc 4.8.3 (GCC)
[14:50] <Xardas> configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
[14:50] <Xardas> isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
[14:50] <Xardas> le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
[14:50] <Xardas> enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
[14:50] <Xardas> modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
[14:50] <Xardas> b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
[14:50] <Xardas> r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
[14:50] <Xardas> able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
[14:50] <ersatzbeardr> no
[14:50] <ersatzbeardr> ffprobe of the fucking file
[14:50] <Xardas> yeah
[14:50] <Xardas> I highlighted too much
[14:50] <ersatzbeardr> http://dpaste.com
[14:50] <Xardas> Metadata:
[14:50] <Xardas> encoder : Lavf55.50.100
[14:50] <Xardas> Duration: 00:00:02.02, start: 0.000000, bitrate: 274 kb/s
[14:50] <Xardas> Stream #0:0: Video: vp8, yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.81 fps, 23.
[14:50] <Xardas> 81 tbr, 1k tbn, 1k tbc (default) (forced)
[14:50] <Xardas> Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default) (forced)
[14:50] <ersatzbeardr> paste it there
[14:50] <Xardas> Stream #0:2(eng): Subtitle: webvtt (default) (forced)
[14:51] <Xardas> http://dpaste.com/2SMTHTE
[14:52] <ersatzbeardr> not sure if it supports sub titles, that's my only guess,
[14:52] <iive> ersatzbeardr: always say "site" together with pastebin...
[14:52] <ersatzbeardr> yeah sorry
[14:52] <ersatzbeardr> i'm shit at being helpful
[14:52] <iive> or use the bot :)
[14:53] <ersatzbeardr> ahh okay
[14:53] <iive> now you know :)
[14:54] <Xardas> alright, I'll try another file and see if it changes anything
[17:30] <kaotiko> hi
[17:35] <Kolizer> kaotiko: hello
[17:49] <azk> So, FFServer ignores all -map flags from the ffmpeg command, how do I go about selecting which audio stream I want to send to FFServer?
[17:51] <c_14> ffserver can't ignore negative maps, it can however ignore positive maps if you don't specify that you want that stream in the ffserver.conf
[17:51] <azk> Oh, that's awfully rigid
[17:51] <azk> Hmm, back to the drawing board I guess
[17:53] <c_14> Well, how is it supposed to ignore a negative map if that stream never arrives at ffserver?
[17:54] <c_14> If you could describe your problem and pastebin your ffmpeg commandline and your ffserver conf, we might know more.
[17:55] <azk> Sure
[18:23] <t4nk621> Quick question, if I get the stderr or the stdout for ffplay, is it possible to get the display to output it to an external source? I am pretty sure that it's not possible doing it that way, but I was just unsure. Is there anyway I can get the visual output to display it to an external source?
[18:24] <sfan5> you can redirect it to a file like this: ffmpeg <args> 2> stderr.txt > stdout.txt
[18:24] <sfan5> (for linux)
[18:25] <azk> So, the problem arises when you want to stream from a source with 2 different audio tracks and select the one not selected by default.
[18:25] <azk> https://gist.github.com/antonva/027ff6d022664eff0657
[18:27] <c_14> -map -0:[audio stream you don't want]
[18:27] <c_14> or -map 0:[audio stream you want] -map 0:[video stream you want]
[18:28] <c_14> should do it
[18:31] <azk> I'll try that
[18:33] <t4nk621> Is there a way it can be done in real time? I want to use ffplay -showmode 1 (waves) audio.mp3 so I can show the audio waves.
[18:34] <lovesax> hi
[18:34] <Nitori> you can actually exclude streams with -map? :o
[18:37] <c_14> yep
[18:38] <lovesax> Hi, all. Any chance for asking a noobie question in here? :)
[18:41] <Nitori> but I noticed, even with -map, ffmpeg still copies a lot of metadata, like chapters and tags/comments.. is there any way to tell ffmpeg to create a *completely* new output file?
[18:41] <c_14> Asking isn't forbidden
[18:41] <c_14> yet.
[18:41] <lovesax> thanks.
[18:41] <azk> So, on trying exclusion, I get Stream map '0:1' matches no streams.
[18:42] <lovesax> I'm trying to forward an mpeg4 stream from a network camera via ffmpeg to ffserver. Plain copy. The resolution is 1920x1080, and ffmpeg says everything is OK.
[18:42] <c_14> Nitori: -map_metadata -1 iirc
[18:42] <lovesax> However, this resolution is invalid to ffserver, since it's not a multiple of 16. How come?
[18:42] <c_14> lovesax pastebin your ffmpeg commandline + output + ffserver.conf please
[18:43] <lovesax> ok
[18:44] <Nitori> c_14, you're right. thx
[18:45] <azk> c_14: https://gist.github.com/antonva/dd7f303f5f4a0151357b
[18:49] <c_14> azk: Have you tried using positive maps?
[18:50] <azk> c_14: I tried, it's just flat out ignored.
[18:50] <c_14> Can you pastebin the output and commandline with positive maps?
[18:50] <azk> Yes
[18:52] <lovesax> c_14: http://pastebin.com/YSs4Wj3u
[18:54] <azk> https://gist.github.com/antonva/8d5680c35e13369d2f07
[18:56] <c_14> lovesax: try setting video_size to 1920x1080 or 1920x1088
[18:57] <lovesax> 1920x1080 creates same result, 1088 works
[18:58] <lovesax> It may be OK to use 1088, but it's weird that a common resolution shouldn
[18:58] <lovesax> ...t work
[18:58] <c_14> iirc 1080 is padded to 1088 for things like that
[18:59] <lovesax> ah, ok
[18:59] <c_14> azk: According to the output it looks like it should work.
[18:59] <c_14> azk: Does the ffserver output have all the streams?
[19:00] <c_14> Output as in the stream output.
[19:00] <lovesax> thanks, c_14. I'll try it.
[19:00] <azk> c_14: I'll have to check
[19:00] <c_14> azk: Cause you said it ignores them, how do you know it ignores them?
[19:01] <azk> I was just looking at the Stream mapping in line 231, as well as not hearing the difference on stream
[19:02] <c_14> The stream mapping only shows 2 streams, as it should.
[19:02] <c_14> Oh, now I see.
[19:02] <c_14> Try placing the mappings before the -c:v -c:a options.
[19:02] <c_14> ie right after file.mkv
[19:02] <azk> ok
[19:02] Action: c_14 has to go away for a bit. Will be back later though.
[19:03] <azk> Ok, I'll try to figure something out in the meanwhile, thanks for the assistance.
[20:55] <jnvsor> I have a file encoded twice with different settings, can ffmpeg give me a measurement of the quality so I can see the differences between the bitrates I wouldn't notice by eye?
[20:56] <jnvsor> A sort of crf estimate?
[20:57] <Mavrik> You do know that measuring quality difference of streams you can't see is silly right? And that those measurements are pointless when codecs use psy-visual enchancements right?
[20:58] <Mavrik> Having said that and warning you that what you're doing is silly.
[20:58] <Mavrik> Use PSNR ffmpeg filter.
[20:59] <jnvsor> Mavrik: Thanks, I'm just curious
[20:59] <Mavrik> also SSIM tends to be a better metric
[21:00] <jnvsor> How would I check SSIM in ffmpeg?
[21:01] <Mavrik> *shrug*
[21:01] <Mavrik> dunno
[21:15] <jnvsor> Actually compiling the tiny_psnr from the tests folder is quicker than figuring it out in ffmpeg :P
[00:00] --- Mon Aug 4 2014
More information about the Ffmpeg-devel-irc
mailing list