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

burek burek021 at gmail.com
Mon May 9 02:05:01 CEST 2016


[02:34:33 CEST] <idlus> it works fine with 2 for width, I dont see what I am missing
[02:38:15 CEST] <furq> idlus: afaik it has to be an even number
[02:38:25 CEST] <furq> if you give it an odd number it'll subtract 1
[02:40:48 CEST] <furq> assuming either your input or output format are yuv420p
[02:47:30 CEST] <idlus> thank you for that precision
[02:48:09 CEST] <idlus> input and output are indeed yuv420p
[02:50:14 CEST] <furq> yeah if your output is 4:2:0 or 4:2:2 then it can't be a non-mod2 width
[02:51:51 CEST] <idlus> furq: if I wanted to output to png, would there be a way?
[02:57:56 CEST] <furq> yeah but you'd have to crop it to 2px width, then crop that to 1px width (don't ask me why)
[02:58:28 CEST] <furq> at least i did when i just tried it, there might be a way around that
[03:02:50 CEST] <idlus> hm if I understand it would be "crop 2:ih:0:0, crop 1:ih:0:0"?
[03:03:08 CEST] <idlus> it returns the same error for me
[03:04:55 CEST] <idlus> or I could use the format filter perhaps
[03:06:18 CEST] <furq> i meant two separate files
[03:06:25 CEST] <furq> or two separate commands, rather
[03:07:12 CEST] <idlus> no thats okay, "noformat=yuv420p, crop=1:ih:0:0" does the trick
[03:07:29 CEST] <idlus> thank you furq, goodbye :-)
[03:07:53 CEST] <butt> Hey guys. I have a 60gig folder full of apple lossless from when I used an ipod. It's all sorted into folders by artist and album. I have this "for f in *.m4a; do avconv -i "$f" "${f%.m4a}.flac"; done". Is there a way to go through each folder automatically rather than having to convert each folder manually?
[03:08:56 CEST] <idlus> butt you could use the find command instead
[03:13:42 CEST] <furq> butt: **/*.m4a
[03:14:05 CEST] <furq> you need bash 4 with globstar enabled (shopt -s globstar)
[03:14:09 CEST] <furq>  think zsh does that too
[03:14:11 CEST] <furq> +i
[03:14:51 CEST] <furq> find works but then you can't use parameter expansion on the output filename
[03:19:50 CEST] <idlus> true, **/* is nice indeed
[03:19:57 CEST] <idlus> well, Im out
[03:24:00 CEST] <butt> "for f in **/*.m4a; do avconv -i "$f" "${f%.m4a}.flac"; done" did the trick thanks!
[07:22:16 CEST] <CoJaBo> Is there a way to pipe a series of .bmps into ffmpeg somehow? I'm not sure what to google for this..
[07:25:13 CEST] <furq> CoJaBo: if they're on disk then https://www.ffmpeg.org/ffmpeg-formats.html#Examples-1
[07:27:11 CEST] <CoJaBo> furq: I want to pipe them directly to ffmpeg tho; saving them all to disk would take nearly a TB of space
[07:28:43 CEST] <furq> in that case use something like -f rawvideo -pix_fmt rgb24 -i -
[07:28:46 CEST] <furq> with the appropriate pix_fmt
[07:29:30 CEST] <furq> oh you'll need -s 1024x768 before -i as well
[07:29:41 CEST] <CoJaBo> can that directly read .bmp tho?
[07:30:00 CEST] <furq> it will read bitmap data
[07:30:07 CEST] <furq> i'm not familiar with .bmp files
[07:30:28 CEST] <CoJaBo> I think I can chop off the header, but then I need to flip the image I think
[07:30:51 CEST] <CoJaBo> IIRC, they're encoded bottom-line-first for some weird reason
[07:31:18 CEST] <furq> i got a horrible flashback to dialup internet there
[07:31:31 CEST] <CoJaBo> lol
[07:31:56 CEST] <CoJaBo> If you encounter a BMP on the web, it is still like dialup :P
[07:32:46 CEST] <CoJaBo> There's a university in Japan where EVERY photo on the homepage is a 12+ megapixel bitmap; like 100MB each
[07:32:59 CEST] <furq> that sounds like japan
[07:33:04 CEST] <CoJaBo> They must have damn fast internet there >_>
[07:33:20 CEST] <furq> do they let you download an .lzh of the images
[07:33:49 CEST] Action: CoJaBo trying to figure out if ffmpeg can flip images..
[07:37:27 CEST] <furq> there's also -f image2pipe but it's not documented on the site
[07:37:30 CEST] <CoJaBo> Ah, hflip filter
[07:37:38 CEST] <furq> that might be better if you have headers and whatnot
[07:38:07 CEST] <CoJaBo> Yeh, there will be headers, and I'd like to avoid manually chopping them lol
[07:38:33 CEST] <CoJaBo> Can that handle bmp tho?
[07:39:05 CEST] <furq> no idea, i can't find any docs for it
[07:39:15 CEST] <furq> i imagine it works the same as image2 which can handle bmp
[07:40:08 CEST] <CoJaBo> Why aren't these things documented, gah
[07:40:27 CEST] <CoJaBo> But yeh, I'm finding example commandlines for image2pipe, looks like at least a few with .bmp files
[07:40:30 CEST] <furq> yeah even if it is identical to image2 it would be nice if it was at least namechecked in the docs
[07:40:42 CEST] <CoJaBo> Would've saved me a lot of time <_<
[07:41:26 CEST] <furq> it would also be nice if there was a list of topics for -h topic=name
[09:43:45 CEST] <wiistriker> hi guys
[09:44:12 CEST] <wiistriker> i have video stream from ip camera via rtmp and audio from local computer's soundcard
[09:44:27 CEST] <wiistriker> is there any way how can i sync video and audio streams?
[10:38:43 CEST] <Roest> morning, any idea why my encoding only encodes like 10 seconds then skips the rest  http://pastebin.com/Nrpz75bX problem seems to be  avcodec_encode_video2( c, &pkt, frame, &got_packet );   returns 0 in got_packet  line 170
[16:29:07 CEST] <satinder___> Hi got following error while compiling ffmpeg for arm
[16:29:17 CEST] <satinder___> arm-linux-gnueabihf-gcc is unable to create an executable file. C compiler test failed.
[16:29:37 CEST] <satinder___> what I am doing wrong please any one help ??
[16:44:21 CEST] <zwu> i would like to play youtube video by 'ffplay'
[16:44:39 CEST] <zwu> but it reminds: http://www.youtube.com/watch?v=SJaMtBKnN-I: Protocol not found
[16:45:03 CEST] <JEEB> ffplay is not a real video player
[16:45:10 CEST] <JEEB> use mpv and youtube-dl integration instead
[16:45:31 CEST] <JEEB> (as in, have youtube-dl in PATH and call "mpv http://youtube..."
[16:45:57 CEST] <zwu> JEEB: https protocol not found, recompile FFmpeg with openssl, gnutls,
[16:46:00 CEST] <zwu> [ffmpeg] or securetransport enabled
[16:46:10 CEST] <JEEB> that's because it's trying to access it as normal https link
[16:46:14 CEST] <JEEB> which a goddamn youtube link is not
[16:46:20 CEST] <JEEB> so you have two problems
[16:46:47 CEST] <zwu> JEEB: i have mpv tried, but failed as above
[16:47:04 CEST] <JEEB> then download gnutls or openssl development packages
[16:47:13 CEST] <JEEB> and it should get enabled in mpv-build
[16:47:16 CEST] <JEEB> or whatever you used for mpv
[16:47:34 CEST] <JEEB> it just means that your FFmpeg that got used in mpv doesn't have https enabled in general
[16:47:50 CEST] <JEEB> which can be achieved by either openssl or gnutls
[16:47:58 CEST] <zwu> JEEB: is there any difference 'openssl' and 'gnutls' for 'ffmpeg'?
[16:48:22 CEST] <JEEB> you can distribute gnutls with GPL but openssl not
[16:48:27 CEST] <JEEB> for your own machine, no
[16:48:59 CEST] <zwu> JEEB: gnutls is for distribute pkgs, right?
[16:49:17 CEST] <JEEB> no I just meant that its license enables you to distribute it
[16:49:25 CEST] <JEEB> either one is just fine for usage
[16:49:42 CEST] <JEEB> it just doesn't matter a damn which you use if it's just for you as I noted
[16:51:10 CEST] <zwu> JEEB: ok, let me try gnutls. BTW, apart from youtube, does 'mpv + youtube-dl' support other sites?
[16:51:46 CEST] <JEEB> yes
[16:51:51 CEST] <JEEB> what youtube-dl supports
[16:54:02 CEST] <zwu> bingo~, it plays now :)
[16:54:06 CEST] <zwu> mpv is good
[17:06:25 CEST] <satinder___> JEEB : please give idea to do it ??
[17:13:32 CEST] <satinder___> there are any one ??
[19:52:58 CEST] <arbi> Any ideas?
[20:03:03 CEST] <inhahe> i have a webm file, which supposedly uses Vorbis for audio, so I did 'ffmpeg -i "Labor In Vain-azSRny7Fhkc.webm" -vn -c:a copy test.ogg' (on Windows) and the ogg file wouldn't play, so then I did 'ffmpeg -i "Labor In Vain-azSRny7Fhkc.webm" -vn test.ogg' and the resultant test.ogg works.. what's going on?
[20:03:59 CEST] <inhahe> and also, since i'm not doing a direct copy, is any quality retained by making my output .ogg instead of, say, m4a?
[20:04:37 CEST] <BtbN> if you don't specify a codec, it will use a default that works.
[20:04:43 CEST] <furq> are you sure it doesn't use opus audio
[20:25:20 CEST] <Cork> i'm trying to dump an rtmp stream and play the file as it is written, but i get "moov atom not found" until ffmpeg closes cleanly (and a corrupt file if it doesn't)
[20:25:37 CEST] <Cork> anyway to get ffmpeg to keep the file playable as it dumps it?
[20:28:06 CEST] <JEEB> are you just dumping it or also remuxing into mp4 from flv?
[20:28:31 CEST] <JEEB> because that error should only come with mov-like containers like ISOBMFF ("mp4")
[20:29:11 CEST] <Cork> ya
[20:29:26 CEST] <JEEB> for what exactly?
[20:29:29 CEST] <Cork> some of the places where i play it only support mp4
[20:29:38 CEST] <JEEB> ok, so you are remuxing as well?
[20:29:45 CEST] <BtbN> mp4 is not streamable, without the moov atom, which is written at the very end, the file is useless.
[20:29:48 CEST] <JEEB> then you can't do jack shit unless you start using movie fragments
[20:29:57 CEST] <Cork> -i rtmp:// -c copy stream.mp4
[20:30:12 CEST] <JEEB> ok, at least you can enable fragments with ffmpeg
[20:30:16 CEST] <JEEB> since that looks like it
[20:30:26 CEST] <BtbN> Use a stremable container if you want to play the file while it's being recorded.
[20:30:29 CEST] <JEEB> but not sure if all of those things you want to play it on will work then :P
[20:30:33 CEST] <JEEB> or just have multiple outputs
[20:30:37 CEST] <BtbN> As rtmp is basically flv, just use that.
[20:30:47 CEST] <JEEB> -i rtmp:// -c copy out.mp4 -c copy out.flv
[20:31:30 CEST] <Cork> hmm, ok so back to figuring out another solution then... :/
[20:31:35 CEST] <Cork> thx for the answers
[20:31:53 CEST] <JEEB> well see if whatever you want to play it with supports fragments if it has to be one file and mp4 only
[20:31:58 CEST] <JEEB> or see if mpeg-ts works
[20:32:14 CEST] <JEEB> or matroska if that goes
[20:32:36 CEST] <BtbN> basically anything except mp4, it's a horrible container.
[20:32:42 CEST] <JEEB> no it is not
[20:33:07 CEST] <JEEB> at this point it's actually one of the few that are actually properly spec'd, together with MPEG-TS
[20:33:12 CEST] <Cork> flv has worked well for me except for mobile devices
[20:33:27 CEST] <JEEB> and they've fixed most of the crappiest crap, except the lack of chapters
[20:33:30 CEST] <Cork> and well browsers
[20:33:57 CEST] <BtbN> They didn't fix the moov atom stuff. And cutting it in chunks is not what i'd call solving the issue with streaming it.
[20:34:46 CEST] <Cork> ya
[20:35:16 CEST] <JEEB> well it seems to work well enough looking at how the HTTP streaming crowd is going, although it definitely is not a most-optimized-for-streaming container
[20:35:24 CEST] <JEEB> MPEG-TS is pretty much that
[20:40:09 CEST] <Sander^home> How can I remove duplicate images and create a gif slideshow with sharp images... out of a bunch of still .jpg's from a webcam?
[20:40:31 CEST] <BtbN> sharp images?
[20:40:40 CEST] <BtbN> gif is only 256 colors, so don't expect too much.
[20:41:10 CEST] <Sander^home> Oh well. The most important part is detecting almost simular images.
[20:41:46 CEST] <BtbN> Why not just use a video instead? All the "gif collection websites" made that switch as well.
[20:42:09 CEST] <Sander^home> But I do want to take the less blurry image parts.. and combine them
[20:43:05 CEST] <Sander^home> BtbN: Becouse I do want to capture the invidual images aswell.
[20:43:21 CEST] <BtbN> Hm?
[20:43:58 CEST] <Sander^home> Maybe I only want to have one image left from a series.. the best one.
[20:44:14 CEST] <Sander^home> with face recognition.
[20:44:41 CEST] <Sander^home> But thats not a first time requirement.. if its not simple.
[20:46:56 CEST] <Sander^home> Maybe opencv can do it.
[20:47:45 CEST] <BtbN> You won't find any software that is going to tell you which image of a series is "best".
[20:59:16 CEST] <inhahe> furq: i think the docs said it uses Vorbis/opus. what's the file extension for opus?
[21:01:07 CEST] <IntelRNG> I am not into opus, but I suspect opus will be inside of a container which will have its own extension.
[21:05:38 CEST] <furq> inhahe: .opus, although it's an ogg container
[21:08:28 CEST] <furq> opus is relatively new so it could just be unsupported by your player
[21:10:04 CEST] <inhahe> yeah, that might be the case.. i named it .opus and the extension was associated with Spek which showed a frequency graph so i guess it's working in that
[21:11:49 CEST] <inhahe> (the one i got using c:a copy)
[21:12:25 CEST] <furq> if you downloaded this from youtube then you might want to get the audio in aac instead
[21:13:01 CEST] <furq> or vorbis but iirc that's generally lower bitrate since they adopted opus
[21:21:23 CEST] <sliter> Hello, everyone
[21:22:44 CEST] <sliter> May i use ffmpeg.exe on my releases github page?
[21:22:52 CEST] <sliter> Because i have GUI for it.
[21:23:27 CEST] <sliter> But im too lazy to read LGPL
[21:23:40 CEST] <ln-> have your lawyer read it for you.
[21:24:08 CEST] <furq> if you also distribute all the sources (including library sources) and aren't using any incompatibly licensed libraries then sure
[21:24:36 CEST] <sliter> so im need to add ffmpeg sources to my repository?
[21:24:47 CEST] <furq> not necessarily
[21:25:03 CEST] <furq> but you need to distribute them in some form in the same place the binaries are hosted
[21:25:26 CEST] <furq> the same versions used to build the binaries
[21:25:42 CEST] <furq> alternatively you could just link to the zeranoe builds
[21:25:52 CEST] <sliter> In desc of release?
[21:26:12 CEST] <furq> https://github.com/qruf/ffmpeg-10bit/releases
[21:26:14 CEST] <furq> that's how i do it
[21:26:25 CEST] <furq> also i should really update that
[21:26:49 CEST] <sliter> I think i got you.
[21:27:14 CEST] <furq> if you're not building with some specific set of libs then just link to the zeranoe builds and you don't have to worry about this
[21:27:57 CEST] <Sander^home> BtbN: what about almost simular detection?
[21:28:21 CEST] <Sander^home> if I can get a % of how simular two images is. eg.
[21:28:41 CEST] <furq> Sander^home: https://ffmpeg.org/ffmpeg-filters.html#decimate
[21:29:35 CEST] <Sander^home> furq: How can I apply this to two images?
[21:30:43 CEST] <furq> i don't think it's really of any use if you only have two images
[21:31:25 CEST] <Sander^home> furq: I do want to find out of those two images is simular or totally diffrent.
[21:33:37 CEST] <sliter> Also
[21:33:47 CEST] <sliter> What is difference between 64-bit and 32-bit of ffmpeg?
[21:42:09 CEST] <DHE> CPU version mostly. Use 64 bit if you have a 64 bit OS
[21:42:23 CEST] <DHE> 32 bit should be avoided unless you're on a 32 bit CPU and/or OS
[22:42:26 CEST] <matthew__> Im using ffmpeg 3.0.2 on mpg files that are about an hour long. Im trying to do exact cuts of the video with things like: ffmpeg -ss $start -i $video -vcodec copy -acodec copy -to $end ${file}.$type what Im finding diffacult is I can use any number of applications to get $start and $end values however when I use them in ffmpeg I often have to adjust things signifcantly to find acceptable values. I tried using something like: ffmpeg -ss $st
[22:42:26 CEST] <matthew__> -i $video -filter_complex "drawtext=fontfile=/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf:fontsize=72:text=%{n} %{pts}:x=(w-text_w)/2:y=350:box=1:boxcolor=white,select='isnan(prev_selected_n)+gte(n-prev_selected_n\,1)',yadif,scale=150:-1,tile=5x5" -vframes 1 -f image2 -vcodec png pipe:1 to try and find ffmpeg exact values for start ad end, the above picture will show pictures around the exact point I want to cut with relative frame and pts values from
[22:42:28 CEST] <matthew__> $start, but this also does not produce values that work without adjusting although it could be Im not properly translating the output of the above image to values for the first command but so far Im not finding a pattern for any consistant translation.
[00:00:00 CEST] --- Mon May  9 2016


More information about the Ffmpeg-devel-irc mailing list