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

burek burek021 at gmail.com
Fri Feb 10 02:05:01 CET 2012


[00:04] <vadim__> brontosaurusrex: in case of VOD, you have to have a bunch of ismv files one per each desired bitrate (ismv = fragmented mp4(h264+aac)) + a manifest file which contains the list of bitrates and a list of mp4 fragments
[00:06] <brontosaurusrex> vadim__, yes, but the server is like an apache default or does it need anything special?
[00:06] <vadim__> brontosaurusrex: the server is a web server which understand the requests from the clients and can serve the manifest and the chunks
[00:06] <vadim__> for windows there is a standard solution IIS + IIS Media Services
[00:07] <vadim__> brontosaurusrex: in case of Apache, I know the USP smooth streaming module for Apache
[00:08] <brontosaurusrex> i see
[00:08] <brontosaurusrex> thanks
[00:30] <vadim__> ./creT
[00:30] <vadim__> ups
[00:30] <vadim__> wrong window...
[00:36] <vadim__> bye all
[01:08] <salsaman> hello can anybody help me with a problem decoding mpegts files ?
[01:08] <burek> can you please use pastebin.com, to show your command line and its output?
[01:08] <salsaman> im not using the command line
[01:09] <salsaman> i have adapted the mpegts demuxer slightly
[01:09] <salsaman> frames are coming out fine in the top half
[01:09] <salsaman> but the bottom of the frames shows vertical lines and artifacts
[01:10] <salsaman> and in the output i see e.g [mpeg2video @ 0x1f1de60] ac-tex damaged at 65 52
[01:10] <salsaman> i have checked my code very carefully so far nothing seems out of place
[01:11] <salsaman> its picking the raw packets and constructing an avpakcet exactly as before as far as i can tell
[01:12] <salsaman> the changes i made are very minor - basically a few changes to aviocontext, since my code does not have such sophistcated iocontext handling
[01:12] <salsaman> so i am wonderin, is there somethign special i have to do for mpeg, other than feeding packets into the decoder ?
[01:16] <salsaman> code is here: http://lives.svn.sourceforge.net/viewvc/lives/trunk/lives-plugins/plugins/decoders/mpegts_decoder.c
[01:20] <salsaman> to test i am not even doing a seek, just playing from frame 1 onwards
[01:22] <salsaman> basically lines 3613 - 3632
[01:24] <salsaman> im wondering if i should be checking the return value from avcodec_decode_video2
[01:25] <iive> salsaman: if i were you, i would have checked in i'm feeding the same packets to the decoder.
[01:25] <iive> aka, not cutting the packet size.
[01:26] <salsaman> i would do, but i have a hard time compiling ffmpeg from source
[01:26] <iive> then maybe do some simple checksum (aka sum of all bytes).
[01:26] <iive> ?? bsd?
[01:26] <salsaman> so its not easy to put my debugging code in
[01:26] <iive> macosx?
[01:26] <salsaman> fedora 16
[01:26] <iive> windows?
[01:26] <salsaman> linux
[01:26] <salsaman> :-P
[01:26] <iive> why would fedora have problems with ffmpeg?
[01:27] <iive> the /usr/local thing?
[01:27] <salsaman> i have so many versions of the libs around
[01:27] <salsaman> the problem is matching the libs withe code
[01:28] <iive> then build it static and don't install it.
[01:28] <salsaman> yeah that might work
[01:29] <iive> if it doesn't work... don't tell anybody i give you that idea :P
[01:29] <salsaman> actually its not so simple
[01:30] <salsaman> i can only play the file with mplayer
[01:30] <salsaman> so i would have to then dig into the ,player code
[01:31] <salsaman> im not sure why ffmpeg cant play it
[01:31] <salsaman> i type:
[01:31] <salsaman> ffmpeg canon_xha1.mpeg
[01:32] <salsaman> -> File 'canon_xha1.mpeg' already exists. Overwrite ? [y/N]
[01:32] <salsaman> oh wait doh
[01:33] <salsaman> its ffplay, right
[01:33] <iive> yep
[01:34] <iive> mplayer probably uses its internal demuxer, you may try the libaformat one with -demuxer lavf
[01:34] <salsaman> ok thanks
[01:34] <salsaman> the other big problem i have is with h264 format
[01:35] <salsaman> i have written a few demuxers that work fine, flv and asf for example
[01:35] <salsaman> they work for all formats except h264
[01:36] <salsaman> is there something special that has to be done with h264 packets ?
[01:42] <salsaman> for example my flv decoder works fine for vp6
[01:42] <salsaman> but for h264 it just says: [h264 @ 0xe3faa60] no frame!
[01:47] <iive> no idea... sorry
[01:50] <salsaman> ok thanks
[02:29] <javadtalab> I have streamed a video file encoded by x264 by a server. I want to stream it (play it)  at the client side  by the following instruction: ffmpeg -i rtsp://192.168.1.100:8900/testStream.
[02:29] <javadtalab>   but I could not. I can play it with mplayer.  Do I need to add some parameters to it to play stream properly?
[03:03] <JDuke128> hello , i need ffmpeg java library , is there any 2012 ffmpeg java library ? all others jffmpeg , ffmpeg4j is too old
[03:57] <Mista_D> Anyway to detect if macroblocks are showing in the video with ffprobe/libavfilter?
[04:18] <Mista_D> what's a better gcc version for ffmpeg on Centos? requiring least patches for faac/x264/lame/xvid/... ?
[05:33] <JDuke128> hello , i need ffmpeg java library , is there any 2012 ffmpeg java library ? all others jffmpeg , ffmpeg4j is too old
[06:42] <grepper> fmj ?
[07:00] <teratorn> JDuke128: xuggle?
[13:48] <salsaman> oh if anybody is interested i solved my mpegts decoding problem
[13:48] <salsaman> the answer is:
[13:48] <salsaman> ctx->flags|= CODEC_FLAG_TRUNCATED
[13:52] <salsaman> if anybody else has a similar problem (top half of frames looks good, bottom part is messed up), you all should advise them to set that flag bit
[13:53] <salsaman> i knew it had to be something trivial
[13:59] <kriegerod> I can't transcode this video to h264 using avconf/ffmpeg, must be bug. Tried git HEAD of both ffmpeg.org and libav.org. I get just grey screen, although avplay shows fine. The file: http://dl.dropbox.com/u/43104344/dump_video.flv . This is dump from wowza rtmp, using avconv/ffmpeg -vcodec copy. Please guys, if you have time, try it and advise what to do.
[14:42] <smjms> does 2-pass produce better quality, or is it just for getting the right average bitrate?
[14:42] <smjms> I guess I should ask in #x264
[15:07] <Mavrik> smjms, 2-pass produces usually better quality at the same bitrate as 1-pass
[15:08] <Mavrik> however it does not produce better quality as -crf at same filesize
[15:23] <slackyman> hi
[15:24] <slackyman> it should be a good idea to let to know vpx developers that last ffmpeg version doesn't need any patch
[15:26] <slackyman> bye
[15:48] <meisth0th> hello
[15:49] <meisth0th> ffplay continues to work even if the parametered file has reached the end, is there any parameter to tell ffmpeg to quit when file finishes to play?
[15:50] <meisth0th> -autoexit k :)
[16:29] <paulsf> I have a transport stream with an audio I believe to be dolby e, how would I go about extracting the dolby e out of the ts? I tried -acodec pcm_s24le, it seems to generate the wav output, however soundcode for dolby e does not recognize it as a valid dolby e stream
[16:30] <paulsf> Stream #0:1[0x33]: Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo, s32, 2304 kb/s
[16:31] <paulsf> this is the command line I used: ffmpeg.exe -i stream.ts -map 0:1 -acodec pcm_s24le output1.wav
[16:31] <paulsf> also tried pcm_s32le to no avail
[16:35] <Mavrik> paulsf, if you want to dump an audio stream out of the video
[16:35] <Mavrik> you of course shouldn't recode it
[16:35] <Mavrik> ffmpeg -i stream.ts -acodec copy out.dump
[16:35] <Mavrik> or out.wav
[16:35] <Mavrik> or w/e
[16:38] <paulsf> I tried that and it says [wav @ 00000000040641E0] NONE codec not supported in WAVE format
[16:38] <paulsf> Could not write header for output file #0 (incorrect codec parameters ?)
[16:41] <Mavrik> paulsf, obviously dolby doesn't fit into wav container :)
[16:42] <Amnesia> question.. where can I get the manpage file for ffmpeg
[16:43] <paulsf> ok, but how do I get to a wav? soundcode only accepts wavs
[16:43] <paulsf> soemoen suggested I use pcm_s24le, but the output is not recognized
[16:43] <paulsf> someone rather
[16:43] <Mavrik> Amnesia, http://ffmpeg.org/ffmpeg.html
[16:43] <Amnesia> find FFmpeg-FFmpeg-1afc881 -o -iname "*gz" -o -iname "*.1" results in nothing
[16:43] <Mavrik> this is pretty much the current one
[16:44] <Amnesia> Mavrik: ah there's no real manpage?
[16:44] <Mavrik> paulsf, pcm_s24le js a raw PCM 24-bit format, if you pass it that it'll decode your dolby to that
[16:44] <Mavrik> Amnesia, it is on linux, but it has pretty much the same contents
[16:44] <Amnesia> Mavrik: where can I find that file?
[16:44] <Mavrik> no idea
[16:44] <Amnesia> hm ok
[16:44] <Mavrik> man ffmpeg usually worked for me ^^
[16:44] <Amnesia> then you installed it through your pkgmanager:)
[16:46] <paulsf> ok so then how would you suggest going about it? :(
[16:46] <paulsf> I just need to get it out of the ts into wav lol, so that I can import it in soundcode
[16:47] <paulsf> this is what mediainfo claims to be (although I'm certain it's wrong about the 2.0 part)
[16:47] <paulsf> Format                                   : PCM
[16:47] <paulsf> Muxing mode                              : AES3
[16:47] <paulsf> Bit rate                                 : 2 304 Kbps
[16:47] <paulsf> Bit depth                                : 20 bits
[16:47] <paulsf> Channel(s)                               : 2 channels
[16:48] <Amnesia> Mavrik: make documentation <- that generates it:)
[16:49] <Amnesia> it seems to be outdated though
[16:49] <Mavrik> Amnesia, in which parts?
[16:50] <Mavrik> paulsf, hmm, no idea, obviously there's some muxing problems with dolby audio, I'm not even sure ffmpeg supports it. Sadly I don't know much about Dolby formats so I can't help you :\
[16:50] <Amnesia> videofilters
[16:52] <paulsf> thanks for trying anyway, perhaps someone else will chime in :)
[16:52] <paulsf> can also upload a sample if needed
[16:58] <Mavrik> Amnesia, hm, video filter documentation is separate
[16:58] <Mavrik> Amnesia, since it's part of libavfilter
[16:58] <Amnesia> yep
[16:58] <Mavrik> I usually use the online libavfilter documentation which seems up-to-date :)
[16:58] <Amnesia> but the manpage still has -padtop -padbottom etc
[16:59] <Mavrik> sadly, ffmpeg isn't an epitome of good documentation :(
[17:03] <SvenL-> thanks for mentioning libavfilter Mavrik , I think that's what I was about to ask about
[17:05] <Mista_D> Anyone can advice on macroblock detection methods?
[17:07] <SvenL-> http://ffmpeg.org/libavfilter.html
[17:07] <SvenL-> last line say "generated on feb. 08"
[17:08] <SvenL-> I am looking for a video histogram filter, is libavfilter the right place for this ?
[17:12] <saste> SvenL-: yes, an histogram filter may be placed in libavfilter
[17:12] <saste> http://ffmpeg.org/pipermail/ffmpeg-devel/2010-November/098340.html
[17:13] <saste> iirc the implementation was wrong (it needs to work in RGB space)
[17:13] <SvenL-> hu, indeed
[17:14] <SvenL-> depends on the source, actually, in my case for now I would need Y channel
[17:14] <SvenL-> I've seen this while googling
[17:14] <SvenL-> I'm looking for an analysing tool, not for adjustement (generally both are implemented)
[17:41] <hachi> hello folks, I'm attempting to use -vcodec copy on the latest git HEAD build of ffmpeg on linux to create a video stream of mjpeg images
[17:42] <hachi> when I feed a single image in and create an AVI, and then do the recipricol to pull it back out
[17:42] <hachi> I end up with 3 image files, none of which are a valid image
[17:43] <hachi> is anyone able to help me figure out why this is happening?
[17:56] <hachi> is there a way to set the initial integer ffmpeg will use when counting a printf format filename sorta thing
[18:34] <slackyman> burek:
[18:35] <slackyman> are you here?
[18:35] <slackyman> I sent you different emails
[18:35] <slackyman> :)
[18:38] <burek> slackyman, I am now :)
[18:38] <burek> thanks :)
[18:38] <burek> I'll take a look a little bit later, just after I grab something to eat :)
[18:38] <slackyman> ok
[18:39] <slackyman> :)
[19:15] <slackyman> anyone here knows HOW vlc capture windows screen?
[19:47] <Kingsy> burek: you around m8 ?
[19:56] <slackyman> how vfwcap works?
[19:59] <burek> slackyman, http://ffmpeg.test-lab.ch/viewtopic.php?f=25&t=13
[19:59] <burek> Kingsy, yes i am :)
[20:00] <slackyman> burek: list: Input/output error
[20:01] <Kingsy> burek: just had some thoughts about that problem I was having if you remember, I have captured my webcam from vlc (looks like about 640x480 res) it has no sound but its smoooooth as.. how can that be? going by what we found the usb wasnt capable...
[20:01] <slackyman> how knows how to capture desktop in windows?
[20:02] <burek> Kingsy, vlc can capture both video and audio
[20:02] <slackyman> I mean, vlc uses the meta-protocolo screen://
[20:02] <Kingsy> burek: I know.. I cant get the audio to work..
[20:02] <burek> I had to use it because ffmpeg didn't resolve the bug about audio video async
[20:02] <burek> that you also encountered
[20:02] <burek> well
[20:02] <burek> here is my cmd
[20:02] <Kingsy> burek: you remember that problem we had with ffmpeg not icking up the audio? I have that too in vlc
[20:02] <Kingsy> and I cant get it working
[20:03] <burek> it does pick the audio
[20:03] <burek> just use alsamixer to select the input device
[20:03] <Kingsy> hmm not sure what you mean by that..
[20:04] <Kingsy> burek: I am in alsamixer now, I don't see any option to select the input device..
[20:04] <slackyman> maybe I have NO video capture device
[20:04] <burek> cvlc -V dummy v4l2:///dev/video0:width=640:height=360:fps=25 :input-slave=alsa://hw:0 --sout='#transcode{venc=x264,width=640,height=360,vcodec=h264,vb=320,fps=25,acodec=mp3,ab=256,samplerate=44100,channels=2}:std{access=http,mux=ffmpeg{mux=flv},dst=0.0.0.0:8090/test.flv}'
[20:04] <burek> try that
[20:05] <burek> Kingsy, in alsamixer, press <tab>
[20:05] <burek> to switch to recording devices
[20:05] <burek> use <space> to select a device
[20:05] <burek> up/down arrows to turn volume up/down
[20:05] <burek> slackyman, if you don't have any Driver X: listed
[20:06] <burek> then you don't have any driver capable of capturing
[20:06] <slackyman> no, no, sorry, I got them :P
[20:06] <Kingsy> burek: I don't understand that command.. where is it saving the file?
[20:06] <Kingsy> why is it using http?
[20:06] <burek> it's broadcasting, not saving
[20:06] <burek> but if you want to save
[20:06] <burek> replace std{access=http,mux=ffmpeg{mux=flv},dst=0.0.0.0:8090/test.flv}
[20:06] <burek> with
[20:07] <burek> std{access=file,dst=test.flv}
[20:08] <slackyman> ffmpeg -f vfwcap -i 0 avi.avi --> [vfwcap @ 01CA9A80] Could not connect to device.
[20:08] <slackyman> 0: No such device
[20:08] <burek> read the manual
[20:08] <burek> and try list first
[20:09] <Kingsy> burek: it gave me an error, can I pm you it? this is kinda off topic
[20:09] <burek> sure
[20:09] <slackyman> the list say "Driver 0"
[20:11] <slackyman> burek, but vfwcap can capture screen output?
[20:12] <burek> slackyman,
[20:12] <burek> can you please use pastebin.com, to show your command line and its output?
[20:13] <slackyman> sorry
[20:51] <codepython777> When I do ffmpeg -i awesome.mp4 output.wmv -- does ffmpeg preserve the quality of the input mp4? Is there another flag I need to provide to do so?
[20:52] <hi117> -vcodec copy right?
[20:53] <hi117> otherwise itll reencode and lossy -> lossy = lost quality
[20:57] <codepython777> hi117: Thanks. So I use ffmpeg -vcodec -i input.mp4 output.wmv?
[20:57] <hi117> no
[20:57] <hi117> -vcodec copy
[20:58] <hi117> and put it after the -i bla.foo
[20:59] <hi117> ffmpeg orders operands ffmpeg  [global options] [[infile options] -i infile]... {[outfile options] outfile}...
[20:59] <hi117> er...
[20:59] <hi117> yes, thats right, -vcodec is an outfile option
[21:07] <codepython777> will try it now. Thanks
[21:07] <hi117> np
[21:25] <slackyman> hi, when i cross-compile ffmpeg in mingw32 I have no dshow dev
[21:44] <pythonirc101> When I try to use media player to play a wmv file created using ffmpeg, I get codec not found error. How can I fix this?
[21:45] <hi117> what codec are you putting in the wmv?
[21:45] <pythonirc101> WM/EncodingSettings: Lavf53.21.0 -- Is this the name of the output codec?
[21:45] <pythonirc101> How can I find out which codec is it?
[21:45] <hi117> ffmpeg -i file.wmv
[21:46] <pythonirc101> encoder         : Lavf53.21.0
[21:46] <pythonirc101> is that the codec?
[21:46] <hi117> no
[21:46] <hi117> its what encoded it
[21:46] <pythonirc101> hi117: http://pbin.be/show/403/
[21:46] <hi117> Video: h264 (Baseline) < an example of a codec
[21:47] <hi117> Stream #0:0: Video: h264 (High) < this is your codec, its h264
[21:48] <pythonirc101> hi117: any chance you know how I can make windows media player play h264?
[21:48] <hi117> hehe nope
[21:48] <hi117> get mplayer for windows
[21:48] <hi117> thats my answer XD
[21:51] <pythonirc101> hi117: I'm trying to burn DVDs from input mp4s. Windows DVD Maker is the only program I have that can do this. And it does not understand h264, hence my problem.
[21:51] <hi117> it probably does
[21:52] <hi117> but youre using b264 hi prifile
[21:52] <hi117> profile*
[21:52] <JEEB> Windows only comes with a H.264 decoder since Win7 :)
[21:52] <JEEB> Which is WMP12
[21:53] <hi117> what codec would you suggest if it cant play h264?
[21:53] <hi117> h263?
[21:53] <pythonirc101> I don't understand. If win 7 does h264, why doesn't mine work?
[21:54] <pythonirc101> windows dvd maker does not understand my container wmv files
[21:54] <JEEB> put H.264 into mp4
[21:55] <JEEB> H.264 in wmv is an abomination and I don't think MS even supports that
[21:55] <JEEB> or you miss the media stuff if your Win7 version is one of those SuperSpecial European ones
[21:55] <hi117> ah ya wmv has problems with h264 video
[21:56] <JEEB> I don't really know if it has problems per se, I just don't know how well supported that mix is :P
[21:56] <JEEB> esp. with standard MS filters
[21:59] <slackyman> I cannot enable dshow in my ffmpeg cross-compiled build
[21:59] <slackyman> dshow doesn't appear in enabled indevs
[21:59] <slackyman> after configure
[22:03] <slackyman> any1 knows how?
[22:04] <pythonirc101> JEEB: I've mp4s encoded in h264. What's the easiest way to keep the quality and make windows understand my files?
[22:07] <slackyman> JEEB, any info about enabling dshow?
[22:10] <JEEB> slackyman, no idea. But check that you have directshow headers etc. set on the machine you're cross-compiling on.
[22:10] <JEEB> pythonirc101, what?
[22:10] <JEEB> if you already have mp4s you should be able to load them as-is
[22:11] <slackyman> JEEB i have strmif.h
[22:11] <pasteeater> apparently Windows DVD Maker does not accept his H.264 in MP4, as i understand it
[22:11] <slackyman> I don't know wich headers I have to have
[22:11] <slackyman> :D
[22:14] <slackyman> enabling avisinth doen't affect dshow, right?
[22:28] <slackyman> JEEB, I've found them: they're under wine
[22:28] <slackyman> but I get errors
[22:38] <m4now> hello, i want to join two big mp4 files (x264,1080p) together. can ffmpeg do this without reencoding?
[22:40] <m4now> the output file should be the same format.
[22:44] <pasteeater> m4now: MP4Box -cat input1.mp4 -cat input2.mp4 output.mp4
[22:44] <pasteeater> results not guaranteed
[22:51] <slackyman> JEEB I have dshow libs also in mingw32 directories
[22:52] <slackyman> but if include them in CFLAGS and LD FLAGS I got several errors
[23:04] <slackyman> anyone?
[23:05] <burek> :)
[23:06] <burek> is libdl linkable as a static lib in the final binary? :)
[23:13] <slackyman> burek, have you tried?
[23:13] <burek> well :)
[23:13] <burek> I did :) I still am trying :)
[23:14] <slackyman> if yuou have libdl.a in your lib path it should be loaded as static
[23:15] <burek> hmh
[23:17] <slackyman> as far as I know when compiling ffmpeg statically (the default) "-static" is passed as parameter to the linker
[23:17] <burek> yes i know that
[23:17] <slackyman> or am I wrong?
[23:17] <burek> i read your mails, thanks
[23:17] <burek> but
[23:17] <burek> I get the same error for a lot of libs, something like this
[23:17] <slackyman> have you compiled libdl or are U using the one given by repositories?
[23:18] <burek> /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libasound.a(dlmisc.o): in function snd_dlopen:dlmisc.c:70: error: undefined reference to 'dlopen'
[23:18] <slackyman> as I wrote in my emails you have to check EVERY lib configure options
[23:18] <burek> and I read about libdl that it's a part of gcc I guess
[23:18] <burek> which (tell me I'm wrong) means I have to compile my own gcc? :S
[23:18] <burek> I did
[23:18] <slackyman> no
[23:18] <burek> except libdl
[23:19] <slackyman> dlopen
[23:19] <slackyman> uhm...
[23:19] <burek> where is the homepage of that stuff anyway
[23:19] <burek> to download the source
[23:20] <slackyman> I think it comes from glibc
[23:20] <burek> so, I need to compile glibc statically
[23:20] <burek> and just continue with ffmpeg the usual way?
[23:20] <slackyman> try :D
[23:20] <burek> :D
[23:20] <burek> I think I'll be sorry, I had that kind of feeling :D
[23:21] <slackyman> no, I think everything will go fine
[23:21] <Mista_D> How do I see histogram with -qphist?
[23:22] <slackyman> wait a moment, burek
[23:22] <burek> http://linuxsoft.cern.ch/cern/slc6X/x86_64/yum/updates/repoview/glibc-static.html
[23:22] <burek> hmh, there are obviously libs built in a static way
[23:22] <burek> so I guess I won't break anything :D
[23:22] <slackyman> wait
[23:22] <burek> ok
[23:23] <slackyman> dlopen should be difened in libdl.c
[23:24] <slackyman> uhm...
[23:24] <burek> I'll just git clone glibc.git and try
[23:24] <slackyman> I think that using a glib static build could be better
[23:26] <burek> Mista_D, Google didn't help much..? :S
[23:27] <Mista_D> burek: nope.
[23:28] <burek> I can see :/ not much help there :/ you can try in #ffmpeg-devel though
[23:29] <burek> if they don't know, you're out of luck
[00:00] --- Fri Feb 10 2012


More information about the Ffmpeg-devel-irc mailing list