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

burek burek021 at gmail.com
Mon Mar 25 02:05:01 CET 2013


[05:26] <xentrac> hi. I see "  EV    libtheora       libtheora Theora
[05:26] <xentrac> in avconv -codecs
[05:27] <xentrac> but when I say -c libtheora, I get
[05:27] <xentrac> Invalid encoder type 'libtheora'
[05:27] <xentrac> why is that?
[05:29] <juanmabc> -c:v don't you mean?
[05:30] <xentrac> YES! thank you! sorry for the dumb question
[05:31] <juanmabc> keep "man ffmpeg" in one tab ;)
[05:32] <xentrac> I looked at man avconv but I didn't understand as much of it as I thought I did
[05:33] <ubitux> xentrac: avconv is a tool from a fork
[05:33] <ubitux> xentrac: ^
[05:34] <xentrac> oh, I didn't realize
[05:34] <ubitux> FFmpeg documentation is available here btw: http://ffmpeg.org/documentation.html
[05:35] <xentrac> the misleading message misled me
[05:38] <xentrac> do I have to build ffmpeg from source to install ffmpeg on this Ubuntu?
[05:38] <xentrac> this is probably a faq :(
[05:40] <ubitux> i think there are some info here
[05:40] <ubitux> xentrac: note that installing ffmpeg on your ubuntu might not be such a good idea
[05:40] <ubitux> because of the librarie dependencies and all the packages you might break
[05:40] <ubitux> OTOH you can use static build
[05:40] <ubitux> which are available here ^
[05:41] <ubitux> you can also complain to your distro
[05:41] <ubitux> and/or simply switch to the fork; but in that case we can't help you and you need to go to them
[05:41] <xentrac> or upgrade
[05:41] <ubitux> upgrade?
[05:42] <xentrac> apparently current ubuntu libav doesn't provide an "ffmpeg" command or, presumably, package
[05:42] <ubitux> you distro is packaging the fork; whatever upgrade you're gonna do, you'll end up with the fork, not ffmpeg
[05:42] <ubitux> they use the ffmpeg name to package the fork
[05:43] <xentrac> still? what a mess
[05:43] <ubitux> it's a mess only on debian/ubuntu
[05:43] <ubitux> complain there :)
[05:45] <xentrac> oh, debian too?
[05:45] <xentrac> yeah, I meant in ubuntu
[05:46] <xentrac> sorry if it sounded like I was blaming the mess on ffmpeg
[10:24] <kms> how can i insert after my video black screen to any seconds?
[10:25] <ubitux> parse error
[10:35] <DeXa> hi guys
[10:35] <DeXa> weird question
[10:35] <DeXa> I made an PHP warper for ffmpeg
[10:35] <DeXa> I want to share it on github
[10:36] <DeXa> what do you think about the name: PPmpeg?
[10:36] <DeXa> :)
[10:38] <kms> what differ from php5-ffmpeg?
[10:38] <Rathann> I wouldn't associate PP with PHP immediately, but that's just me, you can name it whatever you like
[10:38] <zap0> that sounds like something thats been done before
[10:39] <ubitux> PP is generally associated with PostProc when speaking about video
[10:40] <zap0> i think PPmpeg as a name sucks.
[10:40] <ubitux> "PPmpeg" gives a stutter feeling
[10:40] <ubitux> it's kinda fun
[10:41] <zap0> why  ffmPHPeg
[10:41] <zap0> why not,
[10:56] <DeXa> got it :)
[10:56] <DeXa> I guess php5-ffmpeg is better
[13:02] <mucahit> Hello everybody,,  I have a question, I searched on web and found something but it couldnt help me,, Here is my commands and error http://pastebin.com/vFtngThY
[13:50] Last message repeated 1 time(s).
[14:06] <zap0> stop writing things that don't work.
[15:44] <mucahit>  Hello everybody,,  I have a question, I searched on web and found something but it couldnt help me,, Here is my commands and error http://pastebin.com/vFtngThY
[15:49] <zap0> repeating yourself isn't helping.
[15:56] <Mavrik> um, I'll ask again here... does anyone know where I could get any MPEG2-TS samples, with DTS wrap-around? :)
[16:57] <Guest8830> I am running the following command: http://pastebin.com/DRXQZJXR ... I want the width to be 456 of the video
[16:57] <Guest8830> when I do ffmpeg -i in.mp4
[16:57] <Guest8830> it shows me that the width is 456px and the height 302px
[16:57] <Guest8830> but when i play the video
[16:58] <Guest8830> the width becomes 540px and the height is 302 px
[16:58] <Guest8830> I opened the video in chrome
[16:59] <Guest8830> and firefox, but the width is 540, also in adobe media encoder the example of the video is 540px and the height is 302 px
[16:59] <Guest8830> What am I doing wrong?
[17:04] <zap0> what makes you think 456 is a valid value?
[17:05] <RSDRSDRSD> 456 is can be divied by 4 and 2
[17:06] <RSDRSDRSD> the container on the website is 456
[17:06] <RSDRSDRSD> and the video should fit in that one
[17:06] <RSDRSDRSD> height should be calculated according to the width
[17:07] <RSDRSDRSD> all videos have different aspect ratios
[17:07] <RSDRSDRSD> width should always be the same
[17:08] <Mavrik> Guest44355: can you please give us the ffmpeg output as well?
[17:10] <RSDRSDRSD> http://pastebin.com/F9VfdUcS
[17:10] <RSDRSDRSD> that is the ffmpeg output
[17:13] <Mavrik> RSDRSDRSD: it looks like your video is anamorphic
[17:13] <RSDRSDRSD> what does that mean?
[17:14] <Mavrik> that means it has a flag that tells it "even though this is a 456x302 resolution video, you should show it as a wider one"
[17:14] <RSDRSDRSD> that could be true
[17:14] <Mavrik> look at SAR:
[17:14] <Mavrik> it tells the ratio on how the video should be stretched
[17:14] <Mavrik> non-anamorphic videos have SAR of 1:1
[17:15] <RSDRSDRSD> is there a way to get rid of that
[17:15] <RSDRSDRSD> so that it becomes a normal video
[17:15] <Mavrik> RSDRSDRSD: and (456 * (32/27)) == 540 ;)
[17:15] <RSDRSDRSD> hehe
[17:16] <Mavrik> RSDRSDRSD: first things first... when your video is being played at 456x302, is that the "correct" aspect ratio?
[17:16] <Mavrik> or is it squished :)
[17:16] <RSDRSDRSD> i think so
[17:17] <RSDRSDRSD> 540x302 looks good
[17:17] <Mavrik> RSDRSDRSD: ok, do this: after the scale filter (that is right after scale=... and before [scale];) add setsar filter "setsar=1:1"
[17:17] <Mavrik> ah
[17:17] <Mavrik> this should set SAR on the output to 1:1
[17:17] <Mavrik> (you'll see this in ffmpeg output)
[17:18] <RSDRSDRSD> does this also work with non anamorphic videos?
[17:19] <Mavrik> yeah
[17:19] <Mavrik> if your video looks squished after you do that
[17:19] <Mavrik> come back and we'll figure out how to fix it :)
[17:24] <RSDRSDRSD> this loooks very good
[17:24] <RSDRSDRSD> thanks
[17:29] <RSDRSDRSD> i think it is osmewhat squished
[17:29] <RSDRSDRSD> the original is wider and not 3:2
[17:30] <Mavrik> well then you'll have to resize it to (or show it as) 540x302
[17:30] <starkline> was someone asking for logs?
[17:53] <onto> Hi! I am using the following parameters to record audio from my laptop "ffmpeg -f oss -i /dev/dsp1 file.wav" but I am getting echoes. Could anyone tell me why this could be happening?
[20:02] <xlinkz0> is there an option for ffplay to show the current timestamp on the video itself?
[20:05] <ubitux> xlinkz0: you can use the drawtext filter
[20:06] <mucahit> ubitux can you help me too :)
[20:06] <xlinkz0> thanks i'll look into it
[20:07] <ubitux> mucahit: i don't really know
[20:07] <ubitux> i never used rtmp stuff
[20:07] <mucahit> oh ok thanks :)
[20:10] <xlinkz0> o
[20:14] <xlinkz0> i've read the configure help but i can't see an option for the ff tools that make them 'verbose'
[20:14] <xlinkz0> for example the ffplay i got from compiling with no configure options doesn't output anything, no errors, nothing
[20:15] <xlinkz0> it works if i execute it with valid args ( but no stdout output while running ) but if i just call it with ffplay fdsjkhfe it outputs nothing :\
[20:15] <ubitux> -v verbose
[20:15] <xlinkz0> also do i need an external library to use the drawtext filter?
[20:16] <ubitux> libavfilter needs to be build against freetype, and eventually fontconfig
[20:16] <xlinkz0> doesn't work either with ffplay nor configure
[20:16] <ubitux> and if you have access to the filter, then that's likely the case
[20:17] <xlinkz0> no i mean -v verbose
[20:17] <ubitux> -v verbose is for tools
[20:17] <ubitux> not configure
[20:17] <xlinkz0> ffplay still outputs nothing
[20:17] <ubitux> i seriously wonder how you build your ffplay
[20:17] <xlinkz0> because i want to modify it
[20:18] <ubitux> then patch it in the repo and build all stuff together
[20:18] <xlinkz0> i am building it all but it seems i build it badly
[20:18] <xlinkz0> since ffplay doesn't output anything..
[20:18] <xlinkz0> on stdout don't get me wrong, everything else works fine
[20:18] <ubitux> checkout the repository
[20:19] <xlinkz0> for?
[20:19] <ubitux> do some changes to ffplay.c
[20:19] <ubitux> and then build everything from here
[20:19] <xlinkz0> how?
[20:19] <xlinkz0> with what configure options?
[20:19] <ubitux> whatever, ./configure --enable-gpl and various other flag you want
[20:20] <xlinkz0> my question is, what's the flag or library that could keep the tools from not outputting anything?
[20:20] <ubitux> none
[20:20] <xlinkz0> ..
[20:20] <ubitux> you just badly built your ffplay
[20:20] <ubitux> something is just completely broken in your setup
[20:20] <xlinkz0> i just downloaded the git clone, run ./configure on it
[20:20] <beastd> xlinkz0: which os/platform do you use?
[20:20] <xlinkz0> then make
[20:20] <xlinkz0> windows compiling under msys with mingw-w64
[20:21] <ubitux> and then ./ffplay doesn't display anything?
[20:21] <xlinkz0> yes
[20:21] <beastd> xlinkz0: on which terminal did you start ffplay?
[20:21] <xlinkz0> doesn't output to stdout, the video works
[20:21] <ubitux> if it's on windows i can't help sorry
[20:21] <xlinkz0> both msys and cmd
[20:21] <beastd> xlinkz0: one of them should show some output
[20:22] <xlinkz0> i'll start from scratch..
[20:22] <beastd> xlinkz0: try just executing ffmpeg with no args. you should see output. if you don't try another terminal.
[20:23] <xlinkz0> the exe is badly built..
[20:23] <beastd> if you can't see output nowhere something went wrong
[21:01] <funyun> hi. is there a way to delay audio of a video with ffmpeg? my audio is off 200ms. anyone know?
[21:02] <ubitux> asetpts, -async, etc
[21:05] <funyun> ubitux: so since it's off 200ms, i would use -async 200?
[21:07] <ubitux> you just want to shift the audio?
[21:07] <funyun> ubitux: ya, i think i found it. itsoffset correct?
[21:08] <ubitux> oh well, i guess it might work
[21:10] <funyun> ubitux: you're right, it didn't work. do you know of something else?
[21:11] <ubitux> it should have work
[21:11] <ubitux> how did you use it?
[21:11] <funyun> ffmpeg -i video.264 -itsoffset 00:00:00.20 -i audio.aac -vcodec copy -acodec copy -map 0:1 -map 1:0 fixed.mp4
[21:14] <ubitux> looks correct :p
[21:16] <funyun> ubitux: not sure if you're joking? usually when it comes to command line, i'm doing something incorrect..
[21:16] <ubitux> no it's not a joke, it looks correct to me
[21:16] <ubitux> i wonder if you can fix it without re-encoding
[21:17] <funyun> ah okay, i get "Could not find input stream #0.1"
[21:17] <ubitux> oh
[21:17] <funyun> with the syntax i just posted
[21:17] <ubitux> -map 0:0 -map 1:0
[21:17] <ubitux> or -map 0 -map 1
[21:18] <funyun> "[mp4 @ 0x7ff24b01ca00] malformated aac bitstream, use -absf aac_adtstoasc" when i try -map 0 -map 1
[21:18] <ubitux> then use that option
[21:18] <ubitux> also, your ffmpeg looks old
[21:18] <ubitux> oh, maybe not sorry
[21:19] <funyun> ubitux: ya. it is pretty old. i think it's working with -absf aac_adtstoasc
[21:21] <funyun> ubitux: yep it worked. thanks :)
[21:21] <ubitux> awesome
[21:31] <DX099> hello
[21:31] <DX099> what subtitle codec does mp4 container supports in ffmpeg ?
[21:32] <ubitux> "mov_text"
[21:34] <DX099> ubitux, thanks. How to force it ?
[21:34] <xlinkz0> i've put mingw/lib in PATH but configure still can't find fontconfig :\
[21:35] <ubitux> DX099: what do you want to do?
[21:35] <xlinkz0> http://i.imgur.com/KoH3YUl.png
[21:36] <xlinkz0> doesn't configure look in PATH for libs?
[21:37] <xlinkz0> ah nvm they're incompatible
[21:37] <ubitux> https://ffmpeg.org/trac/ffmpeg/wiki/MingwCompilationGuide
[21:38] <ubitux> you may find some hints here
[21:38] <DX099> ubitux, I wanted to convert an mkv with subtitles into avi, but avi only supports xsub that seems hard to work with. Thus I changed to mp4 as container (x264 video) but it then gave an error about codec not being supported. Now I found the codec but I'm afraid the subtitles might not show up if not forced. I'll be eventually running this on vlc portable since I'll have to give with people that have unknown config.
[21:38] <ubitux> what is the type of the subtitles in the mkv?
[21:38] <DX099> I saw 'subrip'
[21:40] <ubitux> good
[21:40] <ubitux> then ffmpeg -i in.mkv -c copy -c:s mov_text out.mp4
[21:40] <ubitux> does that work?
[21:40] <DX099> yes
[21:40] <DX099> but I wanted to force the subtitles
[21:40] <DX099> is that possible ?
[21:41] <ubitux> there is no such thing for text subtitles afaik
[21:41] <DX099> sometimes I see that mention near subtitles stream
[21:41] <ubitux> what do you mean by force?
[21:41] <ubitux> yes, for bitmap subs afaik
[21:41] <ubitux> like dvd or bluray subs
[21:41] <ubitux> that's unrelated afaict
[21:42] <DX099>  Stream #0:3(fre): Subtitle: subrip (default) (forced)
[21:42] <ubitux> mmh
[21:43] <ubitux> i doubt that's related to having them displayed though
[21:43] <DX099> wherever I open the file with such stream, those subtitles shows by default
[21:43] <DX099> I don't need to select them
[21:45] <ubitux> yeah sure ok
[21:45] <ubitux> you are able to enable the sub with the output file, right?
[21:46] <DX099> ubitux, yes vlc detects them
[21:51] <ubitux> i wonder how you can force the disposition..
[21:55] <DX099> I just saw something about filters
[22:10] <DX099> ubitux, also, I have another problem : when converting from mkv to avi, "ffmpeg -i file.mkv -map 0:0 (video) -map 0:2 (audio) -c:v libx264 file.avi, audio is dysynchronized...
[22:11] <DX099> *disynch...
[22:30] <DX099> ubitux, http://paste.ubuntu.com/5644595/
[22:31] <DX099> sound and video are not synchonized...
[22:33] <ubitux> DX099: try to -c copy
[22:33] <ubitux> otherwise, try to sync with aresample filter
[22:35] <DX099> ubitux, It works with -c copy thanks
[22:44] <DX099> ah it's asking me for dependencies now...
[22:47] <reindeer> Q:Is it possible to map mono1.wav and mono2.wav into stereo.wav so that mono1 is at left and mono2 is at right channel? I just dont seem to get the ffmpeg syntax.. :-(
[22:49] <Mavrik> yeah, it's possible
[22:49] <Mavrik> you'll have to check the ffmpeg filter documentation for the right audio filter to merge them
[22:53] <reindeer> ok, well ive tried for quite some time, but the syntax just escapes me.. any help for a complete command?
[22:53] <Mavrik> wouldn't know out of my head
[22:54] <Mavrik> it should probably just be passing two "-i" and using "-af" audio filter
[22:54] <Mavrik> then setting output format
[22:54] <reindeer> ok, well i'll try some more
[22:55] <reindeer> i guess it also needs to be panned to left and right on each input
[22:56] <reindeer> or actually no
[22:57] <cbsrobot_> reindeer: see http://ffmpeg.org/ffmpeg-filters.html#amerge
[22:58] <reindeer> yep, i am there just by amix.. :)
[23:00] <reindeer> i think i cant use amerge, because they are not in same stream, but in different files..
[23:02] <reindeer> well i dont have any command or any output yet.. :/
[23:03] <cbsrobot_> so draft one quickly
[00:00] --- Mon Mar 25 2013


More information about the Ffmpeg-devel-irc mailing list