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

burek burek021 at gmail.com
Thu Feb 6 02:05:01 CET 2014


[00:11] <DeadSix27> Wa4: did you get it to work?
[00:11] <Wa4> kinda
[00:12] <Wa4> -vf scale=720:404 -vcodec libx264
[00:12] <Wa4> only the cropping part left :)
[00:12] <DeadSix27> use quotes arround the vf
[00:12] <DeadSix27> -vf "filter1,filter2"
[00:12] <Wa4> I tried that already
[00:12] <DeadSix27> -> -vf crop:0,2,0,2
[00:12] <Wa4> hmm
[00:12] <DeadSix27> thats a weird format
[00:12] <DeadSix27> wont work
[00:12] <DeadSix27> its: "crop=out_w:out_h:x:y"
[00:13] <Wa4> euh
[00:14] <Wa4> so if I want to crop 2px left and 2px right?
[00:14] <DeadSix27> dont ask me how exactly the crop stuff works, i never got the fizzle
[00:14] <DeadSix27> -> http://avp.stackexchange.com/questions/4563/how-can-i-crop-a-video-with-ffmpeg
[00:16] <Wa4> Original frame is 1280x720. You want to crop 10 pixels from top and bottom but leave the width uncropped:
[00:16] <Wa4> -vf crop=1280:700:0:10
[00:17] <DeadSix27> Wa4: http://i.imgur.com/lqoe4sn.png
[00:17] <DeadSix27> i think it works like that
[00:18] <GNU\colossus> how can I use ffmpeg to decode any number of (mixed, but audio only - Vorbis, MP3, AAC, possibly others) input files and see if there were probolems decoding (i. e. they were invalid or damaged in any way) any of those files?
[00:19] <burek> ffmpeg -i bla.mp3 output.wav
[00:19] <burek> and then check your output.wav
[00:19] <burek> also monitor stderr output, if there are any errors, those will be displayed there
[00:22] <Wa4> thanks DeadSix27, it works now
[01:15] <vl4kn0> Hi, what's the difference between buffersink and ffbuffersink?
[02:22] <chamunks> Is there some method to simplify this ffmpeg stuff for rookies?
[02:22] <chamunks> I've kind of attempted to wrap my head around it a bit before for specific situations but it just doesn't seem to wanna stick.
[02:23] <llogan> chamunks: just ask here
[02:24] <chamunks> In this current situation I'd like to be able to use ffmpeg to livestream to twitch.tv from either a screen or a file.
[02:24] <chamunks> The screen one would be more complicated because I'd want to overlay a logo or something in the lower third.
[02:26] <chamunks> I've found this link http://nixc.us/1fNOoaQ it was an archived link but I'm kind of oblivious how to make this situation work.
[02:27] <chamunks> llogan, ^ sorry for the wall of text.
[02:32] <chamunks> So many arguments and variables.
[02:33] <Fusl> hmm is trac.ffmpeg.org down?
[02:33] <Fusl> or is it justme?
[02:34] <Fusl> ... again?
[02:34] <chamunks> I had to dip into google cache for that link. So it was down for me too.
[02:35] <Fusl> hmm
[02:37] <chamunks> Wish I could help
[02:51] <llogan> chamunks: ffmpeg -re -i video.mkv -i logo.png -filter_complex "[0:v][1:v]overlay=(W-w)/2:H-h-20[out]" -map "[out]" -map 0:a -c:v libx264 -preset medium -maxrate 1000k -bufsize 2000k -g 2 -c:a libdsk_aac -b:a 128k -f flv rtmp://output
[02:52] <chamunks> :)
[02:53] <chamunks> I will give this a shot thanks ever so graciously.
[02:54] <llogan> chamunks: you'll need to adjust maxrate and bufsize
[02:54] <chamunks> Its probably going to need to scale a fair bit depending I'm sure.
[02:54] <llogan> s/libdsk_aac/libfdk_aac
[02:55] <llogan> scaling the whole thing or the logo to be overlaid
[02:56] <llogan> maxrate being the minimum network transfer rate you want to support (or perhaps your max upload rate*.8 or something for overhead, etc)
[02:57] <chamunks> For now I've only got a 5meg down .8 up
[02:57] <chamunks> In the next few weeks it should be bumped up to 25/10
[02:57] <chamunks> but I can push any videos from one of my servers if I can that way.
[03:01] <llogan> chamunks: that streaming guide needs to be cleaned up. most of it is from one guy and he is too verbose and sloppy
[03:02] <llogan> looks like a bunch of notes to himself
[03:10] <chamunks> yeah it certainly does.
[03:19] <chamunks> I have a LUG that I attend on occasion that I was doing the livestreaming for via *Cough a windows box *Cough *Cough
[03:19] <chamunks> I just donated a BlackMagic Intensity Pro card to them so they can stream.
[03:20] <chamunks> I should see how this command you sent me would work out with that in the future.
[04:59] <semslie> I have an ffmpeg problem that I am struggling to diagnose: my input is a directory of frames, the output is an mkv with video from the frames, and an audio track. In the output, the video just freezes before the end of the frames has been reached (the audio continues for the correct duration). Can anyone recommend an approach to diagnosing this?
[05:19] <Keestu> Dear all, http://pastebin.com/rbHkDziE    the CodecContext width and height is  always zero in my code.
[05:20] <Keestu> could someone help me to tell where i commit the mistake?
[05:35] <kcm1700_> Keestu: sometimes the container doesn't have relevant video dimension info. In this case, you must try decoding some frames to get the correct width and height (this could also be changed during playing)
[05:38] <Keestu> kcm1700_,  Ah.. Thanks a lot, thats why i see the correct dimension after decoding  the packet.  Between av_read_frame()  does it return more than one frame ?
[06:04] <Logicgate> hey guys, when using video scaling, it doesn't resize the video properly
[06:05] <Logicgate> I'm trying to resize a video to be 1:1 in ratio (480x480)
[06:05] <Logicgate> but then resizing a 16:9 video, there's black bars at the top and bottom.
[06:05] <Logicgate> is there a way to scale the video to fit the canvas fully?
[06:23] <vineet> anyone here?
[06:23] <vineet> for a two pass encoding test, do i need to provide -ss, and -t options in both command?
[06:25] <vineet> ffmpeg -ss 0 -t 30 -i INPUT -pass 1-an -f rawvideo /dev/null && ffmpeg -i INPUT -pass 2 -f mp4 OUTPUT
[06:25] <vineet> is this correct?
[06:26] <vineet> os do i need to put -ss 0 -t 30 in second invocation as well?
[06:43] <vineet> for a two pass encoding test, do i need to provide -ss, and -t options in both command? ffmpeg -ss 0 -t 30 -i INPUT -pass 1-an -f rawvideo /dev/null && ffmpeg -i INPUT -pass 2 -f mp4 OUTPUT. is this correct?
[06:44] Last message repeated 1 time(s).
[07:27] <apathadeus> I've tried to google this problem but haven't been successful: I have a bunch of RTP NAL h264 video packets that I want to assemble into a video file. Unfortunately, NAL does not encapsulate frame rates, and frame rate may not be fixed. How can I use libav or ffmpeg to generate a video in this situation properly?
[07:29] <apathadeus> as a first attempt, I was able to concatenate the h264 packets properly, feed it thru ffmpeg and generate a video file. However, the frame rate is all wrong -- the video is sped up
[07:35] <znf> apathadeus, I've slept like ~6 hours in the last 5 days, but, could you do something time-based?
[07:35] <znf> I'm gonna asume you don't have audio with those
[07:36] <apathadeus> audio would be ideal, but i want to get just video working first -- good first step
[07:37] <apathadeus> i think i can figure out the FPS at a moment in time from the RTP packets, I just don't know how to tell ffmpeg
[07:37] <znf> I'm asking about audio because you could sync it to the audio
[07:38] <znf> (as I'm assuming the audio stream is fixed, somehow)
[07:38] <apathadeus> well, i don't think sync-ing to audio is a good idea -- i know that the server sometimes saves bandwith by not outputting audio packets when there's silence
[07:38] <apathadeus> so...if i sync to audio, the video might freeze when there's silence...
[07:43] <znf> apathadeus, again, I'm extremely tired, but the server could probably still transmit audio-frames, even if they're empty or whatever, couldn't it?
[07:46] <apathadeus> i'm 90% sure that it does this bandwidth shinanigans: when I use mplayer to play this SDP file, the video freezes on silence. same thing happens with ffplay. HOWEVER, if i use ffplay -sync ext, then video plays fine during silence
[07:46] <apathadeus> znf: don't worry about it...go to sleep :) i'll continue my search
[07:47] <znf> I'm not done with my stuff :)
[07:47] <apathadeus> thanks for your help anyways
[07:48] <znf> not much help :)
[07:48] <apathadeus> do you know some good keywords to use to search for this problem on google? maybe i'm not supplying the right keywords :D
[07:50] <apathadeus> anyways, i gtg...i'll probably stop by again tomorrow. thanks anyways! :D
[07:51] <vineet> register 000000000 mvineetmenon at gmail.com
[07:53] <anshul> I am unable to compile my code with binary files for windows given at zerone
[07:54] <anshul> it shows me avfilter-4.dll missing when i eun the executable
[07:55] <anshul> in the package at zerone there is no avfilter-4.dll
[09:21] <Keestu> Hello, It is really confusing.  i am trying ffmpeg in android, and my question is after reading frame from rtsp server, do we need to work with dts/pts for rendering?.
[09:21] <Keestu> or do we have any library api to do the same ?
[10:38] <excalibr> Hi!
[10:39] <relaxed> howdy
[10:39] <excalibr> I just ripped out the raw video and audio stream of a mp4 file. How do I merge these 2 files into a mkv container?
[10:41] <JEEB> just remux from mp4 to matroska
[10:41] <JEEB> don't extract the tracks in between
[10:41] <JEEB> you'll lose timestamps, among other stuff
[10:41] <JEEB> ffmpeg -i hurr.mp4 -c copy out.mkv
[10:41] <JEEB> (and -map 0 if you really want to select all tracks from the first (zero'th) input)
[10:43] <excalibr> ouh..didn't know its that easy. what if I want to embed a sub file into the mkv during the remux?
[10:44] <relaxed> shouldn't matter
[10:44] <JEEB> add another input file?
[10:45] <JEEB> ffmpeg -i input.mp4 -i your.sub -map 0 -map 1 -c copy out.mkv
[10:45] <excalibr> ok. because i thought i can only specify -i once
[10:45] <relaxed> read the fine manual
[10:46] <excalibr> i did (-h long) but i wasnt clear about that
[10:46] <excalibr> thank you for help
[10:46] <JEEB> http://ffmpeg.org/ffmpeg-all.html is what I generally use
[10:46] <relaxed> man ffmpeg-all
[10:46] <JEEB> for the "full help"
[11:51] <xqo> hi
[11:51] <xqo> im trying to convert an mp4 to webm with ffmpeg like so: ffmpeg -i nanaIndianDance2.mp4 -acodec libvorbis -aq 5 -ac 2 -qmax 25 -threads 2 nanaIndianDance2.webm, but it does not work. This is the output i get: Unable to find a suitable output format for 'nanaIndianDance2.webm'
[11:54] <xqo> (i get the same output without all the settings too)
[11:58] <Evgen26> Hi! Tell me please, what mux can I use with huff encoder?
[12:07] <xqo> how can i give webm support to ffmpeg?
[12:17] <relaxed> Evgen26: .avi or .mkv
[12:17] <relaxed> xqo: your ffmpeg may be too old and lack support.
[12:18] <Evgen26> relaxed: Apparently avi does not broadcast timestamps and the vlc stops playing after two minutes.
[12:18] <relaxed> xqo: you can use http://johnvansickle.com/ffmpeg/
[12:18] <Evgen26> relaxed: I try to find another format, but so far unsuccessfully.
[12:18] <relaxed> Evgen26: then use matroska
[12:19] <Evgen26> relaxed: I've tried. does not operate it.
[12:19] <Evgen26> relaxed: I need to transfer video from gstreamer to vlc by pipe without loss of quality and CPU load.
[12:20] <relaxed> Evgen26: what are you actually doing?
[12:20] <Evgen26> relaxed: I use gstreamer with av plugin
[12:20] <relaxed> to capture what?
[12:21] <Evgen26> EasyCap+Alsa
[12:21] <relaxed> Easycap is screen capture?
[12:21] <Evgen26> no, this is device on stk1160 chip
[12:22] <relaxed> oh
[12:22] <Evgen26> I use video muxer
[12:22] <Evgen26> SnowMix
[12:22] <Evgen26> It operate with gstreamer
[12:22] <relaxed> did you ask in #gstreamer ?
[12:23] <relaxed> maybe there's a better method
[13:18] <xqo> thank you, relaxed, ill try.
[13:19] <xqo> cant apt-get update the one ive installed though? i just did apt-get install ffmpeg today (debian)
[13:23] <xqo> (the builds from your link worked though)
[14:23] <Keestu> i am building ffmpeg in android, and i get the warning like pkg-config is missing in cross compiler. why .so is required this 'pkg-config' ?
[14:23] <JEEBsv> it's a warning, nothing more. You always get it when you don't have pkg-config for a given cross-prefix
[14:24] <JEEBsv> it's just that some libraries are found via pkg-config easier
[14:24] <JEEBsv> if everything is found just fine for you, then just don't care
[14:57] <Keestu> JEEBsv,  this pkg-config is at compile time only right ?
[14:58] <JEEBsv> yes, it's a tool to find the library/header directories easier
[14:58] <Keestu> run time ofcourse not required right ?. sorry just updating my perception .:)
[14:59] <JEEBsv> I think if you read my response I'd say it's pretty understandable ;)
[15:00] <Keestu> yup. Thanks. if i enable --enable-libx264  does it have code already with x264 inside, or does it look outside that we need to give the source code to ffmpeg ?
[15:00] <Keestu> i mean does x264 library is part of ffmpeg or it is a seperate
[15:01] <JEEBsv> libavcodec only has a wrapper around libx264 :) so yes, you will have to compile and install libx264 to some prefix, and then have ffmpeg's configure know where you have it
[15:02] <Keestu> JEEBsv,  that helped ;). Where can i find such informations ?
[15:03] <Keestu> because  i compiled with    --enable-libx264, but it is not showing any error that it required lib/headers.
[15:04] <Keestu> JEEBsv, Ah i found here it is http://ffmpeg.org/general.html :)
[15:22] <drizztbsd> hi, why is AVFormatContext->metadata empty for opus?
[15:28] <maister> What's the difference between yuv444p and yuva444p pixel formats?
[15:29] <drizztbsd> alpha?
[15:30] <maister> hm, ye, that makes sense. Says 4 components here ...
[15:30] <maister> Another question. Is it defined which color transform is used for yuv444p? I'd like BT.709.
[16:48] <pw_> hello.  I'm trying to use ffmpeg to extract just the I frame on a snippet of the video stream containing the I frame+audio and then telling ffmpeg to dump it to a file.
[16:49] <pw_> i am, however, not getting ffmpeg to recognize one of the pid as a h264 stream.
[18:55] <littulb__> Question.  Anybody use ffmpeg with F# ???
[19:50] <ChocolateArmpits> Is libfdk_aac encoder compatible with AAC-LC? Are any additional settings needed?
[19:51] <llogan> ChocolateArmpits: yes. no. AAC-LC is default.
[19:53] <ChocolateArmpits> llogan, so -profile:a is only used to specify aac_he ?
[19:54] <llogan> you can be explicit if you want to
[19:54] <w-wright> Hello, I have been having trouble with compiling FFmpeg from source on Github and enabling libfdk-aac
[19:55] <w-wright> Could I have some help as it seems I have missed something out!
[19:56] <ChocolateArmpits> llogan, so it takes "aac_lc" as an option too?
[19:58] <llogan> w-wright: what issues exactly? also, the official repo is git://source.ffmpeg.org/ffmpeg.git
[19:59] <w-wright> I was using the official repo but when I try to do ./configure --enable-libfdk-aac it says it is not recognised.
[20:00] <w-wright> I am quite new to FFmpeg as well though
[20:01] <llogan> whats your distro?
[20:01] <llogan> ChocolateArmpits: apparently it does. http://ffmpeg.org/ffmpeg-codecs.html#libfdk_005faac
[20:02] <ChocolateArmpits> llogan, cool thanks
[20:02] <w-wright> My distro is Debian 7.3 on i386
[20:03] <llogan> http://webcache.googleusercontent.com/search?q=cache%3Ahttp%3A%2F%2Ftrac.ffmpeg.org%2Fwiki%2FUbuntuCompilationGuide
[20:03] <llogan> the wiki server is currently down
[20:04] <llogan> anyway, navigate to the ffmpeg source code directory, then run: "make distclean; git pull"
[20:04] <llogan> also, did you install libfdk-aac?
[20:05] <w-wright> Yeah I did.
[20:05] <llogan> from git?
[20:05] <w-wright> yeah and I also did the same for x264 which also does not wanna work
[20:06] <llogan> what about config.log in ffmpeg directory, can you provide that via pastebin.com or similar?
[20:08] <w-wright> I can't find the config.log
[20:14] <w-wright> I have tried again. I think that forgetting the --enable-nonfree bit could make a big difference
[20:19] <llogan> w-wright: you only need that if you use --enable-gpl with --enable-libfdk-aac
[20:24] <llogan> looks like fdk-aac will be moving from AUR to [community] in Arch
[20:30] <Evgen26> I try to execute http://pastebin.com/KnXGTEWU but no have audio data. When I cnange matroskamux to the avimux then I can see audio data. What problem?
[20:36] <llogan> Evgen26: i don't see ffmpeg anywhere in there. maybe you should try the IRC channel for gstreamer...if one exists
[20:37] <Evgen26> llogan: There's a silent channel :-)
[20:37] <llogan> we only support FFmpeg stuff here
[20:40] <pw_> is there a way to specify the decoder to be used when using avconv so that it doesn't probe around for it in mpegts?
[20:41] <llogan> pw_: what's avconv?
[20:41] <pw_> fine, ffmpeg
[20:42] <pw_> i asked a simple question that can be answered by a yes or no, not a please paste your stuff into pastebin
[20:43] <llogan> please understand that there are always more people asking questions than those providing answers. if you don't readily provide the required information then i'll just move on to the next question
[20:48] <pw_> hrm.  apparently, the libav side is a bit more direct. their answer to my simple question is a simple "not really"
[20:48] <pw_> nothing that pastebin could've solved
[20:49] <llogan> the pastebin would have indicated if you were using ffmpeg from FFmpeg
[20:49] <llogan> we only support tools from FFmpeg here
[20:51] <pw_> a quick "not really" would've suffice, even if i were using ffmpeg
[20:52] <llogan> fake ffmpeg != ffmpeg
[20:52] <pw_> are you implying that ffmpeg can do it but not the fake ffmpeg?
[20:52] <pw_> if so, then that's a different story
[20:53] <pw_> if your whole pastebin was to try to embarass me about using libav, then I would have to say that's pretty lame.
[20:54] <llogan> that was not the intention
[20:55] <llogan> 1. there are many questions to answer (and I don't mean just here) 2. i have limited time to provide answers 3. this is #ffmpeg. the support channel for FFmpeg. We only support stuff from FFmpeg. 4. I suspected you were not using ffmpeg
[21:48] <zumba_addict> hey folks, is it possible to overlay a small image on an existing video using ffmpeg?
[22:10] <llogan> zumba_addict: yes. it will require re-encoding unless you want to do it upon playback with ffplay.
[22:11] <zumba_addict> reencoding is fine. How do I do it?
[22:11] <llogan> see the overlay video filter: http://ffmpeg.org/ffmpeg-filters.html#overlay
[22:11] <zumba_addict> cool
[22:11] <zumba_addict> thanks
[22:12] <llogan> zumba_addict: ffmpeg -i video.mp4 -i logo.png -filter_comples "[0:v][1:v]overlay[out]" -map "[out]" -map 0:a -c:v libx264 -crf 23 -preset medium -c:a copy output.mp4
[22:12] <llogan> for example
[22:12] <zumba_addict> cool :)
[22:12] <zumba_addict> thanks
[22:13] <llogan> *filter_complex
[22:13] <llogan> add "-movflags +faststart" if you use my example and your viewers will be watching it via a browser
[22:18] <zumba_addict> ok
[22:20] <vl4kn0> Hi, I'm decoding video for further processing of the retrieved frames using ffmpeg api but I get these error messages: http://fpaste.org/74784/39163510/ could anyone point me to the right direction? I have no idea what's going on.
[22:25] <llogan> vl4kn0: you should also include your code, and try the libav-user mailing list if you don't get an answer here.
[22:26] <JEEB> looks like you're either doing something wrong before feeding whatever you're getting to the decoder, or the input is just kind of garbage. Or there is a bug in the MPEG-4 Part 2 decoder
[22:26] <JEEB> all of those are possible
[22:27] <JEEB> PEBKAC is usually the reason tho
[22:39] <littulb> How can I stop ffmpeg from opening terminal when outputting?
[22:40] <littulb> I'm trying to optimize throughput
[22:46] <littulb>  ???
[22:58] <littulb> littulb How can I stop ffmpeg from opening terminal when outputting?
[23:04] <llogan> littulb: i don't think anyone understands your question
[23:07] <SirCmpwn> I'm trying to record from my webcam with ffmpeg
[23:07] <SirCmpwn> and I was going to use ffplay show what was being recorded as it was doing so
[23:08] <SirCmpwn> but ffmpeg can't use the webcam when ffplay is using it
[23:08] <SirCmpwn> solutions?
[23:10] <littulb> I'm using f# to convert files.  The command <ffmpeg ... -vvodec...>  opens a shell or a terminal that shows a log.
[23:10] <littulb> It happens every time it encodes
[23:11] <littulb> I want to keep that shell/terminal from opening
[23:16] <littulb> Ok.  How about getting the shell to run in the background?
[23:16] <littulb> So sorry i can't find a better way to explain my problem
[00:00] --- Thu Feb  6 2014


More information about the Ffmpeg-devel-irc mailing list