[01:28] <Sashmo1> Im looking for anyone that can help with ffmpeg and wowza, I keep having some problems with the way the h264 is passed to wowza for HLS and it driving me insane!!!! PM me if you can help. I can compensate for your time. [01:29] <juanmabc> man, wowza always gives trouble, there is a need for a faq/tutorial [01:29] <Sashmo1> thanks dude, I know [01:29] <Sashmo1> been through it and their forums 1000 times [09:05] <CoJaBo> Ok; so I have an MJPEG file; is there any way to encode this to something sane? [09:06] <CoJaBo> (raw MJPEG, aquired via wget from a network camera) [09:43] <cbreak> CoJaBo: yes. [09:43] <cbreak> ffmpeg can do it even. [10:02] <CoJaBo> ffmpeg refused to read it, I just now figured out a (convoluted) way to convert them all... [10:02] <CoJaBo> VLC can dump them to a stream with bogus framerate, use mencoder to set the input FPS and copy to a second file- this segfaults writing the avi index, then use mencoder again to copy the second file to the third, fixing the index! Isn't OSS software great? xD [10:02] <cbreak> ffmpeg can read mjpeg fine [10:03] <cbreak> I use it to convert the video from an axis camera in real time. Works. [10:03] <cbreak> well, convert. I decode it to raw frames. [10:03] <CoJaBo> It detects the input file as a 4-channel audio stream for some reason :/ [10:03] <CoJaBo> Only VLC would read the source file, nothing else.. [10:03] <cbreak> my ffmpeg version is compiled to be lgpl, with less codecs. worked fine. [10:04] <cbreak> vlc reads stuff... with ffmpeg :D [10:04] <CoJaBo> Yeh, that is rather odd o_O [10:07] <cbreak> have you tried to tell ffmpeg that the input is mjpeg? [10:07] <cbreak> with -f mjpeg? [10:09] <CoJaBo> Hm, that reads it but the output is profoundly currupted [10:09] <cbreak> maybe it's not mjpeg :) [10:09] <CoJaBo> (squished in the top, with green boxes, rest of it being green) [10:09] <CoJaBo> I can make out my eye at the beginning, so it sorta reads it.. [10:10] <cbreak> what does vlc say about the video? [10:10] <CoJaBo> MJPEG [10:10] <cbreak> nothing else? [10:10] <cbreak> usually it's more chatty [10:10] <cbreak> try cvl [10:10] <cbreak> cvlc [10:11] <CoJaBo> The output file is MJPEG as well, and was just made thru stream copies [10:12] <cbreak> do you play directly from the network? [10:12] <cbreak> try it. [10:12] <cbreak> I did that for live capture with success [10:13] <CoJaBo> I couldn't get it to start when I needed to record; I don't have the camera with me now [10:13] <CoJaBo> I captured it using wget [10:13] <cbreak> hmm... who knows what issues that caused [10:13] <cbreak> do you have mplayer? [10:13] <cbreak> mplayer -identify the file, maybe that gives more infos [10:14] <CoJaBo> mplayer wouldnt read it either. Going thru vlc -> mencoder -> mencoder did create a playable file, and that seemed to work for the second one too [10:14] <CoJaBo> Only problem is, the framerate is very much not the stated 30fps, gah [10:41] <lost_case> Hello.... I hope this is an appropriate place to ask for help but I am s**t out of luck trying to cross-compile ffmpeg for Android. Is there anyone who could help me? [11:07] <aro> why is my audio out of sync when i go flv->mp4 with ffmpeg? [14:48] <blight> helllooo [14:49] <blight> why does ubuntus ffmpeg not support h264 encoding? do i really have to compile it myself? [14:52] <Mavrik> yes. [14:52] <Mavrik> as for why: H.264 is patented and ubuntu doesn't want to bundle software that could cause them to be sued [14:52] <Mavrik> currently ubuntu doesn't even bundle ffmpeg [14:52] <Mavrik> if you install "ffmpeg" you get "avconv" which is something different [14:53] <spaam> blight: you might want to install the -extra package. [14:53] <spaam> libavcodecNN-extra [14:54] <spaam> libavcodec-extra-53 [14:55] <Mavrik> hm, extra might include x264 yea [14:56] <JEEB> yes, it contains libx264 [14:58] <blight> ok and now another q: which container and audio do i use to combine h264 video with lossless audio, such that at least ffmpeg and vlc can decode the file? [14:59] <blight> :p [14:59] <JEEB> matroska would most probably be the simplest [14:59] <JEEB> as it supports both flac and wavpack as well as uncompressed audio [14:59] <JEEB> (and many other formats) [14:59] <blight> ahh nice i can encode 264 now thanks [14:59] <blight> JEEB: atm i made a mov with 263 and flac but vlc cannot decode the audio =( [15:00] <blight> it says it doesnt know "ms??" tag [15:00] <JEEB> lol flac in mov/mp4 [15:00] <JEEB> very muchos nonstandard [15:02] <blight> ok i see, i dunno anything about this stuff you know ;) [17:53] <rud> hi, is it possible to have ffmpeg execute an external command/script when it starts writing to -f <format> ? [18:12] <subanomic> hi [18:15] <subanomic> I need to figure out a way to convert videos to mp4 (h264, aac) on a machine I do not have root access to [18:16] <subanomic> is there some way of building a standalone ffmpeg version with these codecs? [18:22] <fumon> I'm getting a strange error with decoding an rtsp stream using h264. h264 is crashing and telling me to update to ffmpeg from git which fails with the same error. "decode_slice_header error" is the probable cause. [18:23] <fumon> VLC handles it but I need to snapshot the stream periodically and ffmpeg from commandline seems the standard solution. [18:24] <fumon> Any clues? [18:25] <fumon> http://pastebin.com/56RPEnjq [21:03] <fumon> Hey, is there a dev/discuss channel for the h264 module? [21:04] <JEEB> the H.264 decoder and its development? [21:04] <JEEB> it's part of libavcodec, and its development is done on #ffmpeg-devel in the ffmpeg project [21:05] <fumon> So it's not brought in by x264? [21:05] <JEEB> libx264 handles encoding [21:06] <fumon> Okay. I'm getting odd barf from h264 telling me to update ffmpeg which also barfs with the same. Got a pastebin. Should I dig deeper myself or open it here? [21:07] <JEEB> "odd barf from h264"? [21:07] <JEEB> I'm not exactly sure what you're talking about [21:07] <fumon> http://pastebin.com/56RPEnjq [21:07] <fumon> Using ffmpeg on an rtsp stream. [21:08] <JEEB> that's the decoder alright [21:08] <JEEB> not related to libx264 [21:08] <fumon> Right. [21:08] <fumon> Odd part is that vlc handles playback fine. [21:09] <fumon> None of the barf other than "Missing reference picture" [21:09] <fumon> I'm guessing rtsp is just not being handled correctly? Sound about right? [21:10] <alyawn> do I have to call avcodec_open2 if I'm just remuxing? or is simply adding the stream and passing packets enough? [21:10] <JEEB> fumon, try dumping that stream onto a hard drive and retesting after that [21:10] <JEEB> s/after/with/ [21:11] <JEEB> also do try with the latest git ffmpeg HEAD [21:11] <fumon> JEEB: I have. Same barf. [21:11] <fumon> Going to try dumping RTSP stream now though. [21:11] <JEEB> also it's related to threading so you might want to try setting -threads to 1 before -i (for the decoder) [21:12] <fumon> There we go. Before the i did it. Was trying it after and of course it didn't work. [21:13] <fumon> Sanity check much appreciated. [21:27] <Sashmo1> can anyone tell me what the tbr, tbn, and tbc mean when reading the ffmpeg -i [21:28] <Sashmo1> or same thing when reading ffprobe [21:31] <Sashmo1> found it, thanks anyways [21:36] <Sashmo1> actually, i havnt found a sutiable answer, I found the explinations of what they are, but how does that affect the output? if I have 25fps, and a 29.97 tbr, but I have a 90k tbn and 50 tbc, what do those last two mean? [21:47] <alyawn> Sashmo1, http://ffmpeg-users.933282.n4.nabble.com/What-does-the-output-of-ffmpeg-mean... [21:47] <Sashmo1> alyawn: thanks I found that too, but if you see the bottom, I agree with that guy, needs more details! [21:49] <alyawn> I think of them as multipliers that different parts of the system need to determine frame timing [22:56] <tomreyn> hi, i'm looking for help recording my desktop (so screen video capture + audio of a game) + my voice coming from a plugged in headset. [22:57] <tomreyn> i'd like to create a high quality video for youtube (and possibly other video sites). i don't care too much about the audio and video formats, but prefer open ones, as long as they are likely to work well with youtube. [22:57] <tomreyn> i'm currently doing this: avconv -f x11grab -s 1680x1050 -r 30 -i 0,0:0.0 -f alsa -i hw:0 -ab 128k test.mov [22:57] <tomreyn> audio is pretty good, but the video is all blurry. i've tried mov, mpg, ogv, mkv, avi. all gave me similar blurry video or failed. [22:58] <tomreyn> this is ffmpeg 4:0.8.3-0ubuntu0.12.04.1 on Ubuntu 12.04 [22:59] <tomreyn> any suggestions on how to improve the video output would be very welcome. [22:59] <ubitux> you are using a fork of ffmpeg [22:59] <ubitux> anyway, try -c:v libx264 or something [23:00] <tomreyn> avconv is a fork? [23:00] <ubitux> iirc we don't have bad default settings for libx264 [23:00] <ubitux> yes, libav is a fork and distribute av* tools [23:01] <tomreyn> i see [23:02] <ubitux> anyway, at least paste the full output on pastebin [23:02] <ubitux> so we can get a clue about what's going on [23:04] <tomreyn> ubitux: -c:v libx264 fixed it already :-) [23:08] <ubitux> great; should be the default though [23:08] <tomreyn> actually i have some buffer underruns on the audio [23:08] <tomreyn> i'll post my output [23:10] <tomreyn> http://megaglest.pzt.me/3f65@raw [23:10] <mgid> hey, do you guys know if there is a way to have ffmpeg stop recording from a stream when it sees a certain image? [23:11] <mgid> like a black screen, a pre-determined image, etc [23:12] <ubitux> tomreyn: maybe you're not fast enough (check a fast libx264 profile or something), i dunno. i'd recommend to try an up-to-date ffmpeg anyway [23:12] <ubitux> mgid: we have black frame detection, but nothing to communicate the end of the stream [23:13] <ubitux> you could hack the filter maybe [23:13] <ubitux> some metadata communication between filters is planed, but nothing done yet [23:17] <ubitux> mgid: anyway, that could be done with a filter [23:17] <mgid> so, there's no way by default to stop recording from a video source as soon as I see a black frame? [23:17] <sontek> Any of you guys familiar with converting images to video? I'm trying to convert 327 image frames into a video using ffmpeg, currently with this command: ffmpeg -r 25 -i ~/Dropbox/fuerte/photos/videos/img* video.mp4 [23:17] <mgid> I have to hack the black frame filter to do this huh? [23:18] <sontek> but the resulting video is 0 seconds long [23:18] <ubitux> there is; but in multiple step [23:18] <ubitux> 1) use blackframe/blackdetect filter to locate black frames [23:18] <ubitux> 2) parse the output to get TS [23:18] <ubitux> 3) use -ss -t or vf select to keep what you want [23:18] <mgid> oh :o [23:19] <mgid> awesome [23:19] <mgid> thanks [23:19] <ubitux> sontek: https://ffmpeg.org/faq.html#How-do-I-encode-single-pictures-into-movies_003f [23:22] <sontek> ubitux: ok, the only difference between what I'm doing and what that says is the -f image2 [23:22] <tomreyn> ubitux: turns out the video just gets stuck on a frame, audio is recorded but the video doesn't move any further. :-/ [23:22] <sontek> and its not declaring fps [23:22] <sontek> it generated a video at the correct length but its not using all my images [23:23] <sontek> it just got the first frame [23:23] <sontek> my images are named img0.jpg through img366.jpg [23:23] <sontek> ffmpeg -r 25 -f image2 -i ~/Dropbox/fuerte/photos/videos/img%d.jpg video.mpg is the command I ran [23:26] <sontek> ubitux: anything I might be doing wrong? [23:28] <ubitux> no idea, maybe paste your output [23:31] <sontek> http://paste2.org/p/2108747 [23:37] <sontek> I think I figured it out [23:37] <ubitux> moving -r 25 as output option maybe [23:42] <tomreyn> ubitux: my problem may be that opengl output is not properly captured. is there something special i need to do to make this work? output: http://megaglest.pzt.me/7juo@raw [23:48] <iive> tomreyn: is other output captured properly? what do you see instead of the opengl one? [23:49] <iive> if you use ati fglrx drivers, you may want to try the option to disable opengl overlays. [23:50] <iive> nvidia may have overlays too, but i'm not sure how to control them. [23:58] <tomreyn> iive: i'm using open source drivers, so no fglrx. what other output do you mean? the audio capture is having a few buffer underruns as you can see. [23:58] <tomreyn> i do the the opengl output, but it freezes at some point. [00:00] --- Mon Aug 13 2012
participants (1)
-
burek