[Ffmpeg-devel-irc] ffmpeg.log.20120522
burek
burek021 at gmail.com
Wed May 23 02:05:02 CEST 2012
[00:08] <mishehu> burek: so donno if yuo're around or not, but I updated x264 & ffmpeg yesterday, and I still do not see any listings for subtitle streams on the 3seasaons.vob file, and that's a dvd rip made by dvdbackup.
[00:09] <mishehu> yet I can play the file in xine with its internal version of libavcodec, and I can select subtitle stream 1, and get english subtitles
[00:14] <zap0> any help?, i use -vcodec r210 to get 10bit packed rgb32. the problem is the u32 is written to disk in Big Endian, how can i make it write little endian?
[00:16] <JEEB> zap0, the r210 format is probably specified as big endian, thus no
[00:17] <zap0> JEEB, additional: i also use -f rawvideo which outputs just pixel data.. thus one migth argue its not really a 'video codec' format at all.
[00:18] <zap0> JEEB, do you think that means it still should _only_ ever be big endian?
[00:19] <JEEB> no, -f rawvideo just creates a stream without the container
[00:19] <JEEB> (as far as I can see)
[00:20] <zap0> ah ok. will have to write a endian swizzler.. PSHUFB to the rescue ;)
[03:39] <juanbobo> JEEB: are you there?
[05:17] <Guest49671> i'm out of the loop here. i'm using 0.10.2 trying to encode x264 but the vpre preset files are missing. what am i doing wrong here?
[06:25] <Tthread> Hello, dudes
[06:25] <Tthread> Could u please help me. How can i make avfilter chain? could u give me example?
[06:34] <sware> I'm trying to build ffmpeg with mingw but I'm getting errors using the msys.bat. Can anyone help me out ? I don't really need to build it,I'm just trying to get a windows config.h
[06:37] <sware> hello? someone's gotta be around
[11:20] <burek> Tthread, did you read libavfilter documentation?
[11:21] <burek> mishehu, did you check if ffmpeg can rip dvds or not?
[11:27] <Tthread> bureak, yes, but i mean develop part.
[11:28] <Tthread> burek, in my own app
[11:29] <ubitux> Tthread: http://git.videolan.org/?p=ffmpeg.git;a=tree;f=doc/examples;hb=HEAD
[11:29] <ubitux> check the filtering*.c files
[11:29] <ubitux> note that lavfi is currently somehow instable ATM
[11:30] <ubitux> so you might need to change that code soon
[11:30] <Tthread> ubitux, thank u, i'll look at up.
[11:30] <ubitux> for example the polling is going to be removed
[11:30] <ubitux> (you will just call get_buffer_ref() until the end)
[11:31] <Tthread> ubtfux, ok, i'll get it in the mind
[11:32] <ubitux> in doubt, you can look at ffmpeg.c
[11:32] <ubitux> but the amount of code might be overhelming
[11:33] <ubitux> ah and last thing, you might be interested in doc/filtering_design.txt (or sth like this)
[11:33] <ubitux> have fun :)
[11:35] <Tthread> ubtux: thanks a lot! ;)
[15:32] <transplant> hi. question about libswscale
[15:33] <transplant> i'm trying to parallelize sws_scale by using two threads, one that scales the upper half of the image and one that scales the bottom half
[15:33] <transplant> in parallel
[15:34] <transplant> however, when i use the parameter `srcSliceY` to `height/2` crap happens
[15:34] <transplant> haven't been able to figure out how to do this and i'm wondering if swscale with srcSliceY != 0 really works
[15:35] <transplant> anybody has tried to parallelize swscale this way?
[15:38] <MrNaz> if i need a particular build of ffmpeg, how would i get it? i need this one: FFmpeg version git-N-28506-g3660b5b
[15:39] <MrNaz> and yes, I know it's ancient (1.5+ years old)
[15:42] <transplant> so you have said version's git commit hash?
[15:42] <MrNaz> actually
[15:42] <MrNaz> i need the 1st oct build from 2009 not 2010
[15:42] <MrNaz> and i found a local copy
[15:48] <MrNaz> hmm
[15:48] <MrNaz> i think that's wrong
[15:48] <MrNaz> FFmpeg version git-N-28506-g3660b5b <-- can anyone tell me what date that build is from ?
[16:56] <casso> What means following: -f image2
[16:56] <casso> on this site: http://ffmpeg.gusari.org/viewtopic.php?f=25&t=39
[16:57] <burek> http://ffmpeg.org/ffmpeg.html
[16:57] <burek> search for image2
[17:09] <burek> MrNaz, try http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=3660b5b
[17:48] <shibby44> hi, i was wondering if it's possible to output to rtmp and a file at the same time
[17:49] <shibby44> i'm using the video padding filter and (if I specify two outputs) the first one has the filter applied, but the second doesn't
[17:50] <Mavrik> shibby44: you probably have to apply filter for both outputs
[17:51] <shibby44> but that means twice the work for the cpu doesn't it?
[17:53] <shibby44> anyway i'll try that and see what happens, thanks for your answer
[18:00] <Mavrik> shibby44: yeah, but I'm quite sure you cant have single image processing for multiple outputs
[18:00] <toresbe> Hello folks! I have a question regarding an RTMP hack I'm trying to pull off, to take the RTSP stream coming out of a webcameraish thingie and wrap it into RTMP
[18:01] <ShinyObjects> Hi toresbe - I'm doing something very similar right now for work
[18:01] <ShinyObjects> I can't open source our stuff, but I may be able to give you some advice.
[18:01] <toresbe> now, the RTMP bit I finally sorted out. The current issue at hand is that I can't seem to remux the video correctly
[18:02] <toresbe> Stream #0.0, 7, 1/90000: Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 1/30, 30 fps, 30 tbr, 90k tbn, 30 tbc
[18:02] <toresbe> [NULL @ 0x9396560]video codec not compatible with flv
[18:02] <toresbe> ...isn't FLV compatible with H.264?
[18:02] <ShinyObjects> h.264 *kind of* works with flv
[18:02] <Mavrik> toresbe: "mpeg4" isn't h.264 :)
[18:03] <Mavrik> toresbe: you need to use libx264 as output if you want to encode to H.264
[18:03] <toresbe> Mavrik: well, they're both MPEG-4, right?
[18:03] <Mavrik> toresbe: there's several video formats described in MPEG-4 standard
[18:03] <toresbe> Mavrik: I'd rather not have to recode the video... For one thing, this is a dog-slow machine so I'm not even sure it could do it
[18:03] <Mavrik> H.264 is one of them.
[18:03] <toresbe> you mean profiles
[18:03] <JEEB> mpeg4 = MPEG-4 Part 2
[18:03] <ShinyObjects> toresbe: check out http://osflash.org/flv#flv_format
[18:03] <Mavrik> no, I mean formats
[18:03] <JEEB> H.264 = MPEG-2 Part 10 or so
[18:03] <Mavrik> those formats have profiles.
[18:03] <Mavrik> yeah
[18:03] <toresbe> ah, right.
[18:04] <ShinyObjects> It's a decently informative reference on the subject
[18:04] <toresbe> yeah, right, right, sorry.
[18:04] <toresbe> ShinyObjects: I was just reading that :)
[18:04] <JEEB> anyways, it's very possible that MPEG-4 Part 2 isn't specified in the FLV file format
[18:04] <Mavrik> toresbe: "divx" (Part-2) is one of the MPEG-4 standards and it's noticably different than H.264 (Part-10)
[18:04] <JEEB> it's not divx :< heck, divx even broke the spec quite a few times
[18:04] <Mavrik> hence the quotes :)
[18:05] <JEEB> it's called 'mpeg4' in ffmpeg because it was the first MPEG-4 video format IIRC
[18:05] <JEEB> I think they had H.263, VP6 and H.264 or so in flv
[18:05] <Mavrik> mhm
[18:05] <JEEB> + some sorenson something
[18:05] <toresbe> oh dear. I get fun stuff when I wrap it in mp4, too...
[18:05] <toresbe> [mp4 @ 0x95505c0]pts has no value Last message repeated 6 times 31kB time=0.40 bitrate= 635.8kbits/s
[18:05] <toresbe> [mp4 @ 0x95505c0]st:0 error, non monotone timestamps 26 >= 26
[18:05] <Mavrik> H.264 was hacked into FLV, even Adobe recommends not to use FLV for H.264, but to mux into MP4 instead
[18:05] <JEEB> well, at least it's specified
[18:05] <toresbe> so it's throwing broken video at me... :/
[18:05] <JEEB> toresbe, sounds like broken timestmaps
[18:05] <toresbe> Maybe I _have_ to recode.
[18:06] <JEEB> often happens with rtmpdumps
[18:06] <ShinyObjects> Mavrik is right, trying to find where I read that....
[18:06] <JEEB> also, mp4 isn't really for live streaming unless you enable the fragments feature
[18:07] <JEEB> otherwise the file will just have one index and that's it
[18:07] <JEEB> I have no idea what you're doing though :P
[18:07] <toresbe> that makes two of us right now...
[18:07] <ShinyObjects> haha
[18:07] <Mavrik> I've had best results with MPEG2-TS format for live steraming
[18:07] <Mavrik> it's pretty much built for it
[18:08] <JEEB> mpeg-2 ts and mp4 with fragments are fine'ish
[18:08] <toresbe> that's worth a shot. Thanks.
[18:08] <JEEB> mpeg-2 ts is more supported though
[18:08] <JEEB> oh, you're trying to wrap stuff from rtsp and putting it into rtmp
[18:08] <toresbe> precisely
[18:08] <toresbe> and trow it at Akamai.
[18:08] <JEEB> have fun with that is all I can say, honestly >_>
[18:09] <JEEB> I think rtmp is a closely limited streaming spec
[18:09] <toresbe> I think I got the RTMP bit down. Now I'm just trying to take the broken video in from the camera and turn it into something that will mux
[18:09] <JEEB> not to mention that if you can't even locally remux the stream you've gotten from rtsp into mp4 it means you're having a jolly good time with them timestamps
[18:17] <toresbe> Hrm. So I'm just wondering. What's my logical next step?
[18:17] <toresbe> I really would much, much rather remux the stream than recode it.
[18:19] <toresbe> mpegts complains that pts < dts
[18:21] <toresbe> Is it possible to simply copy?
[18:22] <shibby44> thanks for your help Mavrik
[18:22] <toresbe> that is, without remuxing
[18:55] <toresbe> ok, sod it
[18:55] <toresbe> tunneling to a machine powerful enough to deal with x264-ing it.
[19:17] <markmx> hi.. I need to split videofile in mkv. I want to try next scheme
[19:17] <markmx> 1 - coonvert to mpeg2
[19:17] <markmx> 2 - split by split
[19:17] <markmx> 3 - convert all pieces to mpeg4
[19:17] <markmx> correct me please if scheme not good. thanks
[20:02] <sware> can anyone help me with building using mingw?
[20:28] <MFen> can i ask avconv questions here? I'm not really sure of the relationship between these programs
[20:30] <toresbe> Is it possible to get a raw datastream out of RTSP, without remuxing?
[20:31] <sware> anyone ? fucking ming sucks, gone through 10 different tutorials on doing it, none have even come close to building
[20:32] <beandog> sware: aren't there binaries?
[20:33] <sware> I'm not doing it for the files
[20:34] <sware> I need a config.h accurate to the latest head for x86/x64
[20:34] <sware> for my port to msvc
[20:35] <sware> the current one I use is out of date
[20:36] <beandog> ah
[20:36] <sware> fucking hate mingw
[20:36] <beandog> I hear that a lot.
[20:37] <sware> well my last msvc build is november, but that used a config from even earlier.
[20:37] <sware> but I keep getting issues with the configure switches. I'm following http://www.gooli.org/blog/building-ffmpeg-for-windows-with-msys-and-mingw/
[20:38] <iive> MFen: ffmpeg merges most of libav, so you can ask. getting answer is completely different matter.
[20:38] <MFen> is there any guide for this software, really? i feel like every time i have to touch it, i fail, google, and find 16 different answers for people who have figured out one option
[20:39] <MFen> i want to know how it all works together
[20:39] <MFen> i have a video stream in one file, and an audio stream in another file. the video file may also have an audio stream, but it's blank. how do i get a single file out of that? :)
[20:40] <beandog> MFen: wait, whut? Do you want to join two files together or extract one into two?
[20:41] <MFen> i ended up with a .flac with the audio and a 352x240 mp4 file with the video
[20:41] <MFen> the mp4 file also has an audio stream, with no audio in it
[20:41] <MFen> i want a single, working a/v file. i don't even care the format very much
[20:41] <beandog> an audio stream, but no audio? what??
[20:42] <MFen> it has Stream #0.1: Audio: [0][0][0][0] / 0x0000, 44100 Hz, stereo, flt, 200 kb/s
[20:42] <MFen> but there is no sound when i play that
[20:42] <beandog> You totally lost me.
[20:42] <beandog> What do you WANT
[20:42] <MFen> some kind of encoding error i'm sure
[20:42] <MFen> i want a single, working a/v file. i don't even care the format very much
[20:42] <beandog> Either way, th e answer is the same ... look at -map
[20:43] <beandog> to get you started, it'll be something like ffmpeg -i video.mp4 -i audio.mp4 -map <something> new_video.mp4
[20:43] <beandog> er, add -c copy in there after -map options
[20:44] <beandog> If you don't mind using Matroska instead of MP4, you could use mkvtoolnix's gui mmg to do it much simpler.
[20:48] <MFen> ok, that got me closer, but vlc is telling me my audio stream is "undf" which i assume means undefined, i.e. not present
[20:48] <MFen> avconv -i video.m4v -i audio.flac -map 0:0 -map 1:0 -c copy out.avi
[20:48] <MFen> that's, when i play out.avi, it's undf
[20:49] <MFen> but, no errors! so that's good.
[20:55] <sware> gcc is unable to create an executable file. C compiler test failed.
[20:55] <sware> anyone?
[20:57] <sware> there are 0 topics for compiling under windows
[20:57] <sware> and every guide I've gone through is shit
[21:29] <sware> can anyone give me a guide on building ffmpeg using mingw on windows that is accurate to the latest snapshot?
[22:12] <illuminata> dunno if you guys hate avanti questions or not, but it seems to have accepted my offering of a 64bit ffmpeg on startup
[22:13] <illuminata> 1. will it puke if i try to give it a job and 2. are there any downsides feature-wise to using a 64bit ffmpeg in general?
[22:44] <toresbe> why is video so fucking difficult to get right? I mean, seriously. Using Adobe Media Encoder, I get video but no audio. Using ffmpeg, after hours of figuring out how to patch librtmp to get it to authenticate against Akamai... I get sound, but the video pulses like hell.
[22:46] <toresbe> I've spent two days trying to broadcast a bloody birdhouse!
[22:46] <toresbe> The eggs have already hatched, ffs!
[23:05] <mishehu> burek: never have ripped a dvd with ffmpeg before. I used dvdbackup for the 3seasons.vob
[23:09] <sware> toresbe: maybe you should just find an app that already streams your webcam ?
[23:12] <toresbe> sware: It's not really a webcam, it's an IP camera, and it delivers an mpeg4 stream.
[23:13] <toresbe> As far as I can tell, the problem is that the frame rate varies (usually, it's somewhere around 15fps)
[23:13] <toresbe> and ffmpeg does not seem to deal well with that...
[23:14] <sware> you mean syncing it to audio ?
[23:16] <toresbe> sware: no, audio seems to play back fine, but it's just that the video frame rates pulses like mad.
[23:16] <sware> and there's no way to set that on the device ?
[23:16] <toresbe> nope... it seems to be a fairly common thing.
[23:17] <JEEB> variable frame rate should be just fine, packets with the exact same presentation time stamp can be problematic though
[23:17] <toresbe> http://imgur.com/v8rKI
[23:19] <toresbe> If I force passthrough video sync using -vsync 0, I get these problems...
[23:19] <toresbe> [libx264 @ 0x97e33a0]non-strictly-monotonic PTS
[23:19] <toresbe> [flv @ 0x97e05c0]st:0 error, non monotone timestamps 367 >= 367
[23:20] <JEEB> yeh, same timestamp came twice
[23:20] <JEEB> 367 and 367
[23:21] <toresbe> the errors vary...
[23:21] <toresbe> [libx264 @ 0x8f561b0]invalid DTS: PTS is less than DTS
[23:21] <toresbe> [flv @ 0x8f535c0]st:0 error, non monotone timestamps 167 >= -71582788267
[23:21] <JEEB> fun timestamp
[23:21] <JEEB> deep in the past
[23:22] <JEEB> either ffmpeg is reading the timestamps wrong, or the camera is borked with regard to timestamps and there has to be a hack made around it somehow
[23:23] <toresbe> JEEB: do you have any suggestions about where I should start?
[23:23] Action: toresbe really wanted to get this done today.
[23:24] <JEEB> I've never dealt with rtsp stuff before and I have no idea how good the rtsp parser is to begin with
[23:24] <toresbe> I just started this job, so I don't have the access card, yet. Haven't eaten for so many hours...
[23:24] <toresbe> I can leave, but that's final.
[23:24] <toresbe> oh well. I'm sorry to be venting here :)
[23:25] <sware> what exactly is your setup?
[23:25] <toresbe> sware: at the moment, ffmpeg -rtbufsize 10000 -y -r 15 -i rtsp://192.168.10.222/live.sdp -fflags igndts+genpts -vsync 0 -acodec copy -vcodec libx264 -vpre superfast -vb 700k -f flv 'rtmp://(...)
[23:26] <toresbe> FFmpeg version 0.6.4-4:0.6.4-0ubuntu0.11.04.1 - perhaps I should get a newer one of those?
[23:26] <toresbe> and see how that goes
[23:27] <JEEB> you should try and build a static ffmpeg into your home folder or something
[23:27] <JEEB> --prefix=/home/derp/ownapps or something
[23:28] <JEEB> and yes, 0.6.x is quite old :)
[23:34] <JEEB> (although tbqh you don't even have to make install anything to just try out a static build in the compilation dir)
[23:44] <toresbe> JEEB: thanks, installing it now.
[00:00] --- Wed May 23 2012
More information about the Ffmpeg-devel-irc
mailing list