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

burek burek021 at gmail.com
Fri Dec 28 02:05:01 CET 2012


[00:07] <Penyulap> how can i hassle ffmpeg to make it hd output, like where would i write the resolution size ?
[00:07] <Penyulap> or rather, what is the prefix ?
[00:07] <Penyulap> ir ?
[00:07] <Penyulap> -r ?
[00:08] <klaxa> Penyulap: pastebin link would be nice
[00:08] <Penyulap> but it's working,
[00:08] <klaxa> then don't expect help
[00:08] <Penyulap> i thought there was a general command like -r 200x400 or something
[00:09] <Penyulap> I didn't mean to cause trouble
[00:09] <klaxa> put it anywhere after the input file (i think?)
[00:09] <Penyulap> do i call it -r ?
[00:09] <klaxa> no -s
[00:09] <klaxa> -r is framerate
[00:09] <Penyulap> and just say 300x400 ?
[00:09] <Penyulap> oh
[00:10] <Penyulap> what is resolution ?
[00:10] <klaxa> -s
[00:10] <klaxa> did you read the manpage or the help page?
[00:10] <Penyulap> oh
[00:10] <Penyulap> do i use px after it or x in the middle
[00:10] <Penyulap> where are they ? I have the install, and a list of 19 commands from a webpage.
[00:11] <klaxa> just <xres>x<yres> for example: -s 1280x720
[00:11] <Penyulap> i should search some more
[00:11] <klaxa> you should open a terminal and type "man ffmpeg"
[00:11] <Penyulap> ah! thanks! that is i think everything i need, thank you and sorry for the trouble
[00:11] <klaxa> or go the ffmpeg.org online manpage
[00:11] <Penyulap> oh
[00:11] <Penyulap> i'll try man ffmpeg
[00:17] <Penyulap> here it is http://pastie.org/5582020 that site is far too simple., so simple it's astonishing
[00:18] <Penyulap> that command is the idea i am after, though the output glitches every 2-3 seconds and it is blurry too
[00:19] <Penyulap> http://pastie.org/5582036#24
[00:20] <llogan> you probably don't want flac for audio. add "-acodec libvorbis"
[00:20] <llogan> however, what you're using is real ffmpeg, but something from a fork, so any advice we give you may not work with what you're using
[00:20] <Penyulap> oh ok, also it manages to squeese the 147MB video into a 5MB ogg, I'm thinking that's rather TOO economic :)
[00:20] <llogan> *is not real ffmpeg
[00:21] <Penyulap> oh
[00:21] <llogan> and you're not declaring any quality method, so it is using default settings, which are probably too low
[00:21] <llogan> so add -qscale 3. i think that will work with what you're using
[00:22] <llogan> calling it "ffmpeg". yeah, it's a funny joke they played on everyone.
[00:22] <Penyulap> does the proper ffmpeg work if i install it from the software centre on ubuntu?
[00:23] <llogan> Ubuntu no longer offers ffmpeg from FFmpeg.
[00:23] <Penyulap> which is the good one?
[00:23] <llogan> so you will either have to use what they offer, compile it, use a PPA, or use a static build
[00:23] <llogan> we are obviously biased here
[00:24] <Penyulap> oh
[00:24] <llogan> since this is #ffmpeg
[00:24] <llogan> and not #libav
[00:24] <Penyulap> a-ha
[00:27] <Penyulap> well, you guys seem more like casper and a party in the mansion than like, a zombie uprising to me.
[00:28] <Penyulap> still, it's good at least that people have a choice, rather than how windoze is all locked up.
[00:28] <Penyulap> in the end, it all works well
[00:33] <Penyulap> is 2 higher quality than 3 ?
[00:33] <Penyulap> sorry, i ask a silly thing, don't worry
[00:38] <Penyulap> 2 makes a black screen.. i try 4 now
[00:41] <Penyulap> it was my computer, strange aspect ratio tho, it cuts off the sides
[00:41] <brontosaurusrex> yasm, x-code and git, do i need anything else on OSX for compilation of latest gif?
[00:41] <Penyulap> but vlc says the out and the in are the same size
[00:41] <brontosaurusrex> i havent done it for a while
[00:42] <brontosaurusrex> *git
[00:43] <llogan> brontosaurusrex: depends if you want to support any external libraries, such as x264, libvpx, fdk-aac, etc
[00:43] <brontosaurusrex> only x264
[00:45] <llogan> https://ffmpeg.org/trac/ffmpeg/wiki/MacOSXCompilationGuide
[00:45] <llogan> might be useful
[00:46] <brontosaurusrex> thanks
[00:49] <llogan> although the guide will install much more stuff that you'll need
[00:51] <saste> llogan, if I'm not wrong libtheora is different from MPEG-based codecs, indeed an higher -qscale value will correspond to an *higher* quality
[00:54] <saste> Penyulap, -qscale:v 10 should provide the highest possible quality with libtheora
[00:54] <Penyulap> oh cool
[00:54] <Penyulap> is there something to say to it, hey! don't go cutting the sides off the picture you, you, converter I can't live without ?
[00:55] <Penyulap> :)
[00:55] <saste> Penyulap, it won't, unless you're using a wrong incantation
[00:56] <Penyulap> Hey ! just what are you saying ? I'll have you know that Pelyulap means magician in Indonesian :D
[01:00] <llogan> range appears to be 0 - 10
[01:28] <brontosaurusrex> after installing x-code i get "configure: error: no acceptable C compiler found" , clues?
[01:34] <brontosaurusrex> mkay, need to download cli tools separatedly as it seems ....
[01:48] <brontosaurusrex> got it!
[01:49] <llogan> brontosaurusrex: was that the problem?
[01:50] <brontosaurusrex> yeah, no cli compiler found before
[01:51] <brontosaurusrex> basically what i did is: get x-tools, open prefs > download cli tools, get yasm, compile yasm, get pkg-config, compile pkg-config
[01:51] <brontosaurusrex> after that just pull git for ffmpeg and x264
[01:51] <brontosaurusrex> and compile
[01:52] <llogan> feel free to add anything to that guide if you like
[01:53] <brontosaurusrex> well, i was trying to avoid homebrew
[01:53] <brontosaurusrex> and i can
[01:53] <brontosaurusrex> but i only need x264, so i never really test everthing
[01:54] <brontosaurusrex> but basically "how to compile on OSX" is a wrong title, should be: "How to compile on snow leopard, or How to compile on mountain lion"
[01:55] <mpfundstein> u will probably want libfaac as well
[01:56] <brontosaurusrex> no, i have best aac encoder in the world, and its built into OSX :P
[01:57] <mpfundstein> which one?
[01:58] <brontosaurusrex> afconvert is a cli tool (apple AAC encoder < must be the name)
[01:58] <mpfundstein> k but libfaac enables u to u faac with ffmpeg
[01:59] <brontosaurusrex> iam doing other audio manipulations, like replaygain
[01:59] <brontosaurusrex> so at the end is was easier to just extract audio and do it separatedly
[01:59] <brontosaurusrex> so far
[02:00] <brontosaurusrex> now, let me retry mateo` s magic xdcam command line ....
[02:11] <brontosaurusrex> hrm, is there a compile-time flag for -filter_complex?
[02:22] <macmichael01> I'm trying to merge 2 mp4 files into one using the following command. The result when played only shows the first segment. any ideas what I am doing wrong? ffmpeg -i 01.mp4 -i 02.mp4 -map 0:a:0 -map 0:v:0 -c copy output.mp4
[02:24] <macmichael01> http://pastebin.com/04R9Um5A
[02:35] <kewo> anybody know what  video/audio/container does youtube and netflix use
[02:36] <llogan> kewo: http://en.wikipedia.org/wiki/Youtube#Quality_and_codecs
[02:37] <llogan> macmichael01: http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f
[02:37] <kewo> and for netflix
[02:39] <macmichael01> llogan: does that affect the quality at all? I'd like to preserve quality. Also the mp4's that I would like to merge were muxed from m2ts files.
[02:43] <llogan> it depends if you have to re-encode
[02:47] <macmichael01> llogan: The files I want to merge contain h.264 video and dts audio. I guess what I can do to preserve quality is extract the individual audio and video into their own files and find a way to merge them into a single file. Unless there is a better way.
[02:47] <brontosaurusrex> how do i make sure that each separated input is also a new track in output file?
[02:54] <burek> macmichael01 http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20concatenate%20(join%2C%20merge)%20media%20files
[02:55] <burek> it is highly unlikely you'll be able to just "merge" two differently encoded streams
[02:55] <burek> if your goal is to play the resulting media on various devices, you'll most probably have to re-encode it into a proper single video/audio
[02:56] <brontosaurusrex> example: as input i have 1x video+audio, then 1x Left audio and 1x Right audio, how to output that? (ignoring the audio from video+audio and patching Left and Right to two mono channels?
[02:56] <burek> it's like merging rar file and a zip file hoping it will somehow work
[02:56] <burek> kewo, what is an video/audio/container?
[02:57] <brontosaurusrex> + i must admint i dont understand the single thing about -map
[02:57] <burek> yt uses flv (or mp4) with h264/aac
[02:57] <kewo> burek  h264/mp3/mkv  for example
[02:57] <burek> if that's what you are asking
[02:58] <burek> brontosaurusrex, are you sure you know what you are doing? :)
[02:58] <burek> or you want to take just a video (from the 1st input) and 2 mono audios and join everything into video + stereo audio?
[02:59] <brontosaurusrex> burek: yes, -i va.mov -i Left.wav -i Right.wav, then waht ... to do with -map?
[02:59] <burek> it depends what your end result should be
[02:59] <brontosaurusrex> yes >  take just a video (from the 1st input) and 2 mono audios and join everything into video + stereo audio?
[02:59] <burek> ok
[02:59] <burek> -map 0 will tell ffmpeg to use all streams from input 0 (first -i)
[03:00] <burek> but if you want only video, then you'll use -map 0:v
[03:00] <burek> from two other inputs, you'll want to merge audio with amerge audio filter
[03:00] <brontosaurusrex> does it matter where map is in command line?
[03:01] <burek> http://ffmpeg.org/ffmpeg-filters.html#amerge
[03:01] <burek> it does
[03:02] <brontosaurusrex> no merging, they have to be two separated mono streams
[03:02] <burek> ffmpeg -i va.mov -i Left.wav -map 0:v -f lavfi -i "amovie=left.wav [l] ; amovie=right.mp3 [r] ; [l] [r] amerge" -c:v copy -c:a aac out.mp4
[03:02] <burek> why 2 mono streams
[03:03] <evil_core> hi all
[03:03] <evil_core> WARNING: erroneous pipeline: no element "ffdemux_cdg"
[03:03] <evil_core> I built ffmpeg with cdg support :/
[03:03] <brontosaurusrex> becouse thats how my reference mxf looks like
[03:04] <evil_core> burek: its bad to paste 1 or 2 lines of error?
[03:04] <burek> brontosaurusrex then it's even simpler: ffmpeg -i va.mov -i Left.wav -i Right.wav -map 0:v -map 1:a -map 2:a -c copy output.mp4
[03:04] <burek> -map 0:v   ->   take only video from first input
[03:04] <burek> -map 1:a   ->   take only audio
[03:04] <burek> -map 2:a   ->   take only audio
[03:04] <burek> ...
[03:05] <brontosaurusrex> ah, thanks, let me try
[03:07] <evil_core> gst-launch  filesrc location=$1 !ffdemux_cdg ! ffdec_cdgraphics ! ffmpegcolorspace ! ximagesink
[03:07] <burek> evil_core..?
[03:08] <burek> does this look like a #gstreamer channel? :)
[03:08] <evil_core> anyway rpm -ql ffmpeg-libs | gre pcdg shows nothing, so not sure if cdg is build even if specified to to so
[03:08] <brontosaurusrex> burek: looks good, now i only need to check if channels are patched corectly ...
[03:12] <brontosaurusrex> everything looks correct
[03:17] <burek> great :)
[03:18] <brontosaurusrex> another thing, how to use r128 to get "entire clip" loudness and apply correction?
[03:25] <macmichael01> burek: Not as worried about supporting multiple devices. I'll be using the final video with plex. I basically want all the movies I have to be in a single format mp4 (I'm OCD). mp4's do support dts and h264 so there shouldn't be a problem with muxing/merging afaik.
[03:28] <macmichael01> I found that mp4tools has an option to join multiple files but I kind of wanted to do it via ffmpeg.
[03:28] <defaultro> hey folks, normally, which video format is supported in Windows machine other than avi? It's because I need to reencode an avi file since it's huge
[03:28] <defaultro> other people at work will be accessing this files
[03:29] <defaultro> most likely, this people won't have other cool video codecs
[03:29] <defaultro> should I convert it to .mov?
[03:30] <macmichael01> mp4 is my choice and seems to be supported everywhere. Also .mov and .avi is a container to hold audio and video.
[03:30] <defaultro> ok, I'll use mp4 then
[03:31] <defaultro> will Windows Media player be able to play mp4 file?
[03:31] <macmichael01> I haven't used windows in a while but my guess is yes.
[03:31] <defaultro> k
[03:37] <burek> defaultrom you don't really want to know if wmp will play avi or mp4
[03:37] <burek> you want to know if it will play what's inside of it
[03:38] <burek> since mp4/avi are just formats (containers) for encoded audio/video streams
[03:39] <burek> just let your friends know about vlc media player
[03:39] <burek> and you'll be fine whatever you send to them
[03:43] <brontosaurusrex> the r128 lib seems to be working
[03:45] <brontosaurusrex> but that will be sed/awk and then correct thingy, some other day ...
[03:45] <brontosaurusrex> thanks for help
[03:46] <roboman2444> so, im doing a ustream stream with ffmpeg, and it works very well
[03:46] <roboman2444> and i have an mp3 file playing for background music
[03:46] <roboman2444> but
[03:47] <roboman2444> how do i do *.mp3 for background?
[03:47] <roboman2444> basically play one after another for input
[03:48] <roboman2444> i guess i can use some other app to play them, and use a fifo to pump the result into ffmpeg
[03:50] <roboman2444> actually, that may be a good idea... then i can basically use that as a mixer to have microphone audio with voiceover volume control, etc
[03:50] <roboman2444> but, if i cant do the mp3 thing with ffmpeg, then can someone suggest a small app to do audio mixing?
[08:22] <elkng> is it possible to encode two or more videos in tile pattern in one big video, so if there are two videos 700x400 and 700x500 it will generate video as 1400x500 if its left to right tiling or 700x900 if its top to bottom tiling ?
[08:34] <wallerdev> if ffmpeg is encoding to an rtmp server, can i limit how fast it sends the data?
[08:35] <wallerdev> or does that not make sense haha
[14:07] <fakie> ffserver crashes when teardown rtsp
[14:07] <fakie> http://pastebin.com/CJFKWvNw
[14:26] <Konstigt_> hello.. what is the correct way to set a date (metadata) so that my photomanager will detect it during import of videos? i tried -metadata date=2012-12-12 for example but it fails to find it..
[15:45] <burek> elkng, there is a tile filter
[15:45] <burek> https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20take%20multiple%20screenshots%20to%20an%20image%20(tile%2C%20mosaic)
[15:46] <burek> i don't know if it can be used for video streams too, or for images only
[15:46] <burek> also, you could read this page
[15:46] <burek> in order to find out how to provide a useful backtrace
[15:47] <burek> that can narrow down the exact spot of the error
[15:47] <burek> so it can be fixed
[15:47] <burek> Konstigt, do you have any file that already contains that kind of metadata?
[16:55] <brontosaurusrex> how would i log ebur128 output to txt file? (ffmpeg -i "$tmp.wav" -filter_complex ebur128 -f null - > "$tmp.wav.txt") < is making nullsize logs
[17:01] <brontosaurusrex> or what is the -report file="" syntax?
[18:44] <mpfundst1in> hello mdsh, kierank from #obe told me that you deal with standard  conversion. i am noob on that field and could need some advice
[19:12] <norbert_> hi, I'm trying to reencode avi to mov, and I want to resize the video too; what I'm doing is: ffmpeg -ab 160k -s 1280x800 -sameq -b 4000k -i level1.avi -r 65535/2733 -r 25 level1.mov
[19:12] <norbert_> it seems to do what I want, except resizing; anyone here any ideas why it's not doing that?
[19:13] <norbert_> also, the audio sounds worse, now that I'm listening to it again...
[19:14] <norbert_> even with -ab 1600k it sounds worse
[19:21] <norbert_> (same when I remove the first -r stuff)
[19:22] <bakers> If I have an old avi and I do: "ffmpeg -i old.avi /tmp/new.mp4" i.e. don't give it any options does it use CRF or what does it use to convert/compress?
[19:23] <JEEB> it really depends on quite a lot of things
[19:23] <JEEB> with mp4 you either get libx264 that has somewhat sane defaults
[19:23] <JEEB> or if you don't have libx264 in
[19:23] <JEEB> you get the mpeg4 encoder which is MPEG-4 Part 2, and also has quite ancient defaults
[19:24] <JEEB> you should in general think that not setting the video and audio codecs is a relatively bad idea,
[19:24] <JEEB> libx264 has defaults that are pretty much the same as what you'd get by using the library or the x264 command line encoder by itself
[19:24] <JEEB> (yes, before it wasn't like that)
[19:25] <JEEB> which would be preset 'medium' and crf 23
[19:25] <bakers> I have a bunch of old .avis and I just want h264... is it "sane" to do "-preset slower -crf 20" and be done with it
[19:26] <JEEB> just set -c:v libx264 as well, and possibly some sane audio codec
[19:26] <bakers> Some of this is old divx, some is mp3 some is old crap
[19:26] <JEEB> or just do -c:a copy to copy audio
[19:26] <bakers> I just want h264 that will play on my Raspberry Pi and have decent quality
[19:26] <JEEB> then just copy audio with -c:a copy
[19:26] <JEEB> and video you can just set -c:v libx264 and whatever x264 settings you want
[19:27] <JEEB> preset slower and crf 20 is just fine if that's what you want
[19:29] <bakers> crf is 0 to 63?
[19:29] <bakers> 0 is highest quality?
[19:29] <bakers> 23 is default?
[19:32] <JEEB> with 8bit x264, 0 is lossless (separate encoding mode), and 0-51 is the 8bit CRF range, and then there are some after 51 that have extra filtering applied. Those are only to be used in x264 when it absolutely, definitely cannot fit stuff into a buffer. It's stuff for the "emergency mode"
[19:32] <JEEB> 23 is the default, and lower uses lower quants in general ("better quality")
[19:32] <JEEB> of course at some point you won't see the difference between X and X-1, and thus 23 is a relatively good place to start at
[19:41] <rainmaker1> Hi, is there any solution (free) that can be used to monitor stream quality be it mpegts, rtmp oq hls?
[19:43] <phatos> hi, I use ffmpeg for video-encoding. I work with the mpeg4 codec and two pass option. I am satisfied with the quality but after encoding my videos have a kind of blocky picture. is there an option for deblocking?
[19:44] <JEEB> how can you be satisfied with the quality if you have blocking in the output >_>
[19:45] <JEEB> or well, what you are complaining is exactly what is seen as negative picture quality
[19:45] <JEEB> *complaining about
[19:45] <phatos> cause i ve seen worse
[19:46] <mpfundstein_home> rainmaker1: interested in that as well
[19:46] <JEEB> also you'd have to deblock on the decoding side unless you want to open the ye olde source code and see how to control the deblocking in the encoder :P
[19:46] <rainmaker1> mpfundstein_home: :)
[19:47] <JEEB> phatos, in general I'd probably just push you towards using libx264 instead, it's easier to use, faster in most cases and simpler to configure
[19:48] <JEEB> but if you want to continue using the mpeg4 MPEG-4 Part 2 encoder you'll have to get ready to either raise bit rate, go and look at the undocumented settings and have "fun" with them, or both
[19:50] <Pimp_Rob> green
[19:50] <norbert_> hope it's okay if I repost: trying to reencode avi to mov, and I want to resize the video too; what I'm doing is: ffmpeg -ab 1600k -s 1280x800 -sameq -b 4000k -i level1.avi -r 25 level1.mov; it works, but doesn't resize and the audio sounds worse than the original
[19:50] <phatos> JEBB, what undocumented settings?
[19:51] <phatos> sry JEEB
[19:51] <JEEB> norbert_, 1) -sameq does not do what you think it does 2) use -vf scale, not -s 3) whaaat @ -ab 1600k 4) not setting output video/audio codecs is NOT a good idea
[19:52] <JEEB> also do you have to do a frame rate conversion, -r will trigger that, and in most cases you don't want it
[19:52] <JEEB> phatos, everything that is set and available from mpeg4enc.c but not in any help files etc.
[19:52] <JEEB> not that I know, I've mostly stopped caring about MPEG-4 Part 2 to be honest
[19:53] <norbert_> well, -sameq was just a little something extra, since I do specify -ab and -b
[19:53] <phatos> I ll give it a try, thanks
[19:53] <norbert_> -ab 1600k, because I tried -ab 160k and that sounded worse, but so does 1600k
[19:53] <JEEB> norbert_, as I said, don't touch it -- I think it even got removed from ffmpeg lately
[19:53] <norbert_> will try -vf scale now, hopefully it has some effect
[19:53] <JEEB> (lately as in the last 3 to 6 months)
[19:54] <norbert_> yeah, Debian stable here, so this is a stoneage version
[19:54] <JEEB> ugh
[19:54] <JEEB> you really, really want to build your own or use one of the static builds available
[19:55] <mpfundstein_home> JEEB: I cosign this. ;-)
[19:55] <norbert_> actually, now that I'm thinking about it, I have deb-multimedia.org in sources.list; this is still an old ffmpeg though (0.7.13)
[19:56] <JEEB> yes, just build it yourself with the few libraries that you actually need, or grab one of the static libraries available
[19:56] <norbert_> so, now I tried: ffmpeg -vf scale -s 1280x800 -b 4000k -i level1.avi -r 25 level1.mov
[19:56] <norbert_> but audio still worse and still not resized
[19:56] <JEEB> old ffmpeg defaults be old ffmpeg defaults :P
[19:56] <JEEB> ^ there
[19:57] <norbert_> well, I need ffmpeg not just now but with all libraries on the planet for future use
[19:57] <norbert_> I think I'll just stick with this one for now
[19:57] <JEEB> eh
[19:57] <norbert_> so many problems I've ran into in the past when compiling custom versions
[19:57] <mpfundstein_home> norbert_: just get libx264 , libfaac and libyasm
[19:57] <mpfundstein_home> norbert_: its also pretty easy
[19:57] <norbert_> one problem after another stops working
[19:57] Action: JEEB slaps mpfundstein_home for recommending faac
[19:57] <mpfundstein_home> norbert: just do it in the order libyasm, libfaac, libx264 , ffmpeg
[19:57] <JEEB> seriously, we have libfdk-aac now :P
[19:57] <norbert_> no, I'm not touching it, I'm smart :)
[19:58] <JEEB> both are designated nonfree
[19:58] <mpfundstein_home> JEEK: sorrryyyy
[19:58] Action: mpfundstein_home wonders whats so terrible about libfaac
[19:58] <norbert_> JEEB: any idea why it's not resizing and has worse audio than the original? is that because this ffmpeg version is 'old'?
[19:58] <JEEB> norbert_, sorry but I'm not gonna start helping someone with an ancient ffmpeg. It's just that much harder to make it do a good job in a similar way
[19:58] <mpfundstein_home> norbert_: if you need help compiling i can help you
[19:58] <JEEB> norbert_, you didn't set any values for the scale filter
[19:58] <norbert_> so in 2011, ffmpeg could not resize properly and didn't have the proper audio when recompiling
[19:58] <JEEB> and you still set -s
[19:59] <norbert_> is basically what you're saying
[19:59] <norbert_> the solution is to reboot the computer
[19:59] <JEEB> it's much older than that
[19:59] <norbert_> ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
[19:59] <JEEB> also ffmpeg by default re-encodes your audio
[19:59] <norbert_> -2011
[19:59] <JEEB> norbert_, that's when it was built
[19:59] <JEEB> not when 0.7 was branched off
[19:59] <norbert_> oh, okay
[20:00] <JEEB> it could of course be that 0.7 was released in 2011, but before all of the useful modifications very possibly
[20:00] <JEEB> you should set -acodec copy or set a sane'ish audio codec if you want to keep your audio relatively sane
[20:00] <JEEB> I have no idea what you want in there for your "mov"
[20:00] <norbert_> [NULL @ 0x941f640] Unable to find a suitable output format for '1280x800'
[20:00] <norbert_> I tried removing -s
[20:00] <norbert_> ffmpeg -vf scale 1280x800 -b 4000k -i level1.avi -r 25 level1.mov
[20:00] <JEEB> you know, reading the docs sometimes does help, wait a sec
[20:01] <mpfundstein_home> JEEB: is there a gain in terms of quality if switching from libfaac to libfdk-aac ?
[20:01] <JEEB> yes
[20:01] <JEEB> faac is far worse than fdk, which is fraunhofer's encoder
[20:01] <mpfundstein_home> norbert_: -vf scale=1280:800
[20:01] <mpfundstein_home> und -b:a otherwise it will use the bitrate for the video
[20:01] <JEEB> norbert_, http://ffmpeg.org/ffmpeg-filters.html#scale
[20:01] <JEEB> it also has examples
[20:02] <JEEB> mpfundstein_home, he has 0.7
[20:02] <mpfundstein_home> JEEB: ok. i didnt know about fdk . will try it out
[20:02] <mpfundstein_home> JEEB: aja, i forgot :D
[20:02] <JEEB> it might not have -b:a/v notation
[20:02] <JEEB> thus, -ab and -b I guess :P
[20:02] <mpfundstein_home> true
[20:02] <norbert_> that's why I stopped reading ffmpeg docs
[20:02] <mpfundstein_home> i kinda feel his pain. when i was starting using ffmpeg i fought hours until it compiled
[20:02] <norbert_> because everything changes all the time
[20:03] <mpfundstein_home> norbert_: USE THE NEW VERSION :D
[20:03] <JEEB> uhh
[20:03] <mpfundstein_home> lol
[20:03] <JEEB> the last time this changed
[20:03] <norbert_> "NEW VERSION" is also different in 3 years
[20:03] <JEEB> was in july-august 2011
[20:03] <norbert_> I've been using GNU/Linux for like 17 years now
[20:03] <JEEB> from time to time stuff kind of has to change, lots of the internals have become much better than they were in the very beginning of 2011
[20:04] <mpfundstein_home> i think also that the -vf pipeline are more than amazing
[20:04] <JEEB> not sure if ffmpeg will change for the command line user as much in the future
[20:04] <JEEB> at least in the close future of like a year or so
[20:04] <JEEB> after elenril's rewrite of the options parsing etc.
[20:04] <mpfundstein_home> JEEB: would be a shame. lots of scripts running here depending on it
[20:05] <JEEB> well, I'd be surprised if a lot of stuff would change now
[20:05] <norbert_> cool, it kinda works, resizes now and audio is okay; only the graphics suck even though I do -b 4000k
[20:05] <JEEB> norbert_, also the documentation for command line users is now much better than it was :P
[20:05] <JEEB> norbert_, check what codec is getting used
[20:05] <JEEB> I mean, one of the main things now and before
[20:05] <norbert_> norbert at ren:~/levels$ file level1.mov
[20:05] <norbert_> level1.mov: ISO Media, Apple QuickTime movie
[20:05] <JEEB> that hasn't ever changed
[20:05] <JEEB> norbert_, no -- that's the container
[20:05] <JEEB> check the ffmpeg log
[20:05] <norbert_> hm...
[20:05] <JEEB> it should tell you
[20:05] <JEEB> anyways, as I was saying
[20:06] <JEEB> one of the main things you should never, ever do is let ffmpeg decide for you what to use. It has become saner lately, but it still in most cases that aren't limited as hell most probably something you DO NOT WANT
[20:06] <norbert_> ok, so I should add -vcodec libx264 or something
[20:06] <JEEB> vcodec and acodec should should always be set
[20:06] <mpfundstein_home> precisely
[20:06] <norbert_> or -vcodec mpeg4
[20:06] <mpfundstein_home> and use a good preset
[20:07] <mpfundstein_home> slower for example or medium
[20:07] <norbert_> I need something that Cinelerra can handle, not sure, but will try both
[20:07] <JEEB> oh
[20:07] <mpfundstein_home> they also have presets for 2 pass
[20:07] <JEEB> editing
[20:07] <llogan> norbert_: tl;dr, but options placement matters.
[20:07] <llogan> shit before -i applies ot the input
[20:07] <JEEB> norbert_, cinerella was open source, right?
[20:07] <JEEB> llogan, that isn't his problem
[20:07] <JEEB> as far as I can see
[20:07] <norbert_> yes, GPL
[20:07] <JEEB> oh wait, he seemingly was putting -vf scale before it
[20:08] <JEEB> norbert_, then you'll just want to use something that is 1) lossless and 2) is most probably installed even with the freetard codec setups
[20:08] <JEEB> ffvhuff or so in AVI should be good enough, audio as raw PCM?
[20:09] Action: mpfundstein_home is off reading 
[20:09] <JEEB> I don't really see why it would support mov better as it really isn't something most people in the libre open source side of things would like to support
[20:10] <JEEB> ffvhuff should be a quick huffman-using compression technique for video, and supported even from old versions of libavcodec
[20:10] <JEEB> raw PCM audio is also quite hard to derp up
[20:10] <llogan> it has worked well for the few times i tested it for users in kdenlive and some other editors.
[20:10] <norbert_> well, Cinelerra hasn't been properly improved for centuries and it hardly opens anything; usually you get just audio or video, rarely both as you want it to
[20:11] <llogan> it, as in huffyuv or ffvhuff with PCM
[20:11] <norbert_> and some years ago I figured out that it can handle mov pretty good
[20:11] <norbert_> *pretty well
[20:11] <norbert_> (not a native English speaker)
[20:11] <JEEB> ok, let's try this then: ffmpeg -i derp.avi -vf scale=whatever -vcodec ffvhuff -acodec pcm_s16le output.avi
[20:11] <JEEB> this should work in it
[20:12] <JEEB> it's lossless and raw audio
[20:12] <JEEB> in a format that I'd be damn surprised if it wouldn't work in a GPL app that most probably uses an old-as-hell libavformat/codec
[20:12] <llogan> Undefined constant or missing '(' in 'whatever'
[20:12] <JEEB> lol
[20:12] <JEEB> naturally you'd want to put your stuff there :P
[20:12] <llogan> i expect that sometimes
[20:13] <mpfundstein_home> loooool
[20:13] <norbert_> JEEB: trying (it's currently reencoding, will open the file in Cinelerra in a bit)
[20:13] <JEEB> norbert_, I wish thee luck, it should be /quite/ editable tho :)
[20:13] <llogan> don't be surprised if the file is huge
[20:14] <norbert_> well, I already tried playing it with mplayer (while it's reencoding) and it looks and sounds fine - although my system is too slow to play it properly while the reencoding is going on
[20:14] <llogan> Like this guy in college we called "Big Extra" because he was bigger than big.
[20:14] <norbert_> dude
[20:14] <JEEB> norbert_, it'd be surprising if it didn't look fine
[20:14] <norbert_> that file is getting huge
[20:14] <JEEB> it's lossless
[20:14] <norbert_> norbert at ren:~/levels$ ls -lh output.avi
[20:14] <norbert_> -rw-r--r-- 1 norbert norbert 6.7G Dec 27 20:15 output.avi
[20:14] <JEEB> compressed with huffman
[20:14] <norbert_> already at 6.7G
[20:14] <JEEB> yes, it's lossless
[20:15] <JEEB> not raw naturally, because that's even more crazy
[20:15] <norbert_> I'm afraid my system won't be able to handle this
[20:15] <llogan> welcome to 1998
[20:15] <JEEB> it should
[20:15] <JEEB> it's not hard to decode
[20:15] <norbert_> will try, we'll see :)
[20:15] <JEEB> I just see that as the way to lose least quality and have your stuff in a format that most probably works with your editor of choice
[20:16] <JEEB> (ffvhuff = losslessly encoding what you get from that scale filter with huffman compression, what comes in equals what comes out in video quality)
[20:16] <norbert_> (14G, still going...)
[20:17] <JEEB> you might have wanted to use -ss and -t to skip to a certain point and only encode X seconds of the clip
[20:17] <JEEB> for testing
[20:17] <norbert_> nope, not working
[20:17] <JEEB> o_O
[20:17] <norbert_> it's just opening the audio
[20:17] <JEEB> seriously?
[20:18] <JEEB> what the flying
[20:18] <norbert_> yes, seriously; but I'm used to that with Cinelerra
[20:18] <JEEB> jesus christ we just gave it something that libavcodec from ages ago could handle just fine
[20:18] <norbert_> mov will work though, almost ready with that (audio + resizing now works, just need to make it ffmpeg or something inside the container)
[20:18] <JEEB> well you could try to put the same stuff within mov if you want
[20:18] <JEEB> lol
[20:18] <JEEB> just switch output file name to something.mov
[20:19] <JEEB> (ffmpeg auto-selects the container format by the extension)
[20:19] <norbert_> or just ffmpeg or libx264 and it will be smaller and good enough
[20:19] <JEEB> I'd be deeply surprised if libx264 would work
[20:19] <JEEB> if it does it's a literal WTF and you'd want to use the lossless mode in that
[20:19] <norbert_> yes, I will try mpeg4
[20:20] <JEEB> mpeg4 shouldn't either
[20:20] <JEEB> and mpeg4 doesn't have a lossless mode either
[20:20] <JEEB> so you don't want your movie editing to be using that stuff as a source
[20:20] <norbert_> Unknown decoder 'libx264'
[20:21] <llogan> option placement matters
[20:21] <JEEB> note: settings that are set before -i set stuff for the decoder/input
[20:21] <JEEB> settings that are set after -i set stuff for the encoder/output
[20:21] <norbert_> I tried mpeg4, but it just gies me a lot of "Error while decoding stream #0.0times" and in the end the mov only plays audio with mplayer
[20:21] <norbert_> llogan: yeah... why, by the way, whoever came up with that
[20:22] <llogan> otherwise how in hell should ffmpeg know what you want?
[20:22] <norbert_> serious pain for the average user :)
[20:22] <llogan> there is the documentation and one of the first things it shows is how to use the syntax, but many people don't read docs
[20:22] <norbert_> okay, moved the libx264 stuff to the end and it reencodes now
[20:22] <llogan> and bitch when things don't work.
[20:23] <JEEB> it's not the best thing around, but it's one of the ways that lets you set the codecs for input easily enough
[20:23] <JEEB> and when that's not needed you just put the -i first
[20:25] <norbert_> but the -vcodec libx264 is for the output
[20:25] <norbert_> anyways, with libx264, still crappy video
[20:25] <JEEB> how would it know that if you don't put it after -i?
[20:25] <JEEB> and yes, ffmpeg defaults from ages ago
[20:25] <norbert_> ffmpeg -b 4000k -acodec copy -vf scale=1280:800 -i level1.avi -r 25 level1.mov -vcodec libx264
[20:25] <JEEB> it's gonna be crappy
[20:25] <norbert_> maybe I should move the -b 4000k to the end as well?
[20:26] <JEEB> also seriously, just put most of those settings after -i
[20:26] <mpfundstein_home> norbert_ move the i before -b 4000k
[20:26] <mpfundstein_home> the -i
[20:26] <mpfundstein_home> the only stuff i would want before -i is -ss and -t
[20:26] <norbert_> alright, moved -i to the beginning
[20:26] <norbert_> reencoding
[20:26] <mpfundstein_home> norbert_ very good :-)
[20:28] <DreadKnight> heya, how would I add an audio to a movie file?
[20:28] <DreadKnight> I really want to learn to use ffmpeg
[20:29] <norbert_> yes, the mov is perfect now, audio ok, video ok, resized; will try opening it in Cinelerra
[20:30] <norbert_> video works, but no audio
[20:30] <JEEB> just set audio to -acodec pcm_s16le or something
[20:30] <norbert_> console shows this, not sure if related: new_acodec: couldn't find codec for "sowt"
[20:30] <JEEB> lol
[20:30] <JEEB> yeah, try just putting raw pcm there
[20:30] <norbert_> will try -acodec pcm_s16le
[20:31] <JEEB> also if your ffmpeg can use the -crf option, remove video bit rate and switch to crf 0
[20:31] <JEEB> that should be lossless
[20:33] <llogan> DreadKnight: use pastebin or a similar site to show complete output of: ffmpeg -i videofile -i audiofile
[20:34] <mpfundstein_home> DreadKnight: it is a bit <ffmpeg -i <video> -i <audio> <options> <output>
[20:34] <mpfundstein_home> assuming audio and video have both the same length
[20:34] <DreadKnight> they don't xD
[20:35] <llogan> norbert_: and use -t so you don't have to encode the whole thing, such as -t 60 for 60 seconds
[20:35] <llogan> mpfundstein_home: that's what -shortest is for
[20:35] <norbert_> that pcm_s16le still gives me new_acodec: couldn't find codec for "sowt"
[20:36] <mpfundstein_home> llogan: excuse me if i might sound dumb, but what means -shortest ?
[20:36] <norbert_> Cinelerra is ancient, but when you get stuff to load, it works great :)
[20:36] <norbert_> going to try mpeg4 instead
[20:36] <llogan> mpfundstein_home: Finish encoding when the shortest input stream ends.
[20:37] <llogan> if it doesn't accept PCM then you might as well give up
[20:38] <llogan> and use a different editor
[20:38] <mpfundstein_home> mpfundstein_hone: thanks, didnt know that.
[20:38] <norbert_> I think mpeg4 works, I remember something like that
[20:38] <mpfundstein_home> llogan: thanks, didnt know that
[20:40] <norbert_> http://cinelerra.org/docs/wiki/doku.php?id=supported_file_formats
[20:41] <norbert_> yes, this works, cool, thanks for all the info folks
[20:41] <norbert_> good audio, good video, resized, and works in cinelerra :)
[20:42] <mpfundstein_home> norbert_: but still using an old ffmpeg :-)
[20:42] <norbert_> goes well with the old cinelerra ;)
[20:43] <JEEB> norbert_, ok so sowt was "uncompressed standard PCM"?
[20:43] <JEEB> no idea but I guess that's it?
[20:43] <JEEB> also I hope you did H.264 (libx264) and not mpeg4
[20:43] <JEEB> because libx264 can at least be set to lossless
[20:44] <mpfundstein_home> libx264 can be lossless???
[20:44] <mpfundstein_home> wow
[20:44] <JEEB> ...
[20:44] <JEEB> it has had support for the lossless parts of the high 4:4:4 profile for ages!
[20:45] <JEEB> if you set quants to zero, or with 8bit x264 set crf to zero, you get lossless
[20:45] <mpfundstein_home> ok. my knowledge isnt that deep yet
[20:45] <mpfundstein_home> i am in broadcasting for 6 months now :D
[20:45] <norbert_> JEEB, the resizing is from 320x200 to 1280x800, so I don't think I really need -crf 0
[20:45] <JEEB> with 10bit x264 crf values go under zero so the lossless value is somewhere there
[20:45] <norbert_> looks good enough as it is :)
[20:46] <llogan> JEEB: -12? I can't remember.
[20:46] <JEEB> yes, something like that
[20:47] <llogan> one reason i usually use -qp in examples
[20:47] <llogan> lossless examples
[20:50] <llogan> DreadKnight: you never posted the link.
[20:50] <DreadKnight> llogan, not much of an output at all, besides a warning that this will get deprecated and to use avconv instead xD anyway, trying kdenlive a few more time atm
[20:52] <JEEB> if it says that it means you are using a binary from the libav project, and you should indeed in that case not use the provided ffmpeg binary, because libav left that one alone and then removed it after the 0.8 release
[20:52] <JEEB> either switch to avconv in that case, or get a binary from the ffmpeg project
[20:53] <DreadKnight> ok; well, I'm on ubuntu 12.10 xD
[20:53] <JEEB> if you want to use the thing that's installed by default, use avconv -- that is more up-to-date
[20:53] <JEEB> (in the libav project)
[20:53] <llogan> anyway, i wanted the output so i could give you an exact example
[21:09] <Nolaan> Hi guys, i'm trying to record from my camera under Fedora 17
[21:09] <Nolaan> using the version 0.10.6 of ffmpeg
[21:09] <Nolaan> video and audio are out of sync
[21:10] <Nolaan> I read this ticket https://ffmpeg.org/trac/ffmpeg/ticket/692
[21:10] <Nolaan> saying that the problem was fixed  using V4L2 specific options
[21:11] <Nolaan> but how to use them (they don't look like specific for me)
[21:11] <Nolaan> and i tried of course and nothing changed!
[21:22] <norbert_> hm... what would be the easiest way to reverse an entire video, you think? I did find something that uses mencoder, ffmpeg and sox here http://ubuntuforums.org/showthread.php?t=1353893 but there's probably an easier way? :D
[21:24] <tbarletz> Anyone successfully built ffmpeg for mipsel?
[21:25] <chadmaynard> I'm new to ffmpeg and I am trying to accomplish what I assume is a pretty simple task. I want to take a live multicast mpeg2 transport and repeat it at mp4 or some better format. This command: ffmpeg -i 'udp://235.168.100.181:50001' -f mp4 'udp://192.168.100.121:50001' does not seem to do anything at all. Am i missing something obvious?
[21:26] <norbert_> (oh, I see that avidemux can do what I just asked)
[21:55] <roboman2444> so, im doing a ustream stream with ffmpeg, and it works very well
[21:55] <roboman2444> and i have an mp3 file playing for background music
[21:55] <roboman2444> but
[21:55] <roboman2444> how do i do *.mp3 for background?
[21:55] <roboman2444> basically play one after another for input
[21:57] <klaxa> mp3 is concatable, right?
[21:57] <klaxa> cat *.mp3 | ffmpeg -i - -c:a copy <video stuff> <rtmp stuff>
[21:58] <klaxa> i bet you can use the concat filter too, not sure how though, lol
[22:01] <saste> roboman2444, concat *muxer*
[22:01] <saste> ehm *demuxer*
[22:02] <saste> check ffmpeg-formats
[22:08] <RSD> Hi all, I followed the CentOS installation guide on wiki.ffmpeg.org
[22:09] <RSD> do I have all the tools to convert any format possible with ffmpeg to x264/aac ?
[22:09] <RSD> I compared the Ubuntu compilation file with the CentOS file, but they differ a lot
[22:37] <norbert_> thanks again, bye
[23:39] <an3k> I'm trying to convert ac3 to aac and as soon as ffmpeg should index the file it crashes because it tries to read or write into protected memory. I also get "Stacktrace" and "Inner exception: null"
[00:00] --- Fri Dec 28 2012


More information about the Ffmpeg-devel-irc mailing list