[Ffmpeg-devel-irc] ffmpeg.log.20130425
burek
burek021 at gmail.com
Fri Apr 26 02:05:01 CEST 2013
[00:18] <klaxa> hmm... newest git segfaults when using an mkv as a subtitle-file
[00:19] <saste> klaxa: mind to report a bug if reproducible?
[00:19] <klaxa> i'm currently checking if it works with a .ass file
[00:19] <klaxa> i'll then test more mkv files
[00:19] <klaxa> if it fails with every file i'll produce a valgrind log and report it
[00:21] <klaxa> hmm it seems to work with the .ass file from the mkv
[00:24] <klaxa> yes, only fails with mkv as subtitle file (somewhat expected?)
[00:24] <saste> klaxa, no, it's a bug
[00:24] <klaxa> ok
[00:24] <saste> also a crash is *always* a bug
[00:24] <saste> (unless if you're messing with libraries)
[00:25] <klaxa> hmm right
[00:27] <klaxa> valgrind seems to manipulate memory... when running ffmpeg with valgrind it doesn't segfault, but obviously it's pretty slow, i'll include the logs anyways
[00:44] <thee_l> hey, I have a question and possibly a bug.
[00:45] <klaxa> well then... what is it?
[00:45] <thee_l> I am trying to experiment with some streaming with ffserver
[00:46] <thee_l> I use the configuration file from the wiki(?) http://ffmpeg.org/trac/ffmpeg/wiki/Streaming%20media%20with%20ffserver#StreamingH.264videowithAACaudioinFLVformat
[00:46] <thee_l> except I removed all the audio from the flv stream and replaced it with 'NoAudio'
[00:47] <thee_l> I started ffserver with that configuration file
[00:47] <thee_l> I start up ffmpeg in another terminal with the command
[00:48] <thee_l> ffmpeg -f x11grab -r 24 -s hd1080 -i :0.0 -vcodec libx264 http://localhost:8090/feed1.ffm
[00:48] <thee_l> or something similar
[00:48] <thee_l> it doesn't matter, because a few seconds into streaming to the feed it stops with the error
[00:49] <thee_l> av_interleaved_write_frame(): Connection reset by peer
[00:49] <thee_l> the server keeps on chuggin (doesn't crash)
[00:49] <thee_l> any tips, notes, comments, help?
[00:54] <klaxa> hmm... pastebin ffmpeg and ffserver logs
[00:55] <thee_l> alright,
[00:55] <thee_l> would that just be the output?
[00:56] <klaxa> well best would be $ ffmpeg <whatever arguments> + output log
[00:56] <klaxa> including version, etc.
[00:56] <klaxa> same for ffserver
[00:56] <klaxa> also ffserver.conf would be helpful i guess
[00:56] <thee_l> where is that log located, then?
[00:57] <klaxa> in your command line i guess?
[00:57] <oelsen> is there a n00b channel for help with android, ffmpeg and libx264?
[00:57] <oelsen> hi first :D
[00:57] <klaxa> oelsen: specify your usecase and hopefully someone will try to help :)
[00:58] <oelsen> I have this weird setup (old ubuntu) and an old ffmpeg, semi-old libraries and apparently fairly recent x264-stuff installed
[00:58] <oelsen> no i know there is some glue somewhere that fixes wrong library calls between ffmpeg and libx264
[00:59] <oelsen> is there a site explaining what i can do? i can't change my setup here
[00:59] <ubitux> klaxa: can you git pull an retry please?
[01:00] <klaxa> ubitux: the development version i guess?
[01:00] <ubitux> yes
[01:00] <oelsen> i have this message here "ffmpeg: unrecognized option '-preset' "
[01:00] <ubitux> klaxa: btw, can you share the hataraku.mkv file?
[01:01] <oelsen> "ffmpeg -i input.mp4 -vcodec libx264 -preset ultrafast -acodec libmp3lame -ab 128k def.mp4"
[01:01] <klaxa> i can put it somewhere to download yeah (obviously it's anime so copyright etc., blablabla, nobody cares about chinese cartoons)
[01:01] <ubitux> klaxa: a torrent is fine otherwise
[01:01] <klaxa> ubitux: http://www.nyaa.eu/?page=download&tid=420278
[01:02] <ubitux> oelsen: what about -preset:v?
[01:02] <ubitux> klaxa: thx
[01:02] <oelsen> hm. like in ffmpeg -i input.mp4 -vcodec libx264 -preset:v ultrafast -acodec libmp3lame -ab 128k def.mp4 ?
[01:03] <oelsen> unrecognized option -preset:v
[01:03] <ubitux> i don't remember the exact syntax mmh
[01:04] <oelsen> ubitux: you have time to help? i try the pastebin. one moment.
[01:06] <oelsen> ubitux: http://pastie.org/7711967
[01:07] <dowdle> So I prefer webm format... and I've used ffmpeg to convert various formats to webm and it generally works great. I post some screencasts to blogs and for some reason, the .webm content that ffmpeg produces acts weird in Firefox. Other content in webm format (like from YouTube or something) doesn't seem to have the issues. I can be more specific on what I mean by weird if anyone need more info. Any ideas? The generated output seems to work fine
[01:07] <dowdle> in Google Chrome though. I was hoping maybe there was an ffmpeg flag I was unaware of to fix the issue.
[01:08] <thee_l> okay
[01:08] <dowdle> Hmmm, trying it today... it doesn't seem to be an issue... so it is probably just Firefox being weird and completely unrelated to ffmpeg.
[01:08] <klaxa> ubitux: works :)
[01:08] <ubitux> klaxa: great
[01:09] <ubitux> oelsen: please upgrade.
[01:09] <thee_l> so I put the command outputs and ffserver configuration file into one pastebin: http://pastebin.com/wvqKihpR
[01:09] <ubitux> oelsen: 0.5 is yeaaars old
[01:09] <ubitux> oelsen: we are in 1.2 you know..
[01:10] <oelsen> hm
[01:10] <ubitux> oelsen: 0.5 was released beginning 2009
[01:10] <ubitux> we had hundreds of commits every weeks since then
[01:10] <oelsen> yeah, i know
[01:11] <oelsen> I only needed libxvid for another player and I wanted to try x264 for this android here
[01:11] <oelsen> libxvid works fine :D
[01:15] <oelsen> ubitux: there is no ffmpeg left as a package for me and I don't want to compile something myself on this machine. is it still that there are two projects (ffmpeg + libav) ?
[01:15] <ubitux> yes
[01:15] <ubitux> and your distro is only packaging the fork
[01:15] <ubitux> that might help you ^
[01:16] <oelsen> not to open a can of worms, but what should I use as a n00b?
[01:16] <ubitux> what do you mean?
[01:16] <ubitux> you use whatever you want :)
[01:16] <Sashmo_> has anyone used a command like this with ffmpeg yet?? I need some help setpts='(RTCTIME - RTCSTART) / (TB * 1000000)'
[01:19] <dowdle> oelsen: If you are doing basic stuff the raw ffmpeg from the command line isn't very difficult: ffmpeg -i source.blah -b 800k -ab 64k output.blah
[01:19] <dowdle> oelsen: I guess there are a few GUI front-ends for ffmpeg but I've not really wanted or needed them. On windows winff is pretty popular I think.
[01:20] <dowdle> oelsen: Of course you replace the desired bitrates with whatever you want. The default I think is 200k.
[01:20] <oelsen> the gui stuff drains the battery on my portable player. the old ffmpeg i have can play almost double the time
[01:20] <oelsen> *the encoded files with the old ffmpeg, you understand :)
[01:23] <oelsen> sorry that I ask questions and have a .5 installed. I didn't know that. stupid me (like having a very old p2p client and wondering why it doesn't connect...)
[01:31] <thee_l> alright, I'm leaving, thanks!
[05:58] <stik> I am attempting to compile ffmpeg on Ubuntu 12.04, I have followed exactly the instructions here-- http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide#IfYouNeedHelp -- but when compiling ffmpeg I get ERROR: libfdk_aac not found
[11:17] <xlinkz0> so i can seek to the (end - 30s) of a 2 hour raw file ( h264 (Baseline) (avc1 / 0x31637661) ) in 70 microseconds
[11:17] <xlinkz0> but if i seek to stream->duration it takes 12 seconds
[11:55] <xlinkz0> http://codepad.org/k5UgsQmY
[11:56] <xlinkz0> i don't need to seek to the last frame
[11:56] <xlinkz0> but it's just peculiar
[12:03] <burek> xlinkz0, what part of "Please don't paste
[12:03] <burek> your scripts, just the exact ffmpeg command line from the console.
[12:03] <burek> you didnt understand :)
[12:04] <xlinkz0> i don't use ffmpeg command line
[12:04] <burek> oh my bad, didn't realize you were using libraries
[12:05] <burek> well, im not sure how to do it in the code, but there is a big difference when you use -ss before -i and after -i
[12:05] <burek> one is seeking very slow, since it decodes all frames
[12:05] <burek> and the other is just skipping over the key frames and is ultra fast
[12:07] <burek> i think in the code the diff would be if you are seeking over the input stream (not decoded) or you first decode the stream and then seek through it
[12:46] <xlinkz0> burek: this is before any decoding takes place right after the codec is opened
[13:02] <IamTrying> When i try: $ ffmpeg -i vlc-record-2013-04-25-12h49m20s-v4l2____dev_video1-.avi -b:v 300k -ar 8000 -ac 1 -s qcif -r 5 pingpong.3gp
[13:02] <IamTrying> it gives: Incompatible pixel format 'yuyv422' for codec 'h263', auto-selecting format 'yuv420p'
[13:02] <IamTrying> What is missing?
[13:06] <durandal_1707> IamTrying: nothing, you do not need to do anything
[13:12] <zimbatm> IamTrying: it means that ffmpeg is going to convert the color space to one that is compatible with the target format
[13:13] <zimbatm> it can affect the quality of the video but in practice i never noticed a difference
[13:14] <zimbatm> .
[13:14] <zimbatm> anyone has an idea how I could reduce the size of an mp4 ctts table ?
[13:24] <durandal_1707> zimbatm: what is ctts table?
[13:24] <zimbatm> it's part of the container metadata
[13:24] <zimbatm> http://www.gdcl.co.uk/mpeg4/ctts.htm
[13:28] <l_r> hello
[13:31] <l_r> i am trying to write a http client connecting to an mjpeg server. i d like to use ffserver instead of a real ip camera. i wonder if the protocol is the same in both cases so that once i buy the camera the client would work without modifications
[13:33] <zimbatm> l_r: probably not exactly the same
[13:33] <zimbatm> each camera implement their own little tweaks
[13:33] <l_r> zimbatm, i see
[13:34] <zimbatm> but often it's simple things like the name of the separator or header formatting
[13:34] <zimbatm> just make sure your parser is flexible enough
[13:40] <mf__> Hello all! I'm trying to encode a video used for "web playback", but it doesn't seem to be seekable at all (and yes, I use qt-faststart after the conversion). The command I use is: http://pastebin.com/S1TrRyCJ
[13:40] <mf__> Any pointers?
[13:40] <mf__> I'd really appreciate it.
[13:42] <l_r> zimbatm, do you think a smart parser would solve all the non coherence?
[13:42] <zimbatm> mf__: your server needs to support range requests
[13:43] <zimbatm> otherwise the player cannot skip without loading the whole file first
[13:43] <l_r> zimbatm, after all browsers can connect to generic servers regardless of the source devices
[13:43] <zimbatm> l_r: yeah
[13:44] <zimbatm> just expect to make some tweaks for weird chinese brands :p
[13:44] <mf__> Wait, why is that? If the video gets fed right to my Chrome Browser on start, and the video starts playing, and the metadata is at the beginning of the file (I can see how long the video is before it's been downloaded) I should still be able to seek trough the part that has been downloaded so far.
[13:44] <mf__> I can do that on the JWPlayer's test-video, but not on my own
[13:45] <zimbatm> mf__: if the part is buffered then it's another issue
[13:47] <mf__> If what part is buffered? The part of the downloaded video?
[13:57] <mf__> I've really tried and been googling this for litteraly days now. I can't seem to find why it's not seekable on the parts thats been downloaded thus far :/ Is it some kind of b-frame-settings I should tweak?
[13:59] <nlight> hello everyone, i have a problem with sws_scale from YUV420P to RGB24, whatever the input is I just receive zeroes as the resulting frame
[13:59] <nlight> debugging is showing that the avframes contain the correct info
[13:59] <nlight> also my source video is playable (tested in VLC)
[14:00] <nlight> is there a known bug or something?
[14:00] <nlight> i don't do scaling, only conversion from yuv to rgb
[14:00] <nlight> i allocated all the memory using the av_malloc so it should be aligned
[14:01] <durandal_1707> there is no bug with conversion....
[14:01] <nlight> here's my function http://pastebin.com/cfMGuxgw
[14:02] <nlight> i know i dont have to allocate the sws thing every frame but i want to get it running then i'll move it to a class variable
[14:04] <nlight> any ideas are highly appreciated I've been searching google for 1 hour no but haven't found anyone with a similar issue
[14:05] <durandal_1707> certain programming & logic skills are needed
[14:05] <nlight> sorry?
[14:07] <mf__> durandal_1707: are you referring to me?
[14:09] <durandal_1707> mf__: no, you want that encodes you stream to be seekable?
[14:10] <durandal_1707> and by seekable you mean seekable in browser?
[14:11] <mf__> Yes, correct!
[14:11] <nlight> Anyone can help me? I'm sure my problem is really dumb but I have never used ffmpeg before
[14:12] <mf__> durandal_1707: Seekable as in; even if I don't use a 'streaming-module' for nginx/lighttpd, etc, I still want to be able to seek trough the video that has been downloaded to the browser
[14:12] <durandal_1707> mf__: seakability in browser depends on server streaming file - sending/receiving request - its not ffmpeg problem at all
[14:13] <mf__> it's not seekable at all. when I try and seek, the video freezes, then continues playing when I release the mouse
[14:13] <durandal_1707> mf__: that is not ffmpeg problem at all
[14:13] <durandal_1707> it happens in broswer and browser is not ffplay
[14:13] <l_r> to submit a patch what i ll have to do
[14:14] <mf__> durandal_1707: I'm not reporting an FFMPEG problem, I'm trying to get pointers on how to encode my video files so that they are seekable in Flash Players.
[14:15] <durandal_1707> mf__: i said 2 times that is not encoder issue
[14:15] <mf__> And when I mean "seekable"; I DON'T mean by requesting a range/part of the video from the web-server, by seeking I mean "get me to the nearest b-frame in the video and play from there"
[14:16] <durandal_1707> mf__: are there files that can do that?
[14:16] <mf__> durandal_1707: Okay, but how come I can play other mp4-files in my browser and seek?
[14:17] <JEEB> try remuxing it with some other mp4 muxer and see if that helps
[14:17] <JEEB> L-SMASH's remuxer or mp4box from GPAC
[14:18] <mf__> (I'm talking -files- here, not -players-. I'm playing the file trough the built-on Chrome player, and that plays the jwplayer-example-video ( http://content.bitsontherun.com/videos/3XnJSIm4-kNspJqnJ.mp4 ) just fine )
[14:18] <mf__> OK, I'll try that. Thanks!
[14:18] <JEEB> although in theory ffmpeg + qt-faststart should work, as you seemingly have already done :P
[14:21] <mf__> JEEB: That's exactly my thought.. I don't get why qt-faststart won't do it..
[14:25] <yawgmoth_> Hello. I am piping glc output to ffmpeg like so (glc writes yuv4mpeg to stdin): glc-play -y 1 -o -| ffmpeg -i - -c:v copy output.mkv
[14:26] <yawgmoth_> The resulting file is not playable, mplayer produces the following output: http://pastebin.com/TL9Y5PhY
[14:32] <yawgmoth_> I just imported the file in blender (video sequencer). It's able to play it.
[14:32] <yawgmoth_> Maybe I should move this to #mplayer...
[14:33] <yawgmoth_> Because, a test with ffmpeg revealed that ffmpeg can very well read the file as well (transcoding test to libx264)
[15:30] <Adrian__> hi
[15:31] <Adrian__> after tryng to setup a stream server for like a week , i try now the irc to get some help
[15:31] <Adrian__> anyone with some knowledge arround who can help me ?
[15:32] <Adrian__> the problem seems to be at the ffserver ( wait_feed) at status.html
[15:32] <Adrian__> i used for now the latest installation and compiling guide i found at forum ( using ubuntu 12)
[16:18] <burek> Adrian__
[16:18] <burek> let me find you a link
[16:50] <gxk> can ffprobe calculate bitrate for h264 file?
[16:54] <gxk> to be exact, how to calculate frame rate with ffprobe?
[16:59] <relaxed> gxk: ffprobe -show_streams input.mkv 2>&1 | grep frame_rate
[17:00] <gxk> sorry, i ment, bit rate.
[17:50] <Iv0ry> Hi Guys i got a smal question is stream an mp4 file to the Red5 Media Server with this: ffmpeg -re -i a10.mp4 -vcodec copy -acodec copy -f flv rtmp://1.2.3.4:1935/live/ - The Strange thing is it runs 4 sec and then he is finish but the video is about 10Minutes
[18:00] <Iv0ry> http://pastebin.com/GYXarbhi thats all he does no error message any ideas? :(
[18:01] <xlinkz0> is there any way to make ffmpeg not lose RTP packets?
[18:05] <xlinkz0> how do i check if the ffmpeg connection for RTP is tcp or udp?
[18:10] <l_r> xlinkz0, i think udp
[18:10] <l_r> xlinkz0, netstat
[18:16] <xlinkz0> thanks
[18:16] <xlinkz0> it misses packets over TCP :(
[19:04] <glos> Hi Guys i hope i can ask a smal question i got a problem with a stream it works all fine but after 3min i get error: "Failed to update header with correct duration.
[19:04] <glos> [flv @ 037dfa80] Failed to update header with correct filesize." i use: ffmpeg -re -i xx.mp4 -vcodec copy -acodec aac -ab 256k -strict -2 -cutoff 15000 -f flv rtmp://.....
[19:05] <glos> is ffmpeg the wrong tool for me or my start line is not good enough? -.-
[19:25] <glos> no ideas about the error?
[19:46] <burek> Iv0ry your ffmpeg is too old
[19:47] <glos> too old?
[19:47] <glos> it was the act. i found for windows -.-
[19:48] <burek> http://pastebin.com/GYXarbhi
[19:48] <burek> ffmpeg version 0.8.10, Copyright (c) 2000-2011 the FFmpeg developers
[19:48] <burek> 2011...
[19:48] <Iv0ry> This build was compiled on: Apr 18 2013, at: 02:50:33
[19:49] <burek> it's a source code from 2011, compiled on 2013 :)
[19:49] <Iv0ry> hmm
[19:51] <Iv0ry> strange
[19:54] <Iv0ry> i think the problem was the coding from mkv to mp4
[19:54] <Iv0ry> becouse the mkv file is 9gib and the mp4 file is just 300mb and the first 3min ^^
[19:55] <Iv0ry> its ok if i just use ffmpeg -i xx.mkv -vcodec copy -acodec copy xx.mp4
[19:55] <Iv0ry> ?
[20:12] <plethora> is there a way to move some but not all of the metadata from a stream with ffmpeg?
[20:12] <plethora> i'd like to remove Rotation but keep everything else
[00:00] --- Fri Apr 26 2013
More information about the Ffmpeg-devel-irc
mailing list