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

burek burek021 at gmail.com
Tue Nov 27 02:05:01 CET 2012


[09:05] <zap0> if i have a YUV codec and i output  in a  r16.g16.b16 format  is the YUV to RGB conversion 1st going to happen in 8bit, then the output simple expanded to 16bit?    or the YUV will be done with all 16bits of resolution ?
[09:06] <zap0> please ping me if you answer,  back in 10.
[09:35] <bimbis> hi all, I have the same problem as described in http://ffmpeg.org/pipermail/ffserver-user/2012-September/000248.html
[09:35] <bimbis> ffmpeg version 1.0, also tried from git  N-46531-g7693543
[09:36] <bimbis> os: linux, x86_64
[09:39] <bimbis> ffmpeg -i http:src -map 0:0 -map 0:2  -c copy smth.ts - then writing to file, source maping works
[09:40] <bimbis> ffmpeg -i http:src -map 0:0 -map 0:2  http://127.0.0.1:8090/feed.ffm - ffserver takes 0:0 and 0:1 stream, but not 0:0 and 0:2
[10:00] <blez> for max mp3 I should do: -acodec libmp3lame -ac 2 -ab 320k right?
[10:01] <juanmabc> freq?
[10:04] <blez> oh yes
[10:04] <blez> what else?
[10:04] <blez> and how to fix frequency
[10:06] <juanmabc> -ar 44100
[10:06] <blez> http://svnpenn.github.com/2012/ffmpeg-encode-mp3/
[10:06] <blez> what does:  -b:a 320k  do ?
[10:06] <juanmabc> newer syntax for -ab
[10:07] <blez> looks like mp3 has also 48000
[10:08] <juanmabc> f course, was an exmpl
[10:08] <blez> I'm looking for the most cleanest sound
[10:09] <juanmabc> flac is loosless
[10:11] <blez> I know, I'm using it too
[10:11] <blez> what should I use -f mp3 or -acodec libmp3lame
[10:16] <blez> after encoding the original flac is way louder than my generated mp3
[10:16] <blez> why is that?
[10:18] <blez> even if I do -vol 384
[10:21] <blez> hm, my generated flac is not seekable
[10:22] Action: blez help?
[10:43] <bimbis> i need help with ffserver too :) can someone help
[10:43] <bimbis> ?
[10:47] <zap0> anyone help with my problem?
[11:35] <elkng> how can I run ffplay with more than one video file as option ?
[11:36] <elkng> if I run it "ffplay 1.avi 2.avi" it says: "Argument '2.avi' provided as input filename, but '1.avi' was already specified."
[11:39] <Tjoppen> you can't
[11:44] <elkng> why its this way ? any player should get as many filenames parameters as user wants to open
[11:53] <Mavrik> becuase it's a rare feature needed and it's not trivial to implement?
[12:03] <bimbis> is someone using audio stream mapping to pick one language audio stream and then feed ffserver?
[12:06] <elkng> Mavrik: "not trivial to implement", why not to look at how "mplayer" implements it and copy code to ffplay ?
[12:12] <EricAhn> I configured using "    --enable-muxers \
[12:12] <EricAhn> 	--enable-muxer=h264 \
[12:12] <EricAhn> 	--enable-muxer=mpeg4 \
[12:12] <EricAhn> 	--enable-muxer=rtp \ .... ", but I found "#define CONFIG_RTP_MUXER 0" config.h.  It's weird? It's full configuration, http://pastebin.com/nB6yx3WB.
[12:59] <Tjoppen> elkng: ffplay isn't meant as a fully featured player, AFAICT. it's more of an example program
[14:14] <StaRetji> howdy folks
[14:15] <StaRetji> can ffmpeg be comiled with live555 support?
[14:16] <StaRetji1> so I thought if I could compile ffmpeg with live555 support, I might actually play and re-stream to rtmp
[15:18] <blez> somebody?
[15:18] <blez> my generated flac is not seekable
[15:45] <blez> sooomeboooooody
[15:46] <relaxed> blez: ffmpeg version?
[15:47] <blez> ffmpeg version N-46936-g8b6aeb1 Copyright (c) 2000-2012 the FFmpeg developers
[15:47] <blez> built on Nov 20 2012 19:34:37 with gcc 4.7.2 (GCC)
[15:47] <relaxed> did you try a diffferent player? mplayer or vlc?
[15:47] <blez> yes, same with vlc and winamp
[15:49] <relaxed> I'm building git now. Give me a second and I'll test too. You could wrap it in matroska if you need a quick fix.
[15:59] <blez> did you tried it?
[16:06] <relaxed> let me do that now
[16:08] <relaxed> I'm not seeing the issue here. mplayer seeks through it normally.
[16:09] <durandal_1707> relaxed: problem it that it is using streamed input
[16:10] <durandal_1707> direct files works fine
[17:49] <DelphiWorld> hey all
[17:49] <DelphiWorld> burek: :-P
[17:53] <Iandeb> Was thinking I would encode my ripped music with FLAC. In the past I used lame with ffmpeg. What would good settings be for music that I am going to listen to on my Android?
[17:55] <Iandeb> Using FLAC that is. Normally I am happy with something like -acodec libxxxx -b:a 128k -ac 2
[17:57] <Iandeb> not sure what settings for a lossless codec are more or less the same qulity above.
[18:03] <DelphiWorld> it's pocible to get DVBS stream using FFM?
[18:03] <relaxed> Iandeb: going from mp3 -> flac makes zero sense.
[18:05] <relaxed> But, if you're going to rerip and do wav -> flac, "ffmpeg -i input.waw output.flac" will do it.
[18:06] <relaxed> input.wav*
[18:09] <burek> Iandeb, use aac+
[18:09] <burek> DelphiWorld :beer: :)
[18:10] <DelphiWorld> burek: ;)
[18:25] <smj> I'm trying to capture some video from a game with x11grab but enabling VSync, disabling triple buffering and flipping doesn't seem to help with screen tearing
[18:25] <smj> is there some x11grab settings I could try?
[19:06] <bimbis> is someone using audio stream mapping to pick one language audio stream and then feed ffserver?
[19:07] <bimbis> version 1.0 ?
[19:08] <bimbis> for example in ffserver.conf in feed section "launch ffmpeg -i source -map 0:2 -map 0:0" or in Stream section AVOptionVideo map 0:2 ... ?
[19:10] <bimbis> to me, ffserver everytime picks only first audio stream (ignores my arguments)
[19:26] <tg2> lol ffserver
[20:22] <ajiekcahdp> hi all,can anyone help me? rtmp
[20:25] <ajiekcahdp> hello?
[20:44] <uglyoldbob> is it possible to have a Feed of ffserver use a file when no other input is present? EG: I want the feed to have a looping video when I am not feeding it a webcam stream (without having the streams interrupted).
[20:49] <retard> ajiekcahdp: you should get better at asking for help
[20:49] <ajiekcahdp> retart: how? :)
[20:52] <retard> ajiekcahdp: http://catb.org/~esr/faqs/smart-questions.html
[20:52] <ajiekcahdp> Who can help me: I bring streaming video over rtmp, after 60 seconds, it stops without error, what could be wrong?
[20:55] <ajiekcahdp> ffmpeg -report ololo.log -vstats_file MFRfile.txt -re -f x11grab -s "1366x768" -r "25" -i :0.0+0,0 -itsoffset 00:00:01 -t 1000000000 -vcodec libx264 -vpre "medium" -s "1024x768" -qscale 5 -f flv ("RTMP server")
[20:56] <ajiekcahdp> a command like I use
[21:05] <AJIeKCaHDp> Is it possible to ignore messages coming from the server?
[21:09] <bimbis> AJIeKCaHDp: 2>/dev/null at the end of command
[21:10] <AJIeKCaHDp> I think that the RTMP server sends ffmpeg command abort and streaming video stops
[21:11] <bimbis> someone use opensource rtmp server in production systems ?
[21:12] <bimbis> other than crtmpserver/red5 ?
[21:12] <AJIeKCaHDp> links are not allowed here?
[21:14] <AJIeKCaHDp> http://kiwi.kz/broadcast/
[21:15] <AJIeKCaHDp> Here's a site that I want to send the video stream
[21:16] <AJIeKCaHDp> I do not know what kind of server it is installed
[21:19] <burek> read their documentation
[21:21] <AJIeKCaHDp> Streaming works in them with XSplit and Flash media live encoder
[21:23] <burek> AJIeKCaHDp, please ask a specific question related to ffmpeg
[21:23] <burek> if you want a specific answer, that is
[21:24] <burek> bimbis, why are you launcing your ffmpeg from ffserver
[21:24] <burek> is there a particular reason for it?
[21:24] <bimbis> no, it doesnt matter I launch it from ffserver or not
[21:24] <burek> because launching it from cmd line would give you a useful output log
[21:24] <bimbis> the result the same - ffserver ignores audio mapings
[21:24] <burek> which you could paste using pastebin like site
[21:25] <burek> and we might be able to help you
[21:25] <bimbis> with loglevel debug I get the same logs :)
[21:25] <bimbis> ok, I'll paste soon
[21:25] <AJIeKCaHDp> I bring streaming video over rtmp, after 60 seconds, it stops without error, what could be wrong?
[21:26] <burek> smj, did you read our wiki?
[21:26] <burek> AJIeKCaHDp, one more time, this channel is related to ffmpeg project, so only questions related to ffmpeg are welcome here
[21:27] <Garglfluz> does anyone know if there is a way to set specifically the tbc of either the input mpg as read or the output mpg as written?
[21:27] <AJIeKCaHDp> burek, I stream the video via ffmpeg
[21:27] <Garglfluz> I'm getting a file that reads as tbc 50 and outputs as tbc 25, and somehow it's dropping half the bitrate on the output file
[21:29] <burek> Garglfluz, afaik it is related with -r (setting fps) and if the video is interlaced or not
[21:29] <burek> but, did you take a look at the docs first?
[21:30] <Garglfluz> yes I've been looking through the docs for the last few hours but have made no real progress
[21:30] <Garglfluz> pastebin command line and output here
[21:30] <Garglfluz> http://pastebin.com/hzASerAX
[21:30] <Garglfluz> The file was encoded with "Progressive sequence" set to ON in the Mainconcept MPEG encoder
[21:31] <Garglfluz> note in my pastebin that it reads the mpg infile as 38039 kb/s and writes it out at 21305.2kbits/s. I would expect some drop as it's not copying the 1536kbps of audio but that's a heck of a drop!
[21:32] <burek> there were no drops man
[21:32] <burek> your log is clean
[21:32] <Garglfluz> setting an -r 25 for the infile or outfile or both doesn't seem to help. It's reading tbr properly, it's tbc that seems to be the problem (unless it's something else)
[21:33] <Garglfluz> sorry I didn't mean a dropped frame, I mean that the bitrate has been reduced to approx half of the original bitrate despite that -vcodec is set to copy
[21:33] <burek> nothing was reduced
[21:33] <Garglfluz> this is not behavior I would normally anticipate with -vcodec copy
[21:33] <burek> the stream is copied verbatim
[21:33] <burek> remuxed that is
[21:33] <smj> burek: which page do you mean?
[21:33] <burek> the bitrate shown is just a statistics of the process
[21:34] <burek> which might be dependendent on your cpu/ram or such
[21:34] <burek> type ffmpeg -i outfile.m2v
[21:34] <Garglfluz> yes I understand that this is the intent, I certainly would expect -vcodec copy to work that way, but my infile is 6GB, the audio portion of it is 230 MB, and the outfile .m2v is 3.2GB
[21:34] <burek> and see if the bitrate is correct
[21:35] <burek> smj, try ctrl+f "captur"
[21:35] <Garglfluz> Stream #0:0: Video: mpeg2video (High), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 1200k tbn, 50 tbc
[21:35] <Garglfluz> that's from outfile
[21:35] <Garglfluz> so you might be right if you're thinking that it's not tbc and it's something else
[21:35] <smj> http://ffmpeg.org/trac/ffmpeg/search?q=captur&noquickjump=1&milestone=on&ticket=on&wiki=on ?
[21:35] <Garglfluz> really my question is why is my outfile so much smaller than my infile
[21:36] <AJIeKCaHDp> burek, http://pastebin.com/rcxLSZMs
[21:37] <smj> burek: do you mean https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20grab%20the%20desktop%20%28screen%29%20with%20FFmpeg ? it doesn't say a thing about screen tearing
[21:37] <burek> Garglfluz, it might as well be a bug
[21:38] <burek> could you consider reporting it to our bug tracker?
[21:38] <bimbis> burek: http://pastebin.com/EMu5WS7Z
[21:38] <Garglfluz> burek, here is a pastebin of infile vs outfile http://pastebin.com/QG9EbD4u
[21:38] <bimbis> test1: writing directly to file
[21:39] <bimbis> test2: feeding to ffserver
[21:41] <burek> bimbis Format flv
[21:41] <burek> no go
[21:41] <burek> you used -f mpegts
[21:41] <AJIeKCaHDp> burek, I've tried a bunch of options, does not help anything
[21:42] <burek> bimbis, try: ffmpeg -i http://10.2.3.14:9050/233.239.0.66 -map 0:2 -map 0:0 http://127.0.0.1:1200/stream.ffm
[21:43] <burek> Garglfluz, yes, something is fishy there..
[21:43] <burek> I would go for a bug report
[21:43] <Garglfluz> eee i've never made a bug report before I feel like I'm growing up
[21:44] <Garglfluz> slash... that doesn't help me for today! ha ha ha
[21:44] <burek> :)
[21:45] <burek> any particular reason why do you remux to m2v?
[21:45] <bimbis> burek the same :(
[21:46] <burek> bimbis http://ffmpeg.org/trac/ffmpeg/wiki/Streaming%20media%20with%20ffserver
[21:47] <bimbis> read 10 times ;)
[21:47] <bimbis> I've read 10 times ;)
[21:48] <burek> so it works? :)
[21:48] <bimbis> no :)
[21:48] <burek> how can you tell?
[21:48] <burek> any outputs?
[21:49] <AJIeKCaHDp> burek, You can not help me?
[21:50] <bimbis> in pastebin i pasted 1. ffmpeg writing to file  2. ffserver config 3. ffmpeg feeding ffserver
[21:50] <burek> AJIeKCaHDp, first, remove "-re" it's used only with file inputs
[21:50] <burek> (read the docs!)
[21:50] <burek> second, why "-itsoffset" ??
[21:50] <burek> (again, docs)
[21:50] <bimbis> output are ok in both cases, but audio stream is incorrect from ffserver
[21:51] <burek> and the worst thing, AJIeKCaHDp, you're not even using ffmpeg
[21:51] <burek> ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
[21:51] <burek> that's a fake ffmpeg
[21:51] <burek> the real one says Copyright by FFmpeg developers
[21:51] <burek> bimbis, what does it mean "audio stream is incorrect from ffserver"
[21:51] <Garglfluz> burek, I need to switch out the audio. I get the same problem going to a new .mpg
[21:52] <burek> Garglfluz, did you try simply using -an
[21:52] <AJIeKCaHDp> burek, ajiekcahdp at notebook:~$ svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
[21:52] <burek> AJIeKCaHDp, svn is deprecated long time ago
[21:52] <burek> where did you get the info
[21:52] <burek> to use svn anyway?
[21:52] <Garglfluz> burek, that command line is with -an
[21:54] <burek> Garglfluz, can you try first: ffmpeg.exe -i "V:\infile.mpg" -vcodec copy -an "V:\outfile.mpg"
[21:54] <burek> just to see if you get the correct thing
[21:55] <bimbis> burek: any ideas ? :)
[21:55] <Garglfluz> burek, same problem http://pastebin.com/9GbLG44z
[21:58] <burek> Garglfluz your input might be damaged
[21:58] <Garglfluz> burek, there is that possibility. starting to wonder if the bug report should really be to mainconcept
[21:58] <burek> <burek> bimbis, what does it mean "audio stream is incorrect from ffserver"
[21:59] <bimbis> this mean that audio language track is incorrect
[21:59] <burek> Garglfluz, well, during that process you have an opportunity to provide a sample to be checked for validity
[21:59] <burek> bimbis, any log outputs?
[21:59] <bimbis> if mapping is 0:2 and 0:0 in output i get 0:1(not 0:2) and 0:0
[22:00] <bimbis> burek in pastebin are logs, did you see ?
[22:01] <burek> bimbis, i dont understand you
[22:01] <burek> in your cmd
[22:02] <burek> you said -map 0:2 which is Stream #0:2[0x73f](eng): Audio: mp2
[22:02] <bimbis> sorry for my english :)
[22:02] <burek> and -map 0:0 which is Stream #0:0[0x73b]: Video: mpeg2video
[22:02] <burek> that means in the output you should have
[22:02] <burek> 0:0  Stream #0:2[0x73f](eng): Audio: mp2
[22:02] <burek> 0:1  Stream #0:0[0x73b]: Video: mpeg2video
[22:02] <burek> which you have
[22:02] <burek> so, what's the problem?
[22:04] <bimbis> burek its then i write to file
[22:05] <bimbis> bellow is example what happens then i feed ffserver
[22:05] <burek> i see
[22:05] <burek> so ffserver ignores your -maps
[22:05] <bimbis> ffserver ignores any arguments
[22:05] <bimbis> including maps :)
[22:05] <burek> can you try this (and paste the logs): ffmpeg -i http://10.2.3.14:9050/233.239.0.66 -map 0:2 -map 0:0 http://127.0.0.1:1200/stream.ffm
[22:06] <bimbis> they are pasted, but i can do it again :)
[22:10] <bimbis> Stream mapping:
[22:10] <bimbis>   Stream #0:1 -> #0:0 (mp2 -> libmp3lame)
[22:10] <bimbis>   Stream #0:0 -> #0:1 (mpeg2video -> libx264)
[22:10] <burek> please paste the full output
[22:10] <bimbis> here, o private? there is many lines :)
[22:12] <bimbis> Input #0, mpegts, from 'http://10.2.3.14:9050/233.239.0.69':
[22:12] <bimbis>   Duration: N/A, start: 62592.609278, bitrate: 384 kb/s
[22:12] <bimbis>   Program 1860
[22:12] <bimbis>     Stream #0:0[0x745]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
[22:12] <bimbis>     Stream #0:1[0x748](lit): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 192 kb/s
[22:12] <bimbis> thats i was afraid of :)
[22:14] <bimbis> burek: http://pastebin.com/3mnXFCYP
[22:22] <burek> just a sec
[22:23] <bimbis> ok
[22:23] <burek> bimbis, what commands exactly did you use for this output
[22:24] <bimbis> ffmpeg -i http://10.2.3.14:9050/233.239.0.69 -map 0:2 -map 0:0 http://127.0.0.1:1200/stream.ffm
[22:25] <bimbis> last mcast group octet from 66 changed to 69, because its unreachable
[22:26] <Tayeb__> yo saste_
[22:29] <burek> bimbis, i see.. it seems it's a bug..
[22:29] <burek> could you report it please?
[22:30] <bimbis> ok burek
[22:30] <bimbis> maybe you can suggest opensource flv stream server besided red5/rtmpd ??
[22:31] <bimbis> protocol: http or rtmp
[22:31] <burek> :)
[22:32] <bimbis> there is no answer
[22:32] <bimbis> mommoth is absolete
[22:34] <maister> in libavcodec, how to make codecs more "verbose". For example, the CLI app outputs this: http://pastebin.com/qs11ern4, but I don't see the last output line in the API. How to enable that?
[22:34] <maister> when using the API*
[22:46] <bimbis> burek: bug reported :)
[22:51] <dbro> Ahoy! I'm trying to convert AV_SAMPLE_FMT_S16 audio samples to AV_SAMPLE_FMT_FLT for use with ffmpeg's native aac encoder. Can anyone point me in the right direction. http://ffmpeg.org/doxygen/0.11/group__lavc__resample.html#g21439d23385e15361b38d06438cb770b seems close, but I have no idea what to provide for the filter related parameters& Thanks!
[22:57] <dbro> hmm, looks like avresample_convert() in libavresample could be what I want
[22:57] <maister> Thought it was libswresample?
[23:01] <dbro> maister: that looks promising. Thans!
[23:03] <dbro> seems there's too ways about this: libswresample with SwrContext and libavresample with http://ffmpeg.org/doxygen/0.11/structAVAudioResampleContext.html#4d60b0d0fa133adfd9767fbf3fe88197
[23:03] <dbro> *two
[23:35] <lakcaj> I'm writing the rtsp from my security camera to file using ffmpeg.  Is it possible to view the video at the same time?
[23:56] <llogan> lakcaj: you can try the tee psuedo muxer patch
[23:57] <llogan> http://ffmpeg.org/pipermail/ffmpeg-devel/2012-November/133744.html
[00:00] --- Tue Nov 27 2012


More information about the Ffmpeg-devel-irc mailing list