[Ffmpeg-devel-irc] ffmpeg.log.20121122
burek
burek021 at gmail.com
Fri Nov 23 02:05:01 CET 2012
[05:40] <bakers> If I build a "static" version of ffmpeg there should be no external libraries required correct? I.e. I could transfer that binary to a different machine it would work
[05:40] <bakers> without installing libx264 and libfaac etc?
[05:41] <sacarasc> Yes.
[05:42] <bakers> sacarasc: Thought so... I did that, and when I copied it to another machine and try and run it I get
[05:42] <bakers> /tmp/ffmpeg: error while loading shared libraries: libx264.so.120: cannot open shared object file: No such file or directory
[05:42] <sacarasc> Then it wasn't made staticly.
[05:43] <bakers> sacarasc: I would agree, but the default is to enable static, and configure says static yes
[05:43] <bakers> http://pastebin.com/CpcZyP2t
[05:44] <sacarasc> Just get them, instead. :p
[05:45] <bakers> Aha
[05:46] <bakers> sacarasc: AWESOME! That totally worked
[05:46] <sacarasc> :)
[09:09] <dgbaley27> Hey. Is there a way for me to see the language of an audio stream? ffmpeg -i <file>
[09:10] <mudkipz> try ffprobe
[09:13] <dgbaley27> mudkipz: The output is (almost) identical. This is a .vob from a dvdbackup rip
[09:14] <ubitux> look at the options
[09:14] <ubitux> -show_streams, -show_format, etc
[09:22] <dgbaley27> Thanks, it must not be on the DVD
[09:47] <mudkipz> What is the real-time buffer?
[10:52] <smj> On Windows there's XSplit and ffsplit, but does Linux have any proper streaming tools?
[10:58] <csholmq> As far as RTMPproto goes, are there any dependencies that needs to be compiled in? I'm getting invalid characters as 'fname' when accessing a stream.
[11:04] <csholmq> Seems like a bug to me.
[11:47] <franki3> hello to everybody, does anybody know if ffserver support rtsp over http streaming?
[12:08] <franki3> hello to everybody, does anybody know if ffserver support rtsp over http streaming?
[12:54] <burzum> any ideas about that issue? http://forum.videohelp.com/threads/351012-Ffmpeg-meta-data-fails-to-write-UTF-8-and-screws-up-files?p=2201069#post2201069
[12:55] <juanmabc> mmm, for linux unix free software games, what would be a good sound effect format? wav is a windows standard, but what about .au, ..flac, raw even? or just cool to .ogg (good for music tracks)?
[12:56] <juanmabc> mainly what offers a wav similar specs without being ms?
[12:59] <burzum> whats your problem with wav? http://en.wikipedia.org/wiki/WAV just a silly fundamentalistic anti-MS philosophy? there is no technical reason to not use the format.
[13:00] <burzum> but to reduce the size i would pick flac or ogg vorbis
[13:06] <juanmabc> there is no copyright holding with wav whatsoever? codecs/decoders included?
[13:06] <juanmabc> kind mp3
[13:07] <juanmabc> i see they coming
[13:11] <divVerent> juanmabc: you can put some weird codecs inside wav, yes
[13:12] <divVerent> but if you restrict yourself to WAV with pcm_s16le, there should be no danger
[13:12] <divVerent> I'd avoid floating point samples as there SURE are patents on that (not sure, but for floating point textures there ARE some stupid trivial patents)
[13:12] <divVerent> also, I'd avoid ADPCM stuff because it sucks
[13:13] <divVerent> leaving basically the four 16bit formats signed 16 LE, signed 16 BE, unsigned 16 LE, unsigned 16 BE
[13:13] <divVerent> of which you can pick whatever you prefer (which will quite surely be signed 16 LE)
[13:13] <divVerent> however, you can just as well use vorbis for sound effects too, it works fine in Xonotic
[13:13] <divVerent> the only catch is that you should decode short and frequently used sound files once and not on every use
[13:14] <divVerent> so, on loading, you check file size (or a flag given by the caller, whatever) and decide whether to decode on load and use that as cached PCM samples
[13:14] <divVerent> or, for long files (music), whetehr to instead call the decoder on demand (stream)
[13:15] <franki3> hello to everybody, does anybody know if ffserver support rtsp over http streaming?
[13:15] <divVerent> as for the wav format itself, you can even put MP3 encoded samples in that (windows 9x sound recorder can be told to)
[13:16] <divVerent> but I'd recommend not supporting that if you want to stay clear of the patent nonsense
[13:17] <juanmabc> so i guess as computer evolved, an ogg effect does not hurt so much, once loaded
[13:18] <juanmabc> thanks
[13:20] <divVerent> it does hurt :)
[13:20] <divVerent> for Xonotic, this was about 20% to 30% CPU load on a few years old system
[13:20] <divVerent> if you stream-decode even the sound effects
[13:20] <divVerent> but we now simply decode these at load time
[13:21] <divVerent> once you did that, it obviously won't hurt any more, as then in memory you have the same as you'd have if it were a wav
[13:47] <franki3> hello to everybody, does anybody know if ffserver support rtsp over http streaming?, I'd be pleased if somebody could answer thanks
[14:02] <Mavrik> franki3: I'm quite sure it doesn't.
[14:02] <franki3> Thanks @Mavrik
[15:48] <Francexi> HI there, i've a problem in grabbing video from the x server
[15:48] <Francexi> the video is accelerated
[17:13] <burzum> has anyone an idea why this happens? http://forum.videohelp.com/threads/351012-Ffmpeg-meta-data-fails-to-write-UTF-8-and-screws-up-files
[17:33] <Tjoppen> windows 8 finally has utf8 support in cmd?
[17:36] <Mavrik> hmm, didn't it always support utf?
[17:37] <JEEBsv> UTF-8 "support" has been in for quite a while, and I don't think it ever became better :P
[17:37] <JEEBsv> you could force enable the locale, but it had quite lulzy consequences at times
[17:38] <JEEBsv> like text suddenly going over the whole cmd window
[17:38] <JEEBsv> "whoops2
[17:38] <Mavrik> ^^
[17:39] <JEEBsv> aka "don't use UTF-8 on the windows terminal if you can only limit it", IIRC to a limit ffmpeg converted Windows' UCS-2/UTF-8 (Wchar) to UTF-8 internally and thus correctly worked
[17:46] <csholmq> Anybody familiar with the new RTMP support in FFmpeg? I get miscellaneous errors
[17:48] <burzum> JEEB Mavrik Tjoppen the encoding is set via chcp and UTF8 is codepage 65001
[17:48] <JEEBsv> which is known to be derpy
[17:48] <burzum> well, any better idea?
[17:49] <burzum> the production system is going to be a linux, or better BSD...
[17:49] <JEEBsv> see if the input on windows gets converted from wchar to UTF-8 for the internals :P
[17:49] <JEEBsv> I think I poked you with this quite a long time ago
[17:49] <burzum> i havent noticed it then sorry
[17:50] <burzum> how do i check this?
[17:50] <JEEBsv> Read The Code, luke?
[17:50] <JEEBsv> probably ffmpeg.c
[17:50] <JEEBsv> check if the code path does that, if it doesn't then make it do that and it should get fixed with you just using the native wchars @ windows
[17:50] <burzum> im not a c programmer :/
[17:51] <JEEBsv> also you might want to ask elenril about it, he wrote the metadata stuff over at libav :P
[17:51] <JEEBsv> burzum: it shouldn't be /that/ hard to go through
[17:52] <burzum> this ffmpeg vs libav scared me first because ubuntu 12 LTS said ffmpeg is deprecated and favors libav
[17:53] <JEEBsv> the warning says that the ffmpeg binary in the libav projet is deprecated (you should use the avconv command instead if you use the packaged thng)
[17:53] <JEEBsv> *thing
[17:53] <JEEBsv> when elenril rewrote parts of ffmpeg, he renamed it to avconv
[17:53] <JEEBsv> meanwhile ffmpeg was left for a while, and after the 0.8 release it was removed
[17:54] <burzum> hes going to be around in this channel or is there another one for the av thing?
[17:54] <JEEBsv> #libav
[17:55] <JEEBsv> he's there
[17:55] <csholmq> Are you guys saying UTF-8 is a bit dodgy in v1.0?
[17:55] <JEEBsv> no
[17:55] <JEEBsv> UTF-8 + Windows CLI
[17:55] <JEEBsv> is dodgy
[17:55] <csholmq> Oh, ok.
[17:55] <JEEBsv> I think ffmpeg/avconv convert the input from wchar to UTF-8 internally in some cases
[17:55] <JEEBsv> not sure if it's just for input
[17:55] <csholmq> Cause I get character encoding problems when I try to stream.
[17:55] <JEEBsv> (files)
[17:57] <burzum> im looking at ffmpeg.c but I have seriosly no idea what im looking for
[17:58] <JEEBsv> ok, cmdutils.c
[17:58] <JEEBsv> ctrl+f for wchar
[17:58] <JEEBsv> and see the comment before prepare_app_arguments()
[17:59] <burzum> line 212 -> * For Windows - perform wide-char to UTF-8 conversion.
[17:59] <burzum> im on master
[17:59] <JEEBsv> yes
[18:00] <JEEBsv> all (?) command line arguments seem to be internally converted to UTF-8 _from_ wchar
[18:00] <JEEBsv> so start giving it wchar and see if it fixes itself on windows
[18:02] <burzum> i guess its a stupid question but how do i set the shell to wchar or what exactly means wchar? i found this http://msdn.microsoft.com/en-us/library/windows/desktop/dd374131(v=vs.85).aspx but no code page for it here? http://en.wikipedia.org/wiki/Windows_code_page
[18:03] <JEEBsv> just try feeding it UTF-16LE or UCS-2
[18:03] <JEEBsv> or just wchar from whatever you use
[18:03] <wm4> burzum: for all Windows API functions that take strings, there are two versions: W (using wchar, 2 bytes per code point), and A (using 8 bit codepages)
[18:04] <wm4> burzum: whether unicode works or doesn't work typically depends on which APIs a program is using
[18:04] <burzum> sounds like API hell
[18:04] <JEEBsv> isn't that much
[18:04] <burzum> thanks for the explanation let me try it
[18:04] <wm4> ffmpeg uses utf-8 internally, but should convert command line etc. from wchar
[18:04] <JEEBsv> yes
[18:04] <JEEBsv> which is what I pointed at
[18:05] <JEEBsv> @ cmdutils.c
[18:05] <wm4> yes
[18:05] <burzum> chcp does not take 1200 or 1201
[18:05] <wm4> that makes me wonder, does ffmpeg use wprintf for terminal output?
[18:05] <burzum> Invalid code page
[18:06] <JEEBsv> burzum: no need to change the damn code page
[18:06] <JEEBsv> just push UCS-2 to itg
[18:06] <JEEBsv> or UTF-16LE
[18:06] <burzum> arr you want me to change the ffmpeg code to do it
[18:07] <JEEBsv> ...
[18:07] <wm4> unless I'm missing something, it seems ffmpeg uses vfprintf
[18:07] <JEEBsv> no
[18:07] <wm4> for log output
[18:07] <JEEBsv> I just want you to instead of UTF-8 push UCS-2 or UTF-16LE to it
[18:07] <JEEBsv> from your calling code
[18:07] <JEEBsv> gawd damn it
[18:08] <burzum> the code that is calling it is a php script using shell_exec() and its UTF8 coming from the db. As far as I understood the whole thing it will use the regular system shell (cmd.exe in this case) and pass the string through, so I would say it depends on the shell
[18:16] <JEEBsv> burzum: out_string = make_your_final_cmdline_string();\n if( system == WINDOWS ) then out_string = convert_text( out_string , UTF-8, UTF-16LE );
[18:16] <JEEBsv> have some stuff you could do in your PHP
[18:16] <JEEBsv> I double dare you do something like that
[18:17] <JEEBsv> on windows command line + ffmpeg it is all set to wchar, which it should be
[18:18] <JEEBsv> http://www.php.net/manual/en/function.mb-convert-encoding.php something like this
[18:23] <csholmq> Anybody running v1.0 (without libRTMP)? Would you mind testing;
[18:23] <csholmq> ffmpeg -rtmp_pageurl http://www.earthcam.com -rtmp_swfurl http://www.earthcam.com/swf/cam_player_v2/ecnPlayer.swf?20120504_a -rtmp_live 1 -i "rtmp://video2.earthcam.com/fecnetwork/4017timessquare.flv.flv"
[18:26] <csholmq> Does it find the stream alright?
[18:27] <burzum> JEEB http://bin.cakephp.org/view/1735131210 ive tried UTF-8 and UTF-16LE and UCS-2
[18:28] <burzum> UTF8 and UCS produce the same garbage and UTF16 fails hard because the shell doesnt recognize it correctly
[18:28] <JEEBsv> then UCS-2 and make sure you don't get anything weird in there. Also check on a defaultly UTF-8 system that the tags are actually wrong and not right
[18:29] <JEEBsv> also, > auto for input text encoding
[18:29] <JEEBsv> if you know it's UTF-8 then set it
[18:30] <burzum> already tried auto and UCS-2
[18:30] <burzum> i need to test this in the ubuntu vm when i got it set up
[18:30] <JEEBsv> also try exec instead of shellexec?
[18:31] <JEEBsv> burzum: on usually UTF-8 things you of course want UTF-8
[18:31] <JEEBsv> the wchar -> UTF-8 conversion is done only on windows hosts
[18:32] <JEEBsv> anyways, try to actually make sure that UCS-2 or whatever wchar_t is is getting properly sent to ffmpeg
[18:32] <JEEBsv> and then see how it goes
[18:33] <burzum> im sure the source is UTF-8 in this case I'm using phpunit tests and the test file with the input is actually UTF-8
[18:34] <JEEBsv> then don't set auto in there for input? Just to make sure :P
[18:34] <JEEBsv> now go through what I've said after you read that one line that you decided to comment at
[18:45] <burzum> JEEB i need to come back to this later tonight or tomorrow, my fiance is chasing me to have dinner...
[18:46] <burzum> thanks for your help
[18:46] <JEEBsv> np
[20:21] <juanmabc> are filters a not so old (i.e. considerably new) feature? what about LADSPA plugins?, seems neat (c code) and the quantity/quality are grreat
[20:44] <juanmabc> ladspa, anyone?!
[20:51] <Francexi> HI there, anyone is available to help me?
[20:53] Action: juanmabc runs
[20:53] <Francexi> i've a problem with the grabbing of a video
[20:53] <Francexi> from the desktop
[22:13] <Rapper_skull> ciao a tutti
[22:13] <Rapper_skull> hello
[22:13] <Rapper_skull> i need help with ffmpeg
[22:14] <Francexi> dimmi Rapper_skull
[22:14] <Rapper_skull> devo encodare un video nel seguente formato:
[22:15] <Rapper_skull> Format : AVC
[22:15] <Rapper_skull> Format info : Advanced Video Codec
[22:15] <Rapper_skull> Format profile : High at L4.1
[22:15] <Rapper_skull> Codec Id : avc1
[22:15] <Rapper_skull> Codec info : Advanced Video Coding
[22:15] <Rapper_skull> sapresti dirmi come configurare ffmpeg per farlo?
[22:15] <Francexi> come l'hai installato?
[22:16] <Rapper_skull> con questa guida qui:
[22:16] <Rapper_skull> https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[22:17] <Francexi> attendi un momento
[22:17] <Rapper_skull> ok
[22:17] <Francexi> mi posti su pastebin quello che ti restituisce `ffmpeg -codecs~?
[22:18] <Francexi> `ffmpeg -codecs`
[22:18] <raven> hi
[22:18] <Francexi> hi raven
[22:18] <raven> how to merge two avi files together with copying audio and video?
[22:18] <Francexi> google?
[22:19] <Francexi> http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20concatenate%20%28join,%20merge%29%20media%20files
[22:19] <Rapper_skull> eccolo: http://pastebin.com/qfE8qgMT
[22:21] <Francexi> dovrebbe bastare mettere -vcodec libx264
[22:21] <Francexi> mi raccomando a usare un container compatibile
[22:22] <Rapper_skull> mkv va bene?
[22:22] <Francexi> assolutamente
[22:23] <Francexi> beh, io devo andare
[22:23] <Francexi> se hai ancora problemi, prova a usare google prima
[22:23] <Rapper_skull> ho già provato
[22:23] <Francexi> bye everyone
[22:23] <Rapper_skull> infatti avevo già fatto così
[22:23] <Rapper_skull> ma non funziona
[22:24] <Rapper_skull> mi esce
[22:24] <Rapper_skull> Format : AVC
[22:24] <Rapper_skull> Format info : Advanced Video Codec
[22:24] <Rapper_skull> Format profile : High at L4.1
[22:24] <Rapper_skull> Codec Id : V_MPEG4/ISO/ASP
[22:24] <Rapper_skull> Codec info : Advanced Simple Profile
[22:24] <Rapper_skull> hello
[22:25] <Rapper_skull> is there everyone that can help me with ffmpeg?
[22:27] <burzum> JEEB im back, are you still there? "now go through what I've said after you read that one line that you decided to comment at" what line exactly please?
[22:30] <Rapper_skull> is there everyone that can help me with ffmpeg?
[22:31] <sacarasc> If you say what your problem is.
[22:32] <Rapper_skull> I need to encode a video in the following format:
[22:32] <Rapper_skull> Format : AVC
[22:32] <Rapper_skull> Format info : Advanced Video Codec
[22:32] <Rapper_skull> Format profile : High at L4.1
[22:32] <Rapper_skull> Codec Id : avc1
[22:32] <Rapper_skull> Codec info : Advanced Video Coding
[22:33] <Rapper_skull> how can i do it?
[22:33] <Rapper_skull> I have a video in this format that works on my tv, must i post the mediainfo report?
[22:33] <sacarasc> ffmpeg -i input -c:v libx264 -profile high -level 4.1 -preset slow output.mkv
[22:34] <burek> Rapper_skull, next time use pastebin
[22:34] <burek> :)
[22:34] <sacarasc> I am not sure if -level is still in ffmpeg.
[22:35] <burek> raven, take a look at our wiki
[22:35] <burek> there is an article about that
[22:35] <raven> ok tnx
[22:43] <Rapper_skull> thanks that works
[22:43] <Rapper_skull> but my samsung tv does not show ass subtitles
[22:44] <Rapper_skull> can i impress them in the video with ffmpeg?
[22:44] <klaxa> yes, use video filters (-vf ass) you will have to extract them if they are embedded in an mkv
[22:45] <Rapper_skull> when i convert the mkv with ass subtitles to the codec above i need to bake the subs into it
[22:48] <klaxa> Rapper_skull: like i said, you will have to use the ass video filter to burn the subtitles into the video, if the subtitles are embedded in an mkv you will have to extract them
[22:48] <Rapper_skull> so i must do it in 2 passages?
[22:49] <klaxa> that's the conclusion i came to, i still wish someone can prove me wrong and tell me you can burn embedded subtitles from mkvs
[22:50] <Rapper_skull> ok thanks
[22:50] <Rapper_skull> i needed it in one passage
[22:50] <Rapper_skull> because i'm using ffmpeg for transcoding
[00:00] --- Fri Nov 23 2012
More information about the Ffmpeg-devel-irc
mailing list