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

burek burek021 at gmail.com
Tue Oct 16 02:05:01 CEST 2012


[02:31] <barque> Hey folks, my colors are coming out messed up from libavcodec
[02:31] <barque> PIX_FMT_RGB24 is R8G8B8 right ? :/
[02:31] <barque> not inverse? not BGR?
[02:31] <barque> etc.
[02:44] <sine_> i would like to ask how one would go about merging video sources that contain both 25 fps and 30 fps in a professional manner
[03:02] <barque> asdsdfhbasdhbahsvdasd
[03:03] <barque> libavcodec is giving me the same R and G through PIX_FMT_RGB24 decoding
[03:03] <barque> HARP!!1
[03:03] <barque> asdfasdfasdf
[03:03] <barque> ok now seriously... what the hell?
[03:12] <barque> nevermind, my own mistake
[06:44] <lake> in the interest in archiving audio, would high
[06:44] <lake> quality mp3 or vorbis be better?
[06:52] <tdr> lake, i prefer vorbis, but depends what you care to play it on later since some things don't support ogg
[06:53] <tdr> memleak it something that has always been there, you could show the same thing by playing tricks with the old intelfb, i learned about it around 1995
[06:53] <tdr> no, 2005 i mean
[06:56] <lake> tdr: it's just for archiving. i will put it online and not touch it again for ages. and if i do, it will be to convert into some other format, dvd probably.
[06:56] <lake> tdr: i would ideally use mjpeg/flac, but i get sync issues there while mjpeg/mp3 doesn't seem to
[06:57] <lake> these are home videos, so quality is a concern, but i don't think lossless is needed
[06:58] <tdr> well i'm kind of an audiophile, i like things to sound good, i generally dont use mp3 much
[06:59] <lake> tdr: i hear you, i definitely don't want it to sound crappy. i'll try a high quality vorbis and see if i like it.
[07:00] <tdr> doesn't have to be "high quality" really.  just don't shoot super low.
[07:00] <lake> plus mp3 is closed and vorbis is open
[07:18] <brad___> Is there sample C++ code that uses libav to transcode a audio file? (Like a generic transcode function)
[11:06] <pisto> hello. I cannot do 'git pull' on the ffmpeg repository. git index-pack gets stuck.
[11:07] <ubitux> isn't it just slow?
[11:07] <pisto> also, is it normal that it is trying to download 50 MB, even if I clone the repository yesterday night?
[11:07] <ubitux> are you cloning through http?
[11:07] <pisto> ubitux, checked with htop, it doesn't seem to do anything
[11:07] <pisto> ubitux, no
[11:08] <ubitux> works fine for me
[11:09] <ubitux> http://pastie.org/5061046
[11:10] <pisto> you're doing a complete clone there, yesterday I used --depth 1 and now the problem arises with git pull. let me try to clone it completely
[11:12] <pisto> pffft, stuck at 99%, doing absolutely nothing
[11:17] <ubitux> something looks wrong with your setup
[11:34] <pisto> ubitux, https from github works. I checked with gdb, git gets stuck in a read to stdin, but I guess this provides little info. OS is fedora 17 x64. fyi, if others with the same problem come.
[11:35] <ubitux> ok :)
[11:35] <ubitux> you have a git read-only on github
[11:36] <ubitux> (which might be more appropriate than http)
[12:57] <bug2000> Hello. I'm Trying use this; ffmpeg -vn -acodec copy -i input output; But seem to get an error "Unable to find a suitable output format for 'copy' copy: Invalid argument"; Any clues?
[12:59] <bug2000> Erm. Wrong error pasted; Unknown decoder 'copy'
[13:20] <cbsrobot_> bug2000: try ffmpeg -i input -vn -acodec copy output;
[13:23] <bug2000> cbsrobot_, It worked. Why did it work?
[13:24] <cbsrobot_> argument order is important
[13:26] <bug2000> Thank you very much cbsrobot_.
[13:47] <JEEB> bug2000, before -i you set decoder/input-side settings, while after -i you set encoder/output-side settings
[13:47] <bug2000> JEEB, OH. thanks.
[16:52] <xander`> Hi everyone!
[16:54] <xander`> Does ffmpeg support accelerated vdpau decoding for re-encoding rather than playback?
[17:01] <xander`> Does ffmpeg support hardware vdpau decode for re-encoding rather than playback?
[17:02] <relaxed> xander`: no
[17:08] <xander`> Well, seems like no-one's here...
[17:09] <xander`> ...is there?
[17:11] <relaxed> did you have another question?
[17:13] <xander`> Yes. Does ffmpeg have plans for/support for a simple scripting engine (possibly in a separate program) for video filtering?
[17:13] <xander`> An please answer my earlier question also. Thanks!
[17:13] <xander`> I'm trying this command (minimal) that doesn't work:
[17:14] <relaxed> No to your first question.
[17:14] <xander`> ffmpeg -vcodec h264_vdpau -i abc.mp4 test.mpg
[17:15] <xander`> OK. Thanks anyway. About the filtering...
[17:15] <xander`> ...support of a minimal scripting would be great. If not within ffmpeg, then as a separate front-end.
[17:16] <xander`> However, the ffmpeg docs only talk about graph2dot...
[17:16] <xander`> ...and not any tool to generate the filter graphs in the first place.
[17:19] <relaxed> Can't you script it using whatever tool you know?
[17:23] <xander`> Yes. But that would require knowing the options each filter took in detail, to provide error checking. That defeats the whole purpose of scripting. I would like to have named options in an easily readable syntax, kinda inspired by AviSynth...
[17:24] <xander`> ...Implementing a script myself would be a hack job, with no value from these `scripts' to myself in the future or others.
[17:29] <foonix> can matroska output be forced to do not obtain metadata from source file ?
[17:40] <foonix> damn, i should not give up so easily, found it! -map_metadata -1 does the trick :)
[17:48] <DelphiWorld> hi ffmpegifiers
[18:07] <aim__> hey guys, i'm quite new to ffmpeg and have a simple question about encode/decode audio. Right now I have written a small program, that gets audiodata from my microphone. It saves both, not encoded RAW-Audio and encoded mp3. For encoding I use avcodec_encode_audio2().  Now I want to decode the AVPakets I get from avcodec_encode_audio2() using avcodec_decode_audio4() to understand how the...
[18:07] <aim__> ...function works. Therefore I created an AVFRame *decoded_frame and I try to call int ret2= avcodec_decode_audio4(c,decoded_frame, &got_frame, &pkt);
[18:08] <aim__> In Debugmode VS says there is an access violation at 0x0000000 at my call of avcodec_decode_audio4(). What could that be?
[18:08] <aim__> thanks in advance
[18:41] <creep> howcome crf18 is 3x larger than default crf23 ?
[18:42] <relaxed> creep: it uses a higher bitrate
[18:42] <creep> okey
[18:42] <creep> can you recommend me a conversion command for animation?
[18:43] <relaxed> Didn't I give you one already?
[18:43] <creep> tried that
[18:43] <creep> 10MB h264 mkv vs 32MB zmbv ;/
[18:43] <creep> ffmpeg -i ./game_003.avi -vcodec libx264 -preset placebo -crf 18 -tune animation game_003_placebo_crf18_anim.mkv
[18:44] <creep> this is my best option?
[18:44] <relaxed> If you want a specific size use 2 passes, if you want a specific quality use -crf
[18:44] <creep> stills are good, but movements have noise
[18:44] <creep> most of the screen is unchanged... it is a redalert video
[18:46] <creep> i would think that -anim makes the filesize 3MB
[18:46] <relaxed> You could try -tune stillimage and lower the crf value if you still get noise.
[18:47] <relaxed> Are you using a recent version of ffmpeg?
[18:47] <creep> latest svn
[18:47] <relaxed> you mean git
[18:47] <creep> can't remember, maybe
[18:47] <relaxed> ffmpeg 2>&1|sed q
[18:47] <creep> i just copied clone command into bash script
[18:48] <creep> ffmpeg version N-40640-g5edd4fc Copyright (c) 2000-2012 the FFmpeg developers
[18:48] <creep>   built on May 23 2012 10:28:32 with gcc 4.4.4 20100726 (Red Hat 4.4.4-13)
[18:48] <creep> so -anim makes it better but not much
[18:48] <relaxed> It's time to update.
[18:50] <creep> ffmpeg version N-44818-g13f0cd6 Copyright (c) 2000-2012 the FFmpeg developers
[18:50] <creep>   built on Sep 28 2012 08:34:26 with gcc 4.4.4 (GCC) 20100726 (Red Hat 4.4.4-13)
[18:50] <creep> sj
[18:50] <creep> ah
[18:50] <creep> somehow i have /usr/local/bin too and its first, i'mm deleting it right now ;/
[18:50] <relaxed> test it again once you know you're using the recent binary.
[18:52] <creep> ah, i was using the old version
[18:52] <creep> trying again then
[18:52] <creep> was ffmpeg made better since may ?
[18:52] <relaxed> ffmpeg is made better everyday
[18:54] <creep> now i know what caused the configuration mismatch errors
[19:53] <cow_manis_nyari_> hy
[19:55] <cow_manis_nyari_> hi
[19:56] <cool_from_indone> hi
[19:57] Last message repeated 1 time(s).
[19:58] <cool_from_indone> any body wanna be my friend?
[19:59] <relaxed> try #friends
[20:10] <DelphiWorld> lol relaxed
[20:11] <DelphiWorld> mystica555 is here too... fun
[20:12] <mystica555> i autojoin like 30 channels on freenode... half the reason im missing so often is because i excess-flood upon rejoining and then i don't want to deal with it and i close it... then sometimes it works
[21:07] <lake> is it ok for ffmpeg to be dropping frames. this is my output
[21:07] <lake> frame=102056 fps= 30 q=24.0 size= 2146768kB time=00:56:45.79 bitrate=5163.7kbits/s dup=0 drop=102023
[21:17] <relaxed> lake: pastie.org your command and full output
[21:21] <lake> relaxed: http://pastie.org/5063774
[21:26] <relaxed> move the framerate before the video input and change it to "-r 30000/1001"
[21:27] <Sashmo_at_work> what the new command for -an and -vn ?
[21:27] <relaxed> they should still owrk
[21:27] <relaxed> work*
[21:28] <Sashmo_at_work> yup my bad
[21:28] <Sashmo_at_work> sorry
[21:28] <lake> relaxed: now i get "[video4linux2,v4l2 @ 0xd9b4e0] ioctl set time per frame(100/2997) failed
[21:29] <lake> relaxed: i mean [video4linux2,v4l2 @ 0x1dfd4e0] ioctl set time per frame(1001/30000) failed
[21:30] <relaxed> omit it
[21:32] <lake> relaxed: this is my output now
[21:32] <lake> http://pastie.org/5063824
[21:32] <lake> seems better
[21:35] <relaxed> If you want the output to be 29.97 then change yadif=1 to yadif=0
[21:36] <relaxed> You were doubling the framerate and then cutting it in half at the same time.
[21:36] <relaxed> Thus, a shit ton of dropped frames.
[21:36] <lake> i think i want yadif=1
[21:36] <lake> i'm going for quality
[21:37] <relaxed> Yes, you do
[21:37] <lake> thank you relaxed
[21:37] <lake> you are my hero
[21:38] <relaxed> You are welcome. If you want to archive this maybe you should think about using libx264 in lossless mode.
[21:39] <lake> yes it is for an archive. i didn't realize i could use lossless x264
[21:39] <relaxed> Then make lossy encodes from it.
[21:39] <lake> exactly what i'd like to do
[21:39] <lake> would it be smaller than an uncompressed avi?
[21:39] <relaxed> Yes but it will still be large.
[21:40] <relaxed> change -crf 18 to -qp 0 for lossless video
[21:40] <relaxed> add -preset veryslow for better compression
[21:42] <lake> i get crazy xruns with -preset veryslow
[21:44] <lake> same with -preset slow
[21:45] <relaxed> what are you capturing?
[21:46] <lake> v4l2
[21:47] <lake> relaxed: same with lossless, loads of xruns
[21:47] <lake> waaaaah
[21:48] <lake> my machine is super fast, so i think it's just the dazzle device i am using.
[21:48] <lake> i'm not sure what the bottleneck is
[22:25] <lake> relaxed: when i only capture the audio from alsa and encode into flac, i get no xruns
[22:26] <lake> relaxed: so i guess the bottle neck is the usb video ccapture device
[22:26] <lake> i wonder if there is a usb 3.0 capture device
[22:45] <TheWarden> Hi, I'm trying to convert PNG images to an mp4. I'm doing the following command without double quotes, "ffmpeg -f image2 -framerate 30 -start_number 1 -r 3 -i VIP-Loading-Media-%.png -s 1024x768 vip-loading.mp4" on Windows 7.
[22:45] <TheWarden> However when I execute this command it tells me it can't find me image files.
[22:45] <saste_> TheWarden, "VIP-Loading-Media-%.png" => invalid syntax
[22:45] <TheWarden> They are called VIP-Loading-Media-01.png, VIP-Loading-Media-02.png and VIP-Loading-Media-03.png.
[22:46] <saste_> you want -%02d.png
[22:46] <TheWarden> Oh okay I misunderstood. I thought the % symbol was the variable but rather its %02d.
[22:48] <TheWarden> mmm okay well that did it however the mp4 file is 13KB and there is no content. It's just black. odd.
[22:49] <TheWarden> Am I doing something wrong? Maybe ffmpeg doesn't support png images
[22:50] <TheWarden> argh
[22:51] <saste_> no it was:
[22:52] <TheWarden> here is the command I issued and the results it dumped out, https://gist.github.com/2b9457e6e846117c25f0.
[23:04] <TheWarden> any idea that I'm doing wrong here? must be doing something stupid.
[23:05] <saste_> why -framerate 30 ... -r 3?
[23:05] <saste_> what do you want to achieve?
[23:06] <TheWarden> I'll be honest first time doing this not overly familiar with ffmpeg. What I'm wanting to achieve is to take the three images I have and convert it to a video file with 30 secs per image will say out to a 1024x768 resolution and mpeg 4.
[23:06] <TheWarden> I might have to adjust how many seconds per image but not sure without playing with it.
[23:07] <saste_> you have three images, how much do you want they should last on the output video?
[23:07] <saste_> also: 30 secs for image with 3 images... is a waste
[23:11] <TheWarden> well I dunno a minute... even 30 seconds is good as the file will be in a loop playing over and over again.
[23:12] <saste_> TheWarden, how can you assume that it will loop?
[23:12] <saste_> also, how much time should last every loop?
[23:13] <TheWarden> saste_: I'm forcing VLC to loop the video but I suppose to be on the safe side I could just make a file that is like 2 or 3 minutes long.
[23:13] <saste_> TheWarden, still you didn't reply to my first question
[23:13] <saste_> how should the three image last in the output video?
[23:13] <saste_> how much...
[23:14] <TheWarden> saste_: per image your saying? ahhh not sure like 30 secs ?
[23:14] <saste_> so every image should last 30 secs?
[23:14] <TheWarden> yeah
[23:15] <TheWarden> repeat... this is just a video that is loaded by default until the playlist is formed and starts playing.
[23:15] <TheWarden> kiosk like setup
[23:15] <saste_> ffmpeg -f image2 -framerate 1/30 -start_number 1 -i VIP-Loading-Media-%02d.png -r 30 OUT
[23:15] <saste_> something like that
[23:52] <DelphiWorld> burek: NITE
[00:00] --- Tue Oct 16 2012


More information about the Ffmpeg-devel-irc mailing list