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

burek burek021 at gmail.com
Mon Dec 12 02:05:02 CET 2011


[00:04] <ubitux> exiff: -vf ass=/path/to/subtitles.ass
[00:04] <ubitux> this is atm the only workaround, we are working on something better for the subtitles support
[00:05] <ubitux> but it may take a while
[00:05] <exiff> I see... we all appreciate the hard work.
[00:07] <exiff> what of subtitles that are part of the video?  I tried the "-sst" option but it shows no subtitles 
[00:10] <ubitux> you just can't now
[00:10] <ubitux> (you may extract them though)
[00:10] <ubitux> but well, better use mplayer or vlc
[00:11] <Canadian1296> Anyone active here?
[00:12] <ludde> what does the q=26.0 value in the ffmpeg output mean
[00:13] <exiff> I'm having a few problems vlc. I'll try mplayer for now... thanks again. ^^,
[00:14] <CSMan> hi there!
[00:14] <CSMan> how can I add subtitles when converting videos?
[00:25] <bysidemyreflecti> hello, i have a question of compiling ffmpeg on osx 10.7 with libfreetype flag
[00:25] <bysidemyreflecti> i've tried a few things to provide the compile that osx already has libfreetype, but i haven't been successful
[00:27] <bysidemyreflecti> i've tried this: http://pastebin.com/MryAYyFn
[00:29] <bysidemyreflecti> i get "ERROR: freetype2 not found". i've tried installing free type through homebrew and it says there already is one installed
[00:33] <jesselang> How can I get ffmpeg to encode an image into a 30s video?
[00:34] <jesselang> I've tried -t 00:00:30, and I've tried setting -r 30000/1001
[00:34] <jesselang> I'm also using -target ntsc-dv, since that's the output format.
[00:34] <jesselang> It encodes 1 frame, which is then less than 1s long.
[00:43] <jesselang> -loop_input.
[00:46] <ludde> if I want a 1000k bitrate video that works well for internet streaming and seeking, what should I set vbv-maxrate and vbv-buffer to?
[00:46] <jesselang> Now that I've got that...
[00:47] <jesselang> Can anyone tell me why the DV encoder is non-deterministic? The produced video flutters around the text.
[00:47] <jesselang> Or what I can do to get a better quality output when encoding from an image to DV?
[00:48] <freeminds> is there a list of efficient convertings flags for common containers, like "If you want to play this by default on windows use this and that"?
[00:50] <ubitux> exiff: you may try mplayer2 too, which is (imo) more reliable so far
[00:51] <exiff> I'll try that, thanks for the suggestions.. I'm actually busy updating gstreamer
[01:36] <uncleRoy> Is the support forum still working at all?
[01:38] <uncleRoy> Well if anyone is around and feels like helping ...
[01:39] <uncleRoy> I'm geting the     Stream #0.0: Invalid Codec type -1 error
[01:39] <uncleRoy> it seems that this means that a codec isn't supported
[01:40] <uncleRoy> but I think both my input & output codecs are install
[01:40] <uncleRoy> ed
[01:40] <uncleRoy> If anyone has a suggestion, the log is here http://pastebin.com/n5EHifV2
[01:40] <uncleRoy> thanks
[01:41] <uncleRoy> environment is OSX 10.6.8, latest ffmpeg from subversion
[01:42] <newl> <parrot mode> get git the svn is suppose to be antique </>
[01:42] <uncleRoy> oh!
[01:43] <uncleRoy> I need to read better :(
[01:44] <newl> does it say that somewhere? i was just repeating what i heard
[01:44] <newl> compiling new ffmpeg lost it's fun factor a long long time agp
[01:45] <uncleRoy> ugh is there git for OSX?
[01:45] <newl> ? what is osx?
[01:45] <iive> mac os x
[01:46] <uncleRoy> yeah that :)
[01:46] <iive> uncleRoy: try it, it should compile. if it doesn't then it is bug.
[01:46] <uncleRoy> I built it fine from svn
[01:46] <newl> iive will help you if you have trouble
[01:46] <uncleRoy> I just have to figure out how to get the git source I guess
[01:47] <uncleRoy> oh ... wow if I was more stupid today I'd be a vegetable
[01:47] <uncleRoy> thanks folks
[01:47] <newl> radish or lettuce?
[01:56] <ludde> what's happened to the slow_firstpass preset
[02:05] <uncleRoy> Well at the risk of setting myself up for ridicule again ...
[02:05] <uncleRoy> OSX 10.6.8, latest ffmpeg from git
[02:05] <uncleRoy> trying to convert h264 to webm
[02:05] <uncleRoy> it seems webm isn't recognized ... gives this error
[02:05] <uncleRoy> Encoder (codec none) not found for output stream #0:0
[02:06] <uncleRoy> full log is here: http://pastebin.com/Ww0wK2d0
[02:06] <newl> you uploading to youtube?
[02:06] <uncleRoy> no, converting for a private website
[02:08] <newl> i don't think i can blame ya - it is the best format interms of size/playing speed on a small system
[02:08] <newl> must be great on a bigger system
[02:09] <newl> on windows?
[02:10] <uncleRoy> I'm converting on Mac OSX
[02:11] <newl> yea i remembered after posting that :)
[02:11] <iive> uncleRoy: i think you should specify video encoder. webm is mkv variant so it can take any encoder
[02:13] <newl> matroska is on by default?
[02:17] <uncleRoy> so with -target webm ?
[02:18] <sacarasc> Just make the output file foo.webm
[02:18] <newl> fmpeg -i foo.avi foo.webm
[02:19] <uncleRoy> it already is
[02:19] <uncleRoy> The log has this:
[02:19] <uncleRoy> Output #0, webm, to 'movie1.webm':
[02:22] <newl> uncleRoy: do ffmpeg -formats > file    and go through file for the Matroska
[02:28] <schwede_> What's the best way to stream video using ffmpeg?
[02:29] <uncleRoy> new1: thanks ... I see it on two lines
[02:29] <newl> as in real stream? -> icecast/shoutcast
[02:29] <uncleRoy> should I be using matroska instead of webm?
[02:29] <schwede_> newl: like realtime streaming
[02:32] <schwede_> Right now I'm going from my webcam -> ffmpeg -> netcat -> mplayer (and it works, but it's just a little too slow)
[02:32] <newl> uncleRoy: pastebin     ffmpeg -i foo.avi foo.webm    
[02:34] <newl> schwede_: up the -bandwidth 5000000
[02:34] <newl> in mplayer
[02:34] <schwede_> I've messed with -cache, but I'll have to try that too
[02:35] <uncleRoy> new1: http://pastebin.com/Ww0wK2d0
[02:37] <newl> uncleRoy: all i see is  'ffmpeg-webm-error'
[02:37] <newl> did you paste anything there?
[02:37] <uncleRoy> um
[02:37] <sacarasc> uncleRoy: You don't have ffmpeg compiled with libx264.
[02:38] <newl> sacarasc: did you see a paste there?
[02:38] <sacarasc> newl: Yes.
[02:38] <uncleRoy> OH :(
[02:38] <uncleRoy> good lord you'd never know I was a software professional :(
[02:38] <sacarasc> Though, I thought that webm used VP8 usually (with libvpx in ffmpeg).
[02:39] <newl> clicking on raw gives a blank page ... 
[02:39] <uncleRoy> looks like lots of things aren't available by default
[02:39] <uncleRoy> I'll try reconfigure and rebuild
[02:39] <uncleRoy> thanks 
[02:40] <sacarasc> I might be wrong, though, I am pretty tired. :D
[02:41] <schwede_> newl: It didn't really play any smoother.
[02:41] <uncleRoy> of course now I have to find the libx264 build
[02:43] <newl> uncleRoy: http://peppoj.net/2010/09/run-ffmpeg-on-mac-without-compiling-anything/
[02:43] <newl> that is as close to a mac as i ever want to get :)
[02:43] <uncleRoy> new1: Thank you ... My Google-fu is weak today apparently
[02:44] <newl> it is l not 1
[02:44] <newl> your tab complete is shot too
[02:45] <uncleRoy> er what?
[02:45] <uncleRoy> oh :D
[02:45] <uncleRoy> no just my eyesight
[02:49] <schwede_> newl: Ok, it works pretty well but then it starts to lag after about 30 seconds or so.
[02:49] <newl> increase cache?
[02:49] <newl> get a better pipe
[02:51] <schwede_> like use something besides netcat?
[02:53] <newl> that is an abuse of netcat ... use icecast
[02:55] <uncleRoy> newl: of course that doesn't have WebM
[02:55] <uncleRoy> Oh well
[02:55] <uncleRoy> Lost in a twisty maze of little dependencies
[02:56] <newl> or the wrong os?
[02:56] <uncleRoy> hmph
[02:56] <uncleRoy> :)
[02:57] <newl> compile it with all missing and you can be an osx ffmpeg hero?
[02:59] <schwede_> newl: Would icecast cache the video on the disk also? I'd like it send the video only.
[03:00] <uncleRoy> sounds good newl I'll be back in a month or two :)
[03:00] <uncleRoy> thanks for your patience
[03:01] <newl> uncleRoy: only takes a day
[03:02] <uncleRoy> I was thinking about finding all the individual libraries and compiling them as well
[03:02] <uncleRoy> building x264 now
[03:18] <uncleRoy> sacarasc: recompiled with libx264 but still no webm output 
[03:19] <sacarasc> uncleRoy: In ffmpeg -codecs, do you have vpx (might be libvpx) and an E next to either vorbis or libvorbis?
[03:19] <sacarasc> They are the codecs that usually go in webm.
[03:19] <uncleRoy> no vpx, no vorbis
[03:20] <uncleRoy> thanks
[03:20] <sacarasc>   EA    libvorbis       libvorbis Vorbis
[03:20] <sacarasc>  DEA    vorbis          Vorbis
[03:20] <sacarasc> Neither of them? :i
[03:21] <uncleRoy> nope
[03:21] <sacarasc> Weird. What version of ffmpeg are you compiling?
[03:22] <uncleRoy> top snapshot from http://ffmpeg.org/download.html
[03:22] <newl> do you have libvorbis installed?
[03:22] <sacarasc> That should allow ffmpeg's vorbis, I think...
[03:22] <uncleRoy> it reports ffmpeg version 0.8.7.git-964912a
[03:22] <uncleRoy> no I don't newl 
[03:22] <uncleRoy> so off to find that now
[03:23] <uncleRoy> whee
[03:24] <sacarasc> You'll also need libvpx.
[03:24] <uncleRoy> okay thanks
[03:26] <newl> uncleRoy: what were the orginal files? avi?
[03:27] <uncleRoy> "ISO Media" ... it's an m4v file
[03:28] <uncleRoy> came from a flip video camera
[03:28] <uncleRoy> I think
[03:29] <newl> maybe you are tripping the anti-upskirt filter on macosx?
[04:28] <uncleRoy> Thanks for all your help, got a webm file finally.
[04:28] <newl> so what did you do?
[04:29] <uncleRoy> compiled and installed yasm, libvpx, libogg, libvorbis (and x264) and then built ffmpeg again
[04:33] <uncleRoy> all in a day's work for us Mac folks :)
[04:34] <uncleRoy> Now I just have to figure out how to adjust the quality
[04:34] <newl> me notes apple didn't even have yasm 
[04:35] <newl> x264 has some nice presets
[04:38] <mshadle_> quick question. is there an easy way to dump out information on a video file without using ffmpeg -i <file> and having to parse out text chunks?
[05:13] <mshadle_> relaxed!
[05:20] <relaxed> mshadle_: hello
[08:41] <patrakov> hi. I am using this command to create screencasts (for further editing): ffmpeg -f x11grab -s 1024x768 -r 30 -i :0 -f alsa -ac 2 -ar 48000 -i hw:0 -vcodec mpeg4 -qmin 5 -qmax 5 -acodec pcm_s16le -y video.mov
[08:41] <patrakov> problem: after ~10-20 minutes, it gets ALSA underruns
[08:42] <patrakov> and these underruns are long, up to 5 seconds of lost audio data
[08:42] <patrakov> how to debug this?
[09:44] <cryptopsy> i want to produce a video from 3 images, each image lasting for a custom amount of time
[09:44] <cryptopsy> can this be done automatically with ffmpeg?
[10:19] <CDToon> hi! i'm on ubuntu, trying to run ffmpeg from cron... i use this line in cron: "0 19 * * 0 ffmpeg -i http://thisistheurlofthestream -f mp3 -acodec libmp3lame -ab 128k -ar 44100 -t 7200 outfile.mp3" everytime it runs, it gives me a working mp3 file, but it stops recording after 10 seconds although i limited the time to 7200 seconds. is there a way to do this, cron + ffmpeg ?
[10:26] <cryptopsy> if it runs under normal conditions, ask the cron team the proper syntax to list a command
[10:33] <cryptopsy> i want to produce a 5 second video clip of a picture, here's the output failing ompldr.org/vYm9ycA
[10:34] <cryptopsy> -f image2              doesn't help
[11:24] <cryptopsy> getting Invalid seek to negative position!
[11:24] <cryptopsy> on those files
[11:37] <cryptopsy> 05:31:51 < cryptopsy> i want to produce a 5 second video clip of a picture, here's the output failing ompldr.org/vYm9ycA
[11:37] <cryptopsy> seems some use flag is missing?
[11:37] <cryptopsy> jpeg2000 is not the same as jpeg
[11:37] <cryptopsy> and i have encode
[11:39] <mystica555_> and whats the actual result thats produced with that?
[11:39] <cryptopsy> yes
[11:39] <mystica555_> ie the file 1.mpg
[11:39] <cryptopsy> here's the output failing ompldr.org/vYm9ycA
[11:39] <cryptopsy> 06:23:11 < cryptopsy> getting Invalid seek to negative position!
[11:39] <cryptopsy> the ! is part of the output
[11:39] <mystica555_> ok.. so is a 1.mpg created at all?
[11:40] <cryptopsy> yes
[11:40] <cryptopsy> that's the output from mplayer
[11:40] <cryptopsy> trying to play ti
[11:40] <cryptopsy> it*
[11:40] <cryptopsy> do you know if bellard is releasing his pi code?
[11:40] <cryptopsy> and do you happen to have the old pihex project's code? that guy's website is down on the university server
[11:41] <mystica555_> no idea
[11:41] <mystica555_> can you ompload the 1.mpg you end up with?
[11:41] <cryptopsy> yes
[11:41] <cryptopsy> do you use omp?
[11:41] <cryptopsy> i can mediafire
[11:42] <cryptopsy> ompldr.org/vYm90NA
[11:42] Last message repeated 1 time(s).
[11:42] <cryptopsy> wow how strange
[11:42] <mystica555_> and that seems to be just a jpeg
[11:42] <cryptopsy> the first link is supposed to be .mpg and the second is supposed to be mp4, but they're the same!!
[11:42] <cryptopsy> mystica555_: yes its a jpeg turned to mpg
[11:43] <cryptopsy> it's supposed to be a video of a picture but nothing plays
[11:43] <cryptopsy> mystica555_: i did tow upload commands and it produced identical links
[11:43] <cryptopsy> 100 17555  100  2492  100 15063   3305  19979 --:--:-- --:--:-- --:--:-- 31446
[11:43] <cryptopsy> 100 17550  100  2487  100 15063   4433  26852 --:--:-- --:--:-- --:--:-- 34390
[11:43] <cryptopsy> different sizes --------------------------------------------^
[11:43] <mystica555_> one has a lavf header too
[11:43] <mystica555_> well, the one im looking at 
[11:44] <cryptopsy> the first is supposed to be mpg, so you probably got mp4
[11:44] <mystica555_> both a JFIF header and a 'created by lavf version'
[11:44] <cryptopsy> are you decoding to view the header?
[11:44] <mystica555_> im looking at it in less
[11:44] <cryptopsy> ah
[11:44] <mystica555_> after wget said the server told it 'image/jpeg' 
[11:44] <mystica555_> i then looked at it in feh, which was just a jpeg
[11:45] <mystica555_> then i looked at it in less to see what the actual file headers were
[11:45] <mystica555_> so its not being created as an mpeg frame at all
[11:45] <mystica555_> youve likely multiplexed a jpeg image into some container
[11:46] <mystica555_> and im not quite sure why/how this happened.
[11:46] <mystica555_> perhaps specificatino of a codec is needed
[11:53] <cryptopsy> try the same link
[11:53] <cryptopsy> should be a girl with a dog
[11:53] <cryptopsy> anyways ...
[11:53] <cryptopsy> yes i have no idea which codec
[11:53] <cryptopsy> can i produce another video output format?
[11:54] <cryptopsy> use use DEBUG to get more info?
[11:56] <mystica555_> look at the output of ffmpeg -codecs
[11:56] <mystica555_> youd likely want -codec mpeg1video
[11:56] <mystica555_> or mpeg2video
[11:56] <mystica555_> or mpeg4
[11:57] <mystica555_> or libx264
[11:57] <cryptopsy> there's no use flag for those
[11:58] <mystica555_> well ffmpeg in and of itself has mpeg1/2/4 built in. 
[11:58] <cryptopsy> ompldr.org/vYm90YQ
[11:58] <mystica555_> libx264 is the only separated one from that list
[11:58] <cryptopsy> oh i understand now
[11:58] <cryptopsy> you can see what codec it was compiled with in my output
[11:58] <cryptopsy> i pasted earlier
[11:59] <mystica555_> youd need USE=x264 for the libx264 codec; 
[11:59] <cryptopsy>  DEVSDT mpeg2video      MPEG-2 video
[11:59] <mystica555_> yep thats internal to ffmpeg
[11:59] <mystica555_> encoder/decoder
[11:59] <cryptopsy> so it should produce a working .mp4 in this case
[11:59] <mystica555_> if you do -codec mpeg4 on the commandline, and the output of .mkv or .mov or .avi sure
[11:59] <mystica555_> if you have it .mpg then its going to multiplex it strangely
[12:00] <cryptopsy> oh so it doesn't know by the file type
[12:00] <mystica555_> it infers the multiplexing type by the extension
[12:00] <mystica555_> ie: .mp4 would produce whatever codecs inside of a .mov/mp4 container
[12:00] <cryptopsy> then it should produce a working mp4 whether or not i specify -codec
[12:00] <mystica555_> multiplexing != compression
[12:00] <cryptopsy> what's the difference?
[12:00] <mystica555_> container vs actual codec
[12:01] <cryptopsy> is there a book on this?
[12:01] <mystica555_> 'mkv' is not a video format; it is simply a container format that can encapsulate just about anything
[12:01] <mystica555_> mpeg1/2 usually can be multiplexed into a few different formats.. elemental stream, transport stream, a few others
[12:01] <cryptopsy> multiplexing is the process of producing the mkv format?
[12:02] <mystica555_> doom9/doom10 are great for info
[12:02] <mystica555_> (forums)
[12:02] <mystica555_> multiplexing : combining multiple elemental streams such as audio, video, subtitle, etc, into 1 useful file
[12:03] <mystica555_> so you have say, mp3 audio, h264 video, and you want to make a .avi. 
[12:03] <mystica555_> .avi is the format its multiplexed into; avi is the container
[12:04] <cryptopsy> so mp3 h264 are the codecs and compressing is what produces them, but multiplexing is combining them
[12:04] <mystica555_> mind you, the term multiplexing has a wide use outside of the digital video specifics
[12:05] <mystica555_> yep
[12:05] <cryptopsy> yes
[12:05] <mystica555_> multiplexing is simply combining multi into 1
[12:06] <cryptopsy> then specifying a codex isn't necessary
[12:06] <mystica555_> extrapolate what that means to your specific situation :)  for a DSL tech, multiplexing would be taking the individual subscriber lines into the DSLAM and then you have 1 connection going to the telco network out of that DSLAM
[12:06] <mystica555_> im not sure why you think that
[12:06] <cryptopsy> since the input image is the codec, and mpg is the container
[12:07] <mystica555_> the input image isnt the codec specifically; yes, jpeg (in this case, it treats it as a 1 frame mjpeg movie) is the input codec; you want something else as the output codec however.
[12:07] <mystica555_> for the mpg container, you would likely be best served with mpeg2video
[12:08] <cryptopsy> can mplayer play encoded mp4s without them being in containers?
[12:08] <cryptopsy> i suppose so
[12:08] <mystica555_> it uses a bunch of detection magic to figure out what sort of file it is; a container provides synchronizing marks that are much easier to identify
[12:08] <cryptopsy> seems to work
[12:08] <mystica555_> so while yes, it might be able to, don't expect other programs/devices to 
[12:09] <mystica555_> ie, for mpeg4 video, you can have a raw h264 output, or, it can be multiplexed into the mp4 container
[12:09] <cryptopsy> i'm encoding for some 1000+ frames on 25fps but the playback is a flash
[12:09] <mystica555_> ipods won't play simple .aac files; they must have that mpeg4 container as well
[12:09] <cryptopsy> blackberries play flac files
[12:09] <mystica555_> irrelevant, but yes they d
[12:09] <mystica555_> *do
[12:10] <cryptopsy> ompldr.org/vYm90aA
[12:10] <cryptopsy> new output
[12:12] <cryptopsy> no matter how large i make the number of frames, it will encode 0.04 seconds of video
[12:12] <mystica555_> you may need -loop
[12:13] <mystica555_> its interesting; the current ffmpeg manpage shows that -loop_input and -loop_output are deprecated, both stating to use '-loop' yet -loop is absent from the manpage
[12:13] <cryptopsy> it works
[12:13] <cryptopsy> just one more question, if i want to produce a slideshow with different intervals, i have to make multiple out files and then concatenate them?
[12:14] <mystica555_> from that link i pasted in #gentoo, that seems to be the case
[12:14] <mystica555_> multiple outputs, concatenated
[12:17] <cryptopsy> thanks
[12:19] <cryptopsy> the produced mp4 files don't know when the file ends - that's because the container is missing?
[12:23] <mystica555_> cryptopsy: possibly. to completely follow that tutorial however, youd likely need mpeg2 video with an mpeg container
[12:23] <mystica555_> as im not 100% sure if mpeg4 video is concatenatable, or if the containers are
[12:24] <mystica555_> http://en.wikipedia.org/wiki/Comparison_of_container_formats
[12:26] <cryptopsy> using -vcodec mp4 with an .mpg extension produces unplayable files
[12:26] <mystica555_> indeed it does
[12:26] <mystica555_> thus why i linked you to the container format page
[12:26] <mystica555_> that seems to give a pretty good idea of what codecs are usable with which format
[12:58] <slacker> Hi, I am having a problem decoding a stream
[12:58] <slacker> http://pastebin.com/wKgVCx0Y <--- the command and output 
[12:59] <slacker> redirecting to mplayer and vlc gives the same error
[13:01] <mystica555_> what i find interesting, is that it plays fine if you redirect to a file, then play that file..
[13:03] <mystica555_> same aac errors, but, then its like at the end of the stream, it tries a different demuxer (mplayer that is)
[13:05] <slacker> mystica555_, [h264 @ 0x330f7e4b20]no frame!
[13:05] <slacker> other then that it seems fine
[13:05] <mystica555_> that seems to be more of a problem with the encoder than the decoder
[13:06] <mystica555_> i just don't know why its unable to demux it immediately
[13:06] <mystica555_> of note, mplayer2 plays it fine without the massive amount of aac errors
[13:07] <mystica555_> at least, 'fine' in demultiplexes immediately, but maybe not 'fine' in stream is fast enough to support realtime streaming
[13:08] <mystica555_> ooh maybe that was a fluke
[13:08] <mystica555_> second time tried, same aac issues.
[13:09] <slacker> Ill fill in the bug report
[15:30] <razakal> when i try to convert a mkv file into a flv file it's like slow motion and the duration is doubled
[15:30] <razakal> anyone here who knows how to fix this?
[15:31] <mystica555_> ive seen similar things with 60fps video converting to 30fps; potentially something to do with in/out fps matching?
[15:35] <razakal> i tried changing framerates but it's still the same duration
[15:37] <mystica555_> hm
[15:40] <razakal> i am trying to make it a flash compatible video so i will try to convert it to mp4 instead maybe that will work
[16:23] <ludde> can i re-mux an avi file into mp4 without transcoding everything? if so, how?
[16:30] <JEEB> ludde, ffmpeg/avconv -i derp.avi -acodec copy -vcodec copy derp.mp4
[16:30] <JEEB> given that those streams can be put into mp4
[16:30] <ludde> thanks
[17:10] <hackeron> hey, question, I have this mpeg-es from an IP camera: http://itstar.co.uk/test.cmp - it has mpeg4 audio and I believe g726 audio - but ffmpeg does not detect the audio. Any ideas?
[17:31] <ludde> [libx264 @ 0000000004770080] --psnr used with psy on: results will be invalid!
[17:31] <ludde> what does this mean
[17:36] <JEEB> It means that you have set --psnr to calculate psnr values, but you still have psy optimizations on. Thus the PSNR values will end up lower than when optimizing for PSNR.
[17:36] <JEEB> psychovisual enhancements lower PSNR, and some of them lower SSIM
[17:36] <JEEB> in a nutshell: These numbers you will get will be invalid for any kind of benchmark or test.
[17:38] <ludde> i want to play with different codec options and just have some metric so i can decide what works best.
[17:39] <ludde> as long as PSY always is enabled, the numbers should be comparable, right
[17:39] <CDToon1> can someone please show me how to use ffmpeg with cron? If i try it i get a file of less than 1MB with at most 20 seconds of music... the command i use works perfectly from the command line (on ubuntu)
[17:49] <JEEB> ludde, exact opposite
[17:49] <ludde> JEEB: okay?
[17:49] <JEEB> psy-optimizations optimize for a metric that tries to simulate how a person sees something
[17:50] <JEEB> or well, how it would "look better to the viewer"
[17:50] <JEEB> PSNR is basically "I love blur"
[17:50] <ludde> JEEB: so how can i get a metric i can use to compare CRF vs 1 pass ABR vs 2 pass ABR
[17:50] <JEEB> ugh
[17:50] <JEEB> why are you  even comparing those?
[17:50] <JEEB> they are for completely different uses
[17:51] <ludde> i want to figure out which one to use..
[17:51] <ludde> I want to stream video on a web site, similar to youtube
[17:51] <JEEB> do you care to have all files to a certain file size or do you care about quality?
[17:51] <ludde> I want to limit them to about 1.5Mbps
[17:52] <JEEB> in what sense?
[17:52] <ludde> I want them to be playable on a 1.5Mbps +/- 10-20% connection
[17:52] <JEEB> ok
[17:52] <JEEB> so you need vbv
[17:53] <JEEB> anyways
[17:53] <ludde> figured as much.. i'm using  vbv-maxrate=1500:vbv-bufsize=3000
[17:53] <JEEB> you can use either crf or 2pass ABR
[17:53] <JEEB> whichever you want
[17:53] <ludde> how do i know which crf value to use? if I set the value too low, maybe it would conflict too much with the vbV?
[17:54] <JEEB> x264 will limit itself to the vbv values
[17:54] <JEEB> with your values, for example you have a region of 3000 where the average bitrate does not exceed 1500
[17:54] <JEEB> (that's roughly how vbv works)
[17:54] <ludde> yeah
[17:54] <ludde> so there's not much room for saving bits
[17:54] <JEEB> and you select crf by finding the highest crf where the clip still looks good
[17:55] <CSMan> is there a way to get subtitles from the ffmpeg command line?
[17:55] <JEEB> ludde, how come?
[17:55] <ludde> it can just save 3000k bits
[17:55] Action: JEEB scratches his head
[17:55] <ludde> i mean
[17:55] <JEEB> you do understand that in case of crf if the clip really does not need as much bitrate, it will not go close to the limits
[17:55] <JEEB> ?
[17:55] <ludde> assuming the start of the movie is really slow.. then non-VBV could save a lot of bits there, for use in more high intensive scenes.
[17:56] <CSMan> does ffmpeg support subtitles at all
[17:56] <JEEB> it does to a level as far as I know
[17:56] <ludde> JEEB: yes.. i noticed crf became a lot smaller compared to ABR at same vbv-settings
[17:57] <JEEB> vbv only controls maximum, as in "do not exceed this average bitrate calculated in areas by the size of bufsize"
[17:58] <ludde> yeah
[17:58] <JEEB> anyways, ABR would always make your files the maximum size (and vbv keeps it within the bandwidth limits), and CRF would vary depending on content
[17:58] <JEEB> between the ABR size and whatever is needed to achieve a certain CRF value
[18:00] <ludde> I'm kinda fine with the movie ending up smaller than 1.5mbits
[18:01] <ludde> as long as it doesn't look worse than 1.5mbits ABR
[18:02] <JEEB> well, if you find the highest crf value that still looks good for a type of content, it usually works for most similar content
[18:02] <JEEB> (and possibly some other)
[18:02] <ludde> frame= 4990 fps= 27 q=25.0 PSNR=Y:1.#J U:1.#J V:1.#J *:1.#J size=   40680kB time=00:03:25.08 bitrate=1624.9kbits/s
[18:02] <ludde> what does the q=25.0 value mean here?
[18:05] <JEEB> no idea
[18:09] <hackeron> hmm, does ffmpeg not support uLaw or aLaw audio?
[18:14] <robbe-> I would like to record some VHS tapes on my linux computer. Does anyone have some good pointers on where to start? I have a video capture card, and I need to know how to go from there, what software could I use for example?
[18:16] <JodaZ> robbe-, your video capture card propably comes with software
[18:17] <robbe-> Not linux software.
[18:17] <JodaZ> do you know if there is a driver for linux ?
[18:18] <robbe-> I think so, chip is Bt878, and http://www.linuxquestions.org/questions/linux-hardware-18/video-capture-card-353534/ seems to suggest it works.
[18:18] <robbe-> I'm about to fiddle a bit with xawtv.
[18:18] <robbe-> But if someone could show me some pointers that would save me time :)
[18:19] <JodaZ> robbe-, keyword might be video4linux, or v4l2 for short 
[18:20] <robbe-> okay, ty
[18:20] <JodaZ> ffmpeg -f video4linux -i /dev/video0 something something might do something
[18:20] <robbe-> ah, cool, so ffmpeg should be able to do it :)
[18:21] <JodaZ> http://transcoding.org/transcode?Video4linux_Examples
[18:21] <robbe-> not that that came unexpected ;)
[18:21] <robbe-> thanks for the link, looks interesting :)
[18:27] <hackeron> I have this file: http://itstar.co.uk/video.es -- it is recorded from an IP camera - it is an mpeg-es with mpeg4 video and u-law audio - it seems ffmpeg doesnt' recognise an audio track at all :/ - any ideas?
[18:35] <JodaZ> hmm, how do i do firefox html5 video tag video ?
[18:44] <JodaZ> -_-
[18:44] <JodaZ> needs a correct mime header
[18:44] <JodaZ> fucking browsers
[18:45] <JodaZ> also, ffmpeg somehow lets audio go for 12 seconds when the video is already at its last picture when i specify -t 10
[18:59] <ludde> how do I encode AAC 5.1 audio with ffmpeg?
[18:59] <ludde>   Stream #0:1 -> #0:1 (ac3 -> libvo_aacenc)
[18:59] <ludde> Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
[19:05] <JodaZ> how do i set width in ffmpeg (and have height auto determined from current aspect ratio)
[19:35] <JodaZ> nvm
[19:35] <JodaZ> i asked a while ago how i can concatenate videos, can anyone tell me ?
[19:37] <ubitux> http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f
[19:44] <JodaZ> i don't really want to use mpg...
[19:46] <superlinux> hi. how can i show a progressbar in ffmpeg? or @ least the percentage?
[19:52] <ludde> how can i check if the mp4 headers are in the front or in the back of the movie?
[19:53] <JodaZ> ludde, after ffmpeg they will always be in the back afaik
[19:53] <ludde> JodaZ: can i relocate them to the front, somehow
[19:54] <JodaZ> ludde, yes, qt-faststart
[19:56] <JodaZ> or MP4Box
[19:57] <ludde> thanks
[20:33] <Kuukunen> JodaZ: which format are you using? mkvmerge and mp4box can concat videos in their formats
[20:34] <ludde> how can i inspect the keyframe interval in an mp4 file?
[20:34] <Kuukunen> or I think you can have different source formats too, but you probably end up with a mkv or mp4
[20:35] <Kuukunen> ludde: avinaptic might tell something
[20:41] <JodaZ> Kuukunen, what i actually want to do is to cut trailer like snipets from movies, like 6 times 10 seconds during the first third
[20:42] <Kuukunen> JodaZ: should be doable with both programs
[20:43] <Kuukunen> JodaZ: but of course you can only cut at keyframes
[20:43] <JodaZ> is there something like that for avis ?
[20:43] <JodaZ> avi and secondarily mkv would be what i am mainly interested in
[21:04] <ludde> how can i encode 5.1 AAC with ffmpeg?
[21:17] <ludde> how would i extract the sound of a movie  into a wav file
[21:18] <ludde> figured it out
[21:27] <brontosaurusrex> trying to compile ffmpeg git on lion, having some trouble: http://pastebin.com/BLLCY7kE
[21:28] <brontosaurusrex> clues on what to try?
[21:31] <pasteeater> we need a lion ffmpeg compile guide
[21:33] <pasteeater> brontosaurusrex: these are superfluous: --enable-pthreads --enable-version3 --enable-nonfree --enable-avfilter --enable-filters --enable-runtime-cpudetect
[21:33] <brontosaurusrex> pasteeater, like default already?
[21:34] <pasteeater> some of those don't exist as options, some are not autodetect, and runtime-cpudetect is generally for something that will be distributed (ffmpeg from a distro).
[21:34] <kode54> oops
[21:34] <kode54> you screwed up
[21:34] <pasteeater> s/not autodetect/now autodetected
[21:34] <kode54> --arch=x86, should be x86_64
[21:35] <pasteeater> --enable-version3 --enable-nonfree are for use with some external encoders that require license goofiness.
[21:35] <brontosaurusrex> pasteeater, isn't that for internal prores as well?
[21:37] <cbsrobot> brontosaurusrex: no, prores is lgpl
[21:38] <brontosaurusrex> cbsrobot, is that enabled by default?
[21:38] <pasteeater> there is a prores encoder and two decoders and i don't think you need to add any additional config options to enable them
[21:39] <brontosaurusrex> thanks, just trying with only --arch=x86_64 and nothing else
[21:40] <brontosaurusrex> ok, that worked
[21:41] <pasteeater> do you even need the arch with lion?
[21:41] <kode54> possibly not
[21:41] Action: pasteeater is OS X ignoramus
[21:41] <kode54> but x86 appears to not work
[21:41] <brontosaurusrex> no idea, aim just following some guides and hopefully the binary should run on snow leopard as well
[21:42] <kode54> according to output from some build scripts I've seen
[21:42] <kode54> you allegedly cannot redistribute binaries produced with the nonfree option enabled
[21:45] <pasteeater> brontosaurusrex: you may want --enable-gpl. it will enable some additional filters: blackframe, boxblur, cropdetect, delogo, deshake, drawbox...
[21:45] <brontosaurusrex> kode54, would x.264 count as non-free as well?
[21:45] <brontosaurusrex> pasteeater, thanks
[21:46] <kode54> I'm not sure
[21:46] <brontosaurusrex> does: ./configure --prefix=${SOURCE} --enable-gpl --arch=x86_64 --enable-libx264 && make -j 4 && make install
[21:46] <brontosaurusrex> looks good?
[21:46] <pasteeater> sure, if the only external encoder you want is libx264
[21:46] <pasteeater> (and --enable-libx264 only requires --enable-gpl)
[21:47] <brontosaurusrex> pasteeater, yes
[21:48] <pasteeater> are you remembering to 'make distclean' between make attempts?
[21:49] <brontosaurusrex> what i need is prores, h.264, utvideo rewraper or at least decoder, AAC … and some filters like crop, resize, yadif
[21:49] <pasteeater> to decode H.264 you need nothing extra. to enable libx264 as you are currently doing.
[21:50] <pasteeater> to enable _H.264 encoding_ enable libx264...
[21:50] <brontosaurusrex> just literally 'make distclean' ?
[21:50] <pasteeater> yes
[21:51] <brontosaurusrex> ok, that goes into my ffmpegnotes.txt
[21:51] <brontosaurusrex> btw, any clues about ut video status?
[21:52] <pasteeater> utvideo decoding should be covered with your configure
[21:52] <brontosaurusrex> the last i tried the decoder is working, but i can't rewrap from avi to mov for example
[21:52] <pasteeater> you mean: ffmpeg -i input.avi -c copy output.mov?
[21:52] <pasteeater> is mov a common container for mov?
[21:53] <pasteeater> duh
[21:53] <pasteeater> utvideo
[21:53] <brontosaurusrex> "Undefined symbols for architecture x86_64: …." , ill try without arch
[21:53] <brontosaurusrex> pasteeater, nope, but there is quicktime component for it now
[21:53] <JEEB> I think they were talking about utvideo in mov lately, but I'm not even sure if they've set it already
[21:53] <JEEB> as in, spec'd
[21:53] <brontosaurusrex> i couldn't make the component work either btw
[21:54] <JEEB> you can ask misterhatt about that I guess
[21:54] <JEEB> he has a mac and finally got internets
[21:54] <brontosaurusrex> JEEB, developer?
[21:54] <JEEB> nope
[21:54] <JEEB> an ass
[21:54] <pasteeater> I welcome misterhatt to 1992.
[21:54] <JEEB> but he did comment on installing the quicktime component
[21:54] <JEEB> and he does have an idea on some stuff
[21:55] <JEEB> (also, he can code but everything he thought about doing ended up being done by Daemon404)
[21:55] <JEEB> (including the ut video patches for ffmpeg)
[21:57] <brontosaurusrex> i see
[21:58] <JEEB> <MisterHatt> for future reference if anyone cares, open finder, make sure you can view HDD (hit up preferences if not), go to Library/QuickTime, and just drag the component in
[21:58] <JEEB> <MisterHatt> easy enough
[21:58] <JEEB> this is what he said at least
[21:58] <JEEB> :V
[21:59] <JEEB> although the component can of course fail with stuff
[21:59] <brontosaurusrex> JEEB, oh, i tried all that
[21:59] <JEEB> because the developer is rather new to macs
[21:59] <brontosaurusrex> JEEB, it doesn't really show up anywhere
[21:59] <JEEB> after all, he was all hurr durr about mov
[21:59] <JEEB> so I'm not even sure if it supports mov at all
[21:59] <JEEB> whatever can output avi, I think it might work there >_>
[21:59] Action: JEEB has NFI
[22:00] <brontosaurusrex> ok, that would explain things ...
[22:01] <brontosaurusrex> should that work with streamclip - export as avi? 
[22:02] <JEEB> sorry, I'm not a mac user
[22:04] <brontosaurusrex> ok, so for now the transcode to prores or something uncompressed should do
[22:04] <brontosaurusrex> btw, do i need nasm, or yams is enough?
[22:04] <brontosaurusrex> yasm even
[22:05] <JEEB> for ffmpeg?
[22:05] <JEEB> yasm
[22:05] <JEEB> yasm is a replacement for nasm anyways
[22:05] <JEEB> they share asm syntax
[22:05] <brontosaurusrex> right
[22:09] <brontosaurusrex> getting this when trying to compile with x264 - http://pastebin.com/UEZXbkcX
[22:54] <Seph> Is there any way to tell which version of the x264 lib ffmpeg is linking against? I'm trying to compile a clone of git repo and it's giving me an error in libx264
[22:56] <pasteeater> Seph: what error?
[22:56] <Seph> http://pastie.org/pastes/3002324/text?key=io2y4jvpevwizgcmdvhrxg
[22:57] <pasteeater> you have an old x264 interfering
[23:12] <pasteeater> ubitux: thanks.
[23:12] <ubitux> np :)
[23:31] <Seph> pasteeater: yes I figured that, thus why I'm trying to figure out which one ffmpeg is linking against
[23:35] <ludde> what value for -crf is a good starting point?
[23:37] <JEEBsv> 24
[23:37] <JEEBsv> because it's relatively high
[23:49] <burek> is this possible to achieve with ffmpeg: http://www.youtube.com/watch?v=iwZdbN4Gwdw#t=2m11s (rewind to 02:11) and see the letter D rotating with video inside that letter :)
[23:50] <burek> shortly is it possible to tell ffmpeg to cut the video using custom polygon
[00:00] --- Mon Dec 12 2011


More information about the Ffmpeg-devel-irc mailing list