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

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


[00:29] <james123_> hey guys
[00:29] <james123_> i include avformat.h but i am getting avpacked not a name type
[00:35] <teratorn> when I get a packet out avcodec_encode_audio2() is there any way to tell how many samples worth of audio are encoded in the packet?
[00:36] <teratorn> I'm wondering how to calculate if there are gaps or overlaps in the audio data...
[00:52] <james123_> avpacket for audio is wierd
[00:52] <james123_> for video its guaranteed to be one but for audio there could be 1 or many
[00:52] <james123_> what are you working on teratorn?
[00:52] <teratorn> james123_: I'm debugging my audio/video encoder
[00:53] <teratorn> so I want data to be able to graph each packet on a timeline (seconds)
[00:53] <james123_> i see
[00:53] <teratorn> normally you would use a tool that decodes the stream(s) I guess
[00:54] <james123_> ff can decode the streams
[00:54] <teratorn> well yeah
[00:54] <teratorn> is that the only way?
[00:54] <james123_> not sure
[00:56] <james123_> shouldn't you have that info before it's encoded
[00:59] <james123_> is your code open source?
[00:59] <james123_> you might be able to include a check before its encoded
[01:07] <teratorn> before what is encoded?
[01:07] <teratorn> encoders deliver packets asynchronously
[01:07] <teratorn> one frame in != one frame out
[01:07] <teratorn> if that's what you were referring to
[02:31] <meelu> I am tryin to install FFMPEG with libmp3lame, Noticed the package didn't contain libmp3lame so i tried to configure from source. However this is the error i get:
[02:31] <meelu> "yasm not found, use --disable-yasm for a crippled build
[02:31] <meelu> "
[02:32] <meelu> so i try "./configure --enable-libmp3lame --disable-yasm"
[02:32] <meelu> and get "ERROR: libmp3lame >= 3.98.3 not found"
[02:33] <sacarasc> Your Lame is probably too old.
[02:35] <llogan> meelu: what distro?
[02:35] <meelu> sorry to sound a bit noob but any command for checking
[02:35] <meelu> just tried downloading lame btw
[02:36] <meelu> debian something
[02:36] <sacarasc> lame --version
[02:37] <meelu> still same prob though, Debian GNU/Linux 6.0 \
[02:37] <meelu> -bash: lame: command not found
[02:37] <llogan> https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideHardy
[02:37] <llogan> has lame and yasm instructions
[02:39] <meelu> Thanks llogan
[02:41] <meelu> llogan, that doesn't really help me with debian, its for ubuntu
[02:41] <meelu> i tried
[02:42] <sacarasc> They're pretty much the same.
[02:42] <llogan> meelu: the commands for yasm and lame sections will be the same
[02:44] <meelu> they are the same but i tried and then tried "lame --version" still doesn't know
[02:45] <llogan> my crystal ball is broken today, but if you provide actual console outputs i can make some guesses
[02:47] <meelu> http://paste2.org/p/2567101
[02:48] <llogan> did you use checkinstall of "make install" to actually install it?
[02:49] <meelu> checkinstall doesn't work in my system
[02:49] <llogan> "doesn't work" is a very common error message here
[02:49] <meelu> i appologize, just downloaded
[02:49] <meelu> i have /root/lame-3.99.5/lame-ffmpeg_3.99.5-1_amd64.deb
[02:49] <meelu>  now
[02:50] <llogan> so you did use checkinstall?
[02:51] <meelu> yeah
[02:51] <llogan> so lame should be installed now
[02:51] <llogan> unless checkinstall made the deb file yet failed to install
[02:52] <meelu> i think i didn't do checkinstall for yasm so it messed up
[02:52] <meelu> argh, i need to clean all this up now
[02:52] <meelu> don't even know how
[02:53] <llogan> whatever you installed with checkinstall can be removed with apt-get
[02:54] <llogan> apt-get remove lame-ffmpeg
[02:54] <meelu> ok thanks
[03:01] <meelu> llogan, ERROR: libfaac not found i tried apt-get for it too
[03:02] <llogan> remove --enable-libfaac
[03:02] <meelu> http://paste2.org/p/2567148
[03:04] <meelu> done thanks, llogan http://paste2.org/p/2567156 can you check the last message plz
[03:07] <meelu> WARNING: pkg-config not found, library detection may fail.
[03:10] <llogan> meelu: install pkg-config
[03:10] <llogan> the link has all of this info
[03:10] <llogan> you just might have to exclude a few things (like libfaac-dev)
[03:12] <llogan> i guess i'll update the hardy guide so it works with debian easier... i do it later. yeah.
[04:59] <Sashmo1> does anyone know of a way to measure the bitrate of a transport stream with ffmpeg?  I want to check the null packet size and individual program size
[09:22] <Wicaeed> Hi all, I'm using ffmpeg for a project at work. We have some raw .avi files and I am encoding them with x264, however the output videos are able to be opened/viewed by VLC but not QTP/WMP. Are there any special cases where a x264 encoded video isn't viewable by those players?
[20:33] <Aegwyn11> I'm trying to use OpenJPEG through FFmpeg. I can get it to work, but it always encodes lossless. How can I specify a compression ratio (-r in the OpenJPEG module)?
[20:42] <rindolf> Hi all. Why does ffmpeg give me this - http://paste.debian.net/214781/ ?
[20:42] <rindolf> I'm on Mageia Linux 3/Cauldron using ffmpeg-1.0.1-1.mga3.tainted
[20:42] <ubitux> try to use ':' separator
[20:42] <ubitux> -map 0:0 -map 1:0
[20:42] <rindolf> And following the instructions here - http://cfc.kizzx2.com/index.php/muxing-audio-and-video-with-ffmpeg/
[20:43] <ubitux> and place them before the output option
[20:43] <ubitux> -option
[20:45] <rindolf> Now it gives me http://paste.debian.net/214783/
[20:45] <rindolf> ubitux: OK.
[20:46] <rindolf> Now I am getting Data stream encoding not supported yet (only streamcopy)
[20:47] <ubitux> ogg might not support wav
[20:47] <ubitux> well, pcm
[20:48] <ubitux> try to encode to flac the audio
[20:48] <ubitux> if you want some lossless audio
[20:48] <rindolf> ubitux: OK, can't ffmpeg do the necessary magic?
[20:48] <rindolf> ubitux: I can also use .ogg.
[20:48] <ubitux> you're asking for codec copy, so it won't encode, but it doesn't know how to mux it in ogg
[20:49] <ubitux> so replace your -acodec copy with something like -c:a libvorbis -q:a 7 for lossy
[20:49] <ubitux> or just -c:a flac for lossless
[20:49] <ubitux> (and move your -map before the output)
[20:51] <rindolf> ubitux: can you give me the full command line? I cannot follow the breadcrumbs trail.
[20:52] <ubitux> i don't know what you want
[20:52] <ubitux> do you want to encode the audio in lossy or no?
[20:52] <rindolf> ubitux: it can be lossy.
[20:53] <rindolf> My video is audio-less and I want to replace the audio-track with the audio inside the .wav.
[20:53] <rindolf> Or it can be anything else that I can encode out of a .wav.
[20:53] <ubitux> ffmpeg -i in.ogv -i in.ogv -map 0:0 -map 1:0 -c:a libvorbis -q:a 7 -c:v copy out.ogv
[20:53] <ubitux> does this work?
[20:53] <ubitux> ffmpeg -i in.wav -i in.ogv -map 0:0 -map 1:0 -c:a libvorbis -q:a 7 -c:v copy out.ogv
[20:53] <rindolf> ubitux: why two -i in.ogv?
[20:53] <ubitux> sorry
[20:54] <rindolf> OK.
[20:56] <ubitux> you might want -shortest btw
[20:56] <ubitux> if durations mismatch
[20:56] <rindolf> ubitux: this gives me http://paste.debian.net/214787/
[20:56] <rindolf> ubitux: sure.
[20:56] <rindolf> Am I missing a codec?
[20:56] <rindolf> ubitux: thanks for all your help so far.
[20:57] <ubitux> it's strange
[20:57] <ubitux> it seems to be trying to copy the data stream
[20:58] <ubitux> while you explicitely requested only two particular streams
[20:59] <ubitux> rindolf: just in case, replace the ':' with '.'
[20:59] <ubitux> (in the -map)
[21:00] <rindolf> ubitux: Stream map '0.0' matches no streams.
[21:00] Action: ubitux doesn't get it
[21:00] <ubitux> do you mind sending me the file?
[21:00] <ubitux> files*
[21:01] <ubitux> btw, your input looks broken
[21:01] <rindolf> ubitux: my input?
[21:01] <ubitux> the two files yes
[21:01] <rindolf> ubitux: ah.
[21:01] <ubitux> especially the ogv one
[21:02] <rindolf> ubitux: OK.
[21:05] <rindolf> ubitux: it will take a while with my upstream.
[21:06] <rindolf> Maybe it's a bug in recordmydesktop.
[21:06] <ubitux> it's strange that ffmpeg isn't able to mux it
[21:06] <ubitux> so i'd like to check with a recent ffmpeg myself :p
[21:11] <rindolf> ubitux: http://www.shlomifish.org/Files/files/pysolfc-qsi/dist.tar.xz - thanks!
[21:14] <ubitux> got the file
[21:14] <rindolf> ubitux: thanks.
[21:16] <ubitux> oh i'm stupid
[21:16] <ubitux> replace -map 0:0 with -map 0:1
[21:19] <rindolf> ubitux: now I'm getting Stream map '0:1' matches no streams.
[21:19] <rindolf> With ffmpeg -i unreal_dm_-_Reach_Out-trimmed-and-faded-out.wav -i pysolfc-qsi.ogv -map 0:1 -map 1:0 -c:a libvorbis -q:a 7 -c:v copy out.ogv
[21:19] <ubitux> what's your first file? the ogv?
[21:19] <ubitux> well
[21:19] <rindolf> ubitux: no, the .wav one.
[21:19] <ubitux> then -map 0:1 -map 1:0
[21:20] <ubitux> -map <file-id>:<stream-id>
[21:20] <ubitux> i mean -map 0:0 -map 1:1
[21:20] Action: ubitux tired
[21:22] <rindolf> ubitux: thanks! Finally it seems to work.
[21:22] <rindolf> ubitux++
[21:22] <ubitux> e
[21:22] <rindolf> ubitux: why are you tired?
[21:23] <ubitux> because i didn't realize obvious things
[21:24] <rindolf> e
[21:25] <rindolf> Well, there are quite a few hearts in the video.
[21:25] <rindolf> Because it's a screecast of a Solitaire game.
[21:29] <ubitux> :)
[21:37] <SpecialEd> hey guys, I was wondering if someone could point me in the right direction with how to generate video thumbnail preview images of my files from the ubuntu terminal prompt using ffmpeg - is this possible?
[21:38] <ubitux> yes
[21:38] <ubitux> simplest case: ffmpeg -i in.avi -frames:v 1 thumb.png
[21:38] <ubitux> then you can play with vf thumbnail, or the scene detection of vf select
[21:40] <SpecialEd> ty! this points me in the right direction which is what i needed:)
[22:22] <joki> hello
[22:23] <joki> i want to convert some jpeg pictures to a video
[22:23] <joki> but ffmpeg tells me "No such file or directory
[22:24] <joki> command line is: avconv -f image2 -i 'pics/IMG_%d.JPG' -start_number 6900 video.mpg
[22:25] <relaxed> don't quote and -start_number 6900 probably needs to be before the input
[22:26] <relaxed> that command will encode to mpeg1, I believe, which will look like crap.
[22:26] <JEEB> default is 200kbps mpeg-1 indeed
[22:26] <joki> Unrecognized option 'start_number'
[22:27] <joki> btw version is avconv version 0.8.4-4:0.8.4-0ubuntu0.12.04.1
[22:27] <joki> maybe ubuntu disabled some features..
[22:27] <ubitux> this is not ffmpeg
[22:27] Action: relaxed runs
[22:27] <JEEB> joki, check avconv documentation for that indeed
[22:28] <JEEB> it's a fork of ffmpeg
[22:28] <JEEB> (libav)
[22:28] <ubitux> joki: anyway, -start_number as input option (before the -i)
[22:28] <JEEB> #libav would be the correct place to deal with libav binaries :)
[22:28] <ubitux> yes
[22:29] <relaxed> they don't have -start_number so it doesn't matter.
[22:29] <JEEB> yeah
[22:29] <joki> is there no real ffmpeg in ubuntu?
[22:29] <JEEB> nope
[22:29] <JEEB> the ffmpeg command is out-of-date ffmpeg code that they left after rewriting parts of it as avconv
[22:29] <JEEB> which got removed just after the 0.8.x release
[22:29] <relaxed> joki: http://goo.gl/DPrRY
[22:29] <JEEB> (ffmpeg then merged those changes of theirs into the ffmpeg command)
[22:30] <ubitux> joki ^
[22:32] <joki> thanks, that static build is probably the easiest solution
[22:32] <JEEB> yeah
[23:08] <joki> it works now :)
[23:08] <joki> another question: how do i limit the number of frames?
[23:08] <ubitux> -frames:v 123
[23:08] <joki> thanks
[23:09] <dotirc> hola a todos
[23:18] <Zandman26> Hi all!
[23:19] <Zandman26> Got some audio problems with my ffmpeg, could someone help me?
[23:20] <ubitux> don't ask to ask
[23:21] <Zandman26> I'm using ffmpeg on opensuse 12.2 and I can't get the audio both from my mic and the monitor audio
[23:23] <Zandman26> trying to use -f alsa -i hw:0,0 says that "Device/resource busy", using -f alsa -i default gives only mic audio
[23:29] <brontosaurusrex> relaxed: would that always link to the latest version?
[23:29] <brontosaurusrex> the http://goo.gl/DPrRY
[23:39] <luisxp> øg£x*&§@# øg£x*&§@# øg£x*&§@# øg£x*&§@# øg£x*&§@# øg£x*&§@# øg£x*&§@# øg£x*&§@# øg£x*&§@# øg£x*&§@#
[23:39] Last message repeated 3 time(s).
[23:39] <luisxp> !list
[23:39] <ubitux> luisxp: what are you doing?
[00:00] --- Fri Dec  7 2012


More information about the Ffmpeg-devel-irc mailing list