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

burek burek021 at gmail.com
Sat Mar 10 02:05:02 CET 2012


[00:11] <apersaud> pasteeater: have a look at http://ebit.lbl.gov/~arun/ffmpeg/index.html... hope this makes it clearer what I want to do on a frame-by frame base
[00:13] <apersaud> is there a way to have a filter pipe each frame through a bash command?
[00:18] <relaxed> anything is possible with bash and ffmpeg
[00:19] <apersaud> relaxed: how do you do it? :)
[00:20] <relaxed> your input is multiple frames?
[00:24] <apersaud> I have a whole movie and want to run each frame through a program to filter noise out... I only need to work on one frame at a time.
[00:24] <relaxed> the program is not ffmpeg I assume?
[00:26] <apersaud> if ffmpeg could do it, that would be great;) but haven't found a filter that does what I want (e.g. substract a polynomial background, see http://ebit.lbl.gov/~arun/ffmpeg/index.html)... I do have some other programs that could do that though
[00:26] <relaxed> output all the frames of the video, run a for loop sending each frame through the program and then reconstruct the video with ffmpeg when you're done.
[00:32] <apersaud> ok. thanks
[04:36] <brian_> Hi everyone, I have a problem. I recently upgraded to Debian SID. I have everything up to date and Pulse Audio installed. When I run FFMPEG it spits out cannot open audio device pulse (No such file or directory). This is puzzling so I reinstalled Pulse Audio, but it still doesn't budge.
[04:37] <brian_> the script for the audio bit is simply -f alsa -ac 2 -i pulse
[04:37] <brian_> I even added an asound.conf file to /etc
[04:38] <brian_> I would simply use -f alsa -ac 2 -i hw:0,0 but the audio and video is out of sync and I have not found a proper method to fix it.
[04:39] <brian_> Should I reinstall FFMPEG?
[04:42] <brian_> hmmm, aplay reveals this: /usr/share/alsa/pulse-alsa.conf may be old or corrupted: consider to remove or fix it  how do I replace that?
[04:49] <brian_> ok works now :)
[04:50] <brian_> had to remove that corrupted pulse-alsa.conf
[04:50] <brian_> well, thanks for helping myself solve my own problem, best room EVAR :)
[06:36] <zap0> haha 'room'
[06:36] Action: relaxed sends zap0 back to his room
[06:58] <pasteeater> relaxed rolled a 20.
[07:05] <abhay_> i am trying to compile ffmpeg-0.10 from source to enable mp3 support (and some other supports as well)
[07:06] <abhay_> but the there is an error message : ERROR: libmp3lame >= 3.98.3 not found
[07:06] <abhay_> i am on linux mint 12
[07:08] <relaxed> pasteeater: what do I win?
[07:08] <abhay_> sudo apt-get install libmp3lame0 returns : abhay at ABD-PC ~/src/ffmpeg-0.10 $ sudo apt-get install libmp3lame0
[07:08] <abhay_> Reading package lists... Done
[07:08] <abhay_> Building dependency tree
[07:08] <abhay_> Reading state information... Done
[07:08] <abhay_> libmp3lame0 is already the newest version.
[07:08] <relaxed> abhay_: install lame-dev
[07:08] <abhay_> The following package was automatically installed and is no longer required:
[07:08] <abhay_>   libavfilter2
[07:08] <abhay_> Use 'apt-get autoremove' to remove them.
[07:08] <abhay_> 0 upgraded, 0 newly installed, 0 to remove and 341 not upgraded.
[07:08] <abhay_> ok i'll try
[07:08] <relaxed> and don't pipe output to the channel
[07:08] <relaxed> pastebin.com
[07:10] <relaxed> shouldn't linux mint have a recent version available?
[07:10] <abhay_> i installed it
[07:10] <abhay_> that problem solved
[07:10] <abhay_> thank you :)
[07:10] <relaxed> I'm here to serve
[07:48] <abhay_> relaxed: Finished installing ffmpeg. This is the first time I have installed a software from source. ffmpeg is awesome. Best Wishes & Thank You.
[07:49] <relaxed> abhay_: glad I could help.
[10:43] <Laputa> hi, i'm using ffmpeg to capture audio from the speaker.
[10:44] <Laputa> it works fine , but when i plugged my headphone, no sound could be captured .
[10:44] <Laputa> this is the command i used : ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -r 20 -s 100x100 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -threads 0 output.mkv
[10:46] <Laputa> it captures a small area of the left-top corner of the screen , and use the default sound device
[10:47] <Laputa> hi, anyone here
[11:05] <Laputa> nyfair: hi
[11:05] <Laputa> just found actually, both my speaker and headphone don't work.
[11:06] <Laputa> nyfair: the speaker seems like work because my mic caputre sounds from it...
[11:07] <Laputa> so if i mute my mic , no sound captured from speaker . lol
[11:27] <Laputa> hi , anyone here ?
[11:28] <Laputa> why i can only get sound from mic while using this command :
[11:28] <Laputa> Stream mapping:
[11:28] <Laputa>   Stream #0:0 -> #0:0 (pcm_s16le -> pcm_s16le)
[11:28] <Laputa> Press [q] to stop, [?] for help
[11:28] <Laputa> Stream mapping:
[11:28] <Laputa>   Stream #0:0 -> #0:0 (pcm_s16le -> pcm_s16le)
[11:28] <Laputa> Press [q] to stop, [?] for help
[11:28] <Laputa> ffmpeg -f alsa -i hw:0,0 test.wav
[16:10] <zamolxes> curious what you know of http://code.google.com/p/ffmbc/ ?
[16:31] <iive> zamolxes: do you see bcoudurier in the op list? he is the one.
[16:32] <zamolxes> \o/
[16:32] <zamolxes> allright :)
[16:33] <sacarasc> Do you see iive in the op list? He's "The One".
[16:33] <ubitux> :D
[16:34] <iive> what?
[16:39] Action: ubitux is in furtive mode too
[17:25] <symtab> trying to compile ffmpeg
[17:25] <symtab> i get the follwing errors: http://pastebin.com/gZK5J3tN
[17:25] <symtab> any ideas how i can fix?
[17:25] <symtab> h264 is installed
[17:25] <symtab> lastest version
[17:26] <relaxed> latest as in git versions of both?
[17:27] <symtab> ffmpeg 0.10 and latest git for x264
[17:27] <symtab> i should try with ffmpeg latest git
[17:27] <symtab> ?
[17:27] <relaxed> always, releases are for distros
[17:28] <symtab> ok
[17:28] <symtab> thanks
[17:34] <iive> symtab: btw, after installing x264 run `ldconfig`
[17:34] <symtab> of course
[17:34] <symtab> did that
[17:34] <iive> also, be sure you install it in location that is indexed by ld e.g. RH/FC /usr/local/lib is not indexed
[17:35] <symtab> i know
[17:35] <iive> and most importantly, don't forget to build shared/static libx264. it is not done by default.
[17:36] <symtab> also did that
[17:36] <symtab> now trying with git ffmpeg
[17:51] <symtab> so the problem was that there was some old x264 on the server in /usr/lib64 and there was no rpm saying its installed :(
[17:51] <symtab> thanks for helping
[18:22] <gridtank> Nagy! On which freenode channel can i ask DNxHD questions?
[18:24] <bcardarella> how do I find out the aspect ratio of a video?
[18:25] <relaxed> ffmpeg -i input (look at DAR)
[18:26] <bcardarella> relaxed: oh, duh :) thankpyou
[18:31] <bcardarella> Is it possible to add padding to a video to have it conform to an aspect ratio and avoid the a stretched image?
[18:32] <relaxed> yes, look at the pad filter in the man page
[18:32] <bcardarella> ok, thank-you
[18:56] <bcardarella> So I tired: ffmpeg -i in.mp4 -qscale 5 -vf pad="ih*16/9/sar:ih:(ow-iw)/2:(oh-ih)/2" -loglevel quiet -y out.mp4
[18:56] <bcardarella> and that did not modify the aspect ratio
[18:57] <bcardarella> I'm trying to go from 4:3 to 16:9
[18:58] <cbsrobot> bcardarella: add ,setdar=16:9 at the end of -vf
[19:00] <bcardarella> excellent that worked thank-you cbsrobot
[19:19] <Jan-> I have an ac3 audio file that I extracted from a DVD using mplayer -dumpaudio
[19:19] <Jan-> can I use ffmpeg to convert the first 25 seconds of it to an mp3, or does ffmpeg only do video?
[19:22] <relaxed> Jan-: ffmpeg -i input -t 25 -acodec libmp3lame -aq 0 output.mp3
[19:23] <Jan-> Error while opening encoder for output stream #0.0 - maybe incorrect parameters
[19:23] <Jan-> such as bit_rate, rate, width or height
[19:25] <relaxed> Jan-: ffmpeg -i input -t 25 -acodec libmp3lame -aq 0 -ac 2 output.mp3
[19:27] <Jan-> s'OK, I did it in goldwave while we were trying to figure it out!
[19:27] <Jan-> thanks anyway
[19:42] <dj_who> hi, all
[19:46] <dj_who> is ffmpeg 0.10 able to encode/losless transcode TS with video h264 +dvb-subtitles and two audio's (ac3 and mp2)?
[19:47] <dj_who> in 0.9 I had problems with subtitles
[19:51] <relaxed> dj_who: ffmpeg can do the encoding and you remux the subs in with tsmuxer
[19:52] <Guest90624> Where can I get the latest version of FFMPEG for Ubuntu 11.10?
[19:53] <relaxed> Guest90624: compile it yourself
[19:54] <Guest90624> From where?
[19:55] <relaxed> Guest90624:  http://bit.ly/3xSE5
[19:58] <gridtank> I have problems with some DNxHD files, they are vc3/DNxHD OP1a MXF contained and runs among other on these Videoservers. VizRT's "VVE", Harris "Nexio" and "EVS". This is what i type to have a look. ffmpeg -i 1080185.mxf -vcodec dnxhd -b:v 185 -an test.mov. i get two kinds of errors. 1.   [mxf @ 0x7ff5e983d800] Could not find codec parameters (Video: none, 1920x540)  2.  [buffer @ 0x7ff5e941bae0] Invalid pixel format '-1'
[19:58] <gridtank>    3.   Error opening filters!    Complete output here:http://pastebin.com/3FqbLGf8   and DNxHD-testfiles here. The one i tested in this example was 1080I 185 8 bit 8CH 24BIT.
[19:58] <gridtank> testfiles: http://dnxhd.gridtank.com/
[19:59] <relaxed> -b:v 185k
[20:00] <dj_who> relaxed, and if i need just cut a video  i want to use -vcodec copy -acodec copy -scodec copy this is not working
[20:01] <gridtank> added k still get [mxf @ 0x7fdc4a83d800] Could not find codec parameters (Video: none, 1920x540) and Invalid pixel format '-1'.
[20:01] <relaxed> set the correct pixel format with -pix_fmt
[20:01] <dj_who> i've applied a patch and now i can do that but the duration of cutted video is wrong (ffmpeg 0.9.1)
[20:01] <gridtank> tried that with -pix_fmt AVdn
[20:02] <relaxed> gridtank: see `ffmpeg -pix_fmts`
[20:02] <relaxed> gridtank: then, ffmpeg -pix_fmt $fmt -i input ...
[20:03] <dj_who> also the fast forward and rewind is very slow
[20:08] <relaxed> gridtank: hmm, try ffmpeg -vcodec dnxhd -i 1080185.mxf -vcodec dnxhd -b:v 185 -an test.mov
[20:12] <gridtank> relaxed: one step forward, but still got nu success. ile pastbin result.
[20:13] <gridtank> relaxed: http://pastebin.com/v9MqqW8R
[20:13] <relaxed> I forgot the k too. -b:v 185k
[20:14] <gridtank> :)
[20:14] <gridtank> trying
[20:14] <relaxed> that's a pretty low bitrate for 1920x1080 video
[20:19] <gridtank> relaxed: Getting results with this. ffmpeg -vcodec dnxhd -i 1080185.mxf -vcodec dnxhd -b:v 185M -an test.mov
[20:21] <gridtank> God results! Yihaaaa! Thanks relaxed
[20:22] <relaxed> you're welcome
[20:24] <gridtank> and you're awsome! Thanks again.
[20:32] <pasteeater> gridtank: consider trying ffmbc if you're working with DNxHD often
[20:33] <gridtank> I will test ffmbc, do i send the same parameters in the same way?
[20:34] <pasteeater> it "Supports reading AVID MXF OpAtom DNxHD files", so i'd start with a simpler command.
[20:35] <gridtank> pasteeater: will try.
[20:44] <dj_who> why after ffmpeg -async 1 -i "movie.dvr" -map 0:0 -map 0:2 -c:v copy -c:a copy -f mpegts "movie.mpg" players show bad or no Duration time?
[21:21] <Anaphaxeton> hi! i have transcoded a video in an mp4 file to an .mpg
[21:21] <Anaphaxeton> converting it to pal too
[21:21] <Anaphaxeton> i want to make it playable from ordinary DVDs
[21:23] <Anaphaxeton> i am trying now $ ffmpeg -i file.mpg  -y file.vob
[21:23] <relaxed> Anaphaxeton: use dvdauthor
[21:23] <Anaphaxeton> hm
[21:24] <Anaphaxeton> ok
[21:24] <relaxed> use the mp4 as input: ffmpeg -i input.mp4 -target pal-dvd output.vob
[21:25] <Anaphaxeton> why? does it transcode mpgeg2 to mpgeg2 right now?
[21:25] <relaxed> each time you transcode you lose quality
[21:26] <Anaphaxeton> so it does transcode
[21:26] <Anaphaxeton> ok
[21:26] <Anaphaxeton> thanks :)
[21:27] <relaxed> dvdauthor will take output.vob and create the dvd layout you will burn to dvd.
[21:29] <relaxed> file.mpg might work if it's encoded correctly.
[21:44] <cbsrobot> gridtank: see http://www.itbroadcastanddigitalcinema.com/ffmpeg_howto.html#Encoding_VC-3 for the options to use for specific encodings
[21:47] <gridtank> cbsrobot: I have been there several times. The problem is that these files in some way dont follow standard and these commands don't work. but i havr found out today with the help from relaxed: that if i place -vcodec before -i myfile.mxf it works.
[21:48] <gridtank> Do you know if there will be 10bit suport in ffmpeg soon?
[21:50] <gridtank> relaxed: If i want to probe (ffprobe or ffplay) these files how can i do that?
[21:53] <gridtank> Sorry! apparently worked with 10bit allso.
[22:10] <avamk> Hello. I am running Mac OS X 10.6.8 with ffmpeg dependencies installed via MacPorts. I am having trouble with ./configure for latest ffmpeg from Git: It can never find the libraries I specified, such as libvpx. This happens even if I specified my library paths in $PATH and LD_LIBRARY_PATH. How do I troubleshoot this?
[22:32] <cbreak> avamk: $PATH is not for libraries but executables
[22:33] <relaxed> avamk: --extra-cflags="-I/path/to/prefix/include" --extra-ldflags="-L/path/to/prefix/lib"
[22:33] <avamk> relaxed: OK. I will try it now....
[22:36] <rainmaker1> Hi, what is "full grayscale support" in ffmpeg?
[22:36] <avamk> relaxed and cbreak: aha it worked, now I am "make"ing it. Thanks!
[23:43] <Nagy> is there any up to date encoding sample
[23:43] <Nagy> I've noticed av_write_header no longer exists
[23:44] <Nagy> nor av_set_parameters
[00:00] --- Sat Mar 10 2012


More information about the Ffmpeg-devel-irc mailing list