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

burek burek021 at gmail.com
Wed Dec 28 02:05:02 CET 2011


[00:29] <tbruff13> can someone help me convert mp3 files to mp4 audio files using Winff
[00:29] <tbruff13> what i need is the ffmpeg command
[00:45] <tbruff13> can some one help me create a preset for mp4 audio
[00:45] <tbruff13> is it -acodec libfacc or just acc
[00:46] <Mavrik-> tbruff13, either libfaac or libvo_aac, depending on which library your ffmpeg is linked to
[00:48] <tbruff13> Madtree: ok so the codec is -acodec libfacc -b 128
[00:48] <tbruff13> right
[00:49] <Mavrik-> it's not libfacc.
[00:53] <tbruff13> Mavrik-: what is it if it is not libfacc
[00:53] <Mavrik-> read what I wrote.
[00:54] <AnlamK> Hello, I've installed FAAC from https://sourceforge.net/projects/faac/files/faac-src/faac-1.28/faac-1.28.tar.gz/download. But when I do, "./configure --prefix='/opt/local/' --enable-libmp3lame --enable-libfaac --enable-nonfree" in my ffmpeg directory, I get an error message saying libfaac wasn't found. 
[00:54] <tbruff13> you wrote libfaac
[00:54] <tbruff13> oh
[00:54] <tbruff13> i see
[00:54] <tbruff13> thanks
[00:55] <AnlamK> When I do, 'which faac', I get the following: /opt/local/bin//faac -> so it is installed 
[00:57] <AnlamK> This is the output message from the config.log: 
[00:57] <AnlamK> gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -mdynamic-no-pic -fomit-frame-pointer -fPIC -c -o /var/folders/__/_sdl9_3s25g2mx7jnq92rvp40000gn/T//ffconf.xeoUy3Zk.o /var/folders/__/_sdl9_3s25g2mx7jnq92rvp40000gn/T//ffconf.xgdp9WUJ.c /var/folders/__/_sdl9_3s25g2mx7jnq92rvp40000gn/T//ffconf.xgdp9WUJ.c:2:18: error: faac.h: No such file or directory /var/folders/__/_sdl9_3s25g2mx7jnq92rvp40000gn/T//ffconf.xg
[00:58] <Mavrik-> AnlamK, hmm, your include path is wrong then
[00:58] <AnlamK> I do have that faac.h here: /opt/local/include/faac.h
[00:59] <Mavrik-> you need to set library/include paths
[00:59] <AnlamK> When I do ./configure ? 
[00:59] <Mavrik-> yea
[00:59] <AnlamK> I thought those were automatically set when you did --prefix=''?
[00:59] <Mavrik-> well, the gcc lines show that they're not
[00:59] <Mavrik-> so i guess --prefix only sets output
[01:00] <AnlamK> Ugh I'm gonna give it a try but I mean this is the default:  --incdir=DIR             install includes in DIR [PREFIX/include]
[01:01] <AnlamK> so /opt/local/incude should be there?
[01:02] <AnlamK> I tried this: ./configure --prefix='/opt/local/' --enable-libmp3lame --enable-libfaac --enable-nonfree --incdir='/opt/local/include'
[01:02] <AnlamK> Still getting the same error
[01:02] <Mavrik-> AnlamK, that's an output setting
[01:02] <Mavrik-> that means where the avcodec.h files will be copied to
[01:02] <Mavrik-> you need to set -I and -L paramemters
[01:02] <Mavrik-> for linking
[01:04] <AnlamK> Is there an environment variable I can set in my ~/.bash_profile 
[01:04] <AnlamK> so that I can include /opt/local/include in my linking ?
[01:04] <AnlamK> And how do I set the -I and -L parameters? Are you suggesting that I edit the Makefile?
[01:05] <Mavrik-> no, there's a config parameter
[01:05] <Mavrik-> I don't remember what the exact parameter is, something like LDFLAGS and CFLAGS
[01:06] <AnlamK>   --extra-cflags=ECFLAGS   add ECFLAGS to CFLAGS []   --extra-cxxflags=ECFLAGS add ECFLAGS to CXXFLAGS []   --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS []   --extra-libs=ELIBS       add ELIBS []
[01:11] <AnlamK> Ok making progress
[01:11] <AnlamK> gcc -L/opt/local/include -Wl,-dynamic,-search_paths_first -o /var/folders/__/_sdl9_3s25g2mx7jnq92rvp40000gn/T//ffconf.rzzfVeKC /var/folders/__/_sdl9_3s25g2mx7jnq92rvp40000gn/T//ffconf.yesBz2Ld.o -lfaac -lm -framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore -lbz2 -lz  ld: library not found for -lfaac collect2: ld returned 1 exit status ERROR: libfaac not found
[01:11] <Mavrik-> AnlamK, -L has to point to the .so/.a file directory, -I to .h file directory
[01:12] <Mavrik-> usually those are .../lib/ and../include/
[01:12] <AnlamK> I see
[01:13] <AnlamK> Thanks so much!
[01:13] <AnlamK> I configured 
[01:13] <AnlamK> What exactly does -L do? 
[01:13] <AnlamK> I need to read upon how compilers work
[01:14] <Mavrik-> AnlamK, -L tells the linker in which (additional) directory to find library (.so/.a) files to link to (the libraries to link to are specified with -l)
[01:14] <Mavrik-> -I tells the compiler in which (additional) directory to look for .h files
[01:15] <Mavrik-> that is files for#include directive
[01:15] <AnlamK> Yeah I know about #include directives... Just trying to figure out what -L does 
[01:15] <AnlamK> These libraries... These are the apis that the programmer invokes?
[01:15] <Mavrik-> yeah
[01:16] <Mavrik-> libfaac has encoding APIs for AAC, and the compiler needs to know where to find the library file so it can correctly link function calls
[01:16] <Mavrik-> and with -L you tell it where to look for the libfaac.so file
[01:16] <AnlamK> Is this libfaac.so file just compiled code?
[01:16] <AnlamK> Is it a binary?
[01:17] <Mavrik-> it's a binary yea
[01:17] <Mavrik-> you probably compiled that before compiling ffmpeg if you have it in that folder
[01:18] <AnlamK> yeah i compiled faac separately 
[01:18] <AnlamK> i'm a little surprised because i thought /opt/local/include and /opt/local/lib were standard include/lib directories 
[01:18] <Mavrik-> no they're not
[01:18] <AnlamK> what's the standard? /usr/local/include?
[01:19] <Mavrik-> /usr/lib, /usr/include, /usr/share/lib, /usr/shrare/include are defaults on most distros
[01:19] <Mavrik-> or /usr/local/lib,/usr/local/include
[01:19] <Mavrik-> files in those are also automatically found
[01:19] <AnlamK> i'm using a package installer called macports - it's adding the stuff at /opt/local 
[01:19] <Mavrik-> ah, you're on OS X
[01:19] <Mavrik-> different there probably :)
[01:20] <AnlamK> also if you feel for it - i have another question 
[01:20] <AnlamK> do you know the statistics package R? 
[01:21] <Mavrik-> heard of it, never used it :)
[01:21] <AnlamK> is there a way to use ffmpeg to read .avi files in R?
[01:21] <AnlamK> i'm working on this challenge at kaggle.com 
[01:21] <Mavrik-> huh... sorry, I don't know :\
[01:21] <AnlamK> ok ok thanks 
[01:21] <AnlamK> i mean now i'm using octave to read them and then load them to r 
[01:21] <AnlamK> it would save some hassle to read them directly to r 
[01:21] <AnlamK> but this is fine as well 
[01:23] <AnlamK> the native aac codec at ffmpeg won't play in ituens so i'm using libfaac to encode some audio into .aac files
[01:24] <Mavrik-> yeah, the native aac is still experimental and broken
[01:24] <Mavrik-> most people use libfaac
[01:24] <Mavrik-> some are now switching to libvo_aac
[01:28] <AnlamK> is libvo_aac better than lame?
[01:28] <AnlamK> this also doesn't play on itunes 
[01:28] <AnlamK> i think I'll just stick with liblame
[01:29] <Mavrik-> put the encoding command and output to a pastebin
[01:29] <Mavrik-> it should play in iTunes just fine
[01:31] <AnlamK> Here is the command and the output
[01:31] <AnlamK> http://pastebin.com/TUC9tqGC
[01:32] <Mavrik-> AnlamK, I think iTunes just doesn't like the container
[01:32] <Mavrik-> rename the output file from .aac to .m4a
[01:32] <Mavrik-> and it should play just fine
[01:33] <cbreak> gcc -print-search-dirs, `gcc -print-prog-name=cc1` -v
[01:33] <AnlamK> when I switch .aac to .m4a 
[01:33] <AnlamK> it's trying to encode the video as well 
[01:33] <AnlamK> this is a video off youtube
[01:33] <AnlamK> whose audio i'm trying to get 
[01:34] <AnlamK> so inputs got two streams 
[01:34] <Mavrik-> AnlamK, add "-vn" to parameters to switch off video
[01:34] <AnlamK> dude, you are soooo gooood
[01:34] <AnlamK> yes it's working now 
[01:35] <AnlamK> thanks so much 
[01:47] <AnlamK> also... 
[01:47] <AnlamK> these youtube videos already have encoded audio streams 
[01:47] <AnlamK> i don't want to decode and then re-encode - like i'm doing now 
[01:48] <AnlamK> is there a way to capture the audio stream directly?
[01:50] <Mavrik-> AnlamK, if the audio is already in aac
[01:50] <AnlamK> yes the audio is already in acc 
[01:50] <Mavrik-> then you can just do ffmpeg -i <infile> -vn -acodec copy output.m4a
[01:50] <Mavrik-> that will just copy and remux the stream without reencoding it
[01:52] <AnlamK> yes!! sounds better
[01:52] <AnlamK> Mavrik, thank you so much 
[02:40] <GorDonFreeMan> some relaxing animation after a long night coding :) http://matrix.z-labor.com/tmp/C/sdltext_fps_d_asdf2.c
[07:00] <darkstarbyte> will ffmpeg repair damaged streams like how vlc will play damaged streams?
[07:35] <Phazorx> hola, i'm trying to figure out a way to play some avc videostream (came from video registrator) it works in "default" player that came with hardware, which provides zero informaitonm about format and exports video stream as a group of 3 files (.avc, .idx. and .grp). The output i get on my box is - http://dpaste.com/677938/ plus a solid grey screen. Any ideas what options i might try to be able to see the video?
[08:06] <darkstarbyte> Phazorx, Are you running windows?
[08:08] <Phazorx> does it look like windows from the paste?
[08:08] <Phazorx> nope, i have gentoo on my box
[08:08] <darkstarbyte> You say the source is from a camera right?
[08:08] <Phazorx> the original soft which came with hardware is windows and very proprietry
[08:09] <Phazorx> it is from ip cam but i font no idea what runs on device which archives the foorage
[08:09] <Phazorx> and that software is pretty much the only official way to connect to it
[08:09] <Phazorx> so i kinda have to deal with what it gives as export
[08:09] <darkstarbyte> See if you can download a clip from it
[08:09] <darkstarbyte> then go into the terminal and use
[08:09] <darkstarbyte> ffprobe
[08:10] <darkstarbyte> like
[08:10] <darkstarbyte> ffprobe  file_name.ext
[08:10] <Phazorx> i have the clip, which is how i got the output on that paste
[08:10] <Phazorx> lemme try ffprobe
[08:11] <Phazorx> http://dpaste.com/678208/
[08:12] <Phazorx> what i see via default player look more like 4:3 and probably 12-16 fps
[08:12] <darkstarbyte> Did that help?
[08:13] <Phazorx> same errors which make me think that codec cant handle the input
[08:13] <Phazorx> so either encoder uses some weird profile or the codec is unable to deal with the stream for some other reason
[08:14] <Phazorx> the questio is how do i figure out what exactly does it want
[08:14] <Phazorx> accroding to specs in pdf that came with the device it is supposed to be baseline 3.0 profile
[08:15] <Phazorx> if i run ff* with --help i get a whole bunch of info, but i'm not  sure how to use it (specifically atributes for options which seems to be flags?)
[08:16] <Phazorx> for example how do i force particular workaround for a bug or how do i specify specific options for some codec?
[08:17] <darkstarbyte> there is a way to do that, but I have not faced anything like that before.
[08:17] <Phazorx> also, considering i have .avc and .idx (so it looks similar how TS would) how do i specify auxilary input files?
[08:18] <burek> it's h264 video stream
[08:19] <Phazorx> i'm pretty sure it is
[08:19] <burek> anyway
[08:19] <burek> how do you connect to your camera
[08:20] <Phazorx> it's an ip cam and i dont connect to it
[08:20] <Phazorx> this is archived footage
[08:20] <burek> why don't you connect to it and take a live stream
[08:21] <Phazorx> specifically at this point i need the archoved footage for certain period
[08:21] <Phazorx> and i'm pretty sure cameras are on different net due to security reasons so it might not be easy to connect
[08:21] <burek> well what's the purpose of ip camera then
[08:21] <Phazorx> security cameras
[08:22] <burek> you could more conveniently buy a dvr
[08:22] <burek> for less money for the same purpose
[08:22] <Phazorx> it is a dvr like system
[08:22] <burek> well, what is your overall goal
[08:22] <burek> what are you trying to achieve
[08:23] <Phazorx> i am trying to cut out particular segment from a captured stream
[08:23] <Phazorx> and i want to be able to convert it to soemtihng that cab be consumed by regular media players (win, linux, whatever)
[08:24] <shifter1> are there any devs in the channel?
[08:24] <burek> shifter1, try #ffmpeg-devel 
[08:25] <shifter1> thanks
[08:25] <Phazorx> i have like an hour worth of footage in form of avc bitstream, i need to cut like 2 minutes form it and wrap it in some conventional container
[08:25] <Phazorx> i'm sure i'll be fine with converting and containing the video once i am able to see it
[08:26] <burek> Phazorx, try running mediainfo on the .avc file
[08:26] <Phazorx> i did
[08:26] <Phazorx> it isays it is an avc
[08:27] <Phazorx> if you want exact output - i can launch virtualbox
[08:27] <burek> no need
[08:27] <burek> just
[08:27] <burek> are you able to play that stuff in ANYTHING
[08:27] <Phazorx> nope
[08:27] <burek> not even their prop. softw?
[08:27] <Phazorx> only their soft on winbox
[08:28] <Phazorx> but their soft is not really for playing it is for exporting data
[08:29] <Phazorx> basiacly it connect to storage array and lets you select node and timeframe
[08:29] <burek> well, i don't know then.. it seems you have a device that doesn't work..
[08:29] <Phazorx> and it is able to export the data (during that stage you see the preview) and it results in a group of 3 files (.avc .grp .idx)
[08:30] <burek> return it, take money back and buy something more appropriate :)
[08:30] <Phazorx> considering i can see the footage on the device - it seems to work
[08:30] <burek> well yes, but think about it
[08:30] <Phazorx> and considering player shows the preview it seems that footage is more or less valid
[08:30] <burek> if they really want to keep you as their customer, by forcing you to use (and pay) their tools only
[08:30] <burek> you shouldnt support them
[08:30] <burek> so the least you can do is not to buy from them anything anymore
[08:31] <Phazorx> this isnt really my choice i'm just helping a co worker
[08:31] <burek> well, ok :) your choice :)
[08:31] <Phazorx> i have nothing to do with the security setup or anythong relevant to how it is used
[08:31] <burek> I've been working with people who intentionally switched bytes in video stream, just so that end users can't watch the video with standard tools
[08:31] <burek> so they are practically forced to use their (shitty) player
[08:32] <Phazorx> that could very well be the case
[08:32] <shifter1> im having a problem when ffmpeg tries to read from a character device.  it seems to fail with EOVERFLOW on a read()
[08:32] <burek> the smartest choice would be to reject such companies
[08:32] <burek> and provide no support for them
[08:32] <burek> i.e. not buy anything from them
[08:32] <shifter1> I looked up tha man pages for read, and EOVERFLOW doesn't seem to be in the possible erros
[08:33] <shifter1> any ideas?
[08:33] <Phazorx> again that is good for future
[08:33] <Phazorx> in mean time the event i want to see has already ahppened
[08:33] <Phazorx> and is captured using this particular hartdware
[08:33] <burek> call the company that sold the camera to your friend
[08:33] <burek> and ask them?
[08:33] <Phazorx> not like i have options on re-selecting the company at that stage
[08:34] <Phazorx> burek: it's an option but will probbaly result in lengthy email conversation
[08:34] <burek> fortunately there is an option in your case
[08:34] <Phazorx> i was hoping that there are just ways to play with ffmpeg to try different aproaches
[08:34] <burek> in my case the company closed the doors couple of months after the big purchase happened
[08:34] <Phazorx> that is not nice for sure
[08:34] <burek> so the people didnt really have any kind of support
[08:35] <burek> avoid emails, call them
[08:35] <burek> use skype, cheap calls
[08:35] <Phazorx> anyway, my original question was only on format in which ff* tools accept attrinbutes for their params
[08:35] <Phazorx> i dont get at all what "EDVAS" flags mean that i see in help
[08:36] <shifter1> E = encode
[08:36] <shifter1> D = Decode
[08:36] <shifter1> V = video
[08:36] <burek> shifter1, how did you figure it was EOVERFLOW?
[08:36] <shifter1> A = Audiso
[08:36] <shifter1> strace said so
[08:36] <shifter1> S = subtitles
[08:36] <Phazorx> shifter1: thanks
[08:37] <burek> its just a constant, you know, so try to see what the actual number is and compare it to the return codes that read() returns
[08:37] <Phazorx> shifter1: -err_filter        <flags> .DVA.
[08:37] <shifter1> the read returns -1
[08:37] <Phazorx> and if i want to use "bitstream" option
[08:37] <shifter1> errno is set to EOVERFLOW
[08:38] <burek> i see
[08:38] <shifter1> ffmpeg fails with "PES packet size mismatch.
[08:38] <shifter1> [mpeg2video @ 0x9237720] invalid cbp at 14 38"
[08:39] <shifter1> upon further inspection, its because the read() call fails
[08:39] <shifter1> its reading from a character device, specifically a tvtuner card
[08:39] <burek> http://linux.die.net/man/3/errno
[08:39] <burek> (ENOTSUP and EOPNOTSUPP have the same value on Linux, but according to POSIX.1 these error values should be distinct.)
[08:39] <burek> EOVERFLOW
[08:39] <burek> oops sorry :D
[08:39] <shifter1> the weird thing is
[08:40] <shifter1> cattting the character device to a real file  and then passing that file into ffmpeg works
[08:40] <shifter1> but ffmpeg directly reading from the character device fails
[08:40] <burek> use fifo?
[08:41] <burek> if the dev is not ready, it's normal for read to fail, unless you specificaly told it to wait
[08:41] <shifter1> tried, the error just appears on the cat into the fifo side
[08:41] <burek> which could block
[08:41] <shifter1> I was hoping it would block
[08:41] <shifter1> rather than fail
[08:42] <shifter1> maybe this is a problem with the driver for the device?
[08:42] <burek> well if cat fails too, that's not an ffmpeg issue, is it
[08:42] <burek> :)
[08:42] <shifter1> in that case
[08:42] <shifter1> I have an OT question
[08:43] <burek> :)
[08:43] <shifter1> is there a way to pipe stderr from one program into stdin of another?
[08:43] <burek> sure
[08:44] <shifter1> strace dumps to stderr
[08:44] <burek> 2 > &1
[08:44] <shifter1> im doing: strace cat /dev/dvb/adapter0/dvr0 > out.ts
[08:44] <shifter1> so stdout is being used already
[08:45] <shifter1> im trying to grep the stderr output, so redirect stderr into stdout would not work
[08:45] <burek> http://stackoverflow.com/questions/7431689/how-to-connect-stderr-to-stdin-using-pipes
[08:45] <burek> fifo is the way togo
[08:45] <shifter1> I was hoping to avoid temporary files
[08:46] <burek> or just redirect 2>&1 and then 1>/dev/null
[08:46] <shifter1> even ephemeral fifos
[08:46] <burek> make sure 2>&1 comes before 1>/dev/null
[08:46] <burek> take a look at that link
[08:46] <burek> you'll see there
[08:47] <shifter1> works, thanks
[08:48] <burek> :beer:
[08:51] <Phazorx> may i interjecT?
[08:52] <Phazorx> http://dpaste.com/678214/ for this specific option how do i pass "ms" attribute, for example, to -bug option (and further more - how do i combine it with some other)
[08:54] <burek> -bug ms
[08:56] <shifter1> burek, I think ffmpeg is still doing something funny.  catting from the cfile to the fifo and then catting the fifo into a real file works
[08:56] <shifter1> but if the second cat is replaced with ffmpeg, it fails
[08:57] <Phazorx> hmm... what does ffprobe rely on - supplied fourcc or it actualy checks format signature?
[08:58] <shifter1> http://pastebin.com/KfurdJxe
[08:59] <burek> Phazorx, if you ommit -f before -i then it autodetects
[08:59] <burek> shifter1, just a sec
[09:00] <burek> oh..
[09:00] <burek> shifter1, that doesn't necessairly have to work
[09:00] <burek> because, when you have fifo
[09:00] <burek> it's a stream of bytes
[09:00] <burek> which might not (and usually is not) seekable
[09:00] <burek> file, on the other hand is
[09:00] <burek> meaning, ffmpeg, when reading a file
[09:00] <burek> can seek to the end of file, to read the metadata
[09:01] <burek> like length, fps etc
[09:01] <burek> with fifo it can't do that
[09:01] <burek> anyway
[09:01] <burek> why don't you do ffmpeg -i /dev/dvb...
[09:01] <burek> and give us the pastebin
[09:02] <shifter1> http://pastebin.com/rcgPUWFj
[09:02] <shifter1> that's with the fifo, but it's the same effect
[09:02] <shifter1> 3 is the fifo
[09:02] <shifter1> 4 is out.mkv
[09:02] <shifter1> when read returns 0, the PES warning shows up
[09:03] <burek> please try ffmpeg -i /dev/dvb/adapter0/dvr0
[09:03] <burek> and show the pastebin
[09:04] <shifter1> http://pastebin.com/00zJ0bJL
[09:05] <shifter1> without strace you mean?
[09:05] <Phazorx> burek: autodetects - yes, but what exactly the detection is based on ?
[09:05] <burek> did i mention strace anywhere? :)
[09:06] <burek> Phazorx, based on matching first N bytes of stream with known formats
[09:06] <shifter1> http://pastebin.com/ymyqCY9k
[09:06] <shifter1> the dvr0 device should be infinite
[09:06] <shifter1> it should never have an end
[09:08] <burek> Phazorx, try with -analyzeduration <microseconds>
[09:09] <burek> shifter1, something is weird, there are too many errors
[09:09] <shifter1> -analyzeduration   <int>   .D... how many microseconds are analyzed to estimate duration
[09:09] <burek> concealing 1760 DC, 1760 AC, 1760 MV errors
[09:09] <shifter1> burek, the postinit failures are normal
[09:10] <shifter1> those errors don't occur when catting dvr0 to a file, and then passing that to ffmpeg
[09:10] <shifter1> I can turn up log level if you would like
[09:12] <Phazorx> burek: thanks... now i tihnk i understand... and previously you mentioned -i is that this option: -i                  avconv compatibility dummy option ?
[09:13] <burek> Phazorx, ?
[09:13] <Phazorx> 11:59 < burek> Phazorx, if you ommit -f before -i then it autodetects
[09:14] <burek> ffmpeg -f <format> -i <input> ...
[09:14] <burek> that tells ffmpeg to force the format to <format>
[09:14] <burek> i.e. disable autodetect
[09:14] <burek> if you know your video is mp4 but some idiot named the file .jpg
[09:14] <burek> you can still say ffmpeg -f mp4 -i fool.jpg
[09:15] <burek> it will read mp4 file without problem
[09:15] <burek> shifter1, i don't know what to say.. something is wrong at the very beginning
[09:15] <burek> so I don't know where to start off :)
[09:15] <Phazorx> burek: yup got that
[09:15] <Phazorx> now it also shows this: Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (50/2)
[09:16] <Phazorx> which kinda makes sense since the data looks like half fields based on size
[09:17] <burek> try adding -deinterlace
[09:24] <Phazorx> err.. --deinterlace is for ffmpeg... but is there same option for ffplay
[09:25] <Phazorx> since at this time i want to be able to see if the video actualy shows something rather than monotone gray before encoding it to sometihng
[09:25] <Phazorx> i guess  i can pipe it
[09:26] <burek> :D
[09:26] <burek> ffplay uses almost the same params as ffmpeg, as all of ff* binaries do :)
[13:13] <JoeGibken> Hi! I tried installing the script I found here --> https://sites.google.com/site/linuxencoding/install-script -- but it failed and gave me this error --> ==> ERROR in build_libvpx(); git clone failed! -- Then the build stopped. Would it be alright to ask how to fix this? I'm using Linux Mint Debian 64bit. 
[13:16] <JoeGibken>  Oh - hmmm. Now that I realized it, sorry, I guess this is the wrong channel to ask that.
[13:18] <Mavrik> huh
[13:18] <Mavrik> ffmpeg doesn't support RGB encoding? O.o
[14:39] <Slony> Hey, what's wrong here? Using ffmpeg-0.9
[14:39] <Slony> ffmpeg -f x11grab -r 30 -s 1280x760 -i :0.0 -an -vcodec libx264 -preset lossless_ultrafast -threads 0 /tmp/foo.mp4
[14:40] <Slony> Output #0, mp4, to '/tmp/foo.mp4':
[14:40] <Slony>     Stream #0:0: Video: h264, yuv420p, 1280x760, q=-1--1, 90k tbn, 30 tbc
[14:40] <Slony> Stream mapping:
[14:40] <Slony>   Stream #0:0 -> #0:0 (rawvideo -> libx264)
[14:40] <Slony> Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[14:41] <Slony> all lossless* presets do that, the others work fine
[15:03] <Slony> and if i cant use those lossless* presets due to this bug, which other preset would you recommend as an intermediate format for recording video game screencasts? 
[15:03] <Mavrik> Slony, if you're doing video games, I suggest using very low crf
[15:04] <Mavrik> no need for lossless
[15:05] <Slony> Mavrik ok, and how do I find out what other presets I have?
[15:05] <JEEB> Slony, check if the preset is setting any rate control >_>
[15:05] <JEEB> also, generally now you can just use x264's internal presets
[15:05] <Slony> the error i reported above seems to be the same as was reported and fixed in 32 bit ubuntu half a year ago
[15:06] <Slony> JEEB how do i list x264 presets?
[15:06] <JEEB> and set qp to 0 for lossless (or crf to 0 for lossless with 8bit x264)
[15:06] <JEEB> Slony, x264 --fullhelp or http://mewiki.project357.com/wiki/X264_Settings#preset
[15:07] <Slony> i don't have an 'x264' binary
[15:07] <JEEB> then just check the latter page :)
[15:07] <Slony> media-libs/x264-0.0.20111220 (gentoo) is installed, 8 bit
[15:07] <Slony> sure thing, thanks :]
[15:08] <JEEB> basically you should be able to do -vcodec libx264 -preset veryfast -crf 0 with an 8bit libx264
[15:08] <JEEB> for lossless
[15:08] <JEEB> for >8bit you'd need explicitly qp 0 for lossless
[15:08] <Slony> why the higher bit depth?
[15:09] <JEEB> ?
[15:09] <Slony> why 10 instead of 8?
[15:09] <Mavrik> JEEB, he's doing video game screencasts, >8bit is kinda pointless :)
[15:09] <Slony> is that for better color fidelity during things like gamma conversions etc?
[15:10] <JEEB> Mavrik, yes -- I just have to mention that crf 0 is not lossless with >8bit
[15:10] <JEEB> I didn't mean to recommend them or anything
[15:10] <Mavrik> ah, I see
[15:11] <JEEB> Slony, 10 is a separate H.264 profile and all that stuff + the last bit depth where certain calculations can still be kept within 16 bits. Anyways, the benefits are mostly with the bigger precision leading to less problems with artifacts that would come from general errors in lossy compression
[15:12] <JEEB> But... it's not really recommended to use >8bit H.264 when delivering video to most users
[15:12] <JEEB> as it is both slower to decode, doesn't have (pretty much any) end-user level hardware decoding support and all those other things :3
[15:14] <Slony> aha, thank you
[16:09] <cn1209> Hello. I'm trying to see how I can capture a frame based on it's time. The file type is flv
[16:10] <cn1209> Currently using php
[16:12] <Slony> JEEB Mavrik I just read about tune. Do you recommend using --tune animation when recording video games and software video tutorials?
[16:13] <Mavrik> Slony, not really
[16:13] <Mavrik> Animation is meant for videos that feature strong edges
[16:13] <Mavrik> video games are exact opposite of that
[16:14] <Slony> ok
[16:15] <iive> at least most of them. 3d shooters and such :)
[16:15] <Mavrik> not much cell-shaded games these days :)
[16:18] <iive> you should still have some time to get humble budle 4.
[16:18] <iive> few hours probably.
[16:19] <Mavrik> meh, nothing fun there.
[16:20] <iive> you've played them all before?
[16:21] <Mavrik> I played one or two, rest of them don't look all that fun.
[16:23] <Slony> Mavrik you suggested a very low crf for video games for the initial capture, how low did you have in mind?
[16:24] <Mavrik> Slony, that's something you have to decide for yourself... for intermediate you can do like 18 and go up from that to get optimal quality/size ratio
[16:25] <Slony> aight
[16:25] <Slony> i did this a few months ago, if anyone's interested
[16:25] <Slony> www.seeitmyway.org/articles/ffmpeg_compression_preset_benchmark.pdf
[16:26] <Mavrik> that's a terrible comparison
[16:26] <Slony> in what way terrible do you mean?
[16:27] <Mavrik> there's no indicator of what settings were used, what the target was and it doesn't even attempt to address quality differene
[16:27] <Mavrik> *difference
[16:28] <Slony> default settings
[16:28] <Slony> x264
[16:29] <Mavrik> there's no such thing as default settings
[16:30] <Slony> i didnt specify anything other than -vpre * and crf=23 iirc
[16:34] <Mavrik> well that's an important detail
[16:34] <Mavrik> since without that all data listed have no meaning
[16:34] <Mavrik> same without some kind of visual comparison
[16:46] <Slony> ok, i'll add that if i ever reat the tests
[16:47] <Slony> what should one use with ffmpeg-0.9 as acodec when the intended target is vimeo or youtube, libmp3lame or mp3lame or aac?
[16:55] <JEEB> Slony, youtube re-encodes everything you push to it
[16:55] <JEEB> so the optimum thing to push them is something lossless :P
[16:56] <JEEB> be it PCM, flac, wavpack or whatever
[17:01] <Slony> JEEB ok, what about non-youtube stuff that will get played back on my own machine?
[17:04] <JEEB> you'll prolly want AAC or vorbis (qtaacenc/neroaacenc/libvo-aacenc and aotuv), depending on the container etc. you're aiming for
[17:05] <Mavrik> hmm... how does libvo_aacenc in comparison to libfaac?
[17:11] <supernull> Hey All, anyone using ffmpeg for iptv transcoding ? trying to figure out some of the short comings..
[17:15] <JEEB> Mavrik, they seemingly both base more or less on the standard's example encoder :D
[17:15] <JEEB> so I'd say they're pretty similar
[17:15] <Slony> thanks
[17:15] <JEEB> and libvo-aacenc is still distributable because <things>
[17:15] <Mavrik> JEEB, I've just noticed slow switch from libfaac to libvo_aacenc that's why I'm asking
[17:16] <Mavrik> and most people agree quality of libfaac is abysmal :\
[17:16] <JEEB> the move away from libfaac is purely because of the fact that it has CLEAR licensing issues
[17:16] <JEEB> and thus it's not distributable
[17:16] <Mavrik> oh, I see
[17:16] <JEEB> libvo-aacenc is quite similar, but still distributable
[17:17] <Mavrik> I find it funny though, IIRC the libfaac licensing problems come from the fact it's based on a TI reference encoder... and now you say libvo si based on the same O.o
[17:17] <JEEB> yes, but it seems like the company that did libvo-aacenc seemingly had the OK for it
[17:18] <Mavrik> ok, good :)
[17:20] <Slony> what container should i use for an mp4 video stream and aac audio?
[17:20] <Mavrik> mp4.
[17:21] <Mavrik> ;)
[17:21] <JEEB> mp4 most probably >_>
[17:21] <Slony> good, thx
[17:21] <JEEB> although matroska is mostly just as fine as long as you don't need support from flash's and hardware players' side
[17:21] <JEEB> and flv as well I guess
[17:21] <JEEB> also
[17:21] <Mavrik> I've never found any real plus sides to using matroska over mp4
[17:21] <JEEB> don't call anything "an mp4 video stream"
[17:22] <JEEB> Mavrik, mostly when you need more tracks
[17:22] <Mavrik> especially since mp4 is widely supported and mkv... isn't.
[17:22] <JEEB> like subtitles etc.
[17:22] <JEEB> and yes
[17:22] <JEEB> if you need hw etc. support
[17:22] <JEEB> of course mp4 is preferable
[17:22] <JEEB> Slony, there are two MPEG-4 video standards, always say exactly which of them you're dealing with :P
[17:23] <Shimmy> Anyone please help me: https://ffmpeg.org/trac/ffmpeg/ticket/747
[17:23] <JEEB> MPEG-4 Part 2 (xvid, divx etc.) and MPEG-4 Part 10 | ITU-T H.264/AVC (x264, mainconcept etc.)
[17:23] <Shimmy> If you know C this is an easy job
[17:23] <Shimmy> I'm willing to promote with a little
[17:25] <Slony> JEEB ok
[17:35] <JodaZ> so in the ffmpeg faq i see
[17:35] <JodaZ> mkfifo temp1.a
[17:35] <JodaZ> ffmpeg -i input1.flv -vn -f u16le -acodec pcm_s16le -ac 2 -ar 44100 - > temp1.a < /dev/null &
[17:36] <JodaZ> why is "- > temp1.a" used
[17:36] <JodaZ> and not just temp1.a ?
[17:36] <Mavrik> probably to force ffmpeg not to mux output and just dump it raw
[17:37] <JodaZ> strange way
[18:36] <praedo> hello
[18:37] <praedo> iive are you online?
[18:37] <praedo> or mystica555_
[18:37] <praedo> or cbsrobot
[18:37] <praedo> i need your help
[18:40] <ePirat> hello
[18:42] <ePirat> is there a option that ffmpeg ignores encoding errors?
[18:57] <iive> praedo: i'm a little busy atm. but you should never ask to ask, just ask
[19:15] <praedo> iive very good
[19:15] <praedo> i explain the problem
[19:15] <praedo> the other day you helped me with a video that was unable to be deinterlaced
[19:15] <praedo> the reason was that it was captured from a bad tape and premiere failed to detect the interlace
[19:16] <praedo> i cut the first corrupt seconds and the rest could be correctly exported and deinterlaced
[19:16] <praedo> now the problem is very similar but there isn't any corrupt portion or anything
[19:16] <praedo> i don't have the raw data because it's not me who did the video
[19:16] <praedo> but i was asked to fix it
[19:17] <praedo> it's a short video where you can see some people running and in those fast motion scenes everything looks interlaced
[19:17] <praedo> maybe it isn't but i'm not sure
[19:17] <praedo> could I post it for you and you have a look with ffplay please?
[19:18] <praedo> i did -deinterlace and result is exactly the same: ugly lines at fast scenes
[19:18] <praedo> i'd like to know how i could fix that result in post-productiong without having to tell my friend to recapture
[19:18] <Slony> does smplayer work with ffmpeg0.9?
[19:18] <Slony> *compile with
[19:37] <Slony> nvmd
[19:49] <iive> praedo: same problem. the interlaced frame have been resized as progressive and fields have bleed into each-other. no easy way to fix it without the original.
[19:51] <relaxed> praedo: also, "-vf yadif" is the recommended way to deinterlace
[20:33] <cbsrobot> praedo: share a little snipped of your video
[20:47] <cn1209> hello
[20:49] <cn1209> I'm getting this error: The image & cannot be displayed because it contains errors. 
[20:49] <cn1209> Here's what I have so far: http://pasteit.com/16438
[21:08] <JodaZ> is there any way to have ffmpeg output video info in a easily machine readable way ?
[21:13] <sacarasc> JodaZ: Try using mediainfo instead.
[21:14] <JodaZ> is that ffmpeg ?
[21:18] <sacarasc> No, it's a different program that does what you want to do.
[21:21] <ePirat> i have a problem when i try to convert a wmv (created with mimms stream-ripper) to mp4&  http://pastebin.com/f8PYHs1x
[21:23] <JodaZ> ePirat, the wmv works ?
[21:23] <ePirat> vlc can play it, but time codes are broken
[21:24] <JodaZ> ccc puts no good streams out ?
[21:25] <JodaZ> those fn candy asses
[21:25] <ePirat> i wanted to dump h264 streams which didn't worked, so i used mimms to dump the wmv streams
[21:25] <JodaZ> how did you try dumping ?
[21:26] <ePirat> the h264 streams?
[21:26] <JodaZ> yes
[21:26] <ePirat> i tried rtmpdump
[21:26] <JodaZ> but they should have their stuff archived too so you can pull it later anyways
[21:26] <JodaZ> no http stream ?
[21:27] <JodaZ> yeah, no wonder seeing this proprietary dependence from those kids
[21:28] <ePirat> anyway is there a chance to somehow convert my fucked up wmv's to mp4 or at least correct the broken timestamps?
[21:29] <JodaZ> propably better off redownloading it or trying some other tool while noone answers here
[21:35] <cbsrobot> ePirat: beeing at ccc and recording in wmv3 is rather offensive ....
[21:37] <cbsrobot> ePirat: looks rather like a audio decoding problem
[21:38] <cbsrobot> JodaZ: you could also try ffprobe
[21:39] <cbsrobot> for ... video info in a easily machine readable way ...
[21:43] <JodaZ> the "..." make me suspicious, cbsrobot
[21:45] <cbsrobot>  a few minutes ago: JodaZ: is there any way to have ffmpeg output video info in a easily machine readable way ?
[21:46] <JodaZ> wouldn't " " be more appropriate there ?
[21:46] <JodaZ> maybe with a [sic] if something it wrong
[21:47] <cbsrobot> ah - may I should have used [...] or <quote></quote> but who cares
[21:48] <darkstarbyte> Can anyone help me with some xvid options for converting?
[22:01] <Big_Brother> is there a way to avoid dropped frames or is it simply inevitable?
[22:04] <darkstarbyte> ?
[22:05] <darkstarbyte> It depends on what you mean
[22:05] <darkstarbyte> you can set it to the frame rate of the video
[22:06] <darkstarbyte> I think that would be -r
[22:08] <Big_Brother> I was thinking only half the frames would be dropped if i was encoding a video from 60fps to 30fps but i have MORE dropped frames than i do processed frames.
[22:12] <Big_Brother> frame= 2140 fps=  3 q=28.0 Lsize=   44065kB time=00:01:29.08 bitrate=4052.2kbits/s dup=0 drop=3207
[22:35] <BusError> hi guys. I'm compiling/installing ffmpeg on a custom distro, but somehow libavcodec doesn't get installed. I have --enable-shared, and the lib is definitely compiled... but not installed; so VLC doesn't find it. Is there a magic makefile target to install it ? whats the trick ?
[22:37] <Big_Brother> is there a straightforward way to take 20 videos and encode them into one video? (20x 1-1.5min videos into one video with no gaps between each clip)
[22:45] <ePirat> why does ffmpeg makes these squared artefacts and can i prevent it somehow? https://img.skitch.com/20111227-d6dxf8fr1r26fmtd1mnwgrm7m1.png
[22:59] <JodaZ> how does it matter again where i use -ss ? was before -i seek before decode and after decode before seek ?
[23:07] <keyvan> JodaZ: i didnt know about this, is this true?
[23:07] <JodaZ> keyvan, i think so >_>
[23:07] <keyvan> thanks 
[23:07] <keyvan> i was scratching my head for weeks thinking why is -ss so damn slow
[23:08] <JodaZ> in case you try now, tell me which one is the seek before decode one
[23:08] <keyvan> ok i'll look
[23:40] <keyvan> JodaZ: looks like doing -ss before -i is a lot faster than doing -i before -ss
[23:40] <keyvan> so i guess -ss before -i seeks before decoding whereas -i before -ss decodes then seeks
[23:42] <JodaZ> kk
[00:00] --- Wed Dec 28 2011


More information about the Ffmpeg-devel-irc mailing list