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

burek burek021 at gmail.com
Sun May 19 02:05:01 CEST 2013


[00:05] <Digit> anybody here ?
[00:08] <JodaZ> Digit, do the mapping explicitly
[00:09] <Digit> what does that mean...
[00:09] <JodaZ> nvm
[00:09] <Digit> :(
[00:09] <Digit> how do i add the video file audio ?
[00:13] <JodaZ> Digit, try -map "[out]" -map 0:1
[00:14] <Digit> before the -f thing ?
[00:18] <Digit> wow it works :) i love you Jodaz :)
[00:18] <Digit> i send you a lot of good energy :) thanks a lot
[00:19] <Digit> i hope one day ... i'll understand those complex filters :P
[00:21] <JodaZ> Digit, its not that hard, your input is numbered so you -map what you want in the output
[00:21] <Digit> not that hard for you ;)
[00:21] <JodaZ> Digit, also, see if -map 0:a works instead, because 0:1 is specific for that video
[00:22] <Digit> well it works and i'm happy ^^
[00:22] <Digit> i am writing a gui for ffmpeg now it's really nice : )
[00:25] <Digit> lol now it seems it doesn't work with mpegts udp
[00:25] <Digit> wwwwwwwow god lol
[00:27] <Digit> Unable to find a suitable output format for 'filter_complex' gulp i start again ^^
[00:35] <Keshl> *God D:
[00:40] <Digit> any idea why with udp as destination i get no image ?
[00:58] <JodaZ> hmm, can i seek to a frame number ? like the 10th frame ?
[01:14] <Digit> new problem :D i am sending my video with udp mpegts then i use another ffmpeg process to send it to internet with rtmp but sometimes i get only the sound and no image ! Any idea how i could fix it ?
[01:14] <Digit> or what should i check
[01:16] <Digit> oh i send the udp mpegts to local :) 127.0.0.1
[01:28] <Digit> and when i launch my 2 ffmpeg processes with the same command line i never get the image. ...
[01:50] <Digit> any help ?
[02:46] <Keshl> So, I have a video file that has a lot of motion. It ramps up from slow speed to high speed. I have taken minute-long samples from various parts of the footage and encoded them with the same parameters (ffmpeg -i foo.mp4 -vcodec libx264 -preset medium -crf 25 -movflags faststart -pix_fmt yuv420p OUT.mp4) and found that the beginning parts encode nearly twice as well (in terms of filesize reductions) as the later parts, and there comes a
[02:46] <Keshl> steep point where it suddenly cuts off even as it gets faster. What I mean is, at the beginning of the video it compresses to about 27 megs. The middle goes to about 44 and the end is almost identical, only a few KB off. I have also noticed that, due to the high speed of the footage near the end, that individual frame quality makes much less of an impact. So, my question is, is there some way I can set -crf 18 at the beginning and ramp it
[02:46] <Keshl> down to -crf 25 as the video goes on? Or something like that?
[02:46] <Keshl> Or somehow tell it exactly at what second or frame to change the CRF? That'd work too.
[02:47] <Keshl> Acrtually that'd work better.
[02:48] <Kuukunen> Keshl: well, x264 command line has zones
[02:48] <Keshl> Can'ya elaborate on that, oÉo?
[02:48] <Kuukunen> but to me it sounds silly to do that just because the first part compresses better
[02:50] <Kuukunen> I think the ratecontrol does a very good tradeoff for those
[02:51] <Keshl> Not just the first part.
[02:51] <Keshl> It makes more sense if I show part of the clips, one moment..
[02:52] <Keshl> Kuukunen: ftp://zone@connect.archgeekit.com:21918 -- Hug the "ffmpeg" folder.
[02:54] <Keshl> Basically as the game progresses, the visuals constantly change between motion that's easily predicted to stuff that's much harder to predict and back again. At some point, because the game is moving so fast, CRF stays at a flat 33 according to ffmpeg's status output. The change in quality between visuals actually becomes noticable (in other words, CRF stops doing its job). I feel I really do need to help it.
[02:54] <Digit> hi
[02:54] <Keshl> This is especially noticable in the second video when it changes from yellowish to white.
[02:54] <Digit> bcs you're using a too high value for crf
[02:54] <Keshl> I'm using 25, actually. <É<
[02:54] <Digit> too low
[02:54] <Digit> i mean
[02:55] <Keshl> oÉo Any lower and it all looks like crap.
[02:55] <Digit> you need a lot of bandwidth to stream with that value
[02:55] <Keshl> Not trying to stream, oÉo.
[02:55] <Kuukunen> Keshl: you mean qp stays at 33?
[02:55] <Keshl> Kuukunen: Yeah.
[02:55] <Digit> why don't you try without crf
[02:55] <Keshl> Digit: I'm trying to achieve what looks to be equal quality through the video, not a constant bitrate.
[02:57] <t4nk765> Hi there, I'm trying to convert to mkv to mp4 and I get an error message of could not write header for output file #0. here's my pastebin: http://pastebin.com/cQxFvM0L
[02:57] <Digit> i thought you were streaming it
[02:57] <Keshl> Digit: Nope, oÉo.
[02:58] <Keshl> t4nk765: Try this: ffmpeg -i (blah.mkv) -vcodec libx264 -preset ultrafast -crf 25 -movflags faststart -pix_fmt yuv420p -acodec copy OUT.mp4
[02:58] <Kuukunen> um
[02:58] <Digit> are you sure the program can write to that directory
[02:58] <Kuukunen> no you prolly don't want to reencode :P
[02:58] <Keshl> OH.
[02:58] <Keshl> My bad.
[02:59] <Keshl> Kay. Ignore me on that. Do what Digit said. <.<
[02:59] <Kuukunen> Keshl: did you use ultrafasat?
[02:59] <Digit> ??? i said what ?
[02:59] <Kuukunen> ultrafast*
[02:59] <Keshl> Kuukunen: No, medium.
[02:59] <Digit> ultrafast is shitty
[02:59] <Keshl> I just saud ultrfast to him, oÉo.
[02:59] <llogan> t4nk765: flac can't go into mp4 container
[02:59] <t4nk765> Keshl:what does crf and movflags and pix_fmt do?
[02:59] <Keshl> I can't think of a good way to explain them.
[03:00] <Digit> it's just about your codec parameters
[03:00] <Keshl> Thankye, oÉo.
[03:00] <llogan> oops...i meant https://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide
[03:00] <Kuukunen> Keshl: oh yea, just google: x264 zone
[03:00] <Kuukunen> to get info
[03:00] <Keshl> Danks, oÉo.
[03:01] <Keshl> Though since the transfers are "almost" done I'll wait for your advice first in case there's something better I can try.
[03:01] <Digit> - options: is not correct
[03:01] <Digit> Keshl
[03:01] <Keshl> oÉo? Where?
[03:01] <llogan> t4nk765: see link i just provided for crf. movflags allows your video to begin playback before it is completely downloaded by client (as in viewing your video in web browser).
[03:02] <llogan> "-movflags faststart" specifically
[03:02] <Digit> [mp4 @ 0xa01f920] track 1: could not find tag, codec not currently supported in container
[03:03] <Keshl> Digit: Are you the one downloading my videos? You know none are done yet, right?
[03:03] <Keshl> Well, now the first one is.
[03:03] <Digit> i'm downloading nothing
[03:03] <Keshl> oÉo. Nevermind then. <É<'
[03:03] <t4nk765> I I see. thanks for that. although the command fails as someone has pointed out I can't put flac into mp4. what is a good alternative audio you can suggest?
[03:03] <Keshl> t4nk765: Don't supply -acodec, it'll handle it its self.
[03:03] <Digit> mp3
[03:04] <llogan> t4nk765: most common is AAC
[03:04] <llogan> https://ffmpeg.org/trac/ffmpeg/wiki/AACEncodingGuide
[03:04] <llogan> libfdk_aac is usually recommended now
[03:04] <Digit> i got a question too :)
[03:04] <t4nk765> should I specify AAC or just let the program take its course by omitting acodec like keshl has said?
[03:05] <Digit> one ffmpeg process sends a video to udp 127.0.0.1 and another ffmpeg process use it as a source and sends it to a server using Rtmp
[03:06] <llogan> t4nk765: selection of encoder can depend on your ffmpeg configuration, and not all encoders are equal, so it is best not to omit
[03:06] <Digit> the problem is that i need to wait for some seconds before i launch the second process or i get only audio and no image....
[03:07] <Digit> is there a way to fix that ?
[03:07] <Kuukunen> Keshl: I was downloading them
[03:07] <Keshl> Kuukunen: oÉo. I figured it was you or Digit. Why'd you cancel the other two? They was so close and I only has 200kb upload bandwidth .É.
[03:08] <Kuukunen> Keshl: personally I think the quality is pretty similar among the three...
[03:08] <Kuukunen> have you been looking at still pictures?
[03:08] <llogan> t4nk765: yuv420p http://en.wikipedia.org/wiki/Chroma_subsampling
[03:08] <Keshl> Watch the ship. >w> And nu, oÉo.
[03:08] <t4nk765> alright. thanks for your help :D
[03:09] <Kuukunen> Keshl: also, try veryslow
[03:09] <Kuukunen> usually it's fast enough :P
[03:09] <llogan> most players only handle YUV 4:2:0 planar when you encode H.264 video
[03:09] <Keshl> Kuukunen: Why not placebo then? XD
[03:09] <Digit> placebo sux
[03:09] <Keshl> The problem is, normally, I actually use placebo.
[03:09] <Keshl> But then playback only works if you're running an nVidia Titan or something.
[03:09] <llogan> placebo is a joke and a waste of time
[03:09] <Keshl> <.<
[03:09] <Kuukunen> Keshl: placebo isn't worth it
[03:10] <Kuukunen> that's why it's called placebo
[03:10] <Keshl> oÉo.. Why speciffically? .É.
[03:10] <Kuukunen> Keshl: uses lots more time for no real gain
[03:10] <Keshl> ...Holly, veryslow's epicier. o_o
[03:11] <Kuukunen> Keshl: also, which direction did you even want to tweak the faster half?
[03:11] <llogan> less than 1% over veryslow
[03:12] <Digit> any idea for my problem ?
[03:12] <llogan> sleep 3; ffmpeg ...
[03:12] <Digit> and another question is it possible to use normal filter with a complex filter ?
[03:12] <Keshl> Kuukunen: It's not the faster part sof the game that get me, but see how in the beginning the course just flashes? That part I'm fine with being low quality (Except I want the first few seconds to be really high quality, just cuz.), but I want the stuff with more detailed visualizers (like the yellow part in the second video) to be higher quality.
[03:13] <llogan> Digit: what do you mean by "normal" filter?
[03:13] <Digit> a not complex one :)
[03:13] <Keshl> And then at the very end (zone 75 and past) there's no visuals but it's so fast I'd like to turn the quality up again, so.
[03:13] <Digit> -vf
[03:13] <Digit> use the tune grain
[03:13] <Kuukunen> Keshl: why do you want to force more bitrate in places where you can't see anything because it's moving so fast? >_>
[03:14] <Keshl> Kuukunen: Because OCD>
[03:14] <Keshl> And because almost nobody gets that far.
[03:14] <Keshl> <.<
[03:14] <Keshl> It's very rare to see people pass zone 75. So.
[03:14] <llogan> -vf is used for a simle filtergraph: one input and one output. -filter_complex is for complex filtergraphs, "which cannot be described as simply a linear processing chain applied to one stream" such as more than one input and or output
[03:15] <Kuukunen> Keshl: use qp then :P
[03:15] <llogan> http://ffmpeg.org/ffmpeg.html#Complex-filtergraphs
[03:15] <Digit> so i cannot use both ?
[03:15] <Keshl> Kuukunen: ....Oh duh. Okay, thanks. -É-
[03:15] <Digit> at the same time i mean
[03:15] Action: Keshl purrpaws at.
[03:15] <llogan> Digit: no. there is no reason to
[03:16] <Kuukunen> Keshl: but what you end up with in the end, imho, is bigger file with worse quality :P
[03:16] <Digit> well the reason is taht i don't know how to add my "normal" filters to the complex one :D
[03:16] <llogan> what are you trying to do?
[03:16] <Keshl> Kuukunen: Okay, then what do you recommend I try, oÉo? Just stick to CRF?
[03:17] <Kuukunen> yea
[03:17] <Keshl> Even though qp stays at 33 throughout?
[03:17] <Keshl> oÉo
[03:17] <Kuukunen> if it's not supposed to be looked at still frame by still frame, just use xrf
[03:17] <Kuukunen> crf*
[03:17] <Digit> well i use now a complex filter to overlay an animated image it was not working with the normal filter
[03:17] <Digit> but i had a normal filter for cropping and scaling
[03:17] <llogan> Keshl: http://slhck.info/crf.html
[03:17] <Kuukunen> don't look at the qp, look at the quality :P
[03:17] <Keshl> oÉo...
[03:18] <sacarasc> Owo?
[03:18] <Kuukunen> Keshl: if it's not enough, use higher quality crf
[03:18] <Keshl> It's :3 rotated sideways, oÉo.
[03:18] <llogan> i think that's a ball-sack in the middle
[03:18] <Keshl> See http://4.bp.blogspot.com/-bMlNRnlkteU/UGU1qZzuZzI/AAAAAAAAAek/Vmn_3mor1oo/s1600/happy-cat-800.jpeg
[03:18] <Kuukunen> Keshl: 25 is pretty low quality
[03:19] <Keshl> Kuukunen: 18 has no noticable improvements and more than doubles the filesize. <É<
[03:19] <Keshl> Doesn't iomprove till I'm near 8 or lower. D:
[03:19] <Keshl> *improve
[03:19] <Keshl> llogan: No. These are balls: ~
[03:19] <Keshl> (Actual unicode character!)
[03:19] <llogan> heh
[03:19] <Keshl> So there.
[03:19] <Kuukunen> Keshl: I don't believe you about not getting improvement :P
[03:20] <Keshl> Kuukunen: Okay, I'll toss the raw footage at you. It's about 200 megs. Which one you want, oÉo?
[03:20] <Kuukunen> whichever :P
[03:21] <llogan> Keshl: did you read the link I provided?
[03:22] <Digit> http://pastebin.com/sRDP5ZJ0
[03:23] <Digit> and any idea for my first question ?
[03:23] <Keshl> llogan: Multitasking, getting around to it, oÉo.
[03:23] <Digit> my program is already multistaking the 2 processes
[03:24] <Digit> but if the second ffmpeg is not launched at least 6 sec after the first one i get no image
[03:24] <Digit> only the sound is streaming
[03:26] <Keshl> Kuukunen: Kay maybe I am obsessing over numbers now that I look at it closely.. Annnyway, same link, ftp://zone@connect.archgeekit.com:21918 , just in the "RAW" folder. oÉo.
[03:26] <Digit> so i wonder how to make my program wait for something from the first ffmpeg to know it's ready to launch the second ffmpeg
[03:27] <Digit> and what does it need to wait for ...
[03:27] <Keshl> Just tell it to wait 10 seconds, oÉo?
[03:28] <Keshl> Kuukunen:  Also, -veryslow compared to -medium. The results are.. Really, weird.
[03:28] <Keshl> But I think they're important to mention.
[03:28] <Keshl> On the first video, it goes from 27,282 KB to 23,515 KB.
[03:28] <Keshl> On the second.. Absoutely, no change.
[03:28] <Kuukunen> sounds reasonable
[03:28] <Digit> slower is tha best
[03:28] <Keshl> Still doing the third.
[03:29] <Keshl> And I'm suire I did -veryslow, not accidently re-ran -medium.
[03:30] <Keshl> And I wanna point out, the second one has the most "intense" visualizer of the three videos.
[03:30] <Kuukunen> Keshl: veryslow uses different ways of doing things... all of those methods are not as effective on fast paced video
[03:30] <Keshl> (As in, the footage in general is the least predictable)
[03:30] <llogan> Digit: you want to scale and crop the output of the overlay, or the input(s) of the overlay?
[03:30] <Keshl> Third is smaller, but I accidently stopped it a few seconds before finishing. <.<
[03:31] <Keshl> Okay, trying -slow...
[03:31] <Digit> i want to scale the input video
[03:31] <Kuukunen> Keshl: veryslow is better
[03:31] <Kuukunen> it's just slower than slower
[03:31] Action: Keshl tries placebo!
[03:31] Action: Keshl waves a flag!
[03:32] <llogan> Digit: which input?
[03:32] <Digit> before it gets compressed with x264
[03:32] <sacarasc> Prepare for it to take 10 times as long for almost no improvement, Keshl.
[03:32] <Digit> test.avai
[03:32] <Digit> test.avi
[03:32] <Keshl> sacarasc: Well, veryslow took about four times as long as medium and the filesize ws identical. <.<
[03:32] <Keshl> *was
[03:32] <Kuukunen> Keshl: what about quality?
[03:32] <Keshl> Worse.
[03:32] <Keshl> Honestly.
[03:33] <Kuukunen> ok, I can try that one too :P
[03:33] <Keshl> I've noticed that before. Medium always looks better than the slows to me, then placebo suddenly looks awesome.
[03:33] <Keshl> (And is still smaller than medium)
[03:33] <Digit> lol slower is a lot better
[03:33] <Digit> or use tune film
[03:33] <Keshl> Okay, okay, how about I torrent these raw videos instead and you can all play with them?
[03:33] <Keshl> XD
[03:35] <Keshl> -slow came out with about 1.5 megs smaller than -veryslow, and looks better.
[03:36] <Keshl> Trying veryslow next, then placebo, cuz reasons..
[03:36] <llogan> Digit: -filter_complex "[0:v]scale=iw/2:-1,crop=iw:ih-20[foo];[foo][1:v]overlay[out]"
[03:36] <llogan> the [out] is superfluous in this case, probably
[03:37] <Digit> but my image is not there any more ?!
[03:37] <Digit> i mean my animated gif
[03:38] <llogan> console output!
[03:38] <Digit> you know the one in my pastebin
[03:38] <llogan> my crystal ball is broken from overuse
[03:38] <Digit> http://pastebin.com/sRDP5ZJ0
[03:38] <llogan> ok. i'm done trying to help you.
[03:39] <Digit> ??
[03:39] <llogan> you never include the ffmpeg output
[03:39] <llogan> even after being asked repeatedly over the day
[03:39] <Digit> yes but it's not for a problem, it's bcs i don't know how modify the command
[03:39] <llogan> i gave you the filter_complex. what else do you need?
[03:40] <Digit> well i leave you alone you seem really upset thanks anyway...
[03:41] <Keshl> slower, about 1 meg smaller than slow, worse quality.
[04:10] <Keshl> Placebo, biggest benefit so far at 3 megs. Quality is best.
[04:10] <Keshl> So there.
[04:11] <Keshl> (Too bad you need a $1,000 GPU to play it..)
[04:13] <Digit> i want to thanks again, now my animated gif is displayed correctly on my stream, i learned a lot here, see you next time  : )
[04:14] <klaxa> <Keshl> (Too bad you need a $1,000 GPU to play it..)
[04:14] <klaxa> haha what
[04:23] <Keshl> klaxa: Playing 720p at 60 FPS is painful.
[04:23] <Keshl> <.<
[04:23] <Keshl> Gets choppy on Placebo unless you've got seriously powerful hardware.
[04:24] <Keshl> klaxa: Hug ftp://zone@connect.archgeekit.com:21918 and poke ffmpeg/OUTx264PLACEBO_2.mp4
[04:46] <Kuukunen> Keshl: uploaded some screenshots: http://kuukunen.net/misc/zon/
[04:47] <Kuukunen> every two are a pair
[04:47] <Kuukunen> like, a<->b, c<->d, etc
[04:47] <Kuukunen> which ones do you think are best looking? :V
[05:19] <Keshl> Kuukunen: A, D, F, G, J , oÉo.
[05:34] <Keshl> .... So I finally read that link llogan provided.
[05:35] <Keshl> Changed crf to 23. Everything's happy-squee now.
[05:35] <Keshl> ... ..... So yeah.
[05:35] <Keshl> ^É^'
[05:35] <llogan> 23 is also the default.
[05:37] <Keshl> Yes, I read that bit.. XD
[07:03] <Keshl> .É. What'd I break? D:
[07:03] <Keshl> Oh right.
[07:03] <Keshl> What'd I break? D: http://pastebin.com/Kd6vxUxS
[07:07] <Keshl> Wow, /already/, Google indexed that.
[07:13] <angelsl> hi, how do i get ffmpeg to encode a PNG + a .WAV to a x264 and ending the video when the .wav ends?
[07:13] <angelsl> right now i have ffmpeg -loop 1 -i f.png -i TITLE.wav -c:v -tune:stillimage -r 1 test.mp4
[07:13] <angelsl> but that never ends, probably because of -loop 1
[07:17] <Keshl> Gota, was just outdated, oÉo.
[07:17] <Keshl> angelsl: Supply -t (Total length of video in seconds)
[07:18] <angelsl> there's no way to get ffmpeg to stop when one input ends?
[07:20] <Keshl> angelsl: Dunno, oÉo.
[07:20] <angelsl> found it, -shortest
[07:20] <angelsl> thanks :)
[07:20] <Keshl> Shiny -É- -Paws at.-
[07:20] <Keshl> Welcomes opwo
[07:20] <Keshl> *oÉo
[07:21] <Keshl> What's the latest stable, official release for ffmpeg, oÉo? Like, the actual version number. Is it still 0.9.2?
[07:24] Action: Mavrik points at topic.
[07:24] <Keshl> Oh.
[07:24] Action: Keshl expands.
[07:24] <Keshl> .... Ohhhhh
[07:24] <Keshl> Danks ^É^
[07:26] <Keshl> .É.!
[07:26] <Keshl> http://pastebin.com/Lcw0rB1K Whus I do? D:
[07:26] <Keshl> (It does keep going, but what's it mean and am I gunna die now? D: )
[07:27] <Mavrik> the decoder is having problems with input stream
[07:27] <Mavrik> either its broken, you're running out of bandwidth, etc.
[07:28] <Keshl> Must be broken, then. .É.
[07:29] <Keshl> Most that'll happen is probably some "green frames", right? Or something like that? oÉo?
[07:40] <angelsl> ffmpeg always overshoots -shortest when i'm encoding to h264
[07:40] <angelsl> but everything else works fine
[07:54] <lnostdal> hi guys, you probably get this question all the time, but the official(?) ubuntu ppa seems out of date ..    and i prefer the "real" ffmpeg to the fork included in ubuntu ..     is there another "semi-official" ppa out there people generally use?
[08:08] <retard> lnostdal: people use a static binary build
[08:10] <retard> burek gracefully provides them at http://ffmpeg.gusari.org/static/
[08:36] <lnostdal> doesn't seem to work with pulse / also ..   hm
[08:36] <lnostdal> alsa*
[08:38] <lnostdal> i'll just build from source i guess
[09:31] <lnostdal> "opus not found" ..  not sure how to build (configure) this against a local static opus..
[09:52] <burek> lnostdal --with-opus=path perhaps?
[09:55] <burek> --enable-libopus
[11:10] <doub> is it possible to do basic video editing with ffmpeg? basically all i need is only convert some specified segments of the input file
[11:25] <retard> doub: yes
[11:32] <doub> i've found the -t and -ss option, is that the right method to do that? can i specify several segments?
[12:31] <Digit> hi :o)
[13:06] <retard> doub: no, but you can do it in stages
[13:06] <retard> extract the relevant clips, then combine them again
[13:07] <Digit> do what ?
[13:09] <retard> he wants to
[13:10] <retard> or she, though doub sounds male to me for some reason
[13:23] <Digit> when ffmpeg read some video files is it possible to choose deblocking or some postprocessing ?
[13:29] <retard> doub: you might have missed my reply due to timing out, but split the task into steps, extract each clip then combine
[13:29] <retard> or use a more high level tool
[14:05] <Digit> how do i become a moderator ? :)
[14:06] <esing>  Hi, would you recommend to capture a 15-20 years old vhs cassette (PAL, interlaced, composite, encoding with mpeg-2@ a bitrate of 9800kbps) with uyvy or yv12(=yuv420) or even another color space. I have no clue which one to pick
[14:12] <Digit> it depends more where you will use it , i think
[14:14] <Digit> esing read this http://www.spearsandmunsil.com/portfolio/choosing-a-color-space-2/
[14:15] <esing> Thanks Digit
[14:15] <Digit> you're welcome
[14:34] <luc4_linux> Hi! I have an application which muxes h264 into mp4. Seemed to work. Now I ported to another system but I'm getting: [NULL @ 0x13e67a0] Unable to find a suitable output format for 'out.mp4'. I suppose something is not compiled in this version of ffmpeg. Anybody who can give me a hint on what maybe?
[14:35] <Digit> PASTE TO http://ffmpeg.pastebin.com/ ! If you are asking about CLI usage, paste the complete command and output to the paste bin.
[14:37] <luc4_linux> pastebin one single line?
[14:37] <Digit> what do you mean by "an application" and "ported to another system" , that's not sharp enough
[14:37] <Digit> not one single line all the ouput too
[14:38] <luc4_linux> Digit: I built my code under linux. Seemed to work. Now I want to compile for android, linking to ffmpeg compiled for android. I compiled the libs for android but I'm getting that. And by that, I mean only that. Nothing more.
[14:39] <Digit> well if you dont pastebin all the output you'll get probably no help here
[14:39] <luc4_linux> Digit: ...? That is all the output.
[14:40] <Digit> the complete command and output
[14:40] <luc4_linux> Digit: command? not using the ffmpeg command...
[14:40] <luc4_linux> Digit: I'm using libavformat and libavcodec.
[14:40] <JEEB> :)
[14:40] <Digit> :)
[14:40] <luc4_linux> Digit: and again, that is all I get from the libs. The output is a single line.
[14:41] <JEEB> luc4_linux, well it's saying that it can't guess what you want from 'out.mp4'
[14:41] <JEEB> do you have the mov/mp4 muxer in there?
[14:41] <JEEB> in the ffmpeg you're linking against
[14:41] <JEEB> tried manually specifying the format?
[14:42] <luc4_linux> JEEB: I suppose yes, I enabled that in cofigure after --disable-everything. Do I need to enable something else?
[14:43] <JEEB> are you sure you have file output as such enabled, too?
[14:43] <JEEB> --disable-everything can be rather limited :P
[14:44] <Digit> :D
[14:44] <JEEB> anyways, try with a standard ffmpeg first, and then move to a more limited one after making sure it works
[14:44] <luc4_linux> JEEB: ah ok right, I'll try that, thanks!
[14:46] <luc4_linux> JEEB: Before I compiled a slightly different version, and got "Protocol not found." when trying to open the output file. Do you know what this means?
[14:48] <JEEB> not completely sure because I have no idea what exactly you did nor do I remember the internals of libavformat, but I have a hunch that that was you missing the whole file writing thing :P
[14:48] <JEEB> but... go try out that same thing without everything disabled first
[15:12] <esing> Digit, Hmm.. to me the safest way seems to pick 4:2:2. From what I read from your link, it looks like most players do good conversions from 4:2:2. Did you read the article too?
[15:16] <Kuukunen> Keshl: lol, you might want to look at a and b again, because I think that's completely clear :P
[15:17] <Kuukunen> Keshl: the last four you picked, in order, veryslow over slow, veryslow over medium, veryslow over slow, veryslow over medium
[15:17] <Kuukunen> which makes sense >_>
[15:19] <Kuukunen> (A is veryslow crf 25 and B is veryslow crf 18)
[15:21] <esing> Um.. this confuses .... you see in following link that mpeg2 DVD is restricted to 4:2:0 http://en.wikipedia.org/wiki/MPEG-2#DVD-Video   My question: Does that mean that if I encode something to mpeg-2 that I am not restricted to 4:2:0, but can also use 4:2:2 and play the encoded mpeg2 video from the computer or usb stick on a display in 4:2:2 and only if I create a DVD iso from the mpeg2 encode that only _then_ Iam restricted to the colorspace 4:2:0 ?
[15:24] <Kuukunen> esing: mpeg2 itself allows 4:2:2 and 4:4:4
[15:24] <esing> Good to know thanks
[15:25] <Digit> anyway why would you use something else than 4:2:2 with a poor quality vhs
[15:25] <Digit> you will not even see the difference
[15:25] <Kuukunen> esing: mpeg2 also allows resolulutions like 1920x1152, but it doesn't make much sense for DVDs to allow that :P
[15:26] <Digit> for vhs source i would not even use more than 640x
[15:26] <esing> Kuukunen, If I have a 4:2:2 mpeg encode and I want to create a DVD from it (with dvdauthor) ... do I then have to care about the conversion from 4:2:2 to 4:2:0 , or does dvdauthor does that job
[15:26] <Kuukunen> umh :P
[15:26] <Digit> you have to care about it if you want to use it somewhere like on justin tv
[15:27] <Kuukunen> esing: you're making it a DVD?
[15:27] <esing> Kuukunen, I make it primarily an mpeg2 encode storing it on my hdd, but later I will make some dvd's out of it
[15:27] <Kuukunen> if you want to store it on your hdd, why on earth would you use mpeg2? :P
[15:28] <Digit> to move it to dvd after that
[15:28] <esing> Yes, because I think it is easier to put mpeg2 to dvd
[15:28] <Kuukunen> Digit: yea, but if he's planning on making it a 4:2:2 mpeg2, he has to reencode anyway :P
[15:28] <Digit> life is life :D
[15:28] <esing> So the wikipedia information is right, I can't put that 4:2:2 on a dvd hmm
[15:29] <Digit> wikipedia is always right :D
[15:29] <esing> Heh :)
[15:30] <Digit> anyway i use files on my dvd so i can use h264 compression
[15:30] <Kuukunen> esing: I'd just capture it losslessly (or near losslessly) then filter it and encode it to H.264 for storage...
[15:30] <Kuukunen> esing: if you know you want it on DVD, encode it from the filtered lossless to the DVD format
[15:31] <Kuukunen> and yea, of course you can store files on DVDs
[15:31] <Kuukunen> but I assumed that you want an actual playable DVD
[15:31] <Digit> well now every players can read files ...
[15:31] <Digit> no ?
[15:33] <esing> Iam not sure if it is worth to encode it to H.264 for storage in comparision to mpeg-
[15:33] <esing> mpeg2*
[15:33] <Kuukunen> esing: I thought you wanted higher quality :P
[15:34] <esing> Kuukunen, I think that mpeg2 with the right options should make nearly no difference for a vhs tape compared to h264
[15:34] <Digit> are you kidding me ?
[15:34] <Kuukunen> esing: well, of course you can make a high quality mpeg-2
[15:34] <Digit> with a vhs ??? never
[15:34] <Kuukunen> esing: it just means it's four times bigger than the h.264
[15:34] <Digit> that's right
[15:35] <Kuukunen> (not sure if it's four, it might be something between two and ten)
[15:35] <esing> Ye, that's fine.. so I would neither have to store the lossless capturing
[15:36] <esing> Thus I think the sane way (for the mpeg2 to encode) is to choose 4:2:0, so I can make a dvd out of the stored videos in a minute
[15:36] <esing> That is kind of compromiss because if the vhs would be in 4:1:1 color space I'd loose a little bit quality I guess
[15:36] <Kuukunen> using mpeg2 files for video storage in 2013 sounds plenty non-sane to me :P
[15:37] <esing> heh :D
[15:37] <esing> Well we talk about 15-20 years old vhs cassettes :)
[15:38] <Kuukunen> yea
[15:38] <Kuukunen> but even still
[15:38] <Digit> well compress it with h264 if you don't want to move it now to dvd and then you can still transcode it later anyway
[15:38] <klaxa> Kuukunen: ever heard of blurays
[15:38] <Digit> that's it
[15:38] <klaxa> also mpeg2 container or video format?
[15:39] <klaxa> well if we're talking DVD probably codec
[15:39] <Kuukunen> klaxa: why would you use mpeg2 on a blu-ray :P
[15:39] <esing> klaxa, video format
[15:39] <klaxa> TV is still widely broadcasted in mpeg2
[15:39] <Kuukunen> it is
[15:39] <klaxa> but yeah for storage it's barely used
[15:40] <Kuukunen> but that's because of legacy
[15:40] <klaxa> or rather it should be barely used
[15:41] <Kuukunen> yea, otoh, the difference between the size becomes smaller when you get to very high quality
[15:42] <Kuukunen> but still... no mpeg2 when you have a choice ...
[15:42] <Digit> next question pls :)
[15:43] <Digit> is it possible to modifiy in real time some options, without launching ffmpeg again with the new options
[15:43] <Digit> i mean when you're streaming
[15:48] <luc4_linux> Hi! When using libavcodec I'm getting: Failed to find codec h264. I added --enable-libx264 in configure. Is there anything else I should add to get rid of this?
[15:53] <Digit> for debian ?
[15:54] <luc4_linux> Digit: on ubuntu the version I built is fine, the version I'm building for android seems to give that.
[15:55] <Digit> oh yes for android ...
[15:58] <luc4_linux> I see libavcodec/libx264.o is built... so weird it is not found...
[15:58] <Kuukunen> luc4_linux: you mean it compiles and you get that when you try to run it?
[15:59] <luc4_linux> Kuukunen: you mean libavcodec/libx264.o? Yes, I see it in the output of the build of ffmpeg.
[15:59] <Digit> you want to build a ffmpeg for android that's right ?
[16:00] <Kuukunen> luc4_linux: no I mean, when do you get the error?
[16:00] <Kuukunen> are you trying to run it or build it with codec "h264"
[16:00] <Digit> i got a nice tuorial to build one
[16:00] <Digit> http://www.roman10.net/how-to-build-ffmpeg-for-android/
[16:02] <luc4_linux> Kuukunen: I'm trying to run my application using libavformat and libavcodec and I get that. I suppose I'm missing something in the configure...
[16:02] <luc4_linux> Digit: ffmpeg builds fine for android... the problem seems to be the configure options...
[16:03] <Kuukunen> luc4_linux: it might be because you should use "libx264" instead of "h264"
[16:03] <luc4_linux> unless something is wrong with libx264...
[16:03] <luc4_linux> but I added --enable-libx264
[16:03] <Kuukunen> luc4_linux: are you decoding or encoding? :P
[16:04] <luc4_linux> Kuukunen: I know it sounds weird... but none :-) I'm only trying to mux. But that seems to be necessary anyway...
[16:04] <Kuukunen> umh :S
[16:04] <luc4_linux> Kuukunen: anyway, maybe something is not entirely ok with my code, but works on ubuntu
[16:04] <Paranoialmaniac> luc4_linux: libx264 is not needed for muxing
[16:06] <luc4_linux> Paranoialmaniac: I guessed that :-) maybe I've done something not required in my code which causes it to be needed. Anyway, for the moment it is ok anyway... just don't know why it is not found...
[16:06] <spumco> o/
[16:07] <spumco> is this the right place to ask about ffmpeg audio channel mapping?
[16:09] <Digit> ask and pastebin ouput
[16:10] <Kuukunen> luc4_linux: maybe it's because you have libx264 but not h264?
[16:11] <spumco> basically i have an uncompressed quicktime file that contains video and 16 channels of audio. i want to take the first 2 channels of audio and map them to left/right. the video converts just fine into h264 every time, but i always get blank audio. i've been trying to work out what the map_channel options should be.
[16:11] <elkng> I have content of entire DVD copied, in directory VIDEO_TS, and it contains few files like: VIDEO_TS.BUP, VIDEO_TS.IFO, VTS_01_1.VOB and others, do I need to use some special command to convert that DVD ? or I just need to use regular encoding command on *.VOB files and delete all others ?
[16:11] <luc4_linux> Kuukunen: mmh... I'll try to add --enable-decoder=h264 then. thanks
[16:12] <JEEB> also I think the annex b parser was in libavformat :P
[16:12] <JEEB> as a format
[16:14] <Digit> spumco i think you just have to use a complex filter
[16:16] <spumco> do you mean -filter_complex? i'd seen that but i thought it was possible to use map_channel as a selector? i've been using "-map_channel 0.1.0 -map_channel 0.1.1" to select them. the output is listed as stereo but the audio is always blank. i know channels 0 and 1 in stream 1 contain my audio for sure
[16:17] <Digit> pastebin your command and output
[16:17] <luc4_linux> I don't know what made it work, but now it works. Thanks guys!
[16:17] <luc4_linux> Clearly something was wrong in my configure command.
[16:18] <Digit> share it so we can say the solution to the next one
[16:19] <JEEB> "don't try to disable too many things in your configuration right off the bat"
[16:19] <JEEB> you always forget something :P
[16:19] <spumco> is this correct? not used pastebin before - http://pastebin.com/PHqdfRcd
[16:20] <Digit> spumco see if some of those examples could help you : http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20use%20-map%20option
[16:21] <spumco> none of those options show channel selection though, they're all about stream level selection
[16:23] <spumco> i notice there's a complaint part way down from something called pan about deprecated syntax
[16:23] <spumco> and then it goes on to say "Pure channel mapping detected"
[16:25] <Digit> yes i was reading that too ...
[16:26] <Digit> pure means it uses losless
[16:27] <spumco> which would tie up with what vlc reckons the output mp4 contains - mpeg aac mp4a stereo 48KHz
[16:27] <spumco> input is 16 channel 48KHz
[16:27] <Digit> well i can't find an answer to help you
[16:28] <Digit> may be another guy here is smarter
[16:28] <spumco> hehe, thank you for trying
[16:28] <spumco> i've been fighting it all morning
[16:29] <spumco> i used mplayer to dump the raw audio then audacity to work out which channel was which
[16:29] <Digit> i fighted 2 weeks  to find a solution to my "problem" :P
[16:29] <spumco> that's how i found channels 0 and 1 had my audio
[16:30] <Digit> so you just get no audio at all ?
[16:30] <Digit> did you try to play it with vlc ?
[16:30] <spumco> no no, that was just me trying to work out what format the audio was
[16:30] <spumco> there's no obvious documentation on the format from the product
[16:31] <spumco> but i know it's 48 khz, 16 channels, pcm, little endian
[16:31] <spumco> audacity will read the raw file as that and it works perfectly
[16:31] <Digit> gulp
[16:31] <spumco> i just can't get ffmpeg to take the 2 channels from stream 1 and shove them into aac
[16:32] <Digit> the output audio seems to be fine...
[16:32] <spumco> i was trying to avoid seperating the 2 to avoid sync problems
[16:33] <spumco> i guess i can use ffmpeg as a multiplexer if i can split the audio and junk the extra streams
[16:33] <spumco> but that's a guess
[16:33] <spumco> i'm sure i'm just screwing up the command line options somehow though
[16:35] <Digit> can't you really try with a filter complex ?
[16:36] <spumco> i'll go look at that now :)
[16:38] <burek> spumco, did you see https://ffmpeg.org/ffmpeg-filters.html#channelmap
[16:38] <spumco> interestingly quicktime doesn't know how to map the audio - it just mixes all the channels to mono
[16:39] <spumco> yes, i've been looking at that
[16:40] <burek> btw, you can extract all 16 channels into separate audio streams, to examine them even further with https://ffmpeg.org/ffmpeg-filters.html#channelsplit
[16:40] <Digit> the syntax your used is not the one i know
[16:41] <Kuukunen> JEEB: ./configure --help|grep -o -- '--enable-[a-z0-9-]*\s'|xargs ./configure
[16:41] <Digit> i can't see something like -c copy in your command
[16:41] <spumco> burek, i'll try that to see if ffmpeg can dump the audio. i did it with mplayer originally to get a single large file.
[16:42] <JEEB> Kuukunen, the problem generally is the other way :P
[16:42] <Kuukunen> JEEB: I mean, that's the solution!
[16:42] <JEEB> --disable-everything and then they think they have enabled enough while they haven't
[16:42] <JEEB> -_-
[16:42] <Kuukunen> enable averything \o/
[16:43] <Kuukunen> I'd say that's often a problem too... when people try to enable everything :P
[16:43] <Kuukunen> and then complain about dependencies, or something
[16:44] <burek> spumco, also, you kinda didn't use the correct syntax
[16:44] <burek> -map_channel [input_file_id.stream_specifier.channel_id|-1][:output_file_id.stream_specifier]’
[16:45] <spumco> yer, but i thought the 2nd part was optional. i tried with "-map_channel 0.1.0:0.1 -map_channel 0.1.1:0.1" but the output audio was still blank :(
[16:45] <burek> hmh, i see that -map_channel is probably a shortcut for pan filter
[16:45] <burek> let me check something
[16:45] <spumco> i think you are correct
[16:46] <spumco> i did try going straight to pan but dug myself a different kind of hole
[16:46] <Digit> use something like this : ffmpeg -i input.mkv -map 0:1 -map 0:2 -c copy output.mkv
[16:46] <burek> https://ffmpeg.org/ffmpeg-all.html#Remapping-examples
[16:49] <burek> spumco, so try pan filter from the upper link, to get something like: ffmpeg -probesize 500000000 -i sample-uncompressed-lr-audio.mov -vcodec libx264 -vf "pan=..." output.mp4
[16:50] <burek> you might also try to specify "-c:a copy" since you are using a lossless remapping
[16:50] <burek> ffmpeg -probesize 500000000 -i sample-uncompressed-lr-audio.mov -vcodec libx264 -vf "pan=..." -acodec copy output.mp4
[16:51] <spumco> -map 0:0 -map 0:1 gives an mkv file with working video but 16 channels of audio
[16:51] <spumco> i don't know how to tell vlc to play channels 0 and 1 so it's silent
[16:51] <spumco> can you put pcm into an mp4 container? i thought it had to be aac?
[16:58] <Digit> i was sure it would leave only 2 channels ...
[16:58] <spumco> i think at that level, they're streams
[16:58] <spumco> so 0:1 is file 0, stream 1
[16:58] <spumco> to get to channels you have to go another level down
[16:59] <spumco> so 0.1.0 is channel 0 in stream 1 of file 0
[16:59] <spumco> if i use "-map_channel 0.1.0 -map_channel 0.1.1" it works out i want stero
[16:59] <spumco> stereo
[16:59] <spumco> i'm just not sure why it's blank, heh
[17:00] <spumco> i don't know how to specify 16 channels in channelsplit either
[17:03] <spumco> i'm not sure it maps to any standard channel layout
[17:03] <spumco> it's just 16 channels :(
[17:11] <Digit> spumco i don't understand what you need bcs it works for me with -map ...
[17:12] <Digit> did you use the info give by ffmpeg to use the correct channels numbers...
[17:12] <Digit> may be i understand nothing ...
[17:12] <spumco> what have you tried?
[17:12] <spumco> and what command line did you use?
[17:13] <spumco> <- reading about pan options
[17:13] <Digit> i tried my command line with -map to remove one channel in a mpeg and it seems to work
[17:14] <Digit> so why would that not work for your file ?
[17:14] <spumco> do you mean channels or streams? i thought your command line was at stream level, not channels
[17:15] <spumco> from what i understand files have multiple streams, streams can have multiple channels. is that correct?
[17:15] <spumco> my file has 2 streams, video and audio. the audio contains 16 channels.
[17:15] <spumco> am i misunderstanding them streams/channels?
[17:16] <Digit> i think i am the one not understanding
[17:16] <Digit> i hope someone will find a solution for you
[17:16] <spumco> no worries, i wasn't sure if i had it wrong
[17:16] <spumco> if i work it out, i'll post it here, heh
[17:22] <spumco> ok... bin\ffmpeg -i sample-uncompressed-lr-audio.mov -filter_complex "pan=2|FL=c0|FR=c1" stereo.wav
[17:23] <spumco> that gives me a stereo file... but it's still silent
[17:23] <rexbron> does anyone have any suggestions for dithering or adding noise to an mpeg2 encode? I'm getting some rather noticeable banding when going from 10bit DNxHD to DVD complient mpeg2
[17:27] <rexbron> gradfun states its for playback only
[17:33] <spumco> i can't get it to output anything other than silence, heh
[17:33] <spumco> bin\ffmpeg -i sample-uncompressed-lr-audio.mov -acodec pcm_s24le -filter_complex "pan=2|FL=1.0*c0|FR=1.0*c1" stereo.wav
[17:33] <spumco> that gives me 2 channels of complete silence
[17:34] <spumco> the audio codec is the same as the input so the output file is 48KHz
[17:34] <spumco> it's just ... silent
[17:43] <Digit> try with another codec
[17:46] <Digit> you should share that file so other people can try
[17:51] <spumco> the file is 1.2 gig, heh
[17:51] <Digit> cut it ...
[17:51] <spumco> with what? it's a quicktime file
[17:52] <spumco> 1920x1080 @ 30
[17:52] <Digit> sigh
[17:54] <Digit> cut it with ffmpeg :P
[17:54] <spumco> that would be another command line to fight with, heh, i'm already fighting with one
[17:54] <spumco> i'm not sure the pan option is working properly
[17:54] <spumco> i can specify channels that don't exist and it doesn't complain
[17:55] <spumco> this file has 16 audio channels yet i can specify channel 17 with no errors
[17:55] <Digit> ffmpeg -ss [start_seconds] / -t [duration_seconds] -i [input_file] [outputfile]
[17:55] <Digit> may be your file is just corrupted did you try with another one
[17:56] <spumco> i don't think it's corrupted, it came straight off the capture box
[17:57] <spumco> it plays ok but i can't hear the audio because it's uncompressed and quicktime won't play that format
[17:57] <spumco> i could switch to dnxhd, but i'm pretty sure it's ok
[17:57] <Digit> use vlc
[17:57] <spumco> vlc won't detect which channels to play
[17:58] <spumco> it shows there are 16 48KHz channels, just plays silence
[17:58] <spumco> it plays the video just fine, all 7s of it
[17:58] <Digit> then how do you know it's not corrupted if you never hear any sound
[17:58] <spumco> because i used mplayer to dump the audio
[17:59] <spumco> then audacity to load the raw file
[17:59] <spumco> the first 2 channels have my audio, the other 14 are empty
[17:59] <Digit> so just use virtualdubmod to add the audio to the video
[17:59] <Digit> if you have the raw audio
[18:00] <spumco> i can get a raw audio file containing 16 channels but i don't know how to crop that into just 2
[18:00] <Digit> and audactity can't do that ?
[18:01] <spumco> i could do it in audacity, yes, but that would mean running up a gui app every time i want to convert a file
[18:01] <Digit> o_O
[18:01] <Digit> well so the real question is why do you get files with 16 channels
[18:02] <spumco> you just do, it's not a configurable option
[18:02] <Digit> o_O
[18:02] <spumco> it's a blackmagic box
[18:02] <spumco> shuttle
[18:02] <Digit> so weird
[18:02] <spumco> yes
[18:02] <Digit> can you load you video files in virtualdubmod ?
[18:03] <spumco> i tried loading them into virtualdub but that doesn't work
[18:03] <spumco> even with the quicktime plugin
[18:03] <spumco> what's virtualdubmod?
[18:03] <Digit> o_O
[18:03] <Digit> it's another "version"
[18:03] <Digit> with mkv support and more
[18:03] <spumco> the original virtualdub quicktime plugin doesn't understand v210 or avid
[18:04] <spumco> is virtualdubmod newer than virtualdub? i shall go look
[18:05] <Digit> try it
[18:05] <spumco> it's dated 2006!
[18:06] <Digit> well the are many other ones
[18:08] <Digit> did you try to use ffmpeg to extract only the audio
[18:09] <spumco> i did it one channel at a time with pan but i'm not convinced that works
[18:09] <spumco> is there a single command to just dump the audio untouched?
[18:09] <spumco> to just dump the stream into another file i mean
[18:10] <Digit> ffmpeg -i foo -vn -acodec copy output.mp4
[18:11] <spumco> ah, vn = video none i guess, cool
[18:11] <spumco> ok, can't put pcm in an mp4 container
[18:12] <Digit> o_O
[18:12] <spumco> original audio is 24 bit 48 khz pcm
[18:12] <LithosLaptop2> put in mkv container
[18:12] <spumco> that container doesn't support that format
[18:12] <spumco> ok, trying
[18:13] <spumco> that gave me a file that plays but is silent
[18:13] <spumco> it is pcm 24 le 16 channel 48 khs 24 bit though
[18:13] <spumco> is there a way to select channels in vlc?
[18:14] <Digit> yes with the menu
[18:14] <spumco> the vlc menu has a channel option but it's blank
[18:14] <Digit> o_O
[18:14] <spumco> jej
[18:14] <spumco> heh
[18:14] <Digit> your file is a mess :(
[18:14] <LithosLaptop2> oes vlc ssay it is 16 channels?
[18:14] <Digit> it's a nightmare
[18:15] <spumco> yes, codec information says audio, PCM S24 LE (araw), English, Channels:16, Sample rate: 48000 Hz, Bits per sample: 24
[18:15] <spumco> all that looks correct to me
[18:16] <spumco> what does "Audio: pcm_s24le ([1][0][0][0] / 0x0001)" mean on the output?
[18:16] <spumco> input says "Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 16 channels, s32, 18432 kb/s"
[18:16] <spumco> output says "Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 16 channels, 18432 kb/s"
[18:17] <spumco> what does all teh "[1][0][0][0]" stuff mean on teh output?
[18:18] <LithosLaptop2> ffmpeg -i 14ch.mov -map 0:1 1.wav -map 0:2 2.wav -map 0:3 3.wav -map 0:4 4.wav -map 0:5 5.wav -map 0:6 6.wav -map 0:7 7.wav -map 0:8 8.wav -map 0:9 9.wav -map 0:10 10.wav -map 0:11 11.wav -map 0:12 12.wav -map 0:13 13.wav -map 0:14 14.wav -map 0:15 15.wav -map 0:16 16.wav
[18:18] <Digit> o_O
[18:18] <LithosLaptop2> try to split all in seperate wavs
[18:18] <Digit> lol
[18:18] <Digit> good luck :P
[18:18] <spumco> heh, i was trying that before but will try it again
[18:19] <LithosLaptop2> lol k
[18:19] <Digit> there is no sound in your file that's it :P
[18:20] <Digit> stop drinking and using ffmpeg :D joke ;P
[18:20] <spumco> i thought 0:1 was a stream selector though, not a channel selector?
[18:20] <LithosLaptop2> hmm
[18:20] <spumco> so channel 0 would be 0.0.0, channel 1 0.0.1 etc.
[18:25] <spumco> map just gives me a file with all 16 channels
[18:25] <spumco> windows doesn't like it at all
[18:25] <spumco> vlc will play it, silently, and show it's 16 channels though
[18:33] <Digit> grr cut it a little sample i want to try that shitty video file :P
[18:33] <spumco> hehe
[18:35] <spumco> <- trying to work out where the audio samples are
[18:36] <Digit> lol
[18:36] <Digit> those channels are emptyyyyyy :D
[18:36] <spumco> heh, it was a very precise video!
[18:36] <spumco> if they are, i'm going to kick this pc over and jump on it
[18:37] <Digit> ok jump jump :)
[18:40] <spumco> ok. i have a 2s chunk of it. 320 meg, heh.
[18:40] <spumco> how i get you that chunk, i have no idea
[18:42] <spumco> i did this - bin\ffmpeg -ss [start_seconds] -t [duration_seconds] -vcodec copy -acodec copy -i input output
[18:43] <spumco> interestingly, it looks different in vlc
[18:45] <spumco> the audio codec for stream 1 says "PCM S24 LE (s24l)" in the original and "PCM S24 LE (42ni)" in the chunk
[18:51] <spumco> ah, apparently 42ni is what quicktime calls PCM S24 LE
[18:51] <spumco> s24l is an alias for the same thing
[18:52] <spumco> that's in fourcc.c
[18:53] <Digit> share it http://www.filesnack.com/
[18:55] <Bloodhound> resistence is futile
[18:55] <Digit> my mother used to say the same thing
[18:55] <Bloodhound> :P
[18:57] <spumco> you only get 100 meg without paying $14 :(
[18:57] <spumco> this file is 320
[18:58] <Digit> grrr
[18:59] <spumco> heh, i'm googling for other free shares
[18:59] <Digit> http://www.fileconvoy.com/
[19:00] <spumco> filedropper? uploading to that (it was the first one i found)
[19:00] <spumco> 5%
[19:01] <spumco> is this hobana.freenode.net? (just in case it goes pop when i'm not looking)
[19:02] <spumco> 19%
[19:06] <spumco> 49%
[19:09] <Bloodhound> spumco: hobana is wher *you* are
[19:09] <Bloodhound> where*
[19:09] <spumco> yes
[19:09] <spumco> if i'm in this channel on freenet does it matter which server i'm on?
[19:09] <spumco> 75%
[19:09] <Bloodhound> not at all
[19:09] <spumco> ok
[19:09] <sacarasc> It's on freenode. So irc.freenode.net will be able to get here.
[19:10] <Bloodhound> unless a netsplit happens...
[19:10] <Bloodhound> There are 191 users and 75396 invisible on 26 servers
[19:10] <spumco> long time since i've used irc
[19:11] <spumco> this file is the worlds most boring file, just fyi
[19:12] <spumco> handbrake doesn't understand the audio either sadly :(
[19:13] <Digit> o_O
[19:13] <Digit> it's an alien file
[19:13] <Digit> bewaaaare bewaaaaare
[19:14] <spumco> http://www.filedropper.com/showdownload.php/chunk
[19:14] <spumco> <- never seen filedropper before, does that work?
[19:14] <spumco> it should be a 320 meg mov file
[19:14] <Digit> i am broadcasting a movie i have to wait i keep the link
[19:15] <Digit> it's not the correct link
[19:15] <spumco> nuts, i'll try the one you sent
[19:16] <Digit> oh wait it works
[19:16] <spumco> \o/
[19:16] <spumco> in vlc you will get video but no audio, i'm guessing it doesn't know what to do with 16 channels
[19:16] <spumco> in my quicktime, i get audio but no video - my quicktime won't play uncompressed video
[19:19] <spumco> i could probably switch to dnxhd which should, i guess, have the same ffmpeg switches to remap the channels
[19:19] <spumco> my dnxhd files also have 16 channels but they play audio/video in quicktime
[19:19] <spumco> so they're more comfortable to play with, heh
[19:23] <Digit> wow it's not fast
[19:23] <spumco> http://www.fileconvoy.com/dfl.php?id=g663c4ba0ec392762999290195942d4bc0fa537c35
[19:23] <spumco> that's a link to the same file on the file convoy one you mentioned
[19:30] <Digit> too late i start with the other one
[19:30] <Digit> started
[19:34] <Digit> wow man that file got only one channel
[19:34] <Digit> wtf
[19:36] <spumco> mine? according to quicktimes movie inspector it has 16 48 KHz channels
[19:37] <spumco> vlc's codec information also says 16 channels
[19:38] <Digit> o_OP
[19:38] <Digit> i open it in vlc i can see only one channel
[19:39] <spumco> which version? mine is 2.0.6 so i could be out of date
[19:40] <Digit> ok 1 flux 16 canaux ...
[19:42] <Bloodhound> attempting to stream that is crashing mplayer
[19:45] <Bloodhound> [mov,mp4,m4a,3gp,3g2,mj2 @ 0xacea290] moov atom not found
[19:52] <spumco> yer, i don't think mplayer liked it on mine
[19:52] <spumco> it's v210 i think
[19:52] <spumco> <- currently in windows so can't check
[19:53] <spumco> back shortly, in linux
[19:56] <spumco_> back
[19:56] <spumco_> with an _ it seems
[20:07] <Digit> how do i open many files with ffmpeg , one after another
[20:21] <Digit> nothing there is nothing in the audio of that Sh*|!%?
[20:22] <spumco_> i can make it work if i use ffmpeg as a demux/mux
[20:22] <spumco_> which i didn't want to do
[20:22] <spumco_> i have to go through audacity too to dump the unwanted 14 channels, export them as 24 bit flac stereo
[20:23] <spumco_> then use ffmpeg to remux then and convert to 264
[20:23] <spumco_> it works but there's no way to automate the audacity bit
[20:23] <spumco_> and it disconnects the video an audio which i didn't want to do
[20:23] <spumco_> i used 2 ffmpeg commands, one with -an and one with -vn
[20:24] <spumco_> dump teh audio into a 16 channel 24 bit 48 khz pcm raw file
[20:24] <spumco_> load that raw into audacity
[20:24] <spumco_> dump the 14 channels i don't want then export as 24 bit flac
[20:24] <Digit> grrrr it's a nightmare nothing in that audio
[20:24] <spumco_> ffmpeg -i vid.mov -i export.flac -vcodec libx264 -map_channel 1.0.0 -map_channel 1.0.1 banana.mp4
[20:25] <spumco_> export the audio with mplayer
[20:25] <spumco_> it will dump it as a raw file
[20:26] <spumco_> you can import raw then as signed 24 bit PCM, little-endian, 16 channels, 48000 Hz and you'll see the data
[20:27] <spumco_> audacity will play it
[20:27] <spumco_> you can see the 1st 2 channels with data in them
[20:28] <spumco_> you should be able to do "mplayer file.mov -dumpaudio -dumfile out.pcm"
[20:28] <spumco_> you should be able to do "mplayer file.mov -dumpaudio -dumpfile out.pcm"
[20:30] <spumco_> it won't deal with stripping the channels out when there are 16
[20:30] <spumco_> the only way i can make it work is by dumping the raw audio with mplayer
[20:30] <spumco_> ffmpeg won't do it :(
[20:32] <Digit> well i try something else later after my broadcasting
[20:34] <llogan> spumco_: the danes call it "quality"
[20:35] <spumco_> i build it this morning yet it claims to be 1.1.git?
[20:35] <spumco_> i can see 1.2.1 listed on the web page
[20:35] <spumco_> hmm
[20:43] <Digit> forget it ... there is no audio in your hell file ...
[20:43] <Digit> 666
[20:44] <spumco_> heh, yes, there is
[20:44] <spumco_> export it and you'll see
[20:45] <Digit> and not even vlc can extract any audio
[20:45] <spumco_> mplayer can dump it
[20:45] <spumco_> ffmpeg will dump a 16 channel file that vlc will play as silence
[20:46] <Digit> llogan certainly knoes how to do that with ffmpeg if it's possible
[20:46] <Digit> but i think that file is really a mess
[20:46] <spumco_> i'm nailing command line options for 1.2.1 so i can build that and see if it's different
[20:47] <llogan> Digit: only sometimes...also, i don't know what's going on (i just arrived here).
[20:47] <spumco_> i have a mov file with 2 streams - video and audio
[20:47] <spumco_> the audio is 16 channels
[20:48] <spumco_> i want to use ffmpeg to transcode to h264 and take channels 0 and 1 to use as stereo in the output h264
[20:48] <spumco_> all i can get is blank audio
[20:48] <spumco_> i'm using map_channel to (try and) do it
[20:49] <spumco_> will do, just kicking off a build ^_^
[20:49] <llogan> do you have an input sample?
[20:49] <spumco_> let me find the bookmark
[20:50] <spumco_> nuts. bookmark is in windows. 2 seconds.
[20:51] <spumco_> back shortly. in windows, heh.
[20:54] <spumco> sample file should be - http://www.fileconvoy.com/dfl.php?id=g663c4ba0ec392762999290195942d4bc0fa537c35
[20:55] <Digit> llogan... if you find some audio in that file with ffmpeg... you're a god :D
[21:00] <Digit> ffmpeg is still not able to use a playlist ?
[21:02] <llogan> Digit: https://ffmpeg.org/trac/ffmpeg/ticket/1199
[21:03] <Digit> : / thanks
[21:04] <spumco> command line with output for that chunk file http://pastebin.com/mBjQJZA9
[21:04] <ubitux> a few formats are actually supported
[21:04] <ubitux> typically m3u from hls, or asf are supported afaik
[21:05] <Digit> probably for linux
[21:07] <Digit> for my gui program i use 2 ffmpeg process so i can open another video file without stopping the connection but it's difficult to make it launches the next ffmpeg process just when the current video file is ending
[21:20] <spumco> channel mapping without deprecation complaints http://pastebin.com/VsALZLf2
[21:20] <Digit> ?
[21:20] <spumco> output file looks ok, audio is still blank though
[21:21] <Digit> lmao
[21:21] <ubitux> [Parsed_pan_0 @ 00000000023b8140] Pure channel mapping detected: M M
[21:21] <Digit> the file from neverland :D
[21:21] <ubitux> looks wrong
[21:21] <ubitux> the 'M' denotes "mute"
[21:21] <ubitux> parsing might have been broken
[21:21] <ubitux> spumco: can you open a trac issue?
[21:22] <Digit> pure means it drops the channels not selected
[21:23] <spumco> i thought pure meant lossless
[21:23] <spumco> i was using pan/map_channels as a selector to drop the 14 channels i didn't want
[21:23] <Digit> it's lossless because it just needs to drop some channels
[21:23] <spumco> i didn't know the "M" meant mute, where does it say that?
[21:24] <spumco> ubitux, the only sample file i have it pretty large
[21:24] <Digit> i think it's middle not mute
[21:24] <llogan> 321M for 2 seconds
[21:24] <ubitux> Digit: no it's mute
[21:25] <ubitux> spumco: try to extract only the audio, and keep 4-5 seconds
[21:25] <spumco> llogan, it's uncompressed quicktime 1920x1080 at 30/16 ch 48KHz PCM le 24 bit
[21:25] <spumco> the video goes across ok
[21:26] <spumco> <- looking at web copy of af_pan source ^_^
[21:26] <ubitux> spumco: ffmpeg -i chunk.mov -vn -c:a copy -t 20 out.flac
[21:26] <ubitux> or maybe well out.wav
[21:26] <ubitux> if you can reproduce the issue with the wav, then please open an issue
[21:27] <spumco> that line gives me unsupported codec
[21:27] <spumco> at least on this o/s it does, heh
[21:31] <spumco> audio alone is 4.39 meg
[21:34] <spumco> will build latest tomorrow then try again before submitting anything
[21:34] <spumco> thank you o/
[21:38] <Digit> do you know what 's the correct rtmp url to use ? i got the ustream url for my account and key but when i use the key after the url it doesn't work
[21:44] <rafael2k> people, do you know any patch to enable xHE-AAC encoding/decoding for ffmpeg?
[21:44] <TomHoss> Anyone know if it's possible to stream a flv file from my server, when I have the url of the file on an external website?
[21:44] <rafael2k> linking to the ISO reference code
[21:44] <TomHoss> I'm wondering if I can just stream it through and avoid downloading the whole thing first
[21:44] <TomHoss> I can do it with a webm file, but not flv
[21:44] <Digit> o_O
[22:10] <llogan> rafael2k: do you have a sample?
[22:16] <Digit> woooowoooow i found how to stream to ustream :)
[22:18] <Digit> ffmpeg rocks on ustream B)
[22:19] <llogan> what does your url look like now (excluding your actual account key)?
[22:21] <Digit> i needed to add flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)
[22:22] <Digit> it's like this -f flv "rtmp://UstreamURL/UstreamKey flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
[22:22] <Digit> B) rocks ! :)
[22:28] <Digit> i start to know some little things about ffmpeg :D
[22:29] <Digit> finally what was the correct command for the guy with 16 audio channels and wanting to keep 2 ? does it work now ?
[00:00] --- Sun May 19 2013


More information about the Ffmpeg-devel-irc mailing list