[00:02] <relaxed> praedo: try using the flv container [00:18] <Freakshow> ha! relaxed: I saw that comment but missed the notion if was for someone else and thought to myself, 'why?' [00:18] <Freakshow> :P [00:18] <Freakshow> I'm seeing this in the output... [00:18] <Freakshow> [rtsp @ 0x101849200] method ANNOUNCE failed: 401 Unauthorized [00:18] <Freakshow> Could not write header for output file #0 (incorrect codec parameters ?) [00:19] <praedo> relaxed, i do [00:19] <praedo> this is my commnad: [00:20] <praedo> ffmpeg -i file -re -acodec copy -vcodec copy -f flv rtmp://wowzaserver [00:20] <praedo> some of the mp4 files play and some don't [00:20] <praedo> and they are all encoded in the same way [00:20] <praedo> why? [00:23] <indigo> uhm... I'm still getting "libxyz.dll not found" [00:23] <Freakshow> praedo: what's the output on the wowza side look like? is it giving you any ideas of what's going on with those inputs? [00:24] <Freakshow> when they don't work; that is [00:24] <indigo> if I copy the libs (é.dll) the executable does... nothing! [00:25] <darkstarbyte> Where can I get the ffms header for x264? [00:35] <indigo> I think that ffmpeg enable automatically zlib and zlib2 if it finds those libs in libpath [00:35] <indigo> is it right? [00:35] <praedo> Freakshow, wowza logs show this: [00:36] <praedo> INFO server comment 2012-02-01 23:35:23 - - - - - 2427.688 - - - - - - - client connectionClosed [1232396645] pingtimeout [00:36] <praedo> for files that don't play [01:04] <Freakshow> which of the wowza logs is that? [01:04] <Freakshow> error or access? [01:07] <Freakshow> I'm judging by the output it's access [01:07] <Freakshow> but wanted to be sure [01:11] <Sorcey> praedo: I never saw 'pingtimeout' at wowza before? [01:11] <Sorcey> did you try serving the file through http to flowplayer? [01:11] <Sorcey> posting the link to a place where we can check out your .mp4 file might be useful as well [01:15] <praedo> in flowplayer as http both files work [01:15] <praedo> but as rtmp some work and some don't [01:15] <praedo> can i send you both files to compare? [01:15] <praedo> i used mediainfo and all seems equal for me [01:16] <Sorcey> try streaming to flowplayer without -re [01:16] <Sorcey> err, to wowza [01:16] <Sorcey> you can't dcc to me but you can pm me a link [01:16] <Sorcey> I'll be going to bed soon tho :) [01:17] <praedo> http://frilab.frigola.cat/working_in_rtmp.mp4 [01:17] <praedo> http://frilab.frigola.cat/not_working_in_rtmp.mp4 [01:17] <praedo> Sorcey, please have a look at them [01:19] <Sorcey> I see only one difference: the one that's working has a variable bitrate aac soundtrack [01:19] <Sorcey> the other one has constant bitrate [01:20] <praedo> strange because encoding was exactly the same [01:20] <Sorcey> I'll try streaming to wowza using my own test setup [01:20] <praedo> yes please, thanks [01:21] <praedo> ffmpeg -i file -re -acodec copy -vcodec copy -f flv rtmp://wowzaserver [01:21] <praedo> like this? [01:23] <Sorcey> yup [01:23] <Sorcey> both work using rtsp in vlc [01:23] <Sorcey> hmm, buffering [01:25] <Sorcey> by the way, these files are 48 kHz [01:25] <praedo> i tried flowplayer both 3.2.5 and the latest 3.2.7 [01:25] <praedo> with rtmp plugin [01:26] <Sorcey> I remember something about flv not supporting other samplerates than 11, 22 and 44 kHz [01:26] <praedo> but i have many working mp4 that can be streamed being 48 [01:26] <Sorcey> yeah, I know [01:26] <Sorcey> it works here too [01:26] <praedo> and the non_working too? [01:26] <Sorcey> ah, that's an mp3 restriction only I think [01:27] <Sorcey> people used to stream using h263 + mp3 audio back in the days :P [01:27] <praedo> the flash player can't play it because wowza logs timeout every time [01:27] <praedo> only for some files [01:27] <praedo> always for that non_working file [01:28] <Sorcey> I get this in my logs: [01:28] <Sorcey> Fragment duration greater than suggested range of 1-4 seconds. Adjust keyframe interval accordingly: Fragment durations: [10.0,10.0,10.0] [01:29] <Sorcey> 10 seconds is the default [01:29] <Sorcey> Fragment duration greater than suggested range of 1-4 seconds. Adjust keyframe interval accordingly: Fragment durations: [7.1,10.0,2.8] [01:29] <Sorcey> that's the working file [01:29] <Sorcey> might fail because flowplayer receives too much data without receiving a keyframe maybe? [01:29] <praedo> what version? [01:30] <Sorcey> the non_working = 10+10+10, the working = 7+10+3 [01:30] <praedo> what that means? [01:30] <Sorcey> add the following parameter in ffmpeg: [01:31] <Sorcey> -g 100 [01:31] <Sorcey> when encoding the .mp4 [01:31] <Sorcey> that means 1 keyframe every 4 seconds [01:31] <Sorcey> or better: [01:31] <Sorcey> -keyint_min 4 [01:31] <praedo> not both? [01:31] <Sorcey> -keyint_min 100 [01:31] <Sorcey> sorry [01:31] <Sorcey> I oughtta go to bed :x [01:31] <Sorcey> no, just use -keyint_min 100 [01:32] <Sorcey> it means ffmpeg should use at least 1 keyframe every 4 seconds [01:32] <praedo> can you wait for me to encode and upload the files again? [01:32] <Sorcey> yeah, sure [01:32] <praedo> 10min. please [01:32] <Sorcey> with a bit of luck they'll work immediately [01:33] <praedo> i hope so... [01:37] <praedo> ffmpeg -i working.avi -keyint_min 100 -deinterlace -vcodec libx264 -preset medium -crf 24 -threads 0 -acodec libfaac -aq 100 working.mp4 [01:37] <praedo> is it correctly placed there? [01:47] <Sorcey> I think so yeah [01:47] <Sorcey> you should use -vf yadif instead of -deinterlace [01:47] <praedo> uploaded again [01:48] <Sorcey> deinterlace doesn't work on your file, or at least not the mp4 you sent earlier [01:48] <praedo> you can download them again from the same place and compare [01:48] <praedo> the not_working still doesn't play [01:48] <praedo> http://frilab.frigola.cat/working_in_rtmp.mp4 [01:48] <praedo> not this link... [01:48] <praedo> http://frilab.frigola.cat/working.mp4 [01:48] <praedo> http://frilab.frigola.cat/not_working.mp4 [01:49] <praedo> deinterlace worked now and audio vbr should be the same in both [01:49] <praedo> but for some reason the not_working can't be streamed [01:51] <Sorcey> I can't help you, I'm sorry. Don't know what the problem is... but I know I can stream them without any problem to vlc [01:51] <Sorcey> rtsp://servername:554/application/stream_id [01:52] <Sorcey> so you might wanna test that to convince yourself that wowza is not the problem [01:52] <praedo> do i have 554 in my wowza too by default to test with vlc? [01:53] <praedo> i get that timeout in wowza logs for the not_working file [01:54] <Sorcey> my mistake [01:54] <Sorcey> 1935 [01:54] <Sorcey> rtsp://servername:1935/application/stream_id [01:55] <Sorcey> should work in vlc for the not_working file [01:55] <praedo> it asks for a pass and i don't have any set [01:56] <Sorcey> weird... it does that for both files I guess? [01:57] <praedo> yes [01:57] <praedo> is it possible to set a pass authentication in ffmpeg? [01:57] <praedo> applications should have a pass for security i guess [01:57] <Sorcey> I don't think it's possible that ffmpeg causes wowza to ask for authentication @ clients [01:58] <Sorcey> it's probably your wowza settings [01:58] <praedo> i use MediaSecurity addon [01:58] <praedo> but not for this application [01:59] <Sorcey> is rtsp enabled for this application? [01:59] <Sorcey> anyway, it's 2am [01:59] <Sorcey> and I have no clue what your poblem is [02:00] <Sorcey> hmm [02:00] <Sorcey> well, 1 thing though: you use a non 1:1 PAR [02:01] <praedo> what about audios this time? [02:01] <Sorcey> you have a 720:576 file (1.25:1) and you have a 768:576 output aspect (1.333:1) [02:02] <praedo> i didn't know... why? [02:02] <Sorcey> that's common, but flash doesn't support actively reading the aspect ratio so unless you force it to scale to 1.333:1 it will display as 1.25:1 [02:03] <Sorcey> solution is altering the aspect ratio in ffmpeg, scaling to 768:576 (@ vf scale) and add -aspect 1.25 (for some reason that's necessary to reduce the PAR to 1:1) [02:04] <Sorcey> then your output file is native 768x576 [02:04] <Sorcey> Reminds me doing all this stuff right costs a lot of time :P [02:05] <praedo> but source DV footage isn't 768:576 [02:05] <Sorcey> Anyway, good luck with fixing your broken file. Most solutions to problems like these come to me 5 minutes after I wake up in the morning :P [02:05] <praedo> okay, have a rest then [02:05] <Sorcey> 4:3 content is often stored as 720x576 and then expanded [02:05] <praedo> thanks! [02:06] <Sorcey> just like 16:9 is also stored as 720x576 and then expanded to 1024x576 while displaying it [02:06] <Sorcey> some DVB providers (like here in NL) abuse the pixel aspect ratio settings and broadcast tv in 520x576 and then expand to 768 of 1024 width [02:07] <Sorcey> if you play it in vlc and then check media info you'll see 768x576 there [02:07] <Sorcey> nn! [02:31] <praedo> INFO server comment 2012-02-02 02:19:15 - - - - - 927.844 - - - - - - - client connectionClosed [1505833773] watchdog [02:31] <praedo> i get this error each time i try to stream the not_working.mp4 file [02:36] <praedo> INFO server comment 2012-02-02 02:35:58 - - - - - 1930.478 - - - - - - - client connectionClosed [77176954] pingtimeout [02:37] <Freakshow> have you tried increasing the logging output of wowza to see what else is going on? [02:37] <Freakshow> and which version of wowza are you publishing to? [02:45] <Freakshow> praedo? [02:49] <praedo> yes [02:49] <praedo> 2.2.3 [02:49] <praedo> how is logging increased? [02:51] <Freakshow> hang on [02:52] <Freakshow> you'll modify log4j.properties [02:52] <Freakshow> top line should be something like [02:52] <Freakshow> log4j.rootCategory=INFO, stdout, serverAccess, serverError [02:52] <Freakshow> if I'm not mistaken, you'll need to add debug to this list [02:53] <Freakshow> ah, change INFO to DEBUG [02:53] <Freakshow> :D [02:53] <Freakshow> lmgtfy [02:53] <Freakshow> Debug Logging [02:53] <Freakshow> To turn on Wowza Media Server debug logging, edit the [install-dir]/conf/log4j.properties file and change the log level on the first line from INFO to DEBUG. [02:54] <Freakshow> *boom* [02:54] <Freakshow> but be prepared... it's A LOT logging... scroll blindness will ensue quickly [03:34] <tiglionabbit> can I use ffmpeg to change the container type of a video file without re-encoding it? [03:34] <tiglionabbit> oh wait I should have just googled that [03:37] <tiglionabbit> though I just tried it and ended up with something unplayable =[ [03:38] <relaxed> tiglionabbit: -vcodec copy -acodec copy [03:39] <tiglionabbit> yes that's exactly what I did, but the result is garbage. libmagic even just calls it "data" [03:41] <relaxed> command? [03:42] <tiglionabbit> ffmpeg -i chair.avi -vcodec copy -acodec copy chair2.mp4 [03:42] <tiglionabbit> with that one at least file knows what type it is, but it wont play in quicktime. It's all black. it's 1 minute 28 seconds of black. [03:43] <tiglionabbit> when I try and make it an mkv, file doesn't know what it is [03:43] <tiglionabbit> what is a good container format to use with web browsers btw? [07:02] <elkng> does ffplay supports playing one frame and then go into pause, same as using "." in mplayer ? [07:09] <elkng> I got *.flv video file from youtube didnt watch it, did converted it into *.avi, the video is 80 seconds long and there is 3 black frames on 70th second with text: "WARNING: NOTHING TO OUTPUT BFRAME DECODER LAG", is this ffmpeg's issue ? [10:14] <slackyman> Hi everybody [10:15] <slackyman> cross compiling ffmpeg results in an executable that requires zlib-1.dll [10:15] <slackyman> but I want to make a singe, huge, all-in-one executable [10:16] <slackyman> more, once i copy zlib-1.dll the ffmpeg.exe is not functional [10:16] <slackyman> running it on a windows machine DOES nothing [10:50] <nadavrub> Any1 with ffmpeg/andoid experiance ? [10:53] <nadavrub> Any1 with Android experiance ? [11:53] <slackyman> connection lost, again [11:53] <slackyman> sorry [12:17] <slackyman> is there any1? [12:39] <dddbmt> Hi guys, I am trying to convert an FLV into SWF. When I do that the sounds is converted correct, but I do not get any video in the SWF output file. [12:39] <dddbmt> http://pastie.org/private/pvrxvp6jlxqpsbgu9vd9w [12:40] <dddbmt> If I open the SWF i VLC I _do_ get some video, but it's very fast and only a few seconds. [13:06] <hroi> hi [13:06] <hroi> I have a video which I want to cut, start frame and end frame, but not change the encoding or anything else... [13:06] <hroi> I want to have as little image quality loss as possible... can ffmpeg do this? [13:07] <hroi> In theory it should be possible to avoid loss when cutting right? [13:13] <zap0> depends on keyframe positions [13:26] <hroi> zap0: seems now that cutting doesnt work well -vcodec copy on mp4 files. [13:26] <hroi> zap0: I guess because the video needs to be recompressed [13:26] <hroi> zap0: perhaps I should set -sameq instead. [13:48] <hroi> How do I set the codec manually using -vcodec? I want it to be the same as the input... but I dont want the copy option... I want it to recompress. [13:48] <hroi> I tried -vcodec h264... and it dont accept that codec... or any I see name in ffmpeg -formats [13:49] <hroi> how do I get a list of valid -vcodec options. [14:14] <Mavrik> hroi, ffmpeg -codecs [14:14] <Mavrik> for h264 you'll have to use -vcodec libx264 [14:14] <Mavrik> (and have the codec compiled with lib264) [14:14] <Mavrik> er... ffmpeg compiled with libx264 not codec, sorry :) [14:14] <hroi> Mavrik: hmm.. so even though my ffmpeg can decode it... it may not be able to encode it [14:15] <Mavrik> yes [14:16] <Mavrik> encoders and decoders are actually quite different things :) [14:17] <hroi> Mavrik: ffmpeg -codecs dont list anything... it says missing argument [14:18] <Mavrik> just how old is your ffmpeg? [14:18] <hroi> 2007 [14:19] <Mavrik> yeah... [14:19] <Mavrik> how about updating it :) [14:19] <hroi> :p I love old distros... nostalgia [14:20] <hroi> Mavrik: yeah I will... just stuck on this system right now [14:20] <Mavrik> http://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9/ [14:20] <Mavrik> this can probably help you a little :) [14:21] <hroi> Mavrik: is there an alternative h264 codec sometimes used? [14:21] <Mavrik> that's... probably the wrong question to ask [14:21] <Mavrik> what are you trying to achieve? [14:22] <hroi> keep h264 type video [14:22] <hroi> mp4 or something [14:22] <Mavrik> ok [14:22] <hroi> the xvid codec seems to be wroking for me. [14:22] <Mavrik> H.264 is a video format [14:23] <Mavrik> MP4 is a container [14:23] <Mavrik> that's a difference, MP4 does not imply x264 ;) [14:23] <Mavrik> you're mixing up video formats, containers and encoders [14:23] <Mavrik> that's why I'm asking you what are you trying to achieve. [14:23] <hroi> Mavrik: ahh ok right... it has many options right, like quicktime [14:23] <hroi> and wmv [14:24] <Mavrik> those are all containers :) [14:24] <Mavrik> what you put in those containers is another thing :) [14:24] <hroi> Mavrik: hey... after cutting my vid... it loses the right aspect ratio... perhaps I can reset it manually [14:24] <hroi> -aspect 1:1.85 [14:24] <hroi> I think [14:25] <hroi> HDTV aspect [14:25] <hroi> again the ffmpeg help and man dont actually tell me what to write after aspect. [14:25] <hroi> just tell me there is -aspect option [14:57] <Mavrik> hroi, seems very clear in ffmpeg documentation here: http://ffmpeg.org/ffmpeg.html [14:57] <Barvinok> hi all. My ffmpeg 0.7.8 seems to ignore video bitrate settings when used with -vcodec libtheora. Is that a known bug? [14:58] <Barvinok> evidently, http://pastebin.com/LgwpQf8R . I set 500 kbps everywhere and get ~3800 kbps on output [15:07] <eebrah> Hi everyone. Trying to compile ffmpeg 0.10 with libx264 using "--enable-libx264" and I am getting the message "ERROR: libx264 not found" despit having compiled it( x264 ) a couple of minutes ago, can anyone help? [15:44] <relaxed> eebrah: install libx264-devel [15:45] <relaxed> oh, you compiled it. make sure you don't have libx264-devel installed :) [15:46] <darkstarbyte> You may also want to install ffmpeg source [16:07] <rbrt> hello! i just read "trac issue #92". anybody knows if somebody is working on a "packet-level filtering mechanism" ? [17:00] <TheBigD> I'm trying to stream the microphone output from an usb soundcard connected to an openwrt router, ideally creating something like a wireless IP baby monitor. [17:01] <TheBigD> When I first try to test the concept by streaming an mpr file I get the following output: Unknown input or output format: rtp [17:01] <TheBigD> or the complete output: http://pastebin.com/VYhSccTw [17:03] <TheBigD> Am I using it wrong? [17:16] <relaxed> TheBigD: ffmpeg versions from 2009 are hard to support. I recommend installing a recent version, which may fix your problem. [17:19] <TheBigD> hmm, I see. I have never compiled anything and the most recent version for openwrt I can find is 0.8.7-1, would that be recent enough? [17:24] <relaxed> that might work [18:13] <Rango3> anyone know where I can readup on the new syntax like -v:codec ? [18:24] <relaxed> you mean -c:v (codec:video)? [18:24] <relaxed> man ffmpeg [19:06] <Rango3> yea I did relaxed thanks :) [19:13] <grepper> relaxed: do you know if the old specifiers (as well as aliases) will be eventually removed ? Like -ab instead of -b:a and -b instead of -b:v and -vcodec/-acodec [19:45] <relaxed> grepper: I believe so. '-ab' would be removed but '-b' would apply to all streams, so it would stay. [19:49] <grepper> relaxed: okay, thanks for the info [19:50] <grepper> not sure if there is a better way of making a script (tovid) backwards compatible except by parsing ffmpeg --help output [19:57] <tiglionabbit> hi. I'm having a little trouble with ffmpeg. I have a 1 minute 28 second avi here that according to ffmpeg is mpeg4+mp3. I'm trying to change the container format like so: http://friendpaste.com/78AvO29GcRoJ7yGl2v7Jnu . However, the result is 1 minute and 28 seconds of black nothingness when I play it in quicktime. I've tried making it an mkv but that has the same result. Making it an mov wo [19:57] <tiglionabbit> rks though. [21:26] <slackyman> I resolved all my issues regarding cross-compiling a static ffmpeg executable [21:26] <slackyman> can be useful to let you know? [21:49] <ubitux> slackyman: yes [21:49] <ubitux> you might want to add such thing in wiki [21:49] <slackyman> ok, thans [21:50] <ubitux> https://ffmpeg.org/trac/ffmpeg/wiki/CompilationGuide [21:50] <ubitux> maybe add a page or something] [21:50] <slackyman> thanks [21:50] <slackyman> bye [21:59] <tiglionabbit> can I get ffmpeg to tell me the codecs a file is currently encoded with? [22:01] <jkramer> Ahoy [22:02] <jkramer> Is it possible to build ffmpeg without all the X11 dependencies? I'd like to use it on a server only for generating video thumbnails [22:02] <cbreak> I am quite sure you can [22:02] <cbreak> just --disable the stuff you don't want [23:15] <tiglionabbit> how do I find out what codecs a container has in it? [23:15] <tiglionabbit> like if I have an mp4, how can I check if it has h264 video or not? [23:16] <cbreak> ffprobe? mplayer -identify? [23:21] <tiglionabbit> cbreak: thanks. I was looking for avprobe but couldn't find it in any packages. I assume ffprobe is the same thing? [23:21] <cbreak> no idea [23:21] <cbreak> ffprobe is built when compiling ffmpeg [23:34] <Freakshow> hmm... how would one pass user/pass to ffmpeg for rtsp output? [23:35] <Freakshow> can that be done via command line? [00:00] --- Fri Feb 3 2012
participants (1)
-
burek