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

burek burek021 at gmail.com
Tue May 29 02:05:01 CEST 2012


[00:27] <sware> why is libstagefright a c++ file?
[00:30] <sware> nevermind
[02:08] <burek> funkster,
[02:08] <burek> can you please use pastebin.com, to show your command line and its output?
[02:13] <bcardarella> when I change the aspect ratio of a video from 4:3 to 16:9 is there a way to just add a black border so the video doesn't skew?
[02:15] <funkster> burek: taking out -q:a 2 gives me no error and same output so =D dont need, heh
[02:15] <burek> funkster, ok :)
[02:15] <burek> bcardarella, did you change the video size or just added -aspect
[02:16] <bcardarella> burek: I have not done anything to the source video yet
[02:16] <bcardarella> but I figure if I adjusted the aspect ration it would skew
[02:16] <funkster> making a 800x600 video with picture that are 1024ish, should i resize with imagemaick or can ffmpeg resize my images ?
[02:16] <burek> bcardarella, it would
[02:16] <bcardarella> I know I want to use the pad option... just not sure how
[02:16] <burek> I see, just a sec
[02:17] <burek> did you read http://ffmpeg.org/ffmpeg.html#pad
[02:18] <bcardarella> burek: I did
[02:18] <burek> funkster, ffmpeg -i input -s 800x600 output
[02:18] <bcardarella> I'm still piecing together what I might want to do... figured I woudl jump in here and see if someone knew
[02:19] <burek> bcardarella, why dont you scale the image to the smaller ordinate (width or height)
[02:19] <burek> without black bars
[02:19] <burek> player will add it anyway
[02:19] <bcardarella> burek: I am merging with a video that is in 16:9
[02:19] <bcardarella> but I think I have it... -padleft, -padright and -padcolor
[02:19] <burek> no no
[02:20] <bcardarella> I just have to calculate the pixels
[02:20] <bcardarella> no?
[02:20] <burek> ffmpeg -i input -vf "pad=640:480:0:40:violet" output
[02:20] <burek> -padleft -padright.. are deprecated
[02:20] <bcardarella> oh
[02:43] <grepper>  s/deprecated/removed/
[03:36] <diegoviola> hi
[03:37] <diegoviola> i have a movie that is 1920x818 pixels and i'd like to convert that to mpeg2 so i can play it on a dvd player
[03:37] <diegoviola> what resolution could i convert to?
[03:38] <sacarasc> If you use -target dvd-pal or -target -dvd-ntsc it should do most of the things for you.
[03:39] <diegoviola> thanks
[03:42] <diegoviola> now how do i know if i should use pal or ntsc
[03:42] <diegoviola> dvd-pal or dvd-ntsc
[03:46] <sacarasc> http://www.high-techproductions.com/ntsc.htm http://www.high-techproductions.com/pal.htm
[03:47] <diegoviola> ty
[03:47] <sacarasc> There's also http://www.high-techproductions.com/secam.htm but no one cares about SECAM.
[03:48] <diegoviola> thanks a bunch
[04:15] <walker> Hi guys - I have ffmpeg, compiled with libx264, generating an rtp stream. Problem: It's only generating packets with packetization-mode=1. I require packetization-mode=0. Is there a way to force ffmpeg to send the stream in mode 0?
[04:54] <diegoviola> i'm trying to convert this MKV file to mpeg2 so I can play it on a dvd player, but 7.4 GB and I want to shrink it to 4 GB
[04:54] <diegoviola> so it fits on a DVD disc
[04:54] <diegoviola> should i decrease the video bitrate?
[04:55] <diegoviola> ffmpeg -i input.mkv -target pal-dvd -aspect 16:9 tmp.mpeg
[04:55] <diegoviola> right now this would give me a 5.3G file
[05:11] <bcardarella> I'm converting a flv to a mp4.... it has taken almost two hours to convert the first 20 minutes. I've just noticed that the dup= in the output is over 1.3 million... I suspect something is screwy here and that is causing the slow conversion time. Thoughts?
[05:11] <bcardarella> And is there any way I can correct this?
[05:12] <diegoviola> any ideas please?
[05:50] <rav0_> diegoviola, ideas: use a usb flash disk, use a hard disk, use a blu-ray disc, use two dvds, use networked storage
[05:54] <diegoviola> no way to shrink file size further?
[06:07] <zap0> set a bitrate
[06:07] <diegoviola> thanks
[06:07] <diegoviola> do i need to specify -aspect 16:9 to play it on a HD TV?
[06:07] <diegoviola> DVD player to TV
[06:08] <diegoviola> the original resolution is 1920x818
[06:08] <diegoviola> it seems like -taget pal-dvd already shrinks the resolution
[06:09] <sacarasc> Because DVD resolution isn't that high.
[06:09] <diegoviola> but it doesn't seem to change the aspect ratio
[06:09] <diegoviola> yeah
[06:09] <diegoviola> i don't need to touch the aspect ratio no?
[06:10] <sacarasc> Probably not.
[06:10] <diegoviola> ok ty
[06:19] <diegoviola> i wonder if 2-pass encoding would help decrease file size
[06:24] <rav0_> if you specify bitrate, 2-pass should increase quality and maintain filesize
[06:25] <diegoviola> thanks
[06:25] <diegoviola> i'll do that
[06:29] <diegoviola> i see that the first pass creates a log like this: ffmpeg2pass-0.log -- do you know that if in the second pass i need to specify this log manually with a command line switch, or ffmpeg will take it automatically?
[06:30] <diegoviola> provided that my files are in the current dir
[06:30] <diegoviola> i.e. ~/tmp
[06:30] <diegoviola> sorry for too many questions
[06:56] <lost^alien> Is it okay to ask a ffmpeg bash script question in this irc?
[07:57] <grepper> lost^alien:  just ask and pretend you didn't know it was off-topic :)
[07:59] <ajeesh> i have installed ffpmeg on my server but when i check the version ffmpeg -version
[07:59] <ajeesh> ffmpeg version N-41065-gab7d6cb
[07:59] <ajeesh> and using the php code iam getting another version : FFmpeg version 0.6.5
[08:00] <ajeesh> <?php exec("ffmpeg -version" . " 2>&1", $output); foreach($output as $key => $value){ echo $value."\n"; } ?>
[08:00] <ajeesh> this is my php code to check the ffpmeg version
[08:00] <sacarasc> Do you have 2 versions of ffmpeg installed?
[08:01] Action: ubitux smells the PATH having /usr/local in the shell but not the web server, or sth like that
[08:03] <ajeesh> i can see that two location
[08:03] <ajeesh> /usr/bin/ffmpeg is 0.6.5 and /usr/local/bin/ffmpeg -> N-41065-gab7d6cb
[08:09] <ajeesh> so how can i fix this
[08:09] <sacarasc> Uninstall one?
[08:09] <sacarasc> Use the full path?
[08:13] <ajeesh> simlink can fix >
[08:13] <ajeesh> ?
[12:12] <bull1> hallo i can't convert flv to mp3, it does mp4???
[14:53] <e98> there's something strange in 0.11 when I -i video.ext -ab numberk audio.mp3
[14:53] <e98> it seems to go in real time and doesn't seem to speed up as 0.10.3 does
[14:53] <e98> any default option valued changes in 0.11?
[15:09] <burek> what do you mean real time
[15:10] <e98> it seems to convert a the same pace as if you were playint it back
[15:11] <e98> put differently: it's super slow
[15:11] <burek> as if -re was specified?
[15:11] <e98> let me try -re with 0.10.3
[15:11] <burek> no no
[15:11] <burek> -re makes it go real time
[15:11] <burek> I'm just asking
[15:11] <burek> is that what you are describing
[15:12] <e98> I have to try it so see if we both are talking about the same effect
[15:16] <vlt> Hello. I got two 854x478 youtube videos. One 307 MB VP8/Vorbis in WEBM and one 273 MB H264(Main)/AAC in FLV. Which of them would you expect to have better quality?
[15:17] <burek> the one which has a clearer image
[15:18] <vlt> burek: Hmmm, I cant see them right now but I want to burn a DVD and have to decide which to choose as source.
[15:18] <burek> why not
[15:19] <vlt> I have only my phone and slow internet currently.
[15:19] <burek> you can always chop the small sample out of entire movie
[15:19] <burek> with -ss and -t
[15:20] <e98> burek: I tried and it's not the same. -re doesn't make a difference with 0.10.3
[15:20] <burek> and download those samples and compare
[15:20] <burek> e98, -re options slows down ffmpeg and makes it read the input in real-time
[15:20] <e98> burek: 0.11 without -re 1) prints more info during convert (~ 9fps) and takes ages
[15:21] <burek> can you please use pastebin.com, to show your command line and its output?
[15:23] <e98> burek: there's nothing interesting to see there really
[15:23] <e98> burek: 0.11 seems to print fps and some other data during conversion
[15:23] <swick> can anyone explain me the behaviour of this http://pastebin.com/xAj1R7Fy ?
[15:24] <e98> I cannot be the only one who's seeing this with 0.11. weird
[15:25] <burek> swick, there is nothing wrong with bas scripts in general
[15:25] <burek> but why do you ask that question here?
[15:26] <swick> because I think it's ffmpeg related. it's the same data but there are other results
[15:27] <burek> which results?
[15:27] <burek> you didn't show any results
[15:27] <e98> burek: I'd appreciate it if you can grab a random flv off youtube and convert to mp3 (with 0.10.3 vs 0.11), if you can. thanks for the quick response
[15:28] <swick> the 2nd video is faster  shorter than the 1st one
[15:28] <burek> e98, I will later, when I find some spare time :)
[15:28] <burek> swick, I believe you but I can't help you without any output
[15:29] <vlt> burek: Thank you, good idea. I tried to get a small sample by running `ffmpeg -i in.webm -t 30s -vcodec copy -acodec copy out.webm` but got this error: "[webm @ 0x1f8e340] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 33 >= 33". Any idea what I did wrong?
[15:29] <burek> vlt,
[15:29] <burek> can you please use pastebin.com, to show your command line and its output?
[15:29] <vlt> burek: Yes, brb
[15:33] <vlt> burek: http://paste.ubuntu.com/1011264/
[15:33] <e98> burek: thanks. how long are you around here today? I'd like to return and check.
[15:34] <burek> vlt, "This program is not developed anymore and is only provided for compatibility. Use avconv instead"
[15:34] <burek> that message is simply not true
[15:34] <burek> you should either change your distribution
[15:34] <burek> to one that doesn't lie to it's users
[15:34] <burek> or you should compile ffmpeg..
[15:35] <burek> also, that is an old version of ffmpeg
[15:35] <burek> which doesn't surprise me
[15:36] <burek> for a quick test, try using this: http://ffmpeg.gusari.org/static/
[15:36] <burek> choose the latest version
[15:36] <burek> and see if the problem is still there
[16:00] <vlt> burek: Thanks, the latest static version worked.
[16:01] <burek> vlt :beer: :)
[16:01] <vlt> Not yet.
[16:01] <vlt> New problem. I made a 30 seconds sample but can't play it.
[16:01] <burek> :D
[16:02] <burek> why not
[16:06] <vlt> Maybe because mplayer on the notebook I use meanwhile is too old &
[16:06] Action: vlt reboots
[16:16] <vlt> burek: Ok, a newer mplayer does play it.
[16:30] <vlt> I have a video file and want to to create a DVD (image) that should play in every standard DVD player. Any hints what to use? (command line preferred)
[16:47] <GRMrGecko> I'm attempting to mimic these settings in FFmpeg. I have libxvid compiled in FFmpeg, so I should be able to do it. http://p.webra.in/er
[17:14] <malinens> Hi! How to putt watermark at bottom left correctly: movie=%s [wm];[in][wm] overlay=out_w-overlay_w-10:out_h-overlay_h-10 [out] is not correct. Watermark is put much higher than 10px from the bottom of video. movie=%s [wm];[in][wm] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out] also put watermark much higher from bottom and closer to centre of video
[17:38] <GRMrGecko> If someone has responded to my question on how to mimic http://p.webra.in/er, please repeat it as I had to do a reboot.
[17:43] <deni> hi there .... i have 2 computer with the same setup...but when running ffmpeg on one i get extremely low bitrate
[17:43] <deni> this is the command i'm using: ffmpeg -y -f x11grab -s 640x480 -i :0.0  -r 15 -vcodec libvpx -crf 22 -f webm -threads 4 test.webm
[17:43] <deni> i'm confused beacuse i have everything setup on the other computer and it works just fine
[17:43] <deni> i have no idea what's causing such low bitrates on the other one.....it's to slow....about 2-3 kbps
[17:44] <deni> on the other one i get somewhere between 400-700
[17:44] <deni> any ideas?
[17:45] <GRMrGecko> deni: Hang tight, it takes time for people to realize that a question has been asked
[17:46] <deni> GRMrGecko: yeah i'm used ti irc from all these years  :)
[17:46] <deni> that's fine
[17:46] <deni> someone will answer eventually
[17:55] <GRMrGecko> wow... the encode test I did ended up being much larger and mediainfo cannot figure out any information on it.
[17:56] <GRMrGecko> Please let me know if someone can help me mimic it.
[17:57] <defaultro> hey folks, do you know of any free/open source tools that does similar slow motion like twixter?
[17:58] <deni> also when i cancle the slow bitrate process...i get:  muxing overhead 16.268233
[17:58] <deni> on the fast one i get about 0.3 something
[17:59] <deni> does that have to do anything with anything? :D
[18:03] <burek> GRMrGecko, you dont need libxvid for xvid/divx encoding using ffmpeg
[18:04] <burek> http://ffmpeg.gusari.org/viewtopic.php?f=25&t=592
[18:04] <GRMrGecko> burek: What would you recommend?
[18:05] <burek> test both
[18:05] <burek> and see what suits you the best
[18:06] <burek> malinens, did you read the example section here: http://ffmpeg.org/ffmpeg.html#overlay-1
[18:07] <burek> deni,
[18:07] <burek> can you please use pastebin.com, to show your command line and its output?
[18:07] <burek> from both your computers
[18:08] <burek> GRMrGecko, also, use -t to produce shorter samples
[18:08] <burek> just to compare
[18:09] <GRMrGecko> burek: I just ctrl c to cancel and ffmpeg automatically closes out the file
[18:11] <deni> burek: fast one: http://pastebin.com/7XKpk3QR
[18:11] <deni> burek: slow one: http://pastebin.com/qirTsxdK
[18:11] <bcardarella> I have a video that has already dropped over 500,000 in the first 40 frames of encoding. It makes the encoding *very* slow. Is there anything I can do?
[18:11] <deni> now i did see that the version of ffmpeg on the slow one is hihgher
[18:11] <deni> hmm
[18:12] <burek> deni, your ffmpeg versions differ
[18:13] <burek> also, since you are using ubuntu
[18:13] <burek> and they prefer libav stupidity
[18:13] <burek> with nonsense like this "This program is not developed anymore and is only provided for compatibility. Use avconv instead (see.."
[18:13] <burek> which is obviously false
[18:13] <burek> you could freely uninstall ffmpeg and compile it from source
[18:13] <deni> burek: i have debain on both machines
[18:14] <burek> or try the static versions first
[18:14] <burek> ffmpeg.gusari.org/static/
[18:14] <deni> *debian
[18:14] <burek> see if that works for you
[18:14] <deni> hmm
[18:14] <deni> ok
[18:15] <GRMrGecko> burek: Both looks the same. Which does not look like the video I am trying to mimic. I am testing using the same source so I know it's possible to make it look the same.
[18:15] <burek> bcardarella,
[18:15] <burek> can you please use pastebin.com, to show your command line and its output?
[18:15] <bcardarella> burek: sure
[18:15] <burek> GRMrGecko, can you type ffmpeg -i original.avi
[18:15] <GRMrGecko> The video I am trying to mimic has little blocks when there is movement, the output I've been getting has blocks.
[18:15] <burek> and paste the output at pastebin
[18:15] <burek> just to see what is it
[18:16] <GRMrGecko> ok
[18:17] <GRMrGecko> burek: http://p.webra.in/es
[18:17] <bcardarella> burek: http://pastebin.com/eceqKgCw
[18:18] <burek> GRMrGecko, please give the complete uncut output
[18:19] <burek> bcardarella, this is old version of ffmpeg
[18:19] <bcardarella> probably
[18:19] <GRMrGecko> burek: http://p.webra.in/ei
[18:19] <burek> but, just for the sake of luck, try removing -threads 14
[18:19] <bcardarella> ok
[18:20] <bcardarella> burek: I'm using that version because I hacked the fade filter to fade from white instead of black
[18:20] <burek> bcardarella, I see
[18:20] <burek> I guess you also need to update your ffmpeg
[18:20] <burek> because
[18:20] <burek> either your input is damaged
[18:20] <burek> or mpeg4 demuxer had a bug that was (hopefully) fixed by now
[18:20] <bcardarella> burek: fwiw this is not happening in other inputs
[18:21] <bcardarella> this was a FLV that was converted to MP4
[18:21] <burek> btw, that video was encoded with virtualdub
[18:21] <bcardarella> and the FLV had the same issue but with dup instead of drop
[18:21] <burek> so, you might ask guys from vd to help you with encoding params
[18:21] <burek> they might be able to tell you that, from your source file
[18:22] <burek> bcardarella, can you test with latest static version of ffmeg? (just download and run to see if it works?)
[18:22] <burek> http://ffmpeg.gusari.org/static/
[18:22] <bcardarella> yup
[18:22] <burek> you might be lucky :)
[18:24] <GRMrGecko> burek: From what I can see, it is intact mpeg4 codec.
[18:24] <bcardarella> burek: that is compiled for Linux, isn't it?
[18:24] <bcardarella> I'm on OSX
[18:24] <bcardarella> I'll have to compile from source
[18:25] <burek> yes
[18:25] <burek> I'm afraid you'll have to compile it from scratch :/
[18:25] <bcardarella> np, shouldn't take too long
[18:25] <GRMrGecko> infact*
[18:26] <burek> GRMrGecko, I apologize, the comment about virtualdub was ment for you
[18:26] <burek> i mixed you up with bcardarella :S
[18:27] <GRMrGecko> burek: Oh, no problem. Maybe they did a 2 pass? I'll try that.
[18:34] <bcardarella> burek: ok, now I'm getting this for output with ffmpeg after compiling from HEAD on git http://pastebin.com/EXkULwzY
[18:34] <bcardarella> last line is the error
[18:35] <burek> no, that's ok
[18:35] <burek> tell me just
[18:35] <burek> what you wanted to do with that video
[18:36] <bcardarella> so I originally tried: ffmpeg -i bright.mp4 -qscale 5 -ss 00:03:05 -t 00:31:21 josh.mp4
[18:36] <bcardarella> but got the same error, just figured I would see if it could do a straight convert with no options
[18:36] <burek> ok
[18:36] <bcardarella> should I try -strict experimental ?
[18:36] <burek> are you trying just to extract a part of the video?
[18:36] <bcardarella> yes
[18:37] <burek> well, then it would be better to use -vcodec copy
[18:37] <burek> to avoid reencoding
[18:37] <burek> and keep the quality
[18:37] <bcardarella> ok
[18:37] <burek> try this
[18:37] <burek> ffmpeg -i bright.mp4 -ss 00:03:05 -c copy -t 00:31:21 josh.mp4
[18:38] <bcardarella> nice
[18:38] <burek> :)
[18:40] <bcardarella> burek: actually, this makes the isolation of the files easier but when I am going to merge the video with others I believe I'll still have the same dropped frame/slow encoding issue, right?
[18:40] <burek> well, it depends how do you plan to "merge" your files
[18:41] <burek> ffmpeg generally doesn't support (very well) merging of different inputs
[18:41] <bcardarella> converting to mpeg, appending, then encoding to mp4
[18:41] <burek> so, you are better off using some video editor
[18:41] <burek> ffmpeg is converter
[18:41] <bcardarella> eyah
[18:41] <bcardarella> yeah*
[18:41] <burek> I mean, one really crazy way would be to export all the frames into png/bmp images
[18:42] <burek> and then converting that sequence back to resulting video
[18:42] <burek> but that's just too much :)
[18:42] <bcardarella> lol :)
[18:42] <burek> I would rather find some decent video editor and tried with it :)
[18:42] <bcardarella> the mpeg appending has worked for me in the past
[18:43] <bcardarella> the only issue I've had is with this flv file that is causing the slow encoding. I thought converting to mp4 would have cleared up the dup frames in the encoding process but it seems to have only brought them over
[18:43] <burek> yes but your input is not mpeg
[18:43] <burek> its h264
[18:43] <bcardarella> oh
[18:43] <burek> Stream #0:0(und): Video: h264 (Main)
[18:43] <bcardarella> whoops :p
[18:43] <burek> also, at the end
[18:43] <burek> Stream mapping:
[18:43] <burek>   Stream #0:0 -> #0:0 (h264 -> mpeg4)
[18:43] <burek>   Stream #0:1 -> #0:1 (aac -> aac)
[18:44] <burek> :)
[18:44] <burek> you might try remuxing back to flv (maybe that has introduced problems in the first place)
[18:44] <burek> that won't take long
[18:44] <burek> ffmpeg -i bla.mp4 -c copy out.flv
[18:45] <burek> and then try working with flv file
[18:45] <burek> to see if the conversion produces drops/dups again
[18:47] <bcardarella> burek: ok
[18:57] <GRMrGecko> burek: How do you do a 2 pass in ffmpeg? I tried the same command with audio disabled and the argument "-pass 1" added on and than repeated with audio and the argument "-pass 2"
[18:58] <burek> :)
[19:00] <GRMrGecko> looks like the same thing I did except on the first pass they included the audio. Maybe I have to do the pass argument before mentioning the output codec?
[19:01] <burek> to be honest, I never did 2pass encoding :) so, you'll have to keep trying various commands until you make it :)
[19:01] <GRMrGecko> ok
[20:37] <pasteeater> relaxed: do you have plans to update your static build?
[20:39] <RobertNagy> why do I get this error`[abuffer source @ 000000001617C5E0] Missing key or no key/value separator found after key '48000:1:3'
[20:39] <RobertNagy> 48000:1:3 should be valid for abuffer, shouldn't it?
[20:42] <burek> can you please use pastebin.com, to show your command line and its output?
[20:46] <RobertNagy> http://pastie.org/private/tcmfl3embs6sjj6dwqhjla
[20:48] <burek> ?
[21:04] <RobertNagy> solved it
[21:11] <RobertNagy> how would I do
[21:11] <RobertNagy> aformat=s16:48000:stereo with the new way of passing filter arguments?
[21:16] <RobertNagy> nvm, found it
[21:18] <saivert> this libvo_aacenc gives me very poor sound quality. like it has been resampled to 8 bit
[21:18] <saivert> -acodec aac -strict experimental doesn't have this issue
[21:24] <pasteeater> saivert: someone else mentioned something similar on the ffmpeg-user mailing list recently
[21:25] <pasteeater> http://ffmpeg.org/pipermail/ffmpeg-user/2012-May/006711.html
[21:36] <axisys> how do I create a series of ntsc svcds from 10 mp4 files ?
[21:37] <axisys> I have actually 15 mp4 files.. so I will need multiple dvds
[21:37] <axisys> 15 mp4 files - total size 4.1 G
[21:49] <pasteeater> axisys: ffmpeg -i input.mp4 -target ntsc-svcd output.mpg
[21:49] <axisys> pasteeater: i have 15 mp4 files..
[21:50] <axisys> pasteeater: how do I add multiple? i tried -i 01.mp4 -i 02.mp4 .. it only took the first one
[21:51] <pasteeater> oh, you want to concatenate. i thought you wanted to do each one separately
[21:51] <axisys> pasteeater: i want to fit as many mp4s in each dvd as possible
[21:52] <axisys> pasteeater: is there a way to run a simulated burn to find out how many mp4 files I can fit in each dvd?
[21:52] <pasteeater> so you do not need to concatenate?
[21:52] <axisys> mp4 files are not all of same sizes
[21:52] <axisys> pasteeater: yes
[21:52] <axisys> i am running ubuntu, btw
[21:54] <pasteeater> for f in *.mp4; do ffmpeg -i "$f" -taget ntsc-svcd "${f%.mp4}.mpg"; done
[21:55] <axisys> that will create 15 mpgs right?
[21:55] <pasteeater> yes
[21:55] <axisys> and then cat them and then burn into dvd?
[00:00] --- Tue May 29 2012


More information about the Ffmpeg-devel-irc mailing list