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

burek burek021 at gmail.com
Fri Jun 15 02:05:02 CEST 2012


[02:08] <grepper> In the following command, does "-standard" serve any function ?  I suspect not but have been using it for so long in my scripts without error I wanted to ask before removing it.
[02:08] <grepper> ffmpeg -f yuv4mpegpipe -i "$yuvout" -an -s 720x480 -f mpeg2video -r 29.970 -standard ntsc -b 7000k -maxrate 8000k -bufsize 224KiB   -vf aspect=4:3 -y out.m2v"
[02:10] <sacarasc> grepper: Your -r should be 30000/1001.
[02:14] <grepper> sacarasc:  oh ?  Has that changed recently ?
[02:14] <grepper> or is this form only left for backwards compatibility
[02:15] <sacarasc> No, NTSC has always been 30000/1001, yours is rounded.
[02:15] <llogan> -standard is a V4L2 indev option "used only by analog frame grabber"
[02:15] <grepper> sacarasc: okay, thanks
[02:15] <grepper> llogan: awesome, thanks - that was my main question
[02:16] <llogan> also -r ntsc is an alias for 30000/1001
[02:16] <grepper> ah, cool
[02:17] <llogan> but 30000/1001 is more descriptive
[02:17] <grepper> my scripts unfortunately need to be backwards compatible back a few years for relatively stagnant distros
[02:17] <llogan> either should work for ass-old ffmpegs
[02:18] <grepper> cool
[02:18] <llogan> or maybe i should have typed old-ass
[02:19] <grepper> the libav fork (if that is what it is called) is an additional pain I'm not sure I want to get into
[02:19] <grepper> lots of pain recently keeping these scripts working
[02:20] <grepper> I'm amazed they still seem to work
[02:21] <llogan> only main distros that i know of that use that are debian/ubuntu. they still include a "ffmpeg" for compatibility as of Precise AFAIK
[02:22] <llogan> not sure how long that will last though
[02:25] <grepper> yeah, that is the trigger that made me realize that '-standard' was not correct.  0.8.0 from ubuntu (shipped with avconv) is the only ffmpeg that has errored on it though ("option standard not found").  Which seemed strange as it is old and if anything ffmpeg has gotten more strict over time.
[02:25] <llogan> s/as of/up to
[02:26] <grepper> other version up to and including git head just silently ignored it
[02:35] <grepper> debian at least has 3rd party deb-multimedia.org, which looks to be sticking with ffmpeg
[02:42] <llogan> grepper: yeah, but Debian kind of told him to piss off
[02:43] Action: llogan might be overstating
[02:44] <grepper> luckily I don't think he cares, and lots of people depend on him.  I think it is great he is still around.
[02:44] Action: grepper bbiab
[02:44] <llogan> yeah.
[04:09] <boxysean> hey all. i'm looking for a physical book for an ffmpeg newb (me). i'm particularly interested in learning more about ffserver and how to deploy it.
[04:09] <boxysean> any suggestions?
[04:28] <heimlich> hi guys.. I have a quicktime with timecode... is it possible to convert a quicktime movie to an image sequence, starting at a specific timecode of the quicktime until a specific end timecode ?
[04:31] <relaxed> boxysean: I think your options are: read the docs on the website, read the source, google for examples and beat your head against it until it works (or fails).
[04:40] <relaxed> heimlich: I don't think so, it will seek to the nearest key frame I believe.
[04:40] <heimlich> k.. thanks.. i thought so.. pretty much all the documentation seems to indicate that
[05:14] <leoj3n> Is there any script floating around out there that will take the newest ffmpeg command(s) and convert them to how they were at certain builds/times in the past?
[05:19] <brocatz> what are good choices for fast encoding of audio and video, i just want to capture from a camera for a few seconds then afterward encode it
[05:22] <brocatz> right now i'm trying to capture from direct show and i'm getting endless warnings about the realtime buffer being full
[05:29] <brocatz> damn, no -y = that problem (in this case)
[05:38] <leoj3n> Is there a listing of command changes over the years and releases?
[05:45] <relaxed> leoj3n: just pastebin the old command and someone will probably help you update it.
[05:46] <leoj3n> No I need to go the other way.
[05:46] <relaxed> why do you need to use an old version?
[05:47] <leoj3n> relaxed: This is for a php script that will exec on other peoples various web hosts who often have dated versions of ffmpeg installed. And because it's a hosting company the user has no control over the situation.
[05:48] <leoj3n> So I kind of need to support the old versions or else I'm not doing my job.
[05:57] <brocatz> in windows, if i kill ffmpeg with ^c in the cmd window my output video is fine, if i use taskkill or task manager to kill it the video wont play back
[05:57] <brocatz> what's the best plan here
[05:57] <relaxed> leoj3n: building static binaries of recent versions would be doing your job wisely.
[05:57] <brocatz> should i wrap it in pythons process module and send it a termination character
[05:57] <brocatz> or am i being a retard
[05:58] <leoj3n> We host don't let you upload those kinda binaries
[05:58] <leoj3n> Web hosts*
[05:58] <relaxed> My web host gives me ssh access and I can do pretty much wahtever I want.
[05:58] <relaxed> whatever*
[05:59] <leoj3n> Executables have to be in a safe dir above the root which only the company has access to, on many cheaper hosts
[05:59] <leoj3n> Eg, the ones with a lot of users.
[06:00] <relaxed> These old builds have many exploits that have been fixed in recent builds.
[06:02] <leoj3n> I know that. I gave you my reasons for needing to do this already. I am not exploiting anyone with my script. If ffmpeg is there and I can run it with my script I plan to do so, even if it is an old version.
[06:02] <relaxed> So, no offense, but your current solution is completely flawed.
[06:03] <leoj3n> It is the hosting company who takes the blame for being unsafe, not me or their clients. They shouldn't be punished because their hosts they find out after locking in are dumb.
[06:05] <leoj3n> brocatz: are u stopping ur video while it is being output or after it has finished?
[06:06] <brocatz> it's capturing from a web cam
[06:06] <brocatz> so there is no end
[06:06] <brocatz> once the user is done and clicks finish i need to terminate ffmpeg
[06:06] <brocatz> getting them to tab to a cmd window and press ^c wont work
[06:06] <brocatz> am trying using popen
[06:06] <brocatz> see if that fixes it
[06:06] <brocatz> using taskkill is a bit brutal anyway
[06:07] <relaxed> You need to send the same signal that ^c sends.
[06:08] <brocatz> i should just take a look in the source code for ffmpeg?
[06:08] <brocatz> have had to do that a few times now
[06:08] <relaxed> Sure. I don't use windows though so I can't help you much there.
[06:09] <brocatz> yeah i usually use ffmpeg on linux
[06:09] <brocatz> but this is for windows information kiosk thing
[06:17] <leoj3n> brocatz: try TASKKILL /F /PID 123456
[06:17] <leoj3n> Assuming you have the PID stored beforehand.
[06:18] <brocatz> yeah i tried that
[06:18] <brocatz> same drama
[06:18] <brocatz> i have to do whatever ^c does
[06:18] <leoj3n> Heh works in my script.
[06:18] <brocatz> it kills it fine
[06:19] <leoj3n> Ah k I c
[06:19] <brocatz> it just doesn't do whatever ffmpeg does to tidy up the x264 stream
[06:19] <brocatz> am writing a python script to try send a signal
[06:23] <brocatz> ololo ValueError: Only SIGTERM is supported on Windows
[07:19] <brocatz> so modifying the ffmpeg source seems kinda excessive
[07:20] <brocatz> but i'm not sure of another way around this
[07:35] <grepper> heimlich: I use 'transcode' when I want frame accuracy.  The project is not really active any more though the mailing list is, but it still works okay.
[07:42] <heimlich> grepper: dont think transcode will work for me.. probably gonna end up using iridas to get the timecode accuracy..
[07:43] <grepper> cool
[07:44] <heimlich> thanks though
[09:36] <APoulos> hey folks, Im trying to convert a .wmv file in hd to a .mp4 file while reducing the filesize as well - here's what's occurring, can anyone tell me what's going wrong? http://pastebin.com/TMXbFSHW
[09:47] <ZanQdo> hi, im trying to convert a video file into a series of pngs
[09:47] <ZanQdo> it works but its interpreting my footage as 15fps while its actually 30fps, so its creating blended in pngs
[09:48] <Tjoppen> >Expected number for fs but found: limit_size=2355200000
[09:48] <Tjoppen> take a wild guess :)
[09:50] <ZanQdo> last thing i tried was this: ffmpeg -r 30 -i record.avi -f image2 frame_%04d.png
[09:50] <Tjoppen> uhm, don't use -r
[09:51] <ZanQdo> that gave me the error: Unrecognized option r30
[09:51] <ZanQdo> what should I use then?
[09:51] <APoulos> Tjoppen, was that towards me?
[09:51] <Tjoppen> APoulos: -fs 2355200000   but you probably want to use -crf
[09:52] <Tjoppen> ZanQdo: if you're not using -r then where does it get "r30" from?
[09:52] <ZanQdo> what?
[09:52] <ZanQdo> from the line i just posted
[09:52] <APoulos> Tjoppen, ever since I built ffmpeg from source from the ffmpeg tutorial site, i havent been able to access the manpages... :(
[09:53] <ZanQdo> Tjoppen, if i dont use -r 30 then it fallbacks to 15fps and pngs are wrong
[09:53] <APoulos> Tjoppen, No manual entry for ffmpeg
[09:53] <APoulos> See 'man 7 undocumented' for help when manual pages are not available
[09:53] <Tjoppen> ZanQdo: then it sounds like your video is actually 15 fps
[09:53] <Tjoppen> APoulos: no idea
[09:53] <APoulos> :(
[09:53] <Tjoppen> internet knows about crf. search it
[09:54] <ZanQdo> Tjoppen, right but its not
[09:54] <ZanQdo> checked with vlc
[09:54] <Tjoppen> what does ffprobe input.avi say?
[09:55] <ZanQdo> i think i found the problem
[09:55] <ZanQdo> pasteall.org/32894
[09:56] <Tjoppen> strange, it should print the average framerate too
[09:57] <Tjoppen> anyway, ffmpeg doesn't do any frame blending. what you're seeing is most likely present in the video
[09:57] <ZanQdo> thanks
[09:57] <ZanQdo> i think i was wrong
[09:57] <ZanQdo> the blending was caused by my ram player
[09:57] <ZanQdo> sorry...
[09:58] <ZanQdo> and thanks
[09:58] <Tjoppen> ok. np :)
[11:58] <sweb> how can i install latest package ffmpeg fully codec in debian ?
[12:18] <grepper> sweb: if you don't mind using 3rd party debs you can use deb-multimedia.org to install ffmpeg
[12:18] <grepper> (plus many other 'restricted' or 'non-free' packages)
[12:26] <sweb> grepper: i use it ... it will supported all audio and video for convert
[12:26] <sweb> ?
[12:30] <grepper> most, what are you missing ?
[12:32] <grepper> "ffmpeg -formats" and "ffmpeg -codecs" will give you lists of the compile time formats and codecs available
[12:33] <squig> Hi all, im trying to build 0.11.1 and I can build all the binaries but ffplay, is there some specific way to tell configure to die if im missing a dependency?
[13:14] <ketas> anyone have any idea how to convert mpeg2 ts to h264 to watch from phone?
[13:16] <ketas> seems like impossible task
[13:16] <ketas> tired of googling and manpages
[13:17] <sacarasc> Depends what your levels and profile your phone supports...
[13:19] <ketas> what you mean?
[13:21] <sacarasc> With H264, there are different levels and profiles which add/subtract different settings. Not all hardware supports all profiles and levels.
[13:23] <ketas> that difficult, eh?
[13:23] <ketas> well current one is symbian s60 device
[13:25] <ketas> not sure what comes from rtmp://194.36.162.51:1935/live/etvm
[13:25] <ketas> anything other than h264 / aac
[13:32] <ketas> in the end i want to have something that, on demand, joins to multicast group, converts, scales down and sends it to device
[13:33] <ketas> well actually i have udpxy to convert multicast to http
[13:36] <ketas> i think i have solution for years now
[13:36] <ketas> err
[13:36] <ketas> trying to find
[13:47] <ketas> another attempt failed i guess
[13:51] <ketas> + i guess i don't exactly have machine for such transcoding
[14:56] <dipanjan> is there a way to find the *diff* between consecutive frames of a video?
[14:58] <zap0> dipanjan, what is a signed pixel value?
[15:00] <dipanjan> zap0: sorry, I didn't get you...
[15:01] <zap0> frame a pixel value is 10.   frame b pixel value is 20.    the difference is 10-20 = -10
[15:01] <zap0> what colour is -10 ?
[15:02] <dipanjan> zap0: i think you are looking for the absolute values of the differences?
[16:21] <burek> ketas, type x264 --help
[16:22] <burek> you need -profile baseline -s 320x180 -r 25 -b 340k
[16:26] <burek> squig, you can check the configure script and see what does it check and what enables ffplay
[17:57] <Sazpaimon> so I'm getting "Changing stream parameters in multistream ogg is unsupported" in my ffmpeg HEAD revision, is anyone working on this or is there an alternative I can use?
[18:28] <ketas> burek: still that's only one part
[18:29] <ketas> burek: that phone somewhat sucks too, in the way on how to get stream to device
[18:31] <burek> ketas, well, all you need is a free time to test all the possibilities :)
[18:32] <burek> Sazpaimon,
[18:32] <burek> can you please use pastebin.com, to show your command line and its output?
[18:33] <burek> a b c x 123
[18:33] <burek> sorry, it was a test :D
[18:34] <ketas> burek: no suggestions?
[18:35] <burek> ketas, for what?
[18:35] <ketas> burek: i mean i won't ask if i haven't spent already many hours searching solutions
[18:35] <burek> yes, but suggestion for what
[18:45] <ketas> i can't even convert video properly now, let alone streaming it...
[18:45] <ketas> :(
[18:45] <ketas> burek: suggestion on what to use for streaming
[18:50] <burek> ketas, for converting, just use
[18:50] <burek> ffmpeg -i input -vcodec libx264 -profile baseline -s 320x180 -r 25 -b 340k output.mp4
[18:51] <ketas> what about audio? :)
[18:51] <burek> it will use some defaults :)
[18:51] <ketas> well i can basically convert something...
[18:51] <burek> do you have any requirements for audio?
[18:52] <burek> ffmpeg -i input -vcodec libx264 -profile baseline -s 320x180 -r 25 -b 340k -acodec aac -strict experimental -ac 2 -ar 44100 -ab 96k output.mp4
[18:52] <ketas> Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
[18:52] <ketas> that's audio
[18:52] <ketas> hmm ok
[18:53] <DelphiWorld> hello
[18:53] <DelphiWorld> http://www.almagharibia.tv/
[18:53] <DelphiWorld> can someone help me playing this rtmp stream ?
[18:54] <burek> ketas, can you please use pastebin.com, to show your command line and its output?
[18:54] <ketas> well your second command works :)
[18:54] <burek> DelphiWorld, what is the direct url for the stream
[18:54] <ketas> well that's about what i use too
[18:54] <burek> the link you gave here is just a website
[18:54] <burek> not a media url
[18:54] <DelphiWorld> burek: YES YES YES
[18:54] <DelphiWorld> burek: the media url is in the stream
[18:54] <burek> well digg it out :)
[18:55] <DelphiWorld> burek: rtmp://209.236.66.43/livepkgr
[18:55] <burek> ketas, so the encoding works :)
[18:55] <ketas> burek: second one just exits after few second
[18:55] <ketas> my one works
[18:55] <burek> DelphiWorld, ffplay rtmp://209.236.66.43/livepkgr
[18:56] <ketas> burek: want output?
[18:56] <burek> no need
[18:56] <DelphiWorld> burek: LOL
[18:56] <burek> if it works
[18:56] <burek> :)
[18:56] <DelphiWorld> burek: i want to push it to ffserver using ffmpeg
[18:56] <burek> DelphiWorld, just try what I said
[18:57] <burek> DelphiWorld, either your media url is wrong/invalid or the stream is dead
[18:57] <DelphiWorld> burek: let me try
[18:57] <burek> both ways no need to continue with ffserver unless you fix that first
[18:57] <DelphiWorld> burek: the media url isn't wrong
[19:01] <DelphiWorld> burek, the streaming work on the flash
[19:02] <burek> then you gave us a wrong url
[19:02] <burek> media url*
[19:03] <DelphiWorld> burek: no
[19:03] <DelphiWorld> burek: check the html source DUDE
[19:04] <burek> ok, then you are cursed :D
[19:04] <DelphiWorld> burek: ;)
[19:04] <burek> btw, read more about rtmp and try to understand what did you do wrong
[19:04] <burek> the media url is wrong
[19:04] <burek> you can obviously see that
[19:04] <DelphiWorld> burek: please help me man :)
[19:04] <ketas> burek: well, i'm able to make file... but!
[19:04] <DelphiWorld> burek: don't kill me like you did befaure :-P
[19:05] <burek> because you didn't include this line: 'file': 'almagharibia',
[19:05] <burek> so, please go to google
[19:05] <burek> learn about rtmp
[19:05] <burek> and then we will continue
[19:05] <burek> ok?
[19:05] <DelphiWorld> burek: DUDE give me the URL!
[19:05] <burek> no
[19:05] <burek> nobody pays me to do that
[19:05] <burek> sorry
[19:05] <DelphiWorld> burek: i promise to read up
[19:05] <burek> no
[19:05] <DelphiWorld> burek: i want to stream it a sap :)
[19:05] <burek> it's your life
[19:05] Action: DelphiWorld slaps burek around a bit with a large trout
[19:05] <burek> you are free to do whatever you WANT
[19:05] <burek> :)
[19:06] <DelphiWorld> =)
[19:09] <burek> ketas, what's the problem you are dealing with then? :)
[19:09] <Sazpaimon> burek, I don't have the output handy, it only happens when the video track changes in my stream
[19:09] <Sazpaimon> which can take a few hours depending on the length of the first track
[19:10] <Sazpaimon> the commandline is: ffmpeg -y -threads 4 -i http://127.0.0.1:8000/Theora -f webm -acodec vorbis -vcodec libvpx -ab 128k -vb 800k -strict -2 -vf "pad=max(iw\,ih*(16/9)):ow/(16/9):(ow-iw)/2:(oh-ih)/2",scale=854:480 -aspect 16:9 -g 5  -
[19:10] <burek> Sazpaimon, did you check bug trac or did you create a new ticket or something like that?
[19:10] <ketas> burek: well, i want to stream it
[19:11] <Sazpaimon> I have not checked the bug tracker or anything of that sort
[19:11] <burek> Sazpaimon, I think the problem is that the decoder has already been initialized and processed in another thread, so now you have to pause it/change params/unpause it or something.. so, I guess it's not such an easy task
[19:12] <Sazpaimon> yes, which is why i was asking if anyone handling oggdec is working on it
[19:12] <burek> however, I got that error too when trying to use image sequence with several different images (size or color depth or something similar)
[19:12] <burek> well, trac or mailing list is the best place to ask
[19:12] <Sazpaimon> i've had minor success with VLC, but after a few metadata changes it stops working
[19:12] <Sazpaimon> at least I believe it's related to metadata and not stream parameters changing
[19:13] <burek> I see
[19:13] <burek> well, try to discard metadata
[19:13] <burek> using -map_metadata
[19:13] <relaxed> use setdar instead of aspect
[19:13] <burek> maybe that'll help
[19:13] <Sazpaimon> in VLC?
[19:13] <Sazpaimon> ffmpeg refuses to play it at all after a stream change, regardless of metadata
[19:14] <burek> well, check the VLC man if it has a similar option to discard metadata on input
[19:14] <burek> so it doesn't bother you anymore
[19:14] <relaxed> ...,scale=854:480,setdar=16:9
[19:15] <Sazpaimon> it wouldn't be a huge issue since I can just spawn ffmpeg again after the input dies, but then it would break my pipe I'm using to connect to an icecast server
[19:15] <DelphiWorld> please help me bureki have no luck ;)
[19:15] <DelphiWorld> burek: BTW my streaming/transcoding work now
[19:15] <Sazpaimon> and I kind of want a continuous webm output file
[19:15] <Sazpaimon> rather than a multistream one, that is
[19:16] <relaxed> Does ffmpeg even allow mulithreaded decoding for Theora?
[19:17] <DelphiWorld> rtmp://209.236.66.43/livepkgr/almagharibia
[19:17] <DelphiWorld> burek: is that correct?
[19:17] <Sazpaimon> also im almost positive vlc doesn't have an option to completely discard metadata, but this isn't #videolan so I won't discuss that further here
[19:19] <ketas> burek: damnit, it can't be THAT hard... trying with crtmpserver again
[19:19] <DelphiWorld> ketas: would you please help me with that RTMP shit issue DUDE ?
[19:20] <ketas> if only that works :)
[19:21] <DelphiWorld> ketas: http://www.almagharibia.tv/
[19:21] <DelphiWorld> i want to stream that channel using FFmpeg
[19:21] <DelphiWorld> rtmp://209.236.66.43/livepkgr is the rtmp stream and file is almagharibia
[19:21] <DelphiWorld> i googled and find same issue with someone else but no answer
[19:21] <ketas> Segmentation fault (core dumped)
[19:22] <ketas> wonderful!!!
[19:22] <DelphiWorld> ketas: i has that yesterday... git pull
[19:22] <burek> he doesn't use git
[19:22] <burek> packaged from distro
[19:22] <DelphiWorld> a
[19:22] <DelphiWorld> LOL
[19:22] <DelphiWorld> i use git
[19:22] <ketas> correct
[19:23] <burek> ketas, can you please use pastebin.com, to show your command line and its output?
[19:23] <DelphiWorld> i still have that core dump :(
[19:23] <DelphiWorld> burek ... :(
[19:23] <burek> DelphiWorld, no shortcuts
[19:23] <burek> sorry
[19:24] <DelphiWorld> what shortcut
[19:24] <burek> if other people are doing your job, you'll never learn anything
[19:24] <burek> and if you just "want the job done", then pay an expert to do it for you
[19:24] <burek> simple
[19:24] <DelphiWorld> burek: am i asking you to do my job?
[19:24] <DelphiWorld> burek: i told you that fucking core dump is still exist
[19:24] <burek> what core dump?
[19:24] <burek> DelphiWorld, can you please use pastebin.com, to show your command line and its output?
[19:25] <DelphiWorld> ok.
[19:27] <DelphiWorld> burek, updating to latest git. while show you
[19:30] <ketas> burek: about segfault?
[19:32] <burek> ketas, yes
[19:35] <Darkclaw66> hi, is there a way to copy the fps from the original video to the converted video?
[19:36] <relaxed> That should be the default.
[19:36] <Darkclaw66> the default is 25fps :(
[19:38] <burek> what relaxed wanted to tell you is that the default behavior of ffmpeg is to copy the fps from input to output
[19:38] <burek> if you didn't specify your own fps in the cmd line
[19:41] <ketas> burek: http://ketas.si.pri.ee/ffmpeg2.log
[19:41] <ketas> burek: if that helps
[19:42] <ketas> burek: i think i somewhat know where it comes from
[19:43] <burek> well, there is nothing wrong in this output
[19:43] <burek> except for some warnings
[19:43] <burek> which are usual for streamed media, since it is missing the first keyframe
[19:43] <burek> what's the problem then?
[19:44] <ketas> oops
[19:44] <Darkclaw66> if I don't specify the -ab, does that also default to the original video?
[19:44] <burek> -ab is audio bitrate
[19:45] <burek> it's not related to video stuff
[19:45] <Darkclaw66> gotcha, so that I would need to specify?
[19:46] <burek> Darkclaw66, it depends what you want
[19:46] <burek> -ab has got nothing to do with fps
[19:46] <Darkclaw66> I know this is a different but related question
[19:47] <burek> what exactly is the question
[19:47] <ketas> burek: how about http://ketas.si.pri.ee/ffmpeg3.log
[19:47] <Darkclaw66> well, when I don't specify the fps and -ab it defaults to ffmeg's default settings
[19:48] <burek> Darkclaw66, if you don't specify -ab it defaults to whatever the output container is
[19:48] <ketas> #0  0x48e2a8b8 in strcmp () from /lib/libc.so.7
[19:48] <burek> it can be aac or mp2 or mp3
[19:48] <ketas> mmm
[19:48] <burek> so, -ab will also change
[19:48] <burek> audio bitrate (and bit rate in general) is a measure of the quality of encoding
[19:49] <burek> why don't you try -acodec copy instead
[19:49] <Darkclaw66> I am converting the video so it will be compatible to play on the Roku player
[19:49] <burek> ketas, can you apt-get install gdb
[19:50] <Darkclaw66> this is the syntax I am using
[19:50] <Darkclaw66> ffmpeg -i *.avi -f mov -b 1250k -acodec libfaac -ab 128k sigh.mov
[19:50] <burek> ketas, and then follow this: http://ffmpeg.org/bugreports.html
[19:50] <burek> so we can see what has broke there
[19:50] <ketas> burek: well, i have gdb
[19:51] <burek> "If you encounter a crash bug..."
[19:51] <burek> :)
[19:51] <burek> Darkclaw66, *.avi won't work properly
[19:51] <burek> it will expand all avi files into ffmpeg command
[19:51] <burek> and probably will mess things a lot
[19:52] <burek> also, what is the audio/video format you need for Roku player?
[19:53] <DelphiWorld> burek: build done;)
[19:53] <burek> ok :)
[19:53] <ketas> burek: humm i need debug binary for that...
[19:54] <burek> oh, ffmpeg_g
[19:54] <burek> hmh
[19:54] <burek> did you try just with ffmpeg
[19:54] <ketas> burek: you mean gdb?
[19:54] <ketas> burek: well, yes
[19:55] <burek> yes, did you try it with ffmpeg instead of ffmpeg_g
[19:55] <burek> and?
[19:55] <ketas> what you mean?
[19:56] <burek> can you try gdb with ffmpeg (instead of ffmpeg_g) just to see what happens
[19:57] <DelphiWorld> ketas: you work for sixxs? or you use sixxs;)
[19:59] <ketas> DelphiWorld: use
[19:59] <DelphiWorld> ketas: ;)
[19:59] <DelphiWorld> burek: FUN!
[19:59] <DelphiWorld> burek: after my git pull
[20:00] <DelphiWorld> the crazy core dump gone
[20:00] <ketas> burek: what output you want from gdb?
[20:01] <ketas> burek: i already gave one line
[20:01] <ketas> hmm hmm
[20:02] <burek> DelphiWorld, it's usually like that :)
[20:03] <DelphiWorld> :P
[20:03] <DelphiWorld> now let's fight that rtmp crazyness
[20:03] <burek> ketas, did you read that link I gave you
[20:03] <burek> with bt and stuff
[20:03] <ketas> well, segfault in strcmp
[20:06] <DelphiWorld> burek: sory, we don't give british telecom
[20:06] <ketas> hahaha
[20:09] <ketas> burek: http://ketas.si.pri.ee/ffmpeg-segfault-gdb2.log
[20:12] <DelphiWorld> LOL ketas you gave him british telecom!
[20:12] <DelphiWorld> did he pay you ? ;)
[20:15] <burek> ketas, thanks :) we'll see if there is any useful info to figure out what the segfault is all about
[20:15] <burek> what cmd line did you use
[20:19] <DelphiWorld> ip route burek null0
[20:27] <ketas> burek: you noticed platform, right?
[20:27] <ketas> burek: "ffmpeg -i http://127.0.0.1:4022/udp/239.3.1.1:1234 -f mp4 rtmp://localhost/live/test"
[20:29] <burek> ketas, what did you expect that line to do exactly?
[20:29] <ketas> npt segfault?
[20:30] <ketas> s/npt/not/
[20:30] <ketas> that was shortest line that still makes it
[20:32] <burek> well, I ask because that line would convert your input video into something by default
[20:33] <burek> btw
[20:33] <burek> do you have a rtmp server
[20:33] <burek> what is the receiving end at localhost/live/test
[20:42] <DelphiWorld> burek,  rtmpt://209.236.66.43/livepkgr/almagharibia give same issue with both VLC/FFMpeg :)
[20:44] <burek> cool :)
[20:45] <ketas> hmm
[20:48] <ketas> okay, it works...
[20:48] <ketas> something works
[20:49] <DelphiWorld> burek: cool ?
[20:49] Action: DelphiWorld *FACEPALM*
[20:49] <ketas> now...
[20:50] <ketas> burek: multicast input -> udpxy -> ffmpeg -> crtmpserver -> (u)mplayer works :)
[20:51] <burek> wow :)
[20:51] <burek> cool :D
[20:51] <ketas> however that's bad setup
[20:52] <ketas> of course i can setup sidechannel for changing input but... well!
[20:53] <DelphiWorld> ketas: is ffmpeg and udpxy in same machine?
[20:53] <ketas> i want whole thing to start and using selected input when client connects
[20:53] <ketas> DelphiWorld: yes
[20:53] <DelphiWorld> ketas: so avoid udpxy ?
[20:53] <DelphiWorld> ketas: use just direct mcast-UDP > ffmpeg
[20:54] <ketas> that's least of my problems
[20:54] <ketas> how to make "vod"
[20:54] <DelphiWorld> ketas: VLM :-)
[20:54] <ketas> with stream transcoding?
[20:55] <DelphiWorld> ketas: no need vlm DUDE ffmpeg and ffserver like i'm doing
[20:56] <ketas> rtmp out of that?
[20:56] <ketas> who invented all that bullshit anyway
[20:56] <ketas> :)
[20:57] <DelphiWorld> ketas: no need rtmp, use FFMpeg Server + rtsp
[20:57] <ketas> maybe
[20:57] <ketas> realplayer in phone
[20:57] <ketas> does it even like that
[20:57] <DelphiWorld> HAHA ketas surely
[20:58] <DelphiWorld> ketas: just push burek to find me a solution... :-)
[20:58] <DelphiWorld> Sup saste
[21:00] <DelphiWorld> saste: can you please check with me a rtmp issue ?
[21:00] <burek> one stupid question
[21:00] <burek> why do you need rtmp at all
[21:00] <DelphiWorld> burek: me or ketas
[21:00] <burek> both
[21:01] <DelphiWorld> burek: cause this stream is RTMP!
[21:01] <DelphiWorld> ketas was using it but i told him use RTSP
[21:01] <saste> DelphiWorld: tell, but you know that's not my area, i hardly touch that code
[21:01] <ketas> i'm not sure how to configure ffserver
[21:02] <DelphiWorld> saste, thank you a lot
[21:02] <DelphiWorld> rtmpt://209.236.66.43/livepkgr/almagharibia
[21:02] <ketas> i mean PROPERLY
[21:02] <burek> well, my question still remains, why do you need to output rtmp ketas
[21:02] <DelphiWorld> saste: that work in rtmpdump but not in ffmpeg
[21:02] <DelphiWorld> ketas: while help if sas fix my dumb crazy issue
[21:02] <burek> DelphiWorld, contact the website and ask for the direct url
[21:02] <ketas> burek: well whatever that phone can use
[21:02] <burek> or google and learn about rtmp to find out how to properly get the direct url
[21:03] <burek> well ok
[21:03] <DelphiWorld> burek, i say. RTMPDUMP WORK. FFMPEG NOT WORKING.
[21:03] <burek> DelphiWorld, please dont use CAPS LOCK, we are not dubm kids..
[21:03] <DelphiWorld> burek: hahaha ok ;)
[21:04] <DelphiWorld> saw it saste ?
[21:04] <saste> Delphiworld: NetStream.Play.StreamNotFound
[21:04] <burek> ketas, you can't (afaik) use ffserver to stream rtmp stream
[21:04] <saste> i suppose you're using --enable-librtmp
[21:04] <DelphiWorld> saste: yep. but try with the rtmpdump :)
[21:04] <DelphiWorld> will work
[21:04] <burek> your best chance is using wowza or something similar
[21:04] <DelphiWorld> saste: should i use enable-librtmp?
[21:05] <DelphiWorld> saste: i don't use enable-librtmp
[21:05] <saste> ERROR: Closing connection: NetStream.Play.StreamNotFound
[21:06] <saste> same with rtmpdump
[21:06] <saste> i'm using --enable-librtmp here
[21:06] <DelphiWorld> rtmp://209.236.66.43/livepkgr/almagharibia
[21:06] <DelphiWorld> saste: try that without T
[21:06] <DelphiWorld> and will have a difent error
[21:07] <ketas> bs
[21:07] <ketas> can't get it working
[21:07] <DelphiWorld> see saste:
[21:07] <saste> DelphiWorld: ERROR: RTMP_Connect1, handshake failed.
[21:07] <DelphiWorld> rtmpdump -r rtmpt://209.236.66.43/livepkgr/almagharibia --live -o live.avi
[21:07] <saste> same with ffplay
[21:08] <DelphiWorld> saste: That work
[21:08] <saste> what about specifying the --live option with ff*?
[21:08] <burek> rtmp://209.236.66.43/livepkgr/almagharibia is not a valid direct url to that stream man..
[21:09] <saste> DelphiWorld: check rtmp options in the protocols section
[21:09] <DelphiWorld> saste: mean?
[21:09] <DelphiWorld> burek: brother, please help me DUDE
[21:10] <DelphiWorld> saste: html: http://www.almagharibia.tv
[21:10] <DelphiWorld> I TRIED ALL POCIBLE THINGS/5
[21:11] <burek> did you read about rtmp?
[21:11] <DelphiWorld> burek: i readed
[21:11] <DelphiWorld> but i didn't understand anything
[21:11] <burek> so, you know that you don't get direct url just from reading the javascript that creates jw player, right?
[21:12] <saste> DelphiWorld: look this work here
[21:12] <saste> ffplay "rtmpt://209.236.66.43/livepkgr/almagharibia live=1"
[21:12] <DelphiWorld> saste: so how to run it with ffmpeg?
[21:12] <DelphiWorld> saste: and btw burek is saying is not a valid url!
[21:12] <burek> it's not
[21:12] <burek> see the diff in protocol?
[21:12] <saste> same i suppose, you need to specify options in the url
[21:12] <burek> "rtmpT"
[21:13] <saste> note that i'm using the librtmp wrapper
[21:13] <DelphiWorld> burek: :P
[21:13] <DelphiWorld> burek: read html source
[21:13] <saste> ffmpeg -i "rtmpt://209.236.66.43/livepkgr/almagharibia live=1" -o out.flv
[21:13] <burek> ok
[21:13] <DelphiWorld> is using rtmp in JWPlayer
[21:13] <DelphiWorld> so how do i know that is rtmpt?
[21:13] <burek> have fun, I'll go to eat icecream :P
[21:13] Action: DelphiWorld slaps burek around a bit with a large trout
[21:13] <DelphiWorld> burek: no, better for you to eat froyo
[21:14] <DelphiWorld> saste: DUDE. segfault
[21:14] <saste> DelphiWorld: --enable-librtmp?
[21:14] <DelphiWorld> saste: doing
[21:15] <saste> please read *carefully* the docs, i wrote them and i did that in order to avoid users wonder about how to use it
[21:15] <saste> if they don't read them i wasted my time
[21:15] <llogan> DelphiWorld: trout comment reminds me of some conversations in #x264
[21:16] <DelphiWorld> llogan: :)
[21:16] <saste> DelphiWorld: rtmp native support in ffmpeg is not very good at the present moment
[21:29] <Darkclaw66> sorry got disconnected earlier
[21:29] <Darkclaw66>  ffmpeg -i *.avi -f mov -b 1250k -vcodec libx264 -acodec libfaac test.mov
[21:30] <Darkclaw66> if I don't specify the fps, -ar, etc it will default to ffmpeg and not the video's info
[21:30] <Darkclaw66> I'd have to use copy but then it would also copy the codec used
[21:31] <Darkclaw66> is there a way around this?
[21:35] Action: DelphiWorld give saste a gift and put burek in a special jail ;)
[21:35] <ketas> i can't get it working
[21:35] <DelphiWorld> WORK !
[21:35] <llogan> Darkclaw66: -r and -ar for the output will be inherited from the input if supported by the encoder
[21:35] <DelphiWorld> WORK!WORK!WORK! ! ! ! ! ! ! ! ! ! !
[21:35] <ketas> this probably requires massive mindbending
[21:36] <llogan> Did you know Xerxes once whipped the ocean punish it into submission?
[21:36] Action: llogan hands DelphiWorld a whip
[21:36] <DelphiWorld> llogan: ;)
[21:36] <llogan> (for ffmpeg, not burek)
[21:38] <Darkclaw66> llogan it doesn't inherit from mine unless I use the copy
[21:38] <DelphiWorld> saste: fffmpeg -i "rtmpt://209.236.66.43/livepkgr/almagharibia live=1"
[21:38] <DelphiWorld> d work for some time but later hangup, why ?
[21:39] <llogan> Darkclaw66: use a pastebin site to show your ffmpeg command and the complete console output
[21:40] <Darkclaw66> http://pastebin.com/3nwCxwmP
[21:41] <ketas> wtf no video and slowed down weird audio
[21:41] <saste> DelphiWorld: difficult to judge
[21:42] <DelphiWorld> saste: please try to help :(
[21:44] <llogan> Darkclaw66: looks fine to me. maybe i misunderstood your question.
[21:44] <saste> DelphiWorld: what this one: RTMP_ReadPacket, failed to read RTMP packet header??
[21:44] <DelphiWorld> saste: same here
[21:45] <DelphiWorld> reading it for some time then disconnecting
[21:45] <saste> DelphiWorld: what if you use rtmpdump?
[21:45] <ketas> damn now audio is somewhat ok
[21:45] <ketas> video is gone
[21:45] <DelphiWorld> saste: same hell. but jWPlayer no hangup
[21:45] <saste> also is a live stream really supposed to be read as a batch process?
[21:46] <saste> what about using ffplay or ffmpeg -re?
[21:47] <DelphiWorld> i am failing using ffplay... asking for sdl something
[21:47] <DelphiWorld> saste: i'm pushing the livestream to FFServer
[21:48] <saste> Delphiworld: -ffmpeg -re?
[21:48] <DelphiWorld> -re... while try
[21:48] <ketas> kernel: pid 22101 (ffserver), uid 0: exited on signal 11 (core dumped)
[21:48] <ketas> oh come on!
[21:48] <DelphiWorld> i'm doing:
[21:49] <DelphiWorld> ffmpeg -i "rtmpte://209.236.66.43/livepkgr/almagharibia live=1" http://192.168.100.100/almajd01.ffm
[21:49] <saste> how much time before it hangs?
[21:50] <DelphiWorld> hmmm saste
[21:50] <DelphiWorld> saste: what's the job of -re ?
[21:50] <saste> DelphiWorld: -> docs
[21:51] <DelphiWorld> same issue saste no idea about time maybe 5 min
[21:51] <saste> then i can't help, and btw i got the same error again with ffplay after ~2 mins
[21:52] <Darkclaw66> llogan the issue is that I want it to copy the settings from the original video and not the default settings from ffmpeg
[21:53] <DelphiWorld> that suck a lot
[21:53] <llogan> Darkclaw66: what settings in particular?
[21:55] <Darkclaw66> fps, bitrate, etc
[21:57] <Darkclaw66> gotcha there eh? lol
[21:58] <llogan> Darkclaw66: the fps is the same, and copying bitrate from the input to the output is not an optimal method of encoding.
[21:59] <Darkclaw66> how come?
[21:59] <saste> DelphiWorld: -> ticket
[21:59] <DelphiWorld> saste: should be
[22:00] <ketas> OH FFS
[22:00] <llogan> Darkclaw66: not all encoders and formats are equal, and can you trust the person who encoded the input to have chosen a decent value?
[22:00] <ketas> i'm taking a break
[22:00] <llogan> Darkclaw66: what is your goal for the output? why are you re-encoding?
[22:01] <DelphiWorld> saste: my guess is i allready fixed it!
[22:01] <DelphiWorld> saste: let's wait for some time;)
[22:01] <Darkclaw66> my goal is to have the output video be in a format that my Roku player can support. I don't want to lose any quality from the original
[22:02] <DelphiWorld> saste: ok DUDE. ffmpeg -re -i "rtmpt://209.236.66.43/livepkgr/almagharibia live=1 timeout=60" http://192.168.100.100/almajd01.ffm
[22:02] <DelphiWorld> touk sometime but hangup;(
[22:03] <ketas> i drop the whole idea
[22:03] <ketas> i never get it working
[22:04] <DelphiWorld> ketas: so what's the new idea
[22:04] <ketas> nothing
[22:04] <ketas> no streaming at all
[22:04] <DelphiWorld> LOL
[22:04] <Darkclaw66> I don't see the fps matching, the output is at 23.98
[22:04] <ketas> doesn't work so no streaming
[22:05] <ketas> not sure anything even supports the thing i'm planning
[22:06] <ketas> well, currently i even can't get fixed streams working
[22:06] <ketas> on machine
[22:06] <ketas> let alone dynamic and on phone
[22:07] <Darkclaw66> llogan are you still there?
[22:08] <DelphiWorld> where can i open a ticket ?
[22:09] <Darkclaw66> there is no way to copy the bittrate settings from the original to the target
[22:11] <ketas> open ticket in parking system
[22:12] <Darkclaw66> or at least the audio bitrate?
[22:12] <DelphiWorld> lol ketas
[22:13] <ketas> DelphiWorld: it's also opened for you there
[22:13] <ketas> :P
[22:14] <llogan> Darkclaw66: do you have specifications of what this roku player supports?
[22:15] <Darkclaw66> http://support.roku.com/entries/423946-what-media-file-types-does-the-roku-usb-media-player-channel-support
[22:15] <Darkclaw66> I chose h.264 and AC3
[22:16] <llogan> and is your output working?
[22:16] <Darkclaw66> yes it's working. the only thing im trying to do is have the output match the original as far as frame rate, bitrate for video/audio
[22:17] <Darkclaw66> without having to specifying it manually
[22:17] <ketas> DelphiWorld: state changed: feedback -> bailiff, ow f...
[22:17] <ketas> ok well maybe i should take some sleep
[22:17] Action: DelphiWorld slaps ketas around a bit with a large trout
[22:17] <ketas> that doesn't help getting sleep
[22:18] Action: DelphiWorld ip route null ketas
[22:18] <Darkclaw66> is that not a good idea?
[22:19] <llogan> Darkclaw66: since your input already contains AC3 you can simply copy that instead of re-encoding. or you can convert to AAC if you want a command that will work with any input...
[22:19] <llogan> otherwise you would have to check each input audio format if you want to copy
[22:19] <Darkclaw66> the thing is each video I convert wil have different codecs
[22:20] <Darkclaw66> maybe I should have a few default settings, XVID, DVD, HD DVD, etc
[22:20] <Darkclaw66> then those presets will be hard coded
[22:20] <llogan> do you care about output file size or encoding speed more?
[22:20] <Darkclaw66> I care a little bit about the output file size not so much encoding speed
[22:21] <Darkclaw66> at least I don't have to specify the fps :)
[22:21] <llogan> ffmpeg -i input -vcodec libx264 -preset slow -crf 18 -acodec libfaac -aq 100 output.mp4
[22:23] <llogan> might want to add a "-ac 2"
[22:24] <Darkclaw66> sounds good thx :)
[22:24] <Darkclaw66> with that syntax though, what bitrate will ffmpeg utilize?
[22:25] <llogan> it depends on the input. you are declaring a desired quality, not bitrate. the output bitrate will depend on the complexity of the input.
[22:25] <llogan> but the quality of all the outputs will be the same (assuming the inputs are equal in quality)
[22:25] <Darkclaw66> ffmpeg will automatically determine what the ideal bitrate is without it choosing a crappy value?>
[22:26] <llogan> yes, that's what -crf is for. a higher value is lower quality, and therefore fewer bits per frame will be used.
[22:26] <Darkclaw66> very interesting
[22:27] <llogan> sane range is 18-28ish
[22:27] <llogan> you probably can't tell the difference between input and output if you use 18.
[22:50] <hwk> :)
[22:52] <hwk> any trolls around?
[22:53] <hwk> guess not :)
[22:53] <ubitux> you just got trolled by 190+ persons
[22:57] <hwk> :)
[23:13] <beandog> heh
[23:26] <burek> Darkclaw66, did you solve your problem?
[23:26] <burek> judging by your pastebin http://pastebin.com/3nwCxwmP the fps from input and output are the same
[23:26] <burek> so there's nothing odd there
[23:26] <hwk> burek, did that littlewimp gave headackes?
[23:27] <burek> input says "23.98 tbc" and output says "23.98 tbc" too
[23:27] <burek> hwk, I don't understand the question
[23:28] <hwk> a day or two ago some wise guy was complaining here about the args
[23:28] <hwk> and how smart he was
[23:28] <burek> oh littleidiot
[23:28] <burek> yes :)
[23:28] <hwk> i parted
[23:29] <hwk> mofos
[23:29] <burek> I even suggested him to use static binaries, to solve his problem, but luckily he didn't listen
[23:29] <burek> as usual :)
[23:29] <burek> end has spent the next hour here whining without solving his problem :)
[23:29] <hwk> he was a jack, trying to prove nothing. you should have really ignored him
[23:30] <hwk> if you were paid to listen to such people... that would a different story :P
[23:31] <hwk> be*
[23:37] <burek> I know, but still.. If he would solve his problem he would have left the channel sooner :)
[00:00] --- Fri Jun 15 2012


More information about the Ffmpeg-devel-irc mailing list