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

burek burek021 at gmail.com
Sun Jul 21 02:05:01 CEST 2013


[00:02] <eth2wlan> I'll try to re-install tomorrow
[00:03] <eth2wlan> Should i remove the current  (wrong version of) ffmpeg with "apt-get --purge remove"?
[00:06] <eth2wlan> I'm sleepy
[00:06] <eth2wlan> (here i't midnight )
[00:07] <eth2wlan> Good night
[00:07] <eth2wlan> Thx
[00:11] <axorb> hey guys, I'm wondering if it's possible to copy codecs but fill in anything that is missing
[00:12] <axorb> I want to start a video 10 seconds in but the first keyframe after that is at the 12 second mark
[00:12] <axorb> so would it be possible to encode those first 2 seconds but reuse the rest?
[00:27] <teratorn> axorb: it does not sound *impossible*
[00:29] <axorb> I'm doing HLS so I'm experimenting with a few things
[00:29] <axorb> overlapping the PTS doesn't seem to work unfortunately
[00:32] <dx926> Hi! Can I ask a question about building compact version of ffmpeg on linux?
[00:33] <llogan> dx926: just ask. no need to ask to ask.
[00:33] <dx926> I have disabled everything by passing that option to configure script and enabled support for mp4, mov, flv. now I want to enable avi file support so that I can convert mp4, mov, flv file to avi file. Sorry if it's a stupid question. What option do I pass to configure script to enable avi? cause I can't convert to avi from one of the mentioned foromat.
[00:36] <llogan> show your configure options
[00:38] <dx926> "llogan" here it is. http://pastebin.com/yQV2kb41
[00:40] <llogan> why --enable-memalign-hack?
[00:41] <saste> llogan, ^^ cargo cult
[00:43] <llogan> in that case, where is --enable-small?
[00:43] <dx926> Actually I did that for android and it's copied from a script found online. Added some of my own options. Sorry if I offended anyone by my stupidity. Before I deploy the program for android I wanted to test how many file format I can convert. I've no idea what that option does.
[00:44] <llogan> no offense. i was just curious.
[00:44] <llogan> nobody knows what it does since it's for windows, IIRC.
[00:45] <dx926> is there any option I used there that's causing the problem? I thought android was armv6 or v7.
[00:46] <llogan> i'm not sure what the problem is because you haven't shown any console outputs that show the problem.
[00:46] <llogan> and --disable-everything --enable-foo is always tricky
[00:47] <llogan> (not that i've really tried it myself)
[00:50] <dx926> LOL here's execution of ffmpeg and error message. http://pastebin.com/z7dm2ZKX
[00:53] <dx926> llogan Do you want any other output?
[00:56] <llogan> i guess you forgot --enable-muxer=avi
[00:58] <llogan> does all of this extra configure work make the result significantly smaller?
[00:58] <dx926> No it
[00:58] <dx926> it's 16MB
[00:59] <dx926> I mean static binary ffmpeg
[00:59] <dx926> that's why I'm trying to make it compact.
[01:00] <llogan> heh. the static builds from burek are ~18 MB (but this particular build is old)
[01:01] <dx926> but if i enable only mp4 and x264 thats 6MB.
[01:04] <dx926> Thanks for your knowledgable help. I appreciate it and your community. Again thanks. Bye!
[01:33] <axorb> hey guys, can you lie about the duration of a video file?
[01:33] <axorb> like the duration reports 10 seconds but the actual content is 15 seconds?
[01:37] <llogan> possibly a bug
[01:43] <axorb> I want to cause it :P
[01:43] <axorb> maybe I should explain more
[01:44] <axorb> I'm generating a HLS video which means 10 seconds chunks, only I'm doing it in a time-sensitive environment
[01:44] <axorb> so I'm faking the m3u8 and hard-coding a duration of exactly 10 seconds, instead of having the segmenter automatically split on keyframes
[01:45] <axorb> this works for reencoding because I can seek and generate an exact amount of video
[01:45] <axorb> but I'm trying to optimize things and pass-through the streams if the input settings match the output settings
[01:46] <axorb> but since the original video does not have keyframes every 10 seconds exactly, each part has some unwatchable video at the start
[01:46] <axorb> I either need to a) re-encode the part up until the first keyframe, then I can copy
[01:46] <llogan> you lost me at HLS. i have no experience with that.
[01:47] <axorb> it's pretty simple, .ts files of 10 second length
[01:47] <llogan> http://ffmpeg.org/ffmpeg-formats.html#hls-1
[01:48] <llogan> -hls_time seconds
[01:48] <axorb> the problem is that time is not exact, it uses the closest keyframe
[01:48] <axorb> the usual work-around is to force a keyframe
[01:48] <axorb> but I can't do that if I'm copying streams
[01:50] <axorb> I can't download the entire file and scan for keyframes unfortunately
[01:51] <axorb> because the file is stored on S3 and we want the user to be able to watch the first part without waiting for it all to be downloaded/scanned
[01:52] <axorb> anyway, at this point I think the only solution is some way of encoding up until the first keyframe, then switching to copy stream mode
[01:53] <axorb> teratorn: said it might be possible, but I imagine I'd have to add the feature myself
[01:55] <axorb> alternatively, some quick way of getting the closest keyframes to 10 seconds without downloading the entire file
[01:55] <axorb> (ie lots of seeking)
[01:56] <axorb> something like
[01:56] <axorb> ffprobe -ss 30 -i file.avi
[01:56] <axorb> and just outputing the current time
[08:58] <fling> When will vp9 encoder be supported?
[09:14] <SirCmpwn> I'm experiencing unusually long encoding times for theora videos on my server
[09:15] <SirCmpwn> ffmpeg there is minimal, only configured with what it needs
[09:15] <SirCmpwn> is there something I might have missed that could speed up encoding?
[09:15] <SirCmpwn> configuration: --enable-gpl --enable-libx264 --enable-libtheora
[09:34] <R0SSI> which part of this code is wrong?
[09:34] <R0SSI> ffmpeg -i "L01 - Realms of Physics".avi -map 0.1 -map 1.0 -vf nullsink\;color -acodec copy out.mkv
[09:34] <R0SSI> I get this error: http://paste.ubuntu.com/5893278/
[09:36] <durandal_1707> R0SSI: you are not using ffmpeg
[09:36] <R0SSI> alo?
[09:37] <durandal_1707> that is "deprecated ffmpeg" from Libav, FFmpeg fork
[09:41] <R0SSI> durandal_1707: So, how can I install ffmpeg; when I run `sudo apt-get install ffmpeg`; the package manager says: "ffmpeg is already the newest version."
[09:44] <R0SSI> I want to decrease the video quality as much as possible, but I want to keep the original audio quality!
[09:47] <durandal_1707> you want to replace video with black frame?
[09:47] <durandal_1707> you could do this with several steps, if single one does not work
[09:48] <durandal_1707> if you use reall ffmpeg, read:
[09:48] <R0SSI> the black is the best!
[09:49] <R0SSI> How can I use the reall ffmpeg! it seems mine is not the real. My operating system is Ubuntu 13.04
[09:50] <durandal_1707> i told you already, where you can download the realy thing
[10:53] <fling> Mplayer2 is not playing encoded file :\
[10:53] <fling> http://dpaste.com/1311391/
[10:53] <fling> also tried mkv
[11:10] <elkng> when I use option   '-c:v png "%3d.png"'   to convert video to many *.png images is there a way to set quality ? or png format has only one quality not like jpeg ?
[11:11] <zap0> png should default to lossless quality
[11:14] <durandal_1707> you can set compression
[11:14] <durandal_1707> looks like its not documented at all
[11:15] <durandal_1707> -compression_level 0-9
[11:58] <elkng> there is an option to set limit on time "-ss 00:10:30 -t 00:00:40" so for "-ss" you set "start" position but for "-t" you don't set "end" position but need to set amount of time you need from that video cuted, and its frustrating because evertime you should calculate that time, isn't it possible to set "end" position ?
[12:00] <fling> elkng: no
[12:01] <elkng> its really frustrating, isn't the logic of that case should be like: you have "start" position and "end" position of the piece of video you want to cut out ?
[12:02] <elkng> but you can set "start" position with "-ss" but then you should calculate how much minutes,seconds its untill end position and use it for second option "-t"
[12:02] <fling> elkng: no, I need to encode exactly 60s starting from 3s, so I use -t 60 -ss 3
[12:04] <fling> elkng: is not 00:10:30 equal to 630?
[12:06] <elkng> yes, so what ?
[12:09] <fling> no need to count minutes&
[12:09] <fling> time ffmpeg -f concat -i svetik.txt -c:a libopus -c:v libvpx-vp9 -strict -2 -t 60 svetik.webm
[12:09] <fling> took real 72m51.697s
[12:10] <elkng> so should I make some script like: "a=$(date +%s 00:10:30) b=$(date +%s 00:00:40); ((c=b-a)); d=$(date -d @${c})" and then: "ffmpeg -ss 00:10:30 -t ${d}"      ?
[12:10] <fling> 0 fps is too slow&
[12:10] <fling> elkng: you may script anything, yes.
[12:11] <elkng> "may script anything" except girlfriends
[12:11] <fling> right :D
[12:13] <joeka> hello
[12:15] <elkng> its strange I copied piece from video first using: "ffmpeg -ss 00:02:45 -t 00:06:54 -i file_in.avi -vcodec copy -acodec copy file_out.avi" then using command: "mencoder -ss 00:02:45 -endpos 00:06:54 -oac copy -ovc copy file_in_2.avi -o file_out_2.avi" and got two files 00:06:54 in length but they sizes are differ, first from "ffmpeg" is 82980KB s
[12:16] <elkng>  econd one from "mencoder" is 76126KB, about 6.5MB difference, why ? they should just raw copy from one file to another file ?
[12:16] <fling> why is vp9 so slow? > http://dpaste.com/1311433/
[12:17] <fling> elkng: different muxing overhead?
[12:17] <fling> elkng: try extracting streams and compare them
[12:18] <fling> also use `-c copy' instead of `-vcodec copy -acodec copy´
[12:18] <joeka> have some of you tried streaming to twitch? With my settings I only produce a black image while audio seems to work fine. If I output to a file with the same settings, it works. settings: http://pastebin.com/kPSsJbyQ
[12:21] <fling> joeka: this works for me > http://bpaste.net/show/115833/
[12:21] <fling> joeka: also try piping with glc&
[12:21] <fling> (if you are capturing opengl)
[12:24] <joeka> only tune and preset different for video?
[12:24] <fling> umm?
[12:25] <joeka> oh wait, no
[12:26] <joeka> you have one ffmpeg call nested in there
[12:26] <joeka> why?
[12:27] <fling> joeka: because it is not possible to double a single encoded stream (or not documented)
[12:27] <joeka> ok
[12:28] <fling> joeka: so if I want to write a file and rtmp with a single ffmpeg, I need to encode twice.
[12:28] <fling> so I use one ffmpeg for encoding, and another ffmpeg for copying stream in a file and rtmp
[12:34] <fling> joeka: just found this > http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide
[12:35] <joeka> fling, thanks
[12:36] <joeka> I read that, but I still have no idea what could be wrong with mine
[12:36] <joeka> maybe twitch just doesn't like me
[12:37] <fling> joeka: use mine?
[12:38] <joeka> noooooo I have to figure it out :D
[13:16] <joeka> fling, I think I give up, even using all your video related options does not help. I can create an flv video without problems, only streaming to twitch does not work.
[13:16] <fling> joeka: do you have a proper key?
[13:16] <fling> joeka: have you tried my script? :D
[13:17] <joeka> the key is not the problem, the audio stream works, only image is missing
[13:18] <joeka> fling, ok ok I try yours
[13:21] <joeka> fling it doesn't stream at all?
[13:27] <joeka> fling I got something that works
[13:29] <fling> give me a link :P
[13:29] <joeka> oh I even know which specific option did the trick
[13:29] <joeka> -pix_fmt yuv420p
[13:32] <JEEB> yes, flash can only handle 4:2:0 and 4:2:2 YCbCr
[13:33] <JEEB> and the streaming service can kick your ass for 4:2:2, possibly
[13:33] <JEEB> the only thing that has hardware acceleration is 4:2:0 YCbCr
[13:40] <joeka> if only the audio would be in sync with the video now :D
[14:45] <zap0> just move closer/further away until it is.
[14:45] <zap0> light/sound travel at different speeds.
[17:16] <elkng> is it possible to convert *.gif file to a set of frames in one png or jpg file, like sprites for games they are all in one file with some grid and some background color that would be transparent ?
[18:25] <iio7> I have a 3D mkv file side-by-side. Is it possible to use ffmpeg to convert it into 2D, and if yes, how do I do that?
[18:25] <iio7> It's "Side by Side (left eye first)".
[18:30] <mark4o> iio7: you can easily get left-only or right-only using crop or stereo3d filters
[18:30] <mark4o> I don't think ffmpeg has a filter that can average them if that's what you are looking for
[18:30] <iio7> How do I get left only?
[18:31] <mark4o> just crop to left side, or use -vf stereo3d=sbsl:ml
[18:31] <mark4o> http://ffmpeg.org/ffmpeg-filters.html#stereo3d
[18:35] <iio7> I get "No such filter: 'stereo3d'"
[18:36] <mark4o> are you using an old version?  should be non problem, use crop filter instead
[18:36] <mark4o> http://ffmpeg.org/ffmpeg-filters.html#crop
[18:38] <mark4o> ffmpeg -i input -vf crop=in_w/2:in_h:0:0 output
[18:41] <iio7> I'm going to compile the latest, do I need any kind of enable-filter-X?
[18:42] <mark4o> stereo3d is enabled by default
[18:42] <iio7> thanks!
[18:43] <norbert_> hi, I'm trying to screen record a Flash game with ffmpeg; the output is a green rectangle; any ideas/suggestions?
[18:46] <norbert_> if I try to make a screenshot of the game with GIMP then the result is a transparent area without content
[18:46] <norbert_> it's probably related to how the video driver puts stuff on the screen, but I'm hoping I can keep the software settings as they are and still use ffmpeg to screen record
[19:02] <norbert_> nobody have any suggestions?
[19:02] <norbert_> *has
[21:28] <Zerxer> I converted an AVI file that was created with Fraps, codec ID of FPS1, to an mp4 file. Plays fine on Windows and OS X. I also converted an AVI file that was created using a capture device, so it was a completely raw/uncompressed video, codec ID of UYVY. I did the same conversion (to an mp4 file) and it plays fine on Windows, but OS X has black video (audio is fine). I checked the media info of both files and each are nearly sim
[21:28] <Zerxer> (using AVC format) with only minor differences. The first mp4 file has a profile of "High at L3.1" while the second has "High 4:2:2 at L3.1". The Chroma subsampling is also different on each, 4:2:0 on the first and 4:2:2 on the second. Only other difference is the resolution and the bitrate.
[21:29] <Zerxer> I didn't set any advanced settings when using ffmpeg at all, just setting output framerate to 30
[21:30] <Zerxer> I'm new to using ffmpeg so I'm hoping there's some command line arguments I can use to make the second video's conversion completely similar to the first, or something else that will make the video compatible with OS X playback. It's worth noting that I did install something on OS X for allowing QuickTime to play more codecs than what it can by default.
[21:48] <Zerxer> Okay, so as it appears is true, OS X cannot play 4:2:2 YUV MPEGs. Any way to have ffmpeg force it to 4:2:0 ?
[21:48] <klaxa> see ffmpeg -pix_fmts
[21:51] <Zerxer> Thanks, would you know which one I should be using? sounds like yuv420p is what I'd want, just based off the name
[21:51] <mark4o> -pix_fmt yuv420p
[21:52] <Zerxer> then again, it says yuv420p would be 12 bits per pixel, while the media info on both of my files (the one that works and one that doesn't) has a bit depth of 8
[21:53] <Zerxer> unless that doesn't matter
[21:54] <mark4o> yes it is 8 bits, but there is only 1 u and 1 v for every 4 pixels
[21:54] <Zerxer> thanks, I'm going to try this right now. it's a 2 hour video so it'll take a bit to know if all is well
[21:55] <klaxa> just encode the first few seconds and check
[21:55] <klaxa> add -t 30
[21:55] <klaxa> that will encode the first 30 seconds
[21:55] <klaxa> you don't have to encode the entire file to check if it would work
[21:56] <Zerxer> ah great, will do. I figured a flag like that would exist and secretly hoped you'd mention it
[21:59] <Zerxer> worked great, thanks! no problems on OS X now
[21:59] <Zerxer> I'm knocking a 637GB file down to below 4GB with this, haha
[21:59] <klaxa> haha wow
[22:00] <Zerxer> using a blackmagic intensity shuttle to capture hdmi input from a game console, and it produces huge files at 720p
[22:01] <klaxa> hardware encoder probably?
[22:02] <Zerxer> not sure, possible since it is an external device connected via usb 3
[22:03] <Zerxer> sadly the video is out of sync, not sure if that's because of the hard drive speeds I'm writing to, or just the device/software isn't that great, but I figure I can fix that later by detaching the audio in my movie editor
[22:04] <Zerxer> girlfriend is starting to do let's plays on youtube and I'm the lucky tech guy
[22:05] <klaxa> heh
[22:05] <klaxa> well you're the lucky guy for having a girlfriend
[22:05] <Zerxer> no doubt
[22:54] <braincracker> hey guys, there's me riding my new trike http://esteedv.files.wordpress.com/2011/11/death_rides_a_pale_trike_by_mjranum_stock.jpg  so what's up ?
[00:00] --- Sun Jul 21 2013


More information about the Ffmpeg-devel-irc mailing list