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

burek burek021 at gmail.com
Sun Feb 2 02:05:01 CET 2014


[00:30] <ac_slater> Alright guys, so I'm using ffmpeg's libs to do some video processing. I'm pretty new to the world of video/imaging. I'm working on a project where I have to decide on a container / codec. Is there a codec that is mostly simple to encode/decode and is faily standard?
[00:30] <ac_slater> MPEG2 Part 2 ?
[00:32] <ac_slater> (MPEG 4 Part 10 h.264 is too heavy for my target platform (arm))
[00:36] <SenseiV183> Is there a more powerful media file analyzer than ffmpeg -i mediafile.type like one that shows all codec options of source video files?
[00:36] <ac_slater> SenseiV183: on linux I use `mediainfo`
[00:37] <SenseiV183> ac_slater, I'll check that out now.  Thanks
[01:02] <llogan> SenseiV183: ffprobe
[01:03] <llogan> ffprobe -show_streams -show_format input.foo
[01:03] <llogan> etc
[01:03] <llogan> as for the lossless intermediate files you can try: huffyuv, ffv1, utvideo, libx264/libx264rgb
[01:04] <llogan> as for a distro Arch uses FFmpeg and it is kept relatively up to date with the latest branch
[01:06] <SenseiV183> llogan, Wow MediaInfoLib - v0.7.67 that ac_slater mentioned has lots of details, even minimum and maximum frame rate, never seen ffmpeg display that.
[01:06] <llogan> mediainfo output can be incorrect
[01:07] <llogan> did you try ffprobe?
[01:07] <llogan> ac_slater: why do you think H.264 is too "heavy"?
[01:08] <llogan> and what are you trying to do, exactly?
[01:09] <ac_slater> llogan: yea maybe I need to be more specific. For sake of conversation, just imagine taking in some container, doing some work on it's streams, and sending it either a) out some socket or b) to an output container
[01:09] <ac_slater> specifically video streams, I dont care about audio
[01:09] <SenseiV183> Exactly I want to take the footage off the GoPro and convert into a lossless format with all intra frames so I can make my cuts easier.
[01:10] <ac_slater> llogan: problem is, if I encode my final frame data to h.264, I get terrible real-time performance (which is expected). I need a codec that will let me do read/write pretty quickly in real time.
[01:11] <SenseiV183> neither mediainfo nor ffprobe nor ffmpeg seam to display i frames b frames info for a file.
[01:11] <ac_slater> ie- demux container->do work on video stream->encode back to something->output
[01:11] <llogan> SenseiV183: try those suggestions
[01:11] <llogan> ac_slater: using API or cli tools?
[01:12] <ac_slater> PAI
[01:12] <ac_slater> API* ;)
[01:12] <ac_slater> libavcodec, libavformat, etc
[01:13] <llogan> "performance" as in encoding performance? libx264 can use different presets to affect encoding speed
[01:13] <ac_slater> llogan: I don't know enough about the benefits of each codec type to really choose a suitable one.
[01:13] <llogan> what are you going to do with the output?
[01:13] <ac_slater> llogan: right, even the baseline profile is too much for my little ARM cortex A9 to handle
[01:14] <llogan> that's a profile. i was talking about the presets.
[01:14] <ac_slater> llogan: that's a tricky question, eventually send out to RTSP, but for now it would be nice to benchmark dumping it out to a new container
[01:16] <ac_slater> llogan: ohh right. H.264 is massively complex... I was told once that messing with the presets can violate certain constraints if/when someone (ie- RTSP) is trying to play it :-/. Didnt dig much past that. If you think fine-tuning h.264 settings will get me some decent encode speeds, then I should probably stick to that. My input frame rate is 60fps, what do you think the BEST h.264 encode FPS I could
[01:16] <ac_slater> possibly get (assume slow but not dead-slow CPU speeds, DDR3, etc)?
[01:17] <ac_slater> as in, something equiv to a smartphone CPU
[01:18] <SenseiV183> llogan, ffprobe -show_streams -show_format input.foo <--  That command is Golden!  Very very nice.  Exactly what I was looking for!  All the details!!!!  Bless you.
[01:20] <llogan> SenseiV183: you can also change the formatting of the output. see -print_format in "ffmpeg -h"
[01:21] <llogan> ac_slater: it depends® (on too many things to make an accurate guess)
[01:22] <ac_slater> llogan: yea understandable.
[01:22] <llogan> and if you're stuck you can always ask the libav-user FFmpeg API mailing list
[01:22] <ac_slater> llogan: if you could say that one codec is the "fastest", which would it be?
[01:23] <llogan> maybe rawvideo
[01:23] <ac_slater> llogan: I also dont really care too much about compression rations
[01:23] <ac_slater> ratio*
[01:23] <ac_slater> llogan: interesting
[01:25] <ac_slater> llogan: I appreciate the input mate, take it easy
[01:36] <ml604> hello, looking for a command to convert from I420 to YUVA, anyone?
[01:41] <llogan> ml604: ffmpeg -i input -pix_fmt yuva* -c:v ffv1 output.nut
[01:41] <llogan> see "ffmpeg -pix_fmts"
[04:52] <james1ba> Hello there folks. Is this a good place to ask a quick question that I couldn't help on over at stackoverflow?
[06:50] <anshul> when I am seeking the audio to start I am getting a jerk or bad sound, is there any concept similar to  I frame in audio
[06:51] <thebombzen> Are you seeking with -ss before or after -i?
[06:51] <anshul> i am using api avformat_seek_file(ctx->audio.in_fmt, -1, 0, 0, 0, 0);
[06:51] <thebombzen> oh. libavcodec api. can't help you there, only used the CLI
[06:52] <thebombzen> sorry libavformat api
[06:55] <anshul> I think I  have messed up with min_ts and max_ts, my motto is to restart the same audio when eof file is recieved from av_read_frame.
[08:11] <anshul> is there any way to get the lock (mutex) in libavutil/log.c , if I am trying to use mine own default function
[10:45] <popo`> hi, i am doing something like 'mplayer -vf stereo3d,scale=800:800,eq2=1:-1 -fps 6 yuv4mpeg 1.MOV', how can i record this output to a video file? i was told to ask here
[10:46] <popo`> sorry: 'mplayer -vf stereo3d,scale=800:800,eq2=1:-1 -fps 6 1.MOV'
[10:48] <klaxa> try: ffmpeg -i 1.MOV -vf stereo3d,scale=800:800,eq2=1:-1 -fps 6 out.mkv
[11:08] <popo`> klaxa: [AVFilterGraph @ 0x873c0c0] No such filter: 'eq2'
[11:11] <popo`> i run arch linux ...
[11:11] <sacarasc> That was for me.
[11:12] <popo`> sry
[11:25] <anshul> if i am taking AVClass  object in my application structure, what should i set to category AV_CLASS_CATEGORY_NB or AV_CLASS_CATEGORY_NA
[13:54] <steinchen> hello all.. i want to streamcopy a .rec file which is mpeg2ts of 1gb size... but ffmpeg stops at 70mb - i can place the file somewhere to examine. heres the pastebin: http://pastebin.com/g2FGXtri
[14:44] <relaxed> steinchen: why do you want mpg?
[15:20] <steinchen> relaxed, src is mpeg and i just need to streamcopy it
[15:21] <relaxed> source is mpegts
[15:21] <relaxed> what are you actually trying to do?
[15:23] <steinchen> convert the .rec into a valid mpg2.. the rec file itself is mpegts but cant be used
[15:23] <relaxed> used by what?
[15:24] <steinchen> another internal process... getting fingerprints out of it and compare it against other videos
[15:26] <relaxed> which container do you need?
[15:28] <relaxed> ffmpeg -i input -map 0 -c copy -f vob output.mpg
[15:53] <DopeLabs> anyone have any info on proper usage of -icy ?
[15:53] <bencc> how can I mix several live audio streams?
[15:53] <Hello71> -map
[15:54] <bencc> do I need to buffer packets for 1 packet duration so I'll have packets from all streams?
[15:54] <bencc> how can I handle dropped packets in case of unreliable udp streams?
[15:55] <Hello71> I think ffmpeg network handles that
[15:56] <Hello71> unless you're actually using libav* instead of ffmpeg per se
[15:57] <bencc> I want to do it with C
[15:57] <bencc> and I'm asking about the actual implementation
[15:57] <bencc> using ffmpeg no libav
[16:12] <steinchen> relaxed, thynks... tying that gives "Cannot map stream #0:4 - unsupported type."
[16:59] <c0nio> hi i want to stream my webcam input to the same computer (localhost) and watch it with VLC player i'm using: ffmpeg -f dshow -i video="Logitech HD Webcam C270 " -f mpegts udp://localhost:36363, but i cant open the stream in VLC
[17:00] <c0nio> i build the ffmpeg libraries etc myself with a cross compiler for win32, but udp is enabled by default right?
[17:46] <Guest6994> Hi, i'm trying to change audio volume in a movie.   ffmpeg version 0.8.9-6:0.8.9-0ubuntu0.12.10.1  tells me: Unrecognized option 'af'
[17:47] <jnvsor> Guest6994: That's almost certainly not ffmpeg
[17:48] <JEEB> it is ffmpeg, but it isn't FFmpeg
[17:48] <JEEB> note the distinction
[17:48] <JEEB> (cli app vs project)
[17:49] <JEEB> and yes, as I was writing it's a binary from the libav project (which has not been around for a relatively long time any more, but unfortunately the debian-based distros were really slow at updating their package)
[17:49] <JEEB> you should use the avconv binary when using anything libav-based, and if that doesn't have audio filters then you might want to try the FFmpeg static builds
[17:53] <Guest6994> it's in the ubuntu repo and works fine for a lot of other things. i know that some dev on ubuntu favors the fork, but ...  i mean, what's going on here? -af sounds pretty basic to me and should just work
[17:55] <JEEB> multiple reasons
[17:55] <JEEB> as in, possible ones
[17:56] <JEEB> 1) it's possibly not in the old ffmpeg binary, which is what was left to wither in libav (and the rewritten one is avconv, the changes of which are in FFmpeg's ffmpeg as well) 2) the old version does not have audio filters 3) libav doesn't have audio filters
[17:57] <JEEB> at least it seems from current avconv documentation that a) the -af option is there and b) there are some audio filters
[18:06] <Guest6994> all i'm getting out of this is some weird politics going on. Is version 0.8.9 ancient or broken?
[18:06] <jnvsor> Guest6994: both. use avconv or get ffmpeg
[18:06] <JEEB> it is ancient
[18:07] <JEEB> and unfunny enough only after 13.10 ubuntu got released did debian/ubuntu finally get to update all of the dependencies
[18:07] <JEEB> so only 14.04 will have something newer
[18:07] <JEEB> which is a goddamn disgrace
[18:13] <Guest6994> ok, thanks.  but  your previous remarks make it sound like "ubuntu ffmpeg" "ffmpeg" and "FFmpeg" aren't even the same thing.
[18:14] <Guest6994> i don't want to bother you with this any further. is there a place where i can read up onthis?
[18:15] <jnvsor> There
[18:17] <Guest6994> Sorry, missed that link further up. Thanks again to all of you!
[18:19] <JEEB> Guest6994, FFmpeg is the project, ffmpeg is the binary
[18:19] <JEEB> Libav is another project, and it used to have ffmpeg as well as avconv
[18:19] <JEEB> when elenril rewrote quite a few parts of the option-related stuff
[18:19] <JEEB> he renamed the updated binary avconv
[18:19] <JEEB> and ffmpeg was left to wither, it was there with the 0.8 release
[18:19] <JEEB> later with the 9 release it was removed and avconv only was left
[18:23] <beastd> also be very careful with packages named ffmpeg in linux distros (especially the debian-based ones), they might just be transitional packages leading you straight to the fork misleadingly named Libav
[18:27] <beastd> For having a means of differentiation FFmpeg project has chosen start library micro versions at 100. so if you can see the library versions and it is a.b.c with c >= 100 then it is from FFmpeg
[18:28] <mikehelmick> Hey all
[18:29] <mikehelmick> Had a quick question. I'm trying to extract a thumbnail from a .mov file
[18:29] <mikehelmick> Locally, I'm running: ffmpeg -i /Users/mikehelmick/Desktop/IMG_0429.mov -vframes 1 -s 640x320 -ss 10 /Users/mikehelmick/Desktop/testing.jpg
[18:29] <mikehelmick> but to no avail :( Anyone have any ideas why I get this: Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
[18:30] <mikehelmick> Do I need to install a codec to handle video/quicktime mimetypes?
[18:33] <mikehelmick> Any help is greatly appreciated!
[18:34] <JEEB> start with pastebinning the full command and output
[18:34] <JEEB> and linking it here
[18:34] <JEEB> there are no espers here to my knowledge
[18:35] <mikehelmick> I did past it, it's literally only this: https://gist.github.com/michaelhelmick/2400e50127427b59d48b
[18:35] <mikehelmick> paste *
[18:35] <mikehelmick> One sec. Let me get the output
[18:36] <mikehelmick> Sorry, I didn't paste that :X
[18:36] <mikehelmick> JEEB: https://gist.github.com/michaelhelmick/ffceaede71065271b549 there ya go. Sorry!
[18:37] <JEEB> oh
[18:37] <JEEB> I have a feeling it parsed your ss incorrectly
[18:37] <JEEB> 00:00:10.000
[18:37] <JEEB> try this instead
[18:40] <mikehelmick> Hrpm. Got this instead
[18:40] <mikehelmick> JEEB: Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
[18:40] <mikehelmick> Running: ffmpeg -i /Users/mikehelmick/Desktop/IMG_0429.mov -vframes 1 -s 640x320 -ss 00:00:10.000 /Users/mikehelmick/Desktop/testing.jpg
[18:40] <JEEB> (´
[18:40] <JEEB> or you might want to put -ss first and -vframes after that?
[18:40] <mikehelmick> That's a good expression. I haven't seen that haha
[18:40] <mikehelmick> I'll try that@!
[18:41] <JEEB> also updating your ffmpeg might be a good idea
[18:41] <JEEB> it's very, very old
[18:41] <mikehelmick> Hrpm. I just brew installed it
[18:41] <mikehelmick> one sec
[18:41] <mikehelmick> Meh, that's the latest verison on Homebrew :(
[18:41] <JEEB> yes homebrew installs a very old one by default
[18:41] <JEEB> you need to use the HEAD switch
[18:42] <JEEB> probably because some specific apps are not updated to newer APIs
[18:42] <JEEB> but if you only need ffmpeg
[18:42] <JEEB> then you may just go and install the HEAD version
[18:43] <JEEB> yeah, it seems to be just --HEAD
[18:43] <beastd> mikehelmick: sorry i didn't delve into your problem and do not actually know what you want to do. but this may be interesting for you: http://ffmpeg.org/ffmpeg-all.html#thumbnail
[18:43] <JEEB> you should update your ffmpeg in any case
[18:45] <mikehelmick> I'm installing the latest version now.
[18:45] <mikehelmick> Is the apt version the latest? (if you happen to know off hand)
[18:46] <JEEB> what?
[18:46] <JEEB> just homebrew install the --HEAD version of ffmpeg
[18:46] <JEEB> it's an option in it
[18:52] <Guest6994> JEEB, beastd   thanks just installed ffmpeg version 0.10.9-7:0.10.9-1~quantal1 from Jon Severinsson's FFmpeg PPA , which is linked to from ffmpeg.org.    Doesn't recognise -af either.
[18:53] <JEEB> jesus christ something old again :D
[18:53] <JEEB> I don't think that's much better than libav 0.8's avconv
[18:53] <JEEB> just use the static binary
[18:55] <mikehelmick> JEEB: ever run into `Error: Failure while executing: git fetch -q origin` before? I ran `brew install ffmpeg HEAD`  & I've updated brew. Did a brew doctor and brew cleanup
[18:55] <mikehelmick> Is that repo just effed?
[18:57] <JEEB> no idea, could be. Just fetched from the videolan repo itself (not via the source.ffmpeg.org thing) and it seems to work
[18:57] <Guest6994> ok, i think i'll bite the bullet. Still can't believe that -af was broken for so long. Are the binaries from http://ffmpeg.gusari.org/static/32bit/ ok?
[18:57] <JEEB> should be
[18:58] <mikehelmick> Yeah, it's trying to fetch from videolan. Hrm.. one sec
[19:00] <mikehelmick> JEEB:  :O I just did `brew install ffmpeg -h` and it seems to be install 2.1.3 haha...
[19:00] <mikehelmick> Computers, man.
[19:05] <mikehelmick> JEEB: So, if I don't pass `-ss 10`
[19:06] <mikehelmick> or `-ss 00:00:10.000`
[19:06] <mikehelmick> it works haha
[19:06] <JEEB> yes, naturally
[19:06] <JEEB> how long is that clip?
[19:08] <mikehelmick> FML.
[19:08] <mikehelmick> 2 seconds.
[19:09] <mikehelmick> I couldn't have sworn it was at least 30, haha
[19:12] <Guest6994> <JEEB>, <beastd>,<fflogger>,<jnvsor>  the static binary actually accepts   -af   . Thanks for your help.
[19:12] <mikehelmick> JEEB: There's seriously no good python wrappers for FFMPEG. -.-
[19:12] <mikehelmick> Maybe I'll learn more about it and write one. FFVideo isn't supporting my mov file. :/ and pyffmpeg doesn't have a pypi installation
[20:28] <biapy> hi
[20:28] <biapy> is there a way to compute replaygain using ffmpeg ?
[21:28] <khali> biapy: I use audacity for this
[21:28] <khali> but only because I don't need it too often
[21:30] <khali> biapy: did you try -af replaygain?
[21:30] <khali> according to the description it does exactly what you asked for
[21:30] <biapy> khali, no. Thank you !
[21:31] <biapy> i've forgotten about this option (seen in passing while reading documentation)
[21:32] <khali> biapy: -af volumedetect might be of some use to you as well
[21:34] <biapy> khali, not available on avconv ... i'm trying to make a portable script
[21:36] <steinchen> hi again.. hello all.. i want to streamcopy a .rec file which is mpeg2ts of 1gb size... but ffmpeg stops at 70mb - i can place the file somewhere to examine. heres the pastebin: http://pastebin.com/g2FGXtri - the hint to encode with " -map 0" gives "Cannot map stream #0:4 - unsupported type."
[21:37] <JEEB> biapy, if it's not available in current git HEAD libav either, then I recommend you poke #libav-devel and ask for a backport :P
[21:38] <biapy> JEEB, not an option, i'm writing a script for current ubuntu / debian (and eventually mac os x)
[21:39] <biapy>  > https://github.com/biapy/howto.biapy.com/blob/master/various/mussync-tools
[21:39] <biapy>  > music library conversion tool (wrapper to ffmpeg of avconv)
[21:46] <JEEB> well
[21:47] <JEEB> have fun with that then
[21:47] <biapy> thank you
[21:47] <biapy> mp3gain seems to work (randomly)
[21:47] <JEEB> :)
[22:22] <llogan> biapy: avconv is not from FFmpeg
[22:24] <biapy> llogan, i know
[22:24] <biapy> llogan, but i try to find help where i can :D
[22:24] <biapy> llogan, and its ffmpeg channel that helped me , not libav one :D
[22:25] <llogan> you need to ask in #libav for avconv help anyway, and here for FFmpeg stuff
[22:26] <llogan> steinchen: i don' see "unsupported type" in your console output
[22:27] <llogan> also, don't use -sameq. it doesn't mean "same quality", it ahs been removed from ffmpeg, and does not make sense when stream copying anyway (and is therefore probably ignored)
[22:27] <llogan> and the 1.0 branch is old. try a recent build when you encounter issues
[22:27] <llogan> !dp static
[22:30] <steinchen> ill try with the latest ty... the message appears only with "-map 0" .. heres the full paste: http://pastebin.com/eWYxz23G
[22:31] <steinchen> is there a debian repository for the latest builds?
[22:34] <llogan> steinchen: if there is one i don't know of it
[22:37] <steinchen> ok,.. it seems that the stream changes in the .rec file... anyone willing to take a look at the source file?
[22:39] <llogan> you could try increasing for the 'analyzeduration' and 'probesize' options
[22:39] <llogan> *increasing the values
[22:46] <steinchen> mh i tried various adjusts but it does always stop at the same position
[00:00] --- Sun Feb  2 2014


More information about the Ffmpeg-devel-irc mailing list