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

burek burek021 at gmail.com
Fri Sep 13 02:05:01 CEST 2013


[01:22] <theo_> I followed UbuntuCompilationGuide and did all steps, but when I do "ffmpeg 2>&1 | head -n1" I get "The program 'ffmpeg' is currently not installed."  Its a Ubuntu Server 12.4. Anybody have any idea?
[01:31] <cbsrobot_> theo_: where did you install it ?
[01:31] <theo_> cbsrobot:home directory
[01:31] <cbsrobot_> and is it in your PATH env variable ?
[01:32] <cbsrobot_> else you have to specify the path to ffmpeg: /hme/joe/bin/ffmeg
[01:33] <cbsrobot_> sorry for the typos
[01:33] <theo_> cbsrobot: ah ofcourse. All make clear now, thanks! =)
[01:37] <vl4kn0> I have a basic question that might not be fit for this IRC channel but I don't know where else to ask. How is represented audio track in the audio frame? I know that colorspace of video frame depends on codec used, but I can easily convert that to RGB24 but I know next to nothing about audio.
[02:21] <loller> hello! can anybody explain me how to show placement of x264 while compiling ffmpeg?
[02:27] <klaxa> ./configure --enable-libx264 [other options]
[03:09] <loller> klaxa: with this I get "ERROR: libx264 not found" ... that's why I'm asking how to show it to ffmpeg
[03:09] <klaxa> did you install libx264?
[03:10] <klaxa> including development files?
[03:10] <loller> I compiled it by myself
[03:10] <klaxa> did you run make install?
[03:10] <loller> but seems ffmpeg doesn't know where to find it
[03:10] <klaxa> if not you can add extra LDFLAGS
[03:11] <klaxa> ./configure --extra-ldflags="-L/path/to/libx264.so/" --enable-libx264
[03:11] <klaxa> where "/path/to/libx264.so/" is the directory containing libx264.so
[03:12] <klaxa> for example /home/user/build/x264/
[03:12] <loller> does it matter what param is first? I mean path and enablinf x264
[03:13] <klaxa> not really i think
[03:14] <loller> Thanks a lot ... trying right now
[03:24] <loller> hm ... the same eror
[03:24] <loller> maybe I compiled it incorrectly?
[03:24] <loller> I mean x264
[03:26] <loller> ./configure --prefix="/c/ffmpeg/x264"  --enable-static
[08:02] <wolfgangw> hi, i'm looking into a framerate issue (apparently). i think i'm telling ffmpeg the correct input framerate (24 fps) but the input stream is identified as 25 fps. see q and full output at http://pastebin.com/fwJ8jE0x
[08:04] <relaxed> wolfgangw: you only need one -r before the inputs
[08:05] <wolfgangw> just saw that now. would it make a difference though?
[08:05] <relaxed> no, I mean you only need one -r and it should go before the inputs
[08:06] <wolfgangw> one -r in total? like i don't need it for the audio?
[08:06] <relaxed> correct
[08:07] <wolfgangw> i'll check that ...
[08:21] <wolfgangw> ok, now i used -r once (ffmpeg -y -r 24 -i ...). it still identifies the image input stream as 25 fps, 25 tbr, 25 tbn, 25 tbc. is there anything else i might be missing?
[08:23] <wolfgangw> relaxed, sorry, i need to run. should have started this with a bit more time on my hands :/ will be back. thanks so far
[09:00] <vlt> Hello. Does anyone know a better way to do things like cropping and stretching videos to specific corner coordinates than exporting all frames, applying some imageMagick magic and re-convert to video?
[09:04] <vlt> I do exactly this in realtime with OpenGL and the software "lpmt" but I need a way to script and render this to a new video file.
[09:07] <vlt> Does anyone know whether I can re-use what the video chip renders (from the OpenGL commands)?
[09:12] <cbsrobot_> wolfgangw: try -framerate 24
[09:48] <viric> hm I don't see how to use '-to'
[09:48] <viric> I want to clip from 00:05:00 to 00:10:00
[09:52] <viric> but I can't say   -ss 00:05:00 -to 00:10:00
[09:53] <relaxed> -ss 00:05:00 -t 00:05:00
[09:53] <relaxed> seek five minutes and encode for 5 minutes
[09:58] <viric> relaxed: but -to exists. Why is it for?
[09:58] <viric> I'd like something that helped me avoid the subtraction of "duration=end-start" :)
[10:04] <relaxed> hmm, that's new to me.
[10:04] <relaxed> So -t works but -to dos not? Let me see your command.
[10:05] <relaxed> does*
[10:14] <theo_> After installed on Ubuntu Server resulted in an error  http://pastebin.com/28ch0c4v . Trying to do mp3 to aac he. What have I done wrong?
[10:17] <relaxed> theo_: maybe add -f mp4
[10:21] <relaxed> "[libfdk_aac @ 0x20cf060] Unable to initialize the encoder: SBR library initialization error" can't be good
[10:24] <theo_> relaxed: It didn't work with -f mp4. So I must have done something wrong in my ffmpeg installation?
[10:25] <relaxed> Perhaps, compile again and install yasm beforehand.
[10:27] <theo_> relaxed:  okey, I'll try that. =) thanks
[10:46] <viric> how can I know the meaning of '-q' parameter for mpeg2 encoding?
[10:47] <viric> -target film-dvd
[11:09] <viric> relaxed: my command:    ffmpeg -ss 00:05:00 -to 00:10:00 -i blabla.avi ....
[11:09] <viric> relaxed: and it encodes beyond  5 minutes
[11:12] <relaxed> viric: -to needs to be after the input
[11:12] <viric> ah
[11:12] <viric> I will try
[14:34] <loller> hello! Could anyone explain me how to show ffmpeg wheer x264 is placed? on Windows
[14:35] <loller> I always get an erro "libx264 not found"
[14:36] <loller> --extra-cflags is not helpful
[14:47] <GoaLitiuM> do you have --enable-libx264 flag on the build itself?
[15:51] <loller> helooooooooo!
[15:51] <loller> so many people and silence?
[15:51] <spaam> everyone is dead
[15:53] <loller> :(
[15:59] <spaam> loller: anything you want help with ?
[16:02] <loller> spaam: actually I'mtrying to compile ffmpeg with x264 support, but any time with all the options I get "libx264 not found" ...
[16:03] <loller> so question is how to show ffmpeg the placement of x264?
[16:12] <spaam> loller: i guess you forgot to install the -dev or -devel packet of it
[16:13] <klaxa> oh... right um loller, i think i forgot something yesterday
[16:14] <klaxa> you need --extra-ldflags with the path to the shared library and --extra-cflags with the path to the headers to inlcude like this: --extra-cflags=-I/path/to/libx264-headers/
[16:15] <klaxa> you also never told me you were on windows, maybe you need to specify paths in windows style
[16:15] <klaxa> i.e. --extra-cflags=-IC:\path\to\somewhere\
[16:19] <loller> klaxa: well I tried all the flags, all the options, but x264 still not found, tht's why I'm thinking that I compiled x264 incorrectly and didn't get needed libs? what do you think?
[16:21] <klaxa> i don't know, maybe post directory listings of your x264 compilation folder on a pastebin-like site, also your config.log file in the ffmpeg folder
[16:23] <loller> klaxa: Thank you for your attention. I will
[16:26] <loller> klaxa: http://pastebin.com/9C9tzeE4 - listing
[16:27] <loller> klaxa: http://pastebin.com/SNj9233m - config.log
[16:29] <klaxa> you need too add --extra-ldflags=-L/c/x264/
[16:29] <klaxa> you need both, --extra-cflags and --extra-ldflags
[16:30] <loller> let my try
[16:30] <klaxa> but the config.log looks good, it seems to find x264.h
[16:44] <loller> klaxa: thank you so much! configure part was finished successfully)) make is running now
[16:50] <klaxa> nice
[17:03] <loller> klaxa: thank you again)) seems on this my level I did what I wanted just ddue to your help
[17:04] <loller> klaxa: but one more question please
[17:04] <loller> when I run my app I receive many messages that one dll is missing, then another and so on ... how to avoid this?
[17:05] <loller> first of all libz-1.dll which is part of MinGW ...
[17:29] <ideea> hi guys :D
[17:29] <ideea> The process has been signaled with signal "5".
[17:29] <ideea> 500 Internal Server Error - RuntimeException
[17:30] <ideea> help pls, what is it ? i cant google it ;[
[17:30] <spaam> what?
[17:30] <ideea>  '/usr/local/bin/ffmpeg -i %s -vcodec copy -acodec copy -ss 00:00:00 -t 00:05:00 %s
[17:30] <ideea> when i run this command from command line - its fine
[17:30] <ideea> wen i trying to run it from code i receive "signal 5"
[17:31] <ideea> and, ofcourse, no movie converted.
[17:33] <ideea> guys?:{
[17:40] <ideea> spaam ?:D
[17:40] <spaam> ideea: woho?
[17:40] <spaam> ideea: i have no idea have you got that from that line.
[17:41] <ideea> its error code ;[
[17:41] <spaam> from what? :D
[17:41] <spaam> webpage?
[17:43] <spaam> maybe you can get the error in some logs from the webserver.
[17:43] <spaam> error.log or something
[17:43] <spaam> depending on your webserver.
[18:07] <wolfgangw> cbsrobot_: specifying -framerate 24 does indeed yield different (and correct) reporting on the image input stream (which is an image sequence). with it it reports 24 fps/tbr/tbn/tbc. thanks. you're not a bot, are ya?
[18:50] <Mista_D> 720x480 [SAR 40:33 DAR 20:11] --- what would be aspect ratio for this file if I switch to square pix?
[18:51] <JEEBsv> >>> (720 * 40) / 33
[18:51] <JEEBsv> 872.7272727272727
[18:52] <JEEBsv> so 873x480
[18:52] <Mista_D> what about DAR? Just ignore it?
[18:52] <JEEBsv> it's the same information
[18:52] <JEEBsv> it gives you it as SAR and DAR
[18:53] <JEEBsv> SAR being the aspect ratio of one sample, and DAR being the aspect ratio of the whole final picture
[18:53] <Mista_D> 720*20/11 = 1309
[18:53] <JEEBsv> that's because it's DAR
[18:54] <JEEBsv> >>> (480 * 20) / 11
[18:54] <JEEBsv> 872.7272727272727
[18:54] <Mista_D> Got it, thanks JEEB.
[18:59] <hans_henrik> >>> 8/0
[18:59] <hans_henrik> >>> 8/1
[18:59] <hans_henrik> hmm
[20:08] <oldfriend> hello! can anyone explain my how to avaid additional dependences after compiling ffmpeg?
[20:09] <oldfriend> I compiled shared dlls
[20:09] <hans_henrik> compile static?
[20:10] <oldfriend> hans_henrik: do you mean --enable-static?
[20:13] <hans_henrik> oldfriend, some people on the internet said --disable-shared --enable-static --extra-libs=-static --extra-cflags=--static
[20:16] <oldfriend> hans_henrik: Thank you! trying right now
[20:25] <causasui> how can i use ffmpeg to concatenate two video streams in mkv format?
[20:26] <Keshl> Give both as input files.
[20:26] <Keshl> Just specify -i twice.
[20:26] <klaxa> <hans_henrik> oldfriend, some people on the internet said --disable-shared --enable-static --extra-libs=-static --extra-cflags=--static
[20:26] <klaxa> it's --extra-ldflags=-static
[20:28] <klaxa> obviously you will need the static libraries for all external libraries you want to use
[20:29] <oldfriend> klaxa: I see, thank you ///trying
[20:34] <llogan> causasui: http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f
[20:34] <llogan> http://trac.ffmpeg.org/wiki/How%20to%20concatenate%20%28join%2C%20merge%29%20media%20files
[20:36] <llogan> Keshl: that alone will not concatenate
[20:37] <Keshl> oÉo? Whus'ya do then? .É.
[20:47] <llogan> depending on the inputs it will create an ouput using the "best" streams as described in http://ffmpeg.org/ffmpeg.html#Stream-selection
[21:05] <oldfriend> hm ... using "--extra-ldflags='-static " I get again error about x264 not found ((
[21:07] <klaxa> do you have the static library of x264?
[21:07] <klaxa> it should be called libx264.a
[21:11] <oldfriend> yes, I have this one
[21:12] <oldfriend> ./configure --prefix=ffmpeg/ --enable-shared --enable-static --extra-cflags='-static -I/c/MinGW/include' --yasmexe='C:/yasm/yasm.exe' --enable-gpl --enable-small  --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-doc --enable-libx264 --extra-ldflags='-static -L/c/x264' --extra-cflags='-static -I/c/x264'
[21:12] <oldfriend> this is my configuration string
[21:13] <klaxa> you don't have to add -static to --extra-cflags
[21:14] <klaxa> is x264.h in /c/MinGW/include ?
[21:14] <klaxa> wait nvm
[21:14] <klaxa> also better put all the --extra-cflags into one argument
[21:16] <oldfriend> klaxa: do you mean like this
[21:16] <oldfriend> ./configure --prefix=ffmpeg/ --enable-shared --enable-static --extra-cflags='-static -I/c/MinGW/include -I/c/x264' --yasmexe='C:/yasm/yasm.exe' --enable-gpl --enable-small  --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-doc --enable-libx264 --extra-ldflags='-static -L/c/x264'
[21:16] <klaxa> yeah also remove the -static from --extra-cflags since it's a linker option
[21:17] <oldfriend> hm ... but I need to exclude additional dependences ...
[21:19] <klaxa> yes, -static is still not a compiler option
[21:19] <klaxa> you specified it in --extra-ldflags which is correct
[21:20] <oldfriend> I see ... trying
[21:32] <oldfriend> strange but --extra-ldflags='-static -L/c/x264' cause error ... but --extra-ldflags=-L/c/x264 proceeds normally ... why?
[21:34] <klaxa> do you have libx264.a?
[21:34] <klaxa> in the directory C:\x264
[21:35] <oldfriend> sure
[21:35] <oldfriend> that's why I'm confused
[21:35] <klaxa> pastebin config.log
[21:37] <oldfriend> klaxa: I really appreciate that you are wasting your time on me
[21:37] <oldfriend> pasting
[21:39] <oldfriend> http://pastebin.com/ST8xz5pA
[21:41] <fazias> I got a short question (depending on answer, will return with exact commands with what to reproduce my problem)
[21:42] <fazias> so, I splitted a video by keyframes. After that I encoded those videos and lastly put them together with ffmpeg
[21:42] <klaxa> looks like you need the pthreads static library
[21:42] <klaxa> oldfriend: see: http://www.hotscripts.com/forums/c-c/35895-help-pthreads-dev-c.html
[21:43] <fazias> Why does the concatenated video have duplicated frames at the times where 2 parts have been concatenated together.
[21:44] <fazias> this problem doesnt happen if I just split videos and then join them together (although for some reason, the fps changes a little)
[21:44] <oldfriend> klaxa: thank you again ... moving in this way
[21:47] <fazias> sure, ill ask again when I got the pastebin done.
[22:21] <SirGaga> lame: output buffer too small (buffer index: 11871, free bytes: 31541)
[22:21] <SirGaga> Audio encoding failed
[22:21] <nlewis>  
[22:21] <SirGaga> What gives?
[22:23] <fazias> Here's the pastebin for my problem http://pastebin.com/qt0va4cB
[22:23] <nlewis> When I run ffprobe against a h264.mp4 that was created by ffmpeg I receive the following errors:
[22:23] <nlewis>  Last message repeated 1 times [h264 @ 0x23c3460] no frame! [aac @ 0x23adb20] Reserved bit set. [h264 @ 0x23d0fe0] AVC: nal size 2063587373     Last message repeated 1 times [h264 @ 0x23d0fe0] no frame! [aac @ 0x23adb20] Prediction is not allowed in AAC-LC. [h264 @ 0x23d1600] AVC: nal size 75966110     Last message repeated 1 times [h264 @ 0x23d1600] no frame! [h264 @ 0x23d1c40] AVC: nal size 1836210915     Last message repeated 1 times 
[22:24] <nlewis> Any idea what no frame! means and what might have caused the error?
[22:25] <SirGaga> Full command and output: http://pastebin.com/raw.php?i=0qQAtPXW
[22:26] <klaxa> maybe too little ram?
[22:26] <LithosLaptop> why no codecs specified?
[22:27] <SirGaga> Well, I just upgraded the ffmpeg.exe binary to the latest version. Mine was 11 months old. The new binary with the same command works.
[22:28] <SirGaga> klaxa: Well, I have 20 GB RAM, so...
[22:28] <klaxa> hmm that should be enough
[22:28] <SirGaga> LithosLaptop: Because "use the same quality".
[22:28] <SirGaga> Yes, I know, I look at ffmpeg as a magic black box.
[22:28] <LithosLaptop> :)
[22:28] <SirGaga> I don't fully understand it.
[22:29] <LithosLaptop> have you tried specifying a bitrate instead for the lame encoder?
[22:29] <LithosLaptop> it seems to be the one failing
[22:32] <LithosLaptop> ffmpeg.exe -i test.flv -c:a libmp3lame -b:a 128k -c:v mpeg4 -vtag xvid -b:v 600k test.flv.avi
[22:33] <LithosLaptop> try that
[22:34] <SirGaga> Huh?
[22:34] <SirGaga> Didn't you read when I said that it works?
[22:34] <SirGaga> "I just upgraded the ffmpeg.exe binary to the latest version. Mine was 11 months old. The new binary with the same command works."
[22:34] <SirGaga> Maybe it is some kind of bleeding-edge file.
[22:34] <SirGaga> After all, I just downloaded it as a .flv from YouTube.
[22:35] <SirGaga> The sewer of all sorts of videos.
[22:36] <LithosLaptop> oh ok, I was just afraid that it was also using the same settings as shown in the previous output. It was using less bitrate for the output even when going from x264 -> mpeg4
[22:38] <llogan> 11d695d is from Oct 2012
[22:46] <SirGaga> LithosLaptop: I'm afraid of asking this, but how can it possibly do that? It should use the *same* quality.
[22:46] Action: SirGaga fears this will spawn another multi-hour conversation of frustration.
[22:48] <klaxa> there isn't really *same* quality unless we are talking about lossless encoding
[22:48] <klaxa> just use -b:a 320k
[22:48] <klaxa> should be good enough, no?
[22:49] <SirGaga> 1:1 should be good enough.
[22:49] <klaxa> what is 1:1 ?
[22:49] <klaxa> you mean stream copy?
[22:49] <klaxa> then use -c:a copy
[22:49] <SirGaga> Identical.
[22:49] <LithosLaptop> cant be identical
[22:49] <LithosLaptop> it is lossy codecs
[22:50] <SirGaga> I feel the stress raising...
[22:50] <SirGaga> I must leave this channel.
[22:50] <klaxa> wtf
[22:50] <LithosLaptop> lol
[22:52] <LithosLaptop> yeah can be identical if he just copied instead of re-encoded
[22:52] <klaxa> what's the point of re-encoding youtube videos anyway?
[22:52] <LithosLaptop> yeah lol
[22:52] <klaxa> they already are poorly encoded, why degrade them even further?
[22:53] <klaxa> and if he says he doesn't understand ffmpeg at all, why does he not listen to people?
[22:55] <LithosLaptop> lol, don't know
[23:12] <fazias> so anybody looking into my problem? just wondering as it's quite quiet here.
[23:13] <klaxa> dunno, tbh i haven't run into this problem myself, but i don't use ffmpeg for splitting/joining
[23:14] <klaxa> since i primarily use the matroska container for everything, mkvtoolnix is doing a pretty good job
[23:14] <klaxa> even after re-encoding the separate parts with ffmpeg or x264 doesn't seem to show this behavior
[23:14] <klaxa> after joining them with mkvtoolnix again that is
[23:16] <fazias> I see.
[23:20] <fazias> Well I'll be idling here if there are any questions about my command lines.
[23:21] <fazias> Reason for using ffmpeg was simply because I felt it was easy enough to build having necessary libraries statically linked as I'm using the build on another server to which I have no administrator access.
[23:22] <viric> can anyone suggest a guide to produce a DVD video?
[23:22] <viric> I used -target pal-dvd... tried with dvdauthor -t with each mpg, then -T finally. And -T always produces an error.
[23:22] <viric> is -T supposed to work as an automatic creation of menu?
[23:23] <klaxa> you can create static build of the necessary mkvtoolnix binaries too
[23:23] <klaxa> *builds
[23:23] <viric> moreover, how to make a DVD without menu? I don't need a menu.
[23:24] <fazias> I was afraid you would answer that. That's not the point.
[23:24] <klaxa> ok
[23:25] <fazias> But thank you for informing me about it. I will keep it in mind, I would still prefer to have answer to this problem.
[23:48] <nlewis> Anyone here use ffmpeg/ffprobe to test for problematic h264 files?  I've been using ffprobe -show_frames but I wondering if there is another way to approach identifying problematic files?
[23:54] <cbsrobot_> fazias: how do you split the file ?
[00:00] --- Fri Sep 13 2013


More information about the Ffmpeg-devel-irc mailing list