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

burek burek021 at gmail.com
Wed Feb 6 02:05:01 CET 2013


[00:26] <llogan> FergusL: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[00:27] <llogan> blitz: https://ffmpeg.org/trac/ffmpeg/wiki/Encoding%20VBR%20%28Variable%20Bit%20Rate%29%20mp3%20audio
[00:35] <FergusL> thanks llogan
[00:36] <FergusL> but ... erh... haven't tried it yet but I suspect the first command will ask for the removal of like tens of packages
[00:39] <llogan> you could compile and not install the new ffmpeg but still use it
[00:40] <FergusL> okay, that's what i hought
[00:43] <FergusL> llogan: I just do make and then I should have everything in the output dir ?
[00:45] <llogan> FergusL: the examples here may help http://ffmpeg.org/pipermail/ffmpeg-user/2012-August/008552.html
[00:46] <FergusL> perfect llogan I would have been looking for someting like this indeed :)
[00:47] <FergusL> what about /include llogan ? will follow the same --prefix ?
[00:47] <FergusL> well I'll just look at ./configure anyway first
[00:47] <llogan> you will have to refer to ./configure --help for each thing you're compiling
[00:49] <FergusL> yes, a bit used to this, thanks again for your help llogan
[00:49] <llogan> a "local install" version of the guide would be good
[01:12] <saste> llogan, what do you mean by "local install"?
[01:13] <saste> i have some notes about general configuration/compilation/installation in *NIX, I plan to put them on the wiki soon or later
[01:16] <llogan> saste: using --prefix=$HOME for dependencies and then pointing ffmpeg to those with cflags, ldflags, etc.
[01:17] <llogan> would be useful for users with no superuser/root access, and could be good to keep system "ffmpeg" from repo for other repo shit and a compiled ffmpeg for command-line usage
[01:21] <llogan> repo package conflict has always been the biggest issue with the ubuntu guide. or a simple copy binary to ~/bin or whatever in $PATH might suffice.
[01:21] <saste> llogan, I see
[01:21] <saste> i'll try to write it (hardly before the weekend)
[01:22] <llogan> i actually haven't done much of that myself though since i use a more flexible (IMO) distro
[01:26] <FergusL> llogan which is... ? :)
[01:37] <llogan> FergusL: arch linux
[01:38] <FergusL> I knew it would be that or Gentoo :)
[02:00] <ldionmarcil> a mp4 is like an container right? it has a sound track + Video? then how can I see what type the video is? like h.264 etc
[02:03] <ldionmarcil> ffmpeg -i on file, got my annswer, thanks guys
[02:04] <llogan> FergusL: gentoo? i'm not that neckbeard.
[02:04] <FergusL> Haha
[02:35] <quup> can I make ffprobe just print dimensions '%dx%d' for first video stream?
[02:38] <sacarasc> With grep/sed/awk I am sure you can!
[02:40] <quup> sacarasc· no doubt, I just don't have a shell :p
[02:40] <quup> oh well, I'll just bite the sour apple and regex it
[03:11] <FergusL> trying to compile, compiled yasm to /opt/yasm, now x264 doesn't find it, how can I specify yasm location ?
[03:12] <FergusL> although it correclty isntalled with checkinstall...
[03:12] <FergusL> aptitude shows the right version and location
[03:44] <FergusL> compiling... still expecting it to break at some point... haha
[06:07] <relaxed> FergusL: PATH=/path/to/prefix/bin:$PATH; ./configure ...
[09:59] <gotwig> Hey
[09:59] <gotwig> please help me, why does -ss option to cut some seconds from the beginning make the audio so bad?  the audio offset is awful
[10:00] <gotwig> in combo with a video
[10:10] <relaxed> gotwig: -async 1
[10:10] <gotwig> relaxed, thank you reall much ^_^
[10:10] <gotwig> ^really :/
[10:17] <gotwig> can I add audio pitches with ffmpeg?
[10:19] <leo2013> How to add filters for ffmpeg?
[10:20] <leo2013> add one new filter or another functions based on old filters.
[10:22] <gotwig> Is there anything  I can do with ffmpeg, so the audio  music files dont get recoginzed by youtube, with ffmpeg?
[10:22] <gotwig> like filters (^) ?
[10:23] <gotwig> because in Germany there are big problems with that...
[10:36] <gotwig> somehow -t does not work for me...
[10:36] <gotwig> what is 2:35:53 - 2:29:27 :/?
[10:36] <gotwig> 6:
[10:36] <gotwig> oups...
[10:45] <gotwig> can I cut the endning of the video with the help of -t ?
[10:45] <gotwig> *ending
[10:45] <gotwig> like -t 350s ? or -t 350 ?
[11:00] <gotwig> Any ide how to add audio pitch?
[11:11] <durandal_1707> gotwig: isn't that just changing sample rate?
[11:13] <gotwig> yeah I guess so
[11:13] <gotwig> I just have to find a trick to get my video widly available on youtube...
[11:16] <gotwig> and somehow  I am not able to use -t in combination with -ss
[11:16] <durandal_1707> sox have pitch effect that just change sample rate of audio, and audio is apparently unchanged
[11:16] <gotwig> why does -t not work in combo with -ss?
[11:17] <durandal_1707> -ss just seek
[11:17] <gotwig> -ss cuts the specified seconds before the video, -t before the end
[11:17] <gotwig> oh damn...
[11:17] <gotwig> do you use avconv?
[11:18] <gotwig> copy does not work for me...
[11:18] <durandal_1707> avconv is another project, man
[11:18] <gotwig> yes I know...
[11:18] <gotwig> but its somehow the same application...
[11:18] <durandal_1707> not really ....
[11:18] <gotwig> from the syntax :X
[11:18] <durandal_1707> not really ....
[11:19] <gotwig> I always lose quality, I cant find a way to keep it...
[11:19] <gotwig> durandal_1707, can I use -ss in combo with -t?
[11:19] <durandal_1707> what you want to archieve?
[11:19] <gotwig> or reach my goal in another way
[11:19] <gotwig> cut a bit from the beginning
[11:19] <gotwig> and a bit from the end
[11:20] <gotwig> with one run
[11:20] <durandal_1707> with -c copy?
[11:20] <gotwig> no, I talk about cutting here...
[11:20] <gotwig> with -ss and -t
[11:20] <gotwig> but you told me -ss is just seaking..
[11:21] <durandal_1707> you want to cut file without transcoding?
[11:22] <gotwig> yes
[11:22] <gotwig> without
[11:22] <gotwig> just cut the thing
[11:23] <gotwig> can I do that?
[11:25] <durandal_1707> thing is you can't precisely cut with -c copy, it is simply not possible
[11:25] <gotwig> :(
[11:25] <gotwig> can I use -sameq?
[11:26] <gotwig> the thing is, that my video file shrinked down to 300 mb, from 900 mb... and I only cut a few minutes
[11:26] <durandal_1707> because compressed bitstream packets of audio can have several samples...
[11:26] <gotwig> can I try with -c copy and -sameq?
[11:26] <gotwig> btw, is avconv faster or ffmpeg..?
[11:27] <durandal_1707> video patckets should be fine except you cant cut in middle of non-keyframe because you will get nothing for few frames....
[11:27] <durandal_1707> gotwig: avconv is slower and buggy
[11:27] <gotwig> ubuntu ships it...
[11:27] <durandal_1707> gotwig: try for yourself
[11:27] <durandal_1707> gotwig: so what?
[11:28] <gotwig> durandal_1707, so I am going to do two runs?
[11:28] <durandal_1707> -sameq is removed, and it worked only for transcoding....
[11:28] <durandal_1707> gotwig: i can help you only if you use ffmpeg, you are on #ffmpeg after all
[11:28] <gotwig> yeah
[11:28] <gotwig> I use ffmpeg now xD
[11:28] <gotwig> but -c copy does not work for me...
[11:29] <gotwig> http://paste.ubuntu.com/1611935/
[11:30] <durandal_1707> gotwig: do you understand what word complete means?
[11:30] <durandal_1707> i'm just wasting my time here
[11:32] <gotwig> durandal_1707, what?
[11:33] <DEATH> gotwig: Complete console output?
[11:33] <gotwig> :)
[11:34] <gotwig> http://paste.ubuntu.com/1611946/
[11:39] <durandal_1707> gotwig: you are using ffmpeg from project that is not FFmpeg
[11:39] <gotwig> it seems...
[11:40] <durandal_1707> gotwig: put -c copy after -i ...
[11:41] <gotwig> Failed to set value 'copy' for option 'c'
[11:43] <gotwig> it seems my version is too old?
[11:43] <durandal_1707> you are using wrong version
[11:43] <durandal_1707> use ffmpeg
[11:43] <gotwig> -sameq works for me
[11:43] <gotwig> can I use that? even if its an older version
[11:45] <durandal_1707> -sameq is not supposed to be used at all with -c copy
[11:45] <durandal_1707> it does nothing
[11:45] <durandal_1707> -sameq is not same quality
[11:45] <durandal_1707> -sameq is same quantizier
[11:45] <durandal_1707> it works when transcoding by pure luck
[11:46] <durandal_1707> it sets quality to very high, so get that feeling you did something good when if fact you did nothing
[11:46] <gotwig> :|
[11:47] <gotwig> http://paste.ubuntu.com/1611965/
[11:48] <durandal_1707> gotwig: this is not avconv/Libav support channel
[11:48] <durandal_1707> either leave or install ffmpeg
[11:51] <gotwig> that is ffmpeg, isnt it? :(
[11:51] <durandal_1707> no it is not, it is ffmpeg from Libav
[11:51] <gotwig> I installed ffmpeg with apt-get install.. from my software resources
[11:51] <durandal_1707> that is not ffmpeg but libav
[11:51] <durandal_1707> ubuntu is bad
[11:52] <gotwig> :( !
[11:52] <JEEB> basically it's an old ffmpeg from the libav project, the up-to-date binary in libav is called 'avconv' and works like a more up-to-date ffmpeg, also libav channel is #libav
[11:52] <DEATH> Libav situation is annoying, too confusing for new users
[11:52] <DEATH> Shot myself in the foot as well trying libav first not realizing what it really was
[11:52] <DEATH> Well lesson learned
[11:52] <gotwig> when I install just avconv, I dont am able to use ffmpeg
[11:52] <JEEB> I think the worst part is how they kept the ffmpeg binary there without updating it, throughout at least 0.8
[11:52] <gotwig> when I install ffmpeg, I can use ffmpeg..
[11:53] <gotwig> I better should ask in #ubuntu...
[12:01] <durandal_1707> gotwig: afaik ubuntu do not yet provide ffmpeg package
[12:02] <gotwig> I grab the binary...
[12:02] <durandal_1707> gotwig: you can download ffmpeg from www.ffmpeg.org ...
[12:02] <gotwig> :) https://launchpad.net/~jon-severinsson/+archive/ffmpeg
[12:04] <dentex> hi everyone.
[12:05] <dentex> Just a little question on compiling flags...
[12:05] <gotwig> actually ffmpeg in the newer version does give me the same results...
[12:05] <dentex> what would be a minimum flag set to have just the ability to extract audio from mp4, webm, flv, 3gpp containers?
[12:06] <dentex> --enable-decoders and --enable-demuxers ?
[12:06] <durandal_1707> gotwig: i dont see full uncut output
[12:06] <durandal_1707> and -c copy just works
[12:07] <gotwig> http://paste.ubuntu.com/1612197/
[12:09] <durandal_1707> gotwig: 10.6 is very old version
[12:09] <durandal_1707> dentex: and store it where?
[12:10] <durandal_1707> you need muxer
[12:10] <gotwig> its just 16 weeks old
[12:10] <gotwig> I mean 12 weeks
[12:10] <JEEB> yes, but 0.10.* as a version is already unfortunately old :P
[12:11] <durandal_1707> gotwig: build date?
[12:11] <dentex> you're right. I want to strip audio only. so "-vn -acodec copy $AUDIO_CODEC"
[12:11] <gotwig> I get the static builds..
[12:11] <durandal_1707> dentex: in what container?
[12:13] <gotwig> mummy, it works...
[12:13] <gotwig> is that the right command? ./ffmpeg -ss 152 -i OUTPUT.mkv -c copy output3.mkv
[12:14] <JEEB> yes, if you want to leave stream selection to ffmpeg (one video, one audio and not sure about subtitles)
[12:14] <gotwig> lol, finally I see a nice output from ffmpeg...
[12:14] <JEEB> anyways, that just means that it was fixed later than either libav 0.8 or ffmpeg 0.10 :3
[12:14] <gotwig> avconv does not offer that, just without any time formats
[12:17] <gotwig> and ffmpeg is really very fast :(
[12:17] <JEEB> remuxing generally is :)
[12:46] <gotwig> And now I no longer have problems with audio offset
[12:46] <gotwig> even when I dont use async 1
[12:47] <JEEB> yes, generally async 1 shouldn't be needed
[12:49] <gotwig> I guess because of -c copy
[12:49] <JEEB> I would rather guess at the much newer code that you are now testing :D
[12:50] <FergusL> relaxed: thanks for your tip about PATH. I think I used a symlink instead
[13:15] <_raven_> hi
[13:15] <_raven_> how to merge some mp3-files together?
[13:16] <gotwig> ffmpeg -i MP3_FILE -i MP3_FILE  OUTPUT ?
[13:17] <gotwig> no, sry, I am a noob...
[13:17] <_raven_> i need any option with *
[13:17] <gotwig> oh ok
[13:17] <gotwig> so you need a  loop?
[13:17] <_raven_> not sure perhaps ffmpeg is able to handle*
[13:17] <gotwig> I dont think so
[13:19] <gotwig> something like that? http://ubuntuforums.org/showthread.php?t=2005963
[13:20] <gotwig> but that is for converting each one as individual...
[13:20] <JEEB> that just re-encodes all files separately, yeah
[13:20] <gotwig> how can I cut the end of the video?
[13:20] <gotwig> like remove the last 20 seconds?
[13:20] <JEEB> have fun calculating the right timestamp for -t
[13:21] <JEEB> I don't think you can set it to minus-something to just cut stuff off the end
[13:21] <JEEB> (mostly because in general ffmpeg doesn't know or care about the "length" until it hits the end of stream)
[13:21] <_raven_> cat *.mp3 | ffmpeg ?
[13:22] <JEEB> I would not recommend that, at least use mkvmerge to append them or something and then demux the stream :P
[13:22] <JEEB> although depending on your luck that might or might not work
[13:23] <DEATH> While on the subject: it would be handy to have an alternate -t syntax that specifies end offset instead of duration (same as -t if no -ss specified, subtracts -ss time from the specified value if -ss is specified). Less math to do in my brain.
[13:24] <dentex> Hi. I wanted to re-issue my previous question, if I may.
[13:47] <WillieNL> ola i have something weird with ffserver version 0.7.1 theire is no data send on the output stream untill i stop the input stream
[13:47] <WillieNL> is this a known problem ?
[13:48] <WillieNL> next to what is best advice for streaming audio only (aac) mp4 seems not always working without video
[14:55] <WillieNL> wb burek
[15:44] <makara> racking my brains with this math. I have 1920x1080 and want to author DVD (PAL 720x576). What steps to take?
[15:44] <Mavrik> makara: first of all, your aspect ratio is problematic :)
[15:45] <Mavrik> makara: widescreen DVDs are usually anamorphic
[15:46] <WillieNL> or place the 4:3 content in a 16:9 frame with subtitle bar
[15:47] <Mavrik> yeah, you can pad it aswell. Not as optimal of a situation :)
[15:47] <WillieNL> well indeed even when my description is way wrong
[15:47] <WillieNL> here i still do 16:9 -> 4:3
[15:47] <WillieNL> but visa versa is also possible
[15:48] <makara> which does the DVD expand to reach 16:9 aspect? Height or width?
[15:49] <Mavrik> makara: width
[15:50] <Mavrik> makara: you just "squish" the 16:9 video to 720x576
[15:50] <Mavrik> then set SAR so it tells the decoder the video is 16:9
[15:50] <Mavrik> and it'll stretch it when playing back
[15:50] <WillieNL> makara: an example http://forum.videohelp.com/images/guides/p1538554/aspectratio.jpg
[15:52] <WillieNL> personal keep the aspect ratio as is else you endup with really tall or fat people onscreen :)
[15:52] <Mavrik> WillieNL: that's why you set the SAR.
[15:53] <WillieNL> well i'm no expect on ffmpeg since i can't make rtmp/rtsp restreaming functional for audio only
[15:54] <makara> WillieNL, that easy?
[15:54] <WillieNL> makara: well WowzaMediaServer aac audio fetch works but restream part stalls untill i stop the feeding then vlc starts playing the buffered content :S
[15:54] <WillieNL> i render clueless at that stage
[15:54] <makara> just resize to 720x576; create mpeg-ps; author with widescreen on (16:9)
[15:55] <Mavrik> makara: just make sure your SAR is correct when resizing
[15:55] <makara> Mavrik, what is SAR
[15:55] <Mavrik> sample aspect ratio
[15:55] <Mavrik> basically, it tells how to stretch each pixel
[15:57] <Mavrik> makara: SAR has to be set so that "720 * SAR = 1024"
[15:57] <Mavrik> (because your video should be 1024x768)
[15:58] <Mavrik> er
[15:58] <Mavrik> 1024x576, sorry :)
[16:01] <JEEBsv> something munch, I am expecting that your HD source is BT.709 and with a 1:1 aspect ratio: -vf colormatrix=bt709:bt601,scale=width=702:height=576,pad=width=720:height=576,setsar='16:11'
[16:01] <JEEBsv> *something to munch at
[16:05] <JEEBsv> (this contains some of the 'dirty secrets' of certain things that are not exactly how they look like)
[16:06] <Mavrik> hmm, so colormatrix conversion is necessary?
[16:07] <JEEBsv> well, yes -- naturally most people just wouldn't care about most of this stuff 8) After all, ffmpeg does have a PAL DVD -target option, which would take care of most of it all 8)
[16:10] <Mavrik> JEEBsv: btw, why the black padding with anamorphic video?
[16:11] <JEEBsv> http://www.x264bluray.com/home/576p-pal (DVD uses the same aspect ratios)
[16:11] <JEEBsv> also a calculator that uses the "exact values" instead of their simplifications http://ps-auxw.de/cgi-bin/ar-calc.pl
[16:12] <JEEBsv> basically the 702x576 part of the picture is going to be widened to 1024x576, and the rest goes further
[16:13] <brontosaurusrex> JEEB; continued from yesterday: the player (tv) does play "bluray" vc1 mkvs, only it cant read the "bluray" subs ...
[16:13] <JEEBsv> so if you want to hifist, you can do it like this (resize to 702x576, and then pad), if you just want to get off easily, you can just resize to 720x576 :)
[16:13] <brontosaurusrex> and the bluray subs are always bitmaps?
[16:13] <JEEBsv> that is, if your source content is 16:9
[16:13] <JEEBsv> brontosaurusrex: not always, but pretty much nothing handles the few cases of text-based subtitles
[16:14] <JEEBsv> I think only some French BDs actually used the text-based subtitles
[16:14] <brontosaurusrex> so is there a way to hardburn those on a non-windows machine, using ffmpeg only perhaps?
[16:16] <JEEBsv> as I said, pretty much nothing except for payware players support that part of blu-ray subtitles thanks to the fact that they are barely used
[16:16] <brontosaurusrex> no, i mean bitmap based
[16:17] <JEEBsv> not that I know
[16:17] <JEEBsv> ffmpeg can render them, but I don't think it could hardcode them
[16:20] <brontosaurusrex> i mean transcoding from vc1+subs > h.264
[18:13] <serard> hello
[18:13] <serard> I'm looking to replace mp4split use using ffmpeg, any howto or link ? :)
[18:27] <Fjorgynn> serard: for what?
[18:29] <serard> to get some examples of command line arguments
[18:31] <Fjorgynn> for what?
[18:31] <Fjorgynn> I don't know what mp4split does or what you're using it for
[18:31] <Fjorgynn> My car doesn't work. It is red.
[18:35] <juanmabc> split mp4s?
[18:36] Action: juanmabc guesses hard
[18:44] <WillieNL> Fjorgynn: well more examples on how to stream only audio in a couple formats will be welcome and solve the 1 hr trial and error
[18:44] <WillieNL> here ffmpeg feeding to ffserver still is not sending any data untill stop the feed
[18:44] <WillieNL> or only to the first client
[18:45] <WillieNL> highly frustrating if unsure how to do it right :)
[18:46] <WillieNL> dunno if these bugs are fixed afther version 0.7.1 but dinner time here
[18:46] <Fjorgynn> aha
[19:20] <pskosinski> ffmpeg -f x11grab -r 25 -i :0.0 file.mpg
[19:20] <pskosinski> Will it give me "raw" video?
[19:21] <pskosinski> Or it will be compressed using a codec. How to get as raw video as I can?
[19:22] <pskosinski> Because I want to "modify" it a bit, and if I compress it to webm and then edit result is awful
[19:22] <klaxa> pskosinski: -c:v rawvideo
[19:23] <klaxa> i'm not sure the mpeg container supports it though, i think avi can handle it
[19:23] <pskosinski> ok, thanks, I will try :)
[19:24] <klaxa> you will need a reasonably fast disk though (ram, ssd?) otherwise you can use a lossless videocodec for compression, needs more cpu though
[19:25] <sweb> http://superuser.com/questions/547027/ffmpeg-multiple-video-filter
[19:25] <pskosinski> Unrecognized option 'c:v'
[19:26] <klaxa> pskosinski: update your ffmpeg :P (or use -vcodec)
[20:01] <pskosinski> So, I would like to cut beginning and end of video. I used: ffmpeg -i in.mkv -ss 8 -t 541 -vcodec copy -an oot.mkv and it is cutting but there is one problem: when I play video in mplayer it shows that video starts from 8th second. Can I do something with that?
[20:02] <pskosinski> Without re-encoding.
[20:03] <pskosinski> Well, looks like for those 8 second video is staying in one place&
[20:03] <pskosinski> seconds *
[20:15] <llogan> pskosinski: you mean the image is still for 8 seconds and then plays?
[20:15] <pskosinski> Yes
[20:15] <pskosinski> But I just reencoded and I don't see quality lose, so kinda no problem now. :p But would be nice to know if it's possible anyway
[20:17] <pskosinski> Ah& It seems that I have a bit old ffmpeg, I have Debian Wheezy& Maybe first I
[20:17] <pskosinski> I'll try to update * stupid enter
[20:31] <llogan> pskosinski: this could help https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideHardy
[20:31] <llogan> or a static build is an option
[20:32] <pskosinski> Yeah, thanks. :) I see that Debian switched to libav&
[20:38] <llogan> that has caused much confusion for users
[21:16] <creep> hey http://www.androidinabox.com/mini-joystick-capacitive-touch-screen-joystick-playing-games.html what do you think about this stuff?
[22:26] <taylanub> The ffplay, ffserver etc. executables aren't supposed to be very big, right ?  140M here, I'm guessing dynamic linking was disabled because I'm on OpenBSD.
[22:28] <cheeseboy> [image2 @ 0xbe2d00] Could not get frame filename number 2 from pattern '/var/log/encodes/file.png'
[22:29] <cheeseboy> i want to write to same file every time. how I accomplish this?
[22:32] <cheeseboy> http://pastie.org/6074719
[22:40] <beastd> cheeseboy: not sure i understood you correctly. but please look at this http://ffmpeg.org/ffmpeg-formats.html#image2-1 and check updatefirst option
[22:40] <saste> cheeseboy, -updatefirst
[23:06] <cheeseboy>  ffmpeg -f yuv4mpegpipe - -i - -updatefirst 1 -f image2 "/srv/http/file.png" | x264 - why isnt x264 recivng pipe?
[23:09] <klaxa> because ffmpeg isn't writing to stdout
[23:10] <klaxa> the first '-' is somewhat misplaced and incorrect completely i think
[23:10] <klaxa> what are you trying to do even?
[23:12] <sacarasc> cheeseboy: ffmpeg [input options] -i input [output options] output
[23:14] <cheeseboy> ah
[00:00] --- Wed Feb  6 2013


More information about the Ffmpeg-devel-irc mailing list