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

burek burek021 at gmail.com
Thu Sep 18 02:05:01 CEST 2014


[00:40] <lipizzan> llogan: I've done some console-only testing. There does seem to be some modest benefit, in that networking and all that other cruft isn't running.
[00:42] <lipizzan> llogan: However, when i run the full command that deinterlaces and overlays a logo and some other things that I'm not certain of, the counters at the bottom of the screen become strange.
[00:43] <lipizzan> llogan:  even with -preset fast ,  I think I'm still cpu bound when ovelayong and deinterlacing.
[00:55] <rickbol> llogan:   http://pastie.org/9560289
[01:08] <rickbol> added the closing stats:  http://pastie.org/9560308
[01:26] <rp__> Hey, can I make ffmpeg ignoring all input errors? I've tried -er/-err_detect options with vaious flags with no success. I'm trying to run couple of input streams and bandwidth goes over maximum of my connection giving "Invalid data found when processing input". Is it possible to skip errors caused by poor connection while repeating (a:copy, v:copy) stream?
[01:26] <rp__> Any ideas?
[01:44] <relaxed> rickbol: did you add the #comments afterwards?
[01:54] <lipizzan> relaxed: they're from the perl script that runs this process. I left them for reference.
[01:55] <RyanV> why does even a successful response from running ffprobe or ffmpeg write to sterr?
[02:04] <relaxed> lipizzan: I assume you saw "/home/rickbol/vids/cfs/img/cfsbug-x1.png: Input/output error"
[02:05] <Timothy__Gu> michaelni: can you op me on #ffmpeg?
[02:10] <lipizzan> relaxed: I saw that, but I don't know what to make of it. The png exists, and is successfully overlayed into the output ts file.
[02:11] <michaelni> Timothy__Gu, done
[02:11] <Timothy__Gu> michaelni: thanks!
[02:14] <Hello71> i think you have room now for the log link
[02:15] <c_14> I think it should be "FFmpeg is in Debian experimental now thanks to Andreas Cadhalpun and Niv Sardi! \o/"
[02:15] <c_14> There's a "now" too many.
[02:15] <Timothy__Gu> c_14: fixed thanks!
[02:16] <Suchiman> there are way too many things that are like ffmpeg but aren't ffmpeg
[02:16] <Suchiman> such confuse
[02:22] <relaxed> lipizzan: then what's the problem? fps is the encoding speed
[02:31] <lipizzan> relaxed:  but I'm inputing a 29.97fps dv stream, so how is it processing 45fps? if I remove the logo overlay, it processes ~30fps and maintains a lower bitrate.
[02:41] <relaxed> you can attribute the higher bitrate to the image, but I'm not sure about the fps difference
[02:41] <llogan> it's yadif
[02:42] <llogan> mode 1 will output one frame for each field
[02:43] <llogan> you can try mode 0 and see which one looks best for your content
[02:43] <llogan> using mode 1 will effectively double the frame rate
[02:44] <llogan> hence that's why it looks like it is encoding "faster"
[02:44] <lipizzan> I'll try mode 0.
[02:45] <llogan> and filtering can definitely slow things down depending on the filtergraph, the input, the encoder, etc
[02:47] <lipizzan> is mode the first or second parm?  yadif=x:y  ?
[02:47] <llogan> http://ffmpeg.org/ffmpeg-filters.html#yadif
[02:53] <lipizzan> well fps=30, and cpu is not as consumed.
[02:53] <llogan> why scale to 640x480?
[02:56] <lipizzan> llogan:  it's DV, and I know DV pixels aren't square, but in the old ffmpeg I used, I had to do that to make circles round. It's an issue now, cause my logo isn't round anymore. What should it be?
[02:56] <lipizzan> llogan:  just don;t scale at all?
[02:57] <llogan> your player didn't display it correctly?
[02:57] <llogan> i mean the native size and aspect
[02:58] <lipizzan> vlc
[02:58] <llogan> if you wan tto scale the i recommend using the scale filter instead of -ss. maybe right after yadif. that way you can control when and where it actually performs the scaling
[02:59] <lipizzan> wow, removing scaling gave me back another 25% cpu!
[03:00] <llogan> you may not need hqdn3d. it's a denoiser and it's slow.
[03:01] <lipizzan> llogan:  yea, I wondered what that was.
[03:05] <lipizzan> actually, the hqdn3d seems to have to reduce cpu a little with my current image (which is dark and noisy).
[03:06] <llogan> you can use it if you like the result
[04:32] <jpleau> oo, ffmpeg into debian experimental, shiny
[07:36] <tacocat> hi, i'm trying to do a cross compile for 64-bit windows from a ubuntu 14.04 install, but i'm having a hard time getting configure to detect any external libraries
[07:36] <tacocat> the command i'm running is: ./configure --prefix="$HOME/ffmpeg_build" --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame  --enable-libopus --enable-libtheora  --enable-libvorbis  --enable-libvpx --enable-libx264  --enable-nonfree --enable-libmodplug --enable-libgsm --enable-libtwolame --target-os=mingw32 --arch=x86_64 --cross-prefix=x86_64-w64-mingw32- --enable-shared
[07:37] <tacocat> right now it's failing with ERROR: libass not found, but if i take that off, it just fails on to the next one (ERROR: libfdk_aac not found) and so on
[07:38] <tacocat> the libraries (libass-dev, libfdk-aac-dev, etc.) I installed from ubuntu's repositories, along with the mingw packages
[07:38] <tacocat> i'm not sure what's wrong, googling hasn't been very helpful
[07:40] <ubitux> tacocat: can you look at the end of the config.log?
[07:40] <tacocat> yeah, one sec
[07:40] <ubitux> maybe you just lack pkg-config
[07:42] <tacocat> http://pastebin.com/EZi2f8np i take off --enable-libass and it just fails with the next library
[07:42] <tacocat> pkg-config is installed according to apt
[07:42] <ubitux> ah missed the x compile part
[07:43] <ubitux> yeah well you need these libs for windows
[07:43] <tacocat> oh okay
[07:43] <ubitux> no idea how that's supposed to work
[07:43] <ubitux> don't ask me more :)
[07:44] <tacocat> oh, so all the dependency libraries have to be cross compiled too? :s
[07:44] <tacocat> gah
[07:51] <tacocat> i'll try again tomorrow, good night :)
[07:57] <rcombs> https://drive.google.com/file/d/0B6MFALddgIQ_MTVGaGhvUkkteGc/edit?usp=sharing <-- so, ffmpeg and mediainfo disagree on this file's frame rate, and my instinct is to call mediainfo buggy, but I'd like to double-check; anyone who knows the format (mpeg2 video in .mpg) better than me want to take a look?
[08:28] <Nosomy|off> mediainfo says 24000/1001 for progressive, 30000/1001 if read as interlace.
[08:28] <Nosomy> rcombs
[08:29] <rcombs> Nosomy: hmm, interesting
[08:29] <rcombs> so sounds like their bug, then
[08:30] <Nosomy> nop
[08:30] <Nosomy> isn't a bug.
[08:30] <rcombs> oh?
[08:30] <Nosomy> is little diff of detects
[08:31] <rcombs> well, which is correct? Or is it encoded using some weird telecine hinting or something?
[08:34] <Nosomy> is the telecine
[08:35] <Nosomy> look: http://pastebin.com/sW8v7ZHH
[10:14] <tedy> could any one here enlighten me how  avcodec_register_all(); registers or specifically finds the codecs available please?
[10:19] <tedy> sorry i got that one all codecs are listed in allcodecs.c
[10:21] <tedy> what i seem not to understand is how avcodec_find_encoder() finds codecs especially if codec an external one like libx264
[10:32] <abaudoux> Hello
[10:32] <anshul_mahe> hello
[10:32] <abaudoux> I run into an error when using the hls output format with ffmpeg
[10:33] <abaudoux> I think it may be a bug
[10:33] <abaudoux> http://pastebin.com/JmUXNhWz
[10:34] <abaudoux> I tried with -bsf:a aac_adtstoasc
[10:34] <abaudoux> but It doesnt change anything
[10:36] <anshul_mahe> is your inpu file play fine with ffplay
[10:36] <anshul_mahe> *input
[10:40] <abaudoux> i trid with vlc and it plays fine, I can try with ffplay too
[13:50] <rsdrsdrsd> I am using yadif for deinterlacing, but I don't want to deinterlace the non interlaced videos, but I can't detect if a video is interlaced or not.... should I use as filter yadif=0:-1:0 or yadif=0:-1:1 ?
[13:51] <rsdrsdrsd> What I read from the docs is that I should use yadif=0:-1:1  , but from some tutorials online I read yadif=0:-1:0 ?
[14:02] <Taconut> Hi! I've run into a problem with FFMPEG. I'm converting an MP4 to an MP3, but I need to know the length of the MP3 first, so I can set the content-length header. If it helps, I have the bitrate.
[14:02] <Taconut> *Audio Bitrate
[14:05] <wodim> another youtube-to-mp3 site?
[14:07] <Taconut> Yes and no
[14:07] <__jack__> bitrate nor content-lenght will tell you the "length" (= time) of the track
[14:07] <__jack__> s/will/won't/
[14:07] <Taconut> I need content-length
[14:08] <__jack__> what is the output of ffmpeg -i source.mp4 ?
[14:08] <Taconut> Also using regex in conversations = super badass
[14:08] <Taconut> It reports incorrect lengths
[14:08] <Taconut> The duration is like a couple ms
[14:08] <__jack__> anyway, it will be hard for you to guess the exact mp3 overhead
[14:08] <Taconut> I got the length in seconds and the bitrate, but I'm like +/-10 seconds off
[14:09] <__jack__> the most simple is to process the file on a temporary file, then get the size etc
[14:09] <Taconut> Is that any faster than writing the file to a buffer, and getting the size of that?
[14:09] <Taconut> Because that's around 60x slower
[14:10] <__jack__> what is slower than what ? file vs buffer ?
[14:10] <__jack__> you are encoding, or just remuxing ? be sure to set the codec to "copy", right ?
[14:10] <Taconut> I'm encoding
[14:11] <Taconut> M4A->MP3
[14:11] <__jack__> owh, yep
[14:11] <Taconut> Streaming the file directly to the client/browser is 60x faster than proccesing it into a buffer first
[14:12] <Taconut> Does FFMPEG -i give me the size?
[14:12] <Taconut> I don't think I saw it anywhere
[14:12] <Taconut> But I do know the length isnt working
[14:12] <__jack__> It will never give you the encoded length before encoding
[14:12] <Taconut> *facepalm* that was a stupid question sorry
[14:13] <Taconut> Hmmm... Are there any workarounds?
[14:14] <__jack__> how works your project ?
[14:15] <Taconut> I'm getting an M4a-encoded video as a stream or url in Node.js and using FFMPEG to convert that into an mp3 and pipe it out to the browser
[14:15] <Taconut> I /could/ do something with the streams so I'm left with just urls
[14:16] <Taconut> But FFMPEG reports incorrect information when using remote URLS with -i
[14:16] <Taconut> And downloading anything into a temp file slows it way down
[14:16] <__jack__> you have a sample ?
[14:16] <__jack__> (sample uri)
[14:16] <Taconut> K one sec. I'll find one
[14:19] <Taconut> Hmmm... Now its stopping half-way
[14:19] <Taconut> At least one output file must be specified
[14:20] <Taconut> Its not even giving me the duratio
[14:20] <Taconut> I'm doing something stupid
[14:23] <anshul_mahe> How to check whether h264 video is interlaced or progressive
[14:25] <Taconut> Okay
[14:25] <Taconut> The following video reports 00:00:10.56 as the duration
[14:26] <Taconut> http://download.wavetlan.com/SVV/Media/HTTP/H264/Other_Media/H264_test7_voiceclip_mp4_480x360.mp4
[14:26] <Taconut> This was the first MP4 I could find
[14:26] <Taconut> I dont even know wtf it is
[14:29] <__jack__> Taconut: the lenght is 10s 565ms, really :)
[14:29] <Taconut> Hey it is working!
[14:29] <Taconut> lol sorry. I didn't see that
[14:30] <Taconut> Well i guess I'm good then. Multiplying this by (128 * bitrate) should give me the bytes?
[14:30] <Taconut> 128 = 1024/8 = bytes/kilobit
[14:31] <__jack__> I don't think so, bitrate are not constant
[14:31] <Taconut> So then what can I do?
[14:31] <__jack__> and you may want the real and exact value
[14:31] <Taconut> That I do
[14:31] <Taconut> I'm assuming trying to flatten the bitrate wuld have searious quality impacts
[14:48] <fling> Hello.
[14:48] <fling> -f video4linux2 -s 864x480 -r 15 -i /dev/video0
[14:48] <fling> but I have 25 fps!
[14:49] <fling> http://dpaste.com/1QQ43F7
[14:49] <__jack__> try ffmpeg -i blabla -r 15 output.avi, nah ?
[14:51] <fling> __jack__: yay! working
[14:52] <fling> http://dpaste.com/3YS28M8
[14:52] <fling> __jack__: does this look right?
[14:52] <fling> __jack__: should not I change any other args order?
[14:57] <__jack__> -threads 0 is strange
[14:58] <__jack__> the rest is fine
[14:58] <__jack__> forcing the aspect may be useless (native aspect is betterà
[14:58] <__jack__> )
[14:58] <__jack__> depending of your needs
[15:04] <fling> __jack__: how much threads do I need for 6 cores
[15:15] <fling> __jack__: I'm encoding theora :D
[15:16] <fling> __jack__: because I'm playing captured video over sshfs on an old pentium3 :<
[15:18] <__jack__> fling: remove the -threads, it will take all usable core
[15:18] <__jack__> dunno if such encoder is multithreaded, anyway
[15:19] <fling> but atleast it plays on pentium3
[15:19] <fling> I removed crf and threads
[15:19] <fling> just -c:v theora \
[15:19] <fling> __jack__: hmm hmm how to capture fullhd from the camera?
[15:20] <fling> __jack__: do I need to enable x264 in v4l2 somehow?
[15:20] <__jack__> v4l2 is the source format, x264 may be the output format
[15:20] <__jack__> if you cpu is not power enough, you must not encode at runtime
[15:21] <__jack__> may require a lot of disk space & IO
[15:21] <__jack__> you've to try
[15:21] <fling> __jack__: encoding cpu is phenom x6 1100T
[15:21] <fling> __jack__: so how to get fullhd off a webcam?
[15:22] <__jack__> ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 output.mkv ?
[15:22] <__jack__> said the doc
[15:22] Action: fling is asking v4l guys
[15:25] <anshul_mahe> is there any good text about croma in yuv
[16:23] <JodaZ_> has anyone taken a look at what changes PLEX has in their customized ffmpeg?
[16:33] <someone-noone> How can I use ffmpeg to capture UTF8 window title with gdigrab device?
[17:35] <deu__> Hi, anybody here? I am having hard time compiling one application which uses ffmpeg libraries. It complains that theres no r_frame_rate in AVStream.
[17:35] <deu__> Is it safe to replace it with avg_frame_rate?
[17:51] <Nykee> \0/
[17:51] <Nykee>  |
[17:51] <Nykee> \0/
[17:51] <Nykee>  |
[20:29] <llogan> JodaZ_: rcombs may know
[20:30] <llogan> oh, he did explain some to me, now that i remember. trawl the ffmpeg-devel IRC logs from the last month or so
[20:49] <llogan> JodaZ_: http://lists.ffmpeg.org/pipermail/ffmpeg-devel-irc/2014-August/002308.html starting around [20:13]
[20:56] <Nomad145> Why did avconv fork from ffmpeg?
[20:59] <llogan> Nomad145: http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html
[20:59] <JEEB> Nomad145, you mean Libav. And it's because Old FFmpeg sucked. Both Libav and FFmpeg are better than Old FFmpeg
[21:52] <Phlarp> is it possible to do font smoothing with ffmpeg drawtext?
[21:53] <llogan> Phlarp: perhaps ft_load_flags option? http://ffmpeg.org/ffmpeg-filters.html#drawtext
[21:54] <Phlarp> no_bitmap?
[21:54] <llogan> i don't know. i've never used any of those.
[21:55] <Phlarp> alright, I'll fiddle with them. Thanks
[21:55] <llogan> "For more information consult the documentation for the FT_LOAD_* libfreetype flags. "
[23:12] <zzz_> There seems to be a couple different ways to get rid of telecine. What is the most recommended method?
[23:21] <kepstin-laptop> zzz_: a bunch of the detelecine filters in ffmpeg are really new, so I dunno if there's any good recommendations :)
[23:22] <kepstin-laptop> zzz_: that said, i'd probably go with the pullup filter followed by dejudder filter, if there's no mixed interlaced content (i.e. it's pure telecine)
[23:27] <quebre> hello, how can i burn BDRip to DVD so i can play the DVD CD in my DVD player that is connected to TV ?
[23:28] <c_14> Use ffmpeg with -target dvd and then write it with some dvd writing tool of which there are a plethora.
[23:41] <quebre> c_14: could you suggest me one good writting tool ? ...
[23:44] <c_14> I've never used one before.
[23:44] <c_14> I'd probably just pick whatever you can find in your repos.
[23:44] <quebre> btw if i do the ffmpeg -target dvd, it will be converted to the DivX format? my DVD player have the "DivX" icon printed on front..
[23:45] <kepstin-laptop> quebre: no, it'll be converted to a format compatible with standard dvds (which is mpeg2)
[23:45] <Suchiman> *completed reading the ffmpeg libav situation, facepalms*
[23:45] <quebre> kepstin-laptop: so hmm, if my player says DivX then it will handle mpeg2 ?
[23:47] <kepstin-laptop> if your player plays dvds, it will handle mpeg2, because that is required in order for it be called a dvd player.
[23:47] <quebre> alright... ;)
[23:47] <quebre> i think :P
[23:49] <quebre> so full command will be: ffmpeg -in cartoon-720p-BluRay.x264.mkv -target dvd -out cartoon.mkv ?
[23:51] <c_14> eh
[23:51] <c_14> ffmpeg -i cartoon.mkv -target dvd cartoon.mpg
[23:51] <quebre> oh ok
[23:51] <c_14> Oh, if you need pal or ntsc, preface dvd with pal- or ntsc-
[23:51] <quebre> how can i preface ?
[23:52] <quebre> im not good with all this ;(
[23:53] <c_14> -target pal-dvd or -target ntsc-dvd
[23:53] <c_14> preface as in put in front
[23:53] <c_14> prepend so to say
[23:53] <quebre> ok thanks !
[23:54] <quebre> seems it working :D
[23:55] <quebre> i will use CDburnerXP to record it, hope it works...
[23:57] <quebre> i read http://www.kevssite.com/2009/02/22/converting-a-video-file-to-dvd-with-ffmpeg/ , there is also '-aspect' option, if i provide 16:9 or 4:3, i mean if i select wrong option will my dvd cd wont play ? or it will play whatever option i choose ?
[23:58] <c_14> I'm not sure you need it. Worst case if you don't supply it or supply the wrong one your video will either be stretched or squished.
[23:58] <sacarasc> Technically, you're meant to have it in 4:3 and anamophically make it 16:9.
[00:00] --- Thu Sep 18 2014


More information about the Ffmpeg-devel-irc mailing list