[Ffmpeg-devel-irc] ffmpeg.log.20130819
burek
burek021 at gmail.com
Tue Aug 20 02:05:01 CEST 2013
[00:17] <asherawelan> sigh
[04:05] <t4nk722> hi all
[04:05] <t4nk722> I got the big problem
[04:05] <t4nk722> ffserver hangs
[04:05] <t4nk722> there is no any data output by ffserver in the condition
[04:05] <t4nk722> ffserver says :there is no any data arrived from ffmeg via http post
[04:06] <t4nk722> ffmpeg says: the receive side does not read data on time
[04:06] <t4nk722> does someone have idea>
[04:06] <t4nk722> the return from poll says : there is no any fd ready for read/write
[04:06] <t4nk722> in ffserver
[10:21] <adnap> I have an mkv with an AC3 and MP4 file inside. How can I mux these into an MP4?
[10:22] <SirDarius> you mean, an AC3 audio stream and a H.264 video stream ?
[10:22] <SirDarius> coz MP4 inside MKV doesn't make much sense
[10:23] <SirDarius> anyways, juste use : ffmpeg -i input_file.mkv -c copy output_file.mp4 and you're done
[10:24] <viric> Hallo!
[10:24] <viric> I've some troubles with afade=t=in ... it looks to me as not working, in 1.2
[10:24] <viric> but I remember it worked before. And by 'before', I don't know it worked for me in 1.2 or 1.1
[10:25] <viric> My input files are mpegts; can it be that the time reference in mpegts is somehow weird, to affect the afade start time?
[10:25] <viric> The data shown by ffprobe on mpegts files includes some "Start Time = 1.330000s" and things like that, that I don't understand.
[10:26] <adnap> Does ffmpeg do anything in parallel?
[10:30] <viric> some codecs admit multithread. -threads.
[10:31] <viric> $ ffmpeg -h full | grep threads
[10:36] <adnap> SirDarius & viric: Thanks
[10:37] <viric> as usual, it's important in what position of the cmdline you place '-threads' :)
[11:24] <lei_> how to save real time h.264 data and aac data to mpeg2-ts file?
[11:26] <lei_> anybody?
[11:27] <viric> ?
[11:28] <viric> how does that data reach your computer?
[11:28] <viric> ... -format mpegts file.mts should work
[11:29] <lei_> a ip camera generate h.264 and aac data.
[11:29] <lei_> via tcp connection.
[11:30] <lei_> thanks, but command line is not my option.
[11:32] <lei_> I am writing an program to generate ts file.
[11:32] <lei_> but I don't know how to do this.
[11:33] <viric> the ffmpeg program is not a big program, built over the library. You can check its source
[11:34] <viric> (I only used the ffmpeg lib to get 'input', never to write output)
[11:34] <relaxed> lei_: look at the -re option for ffmpeg
[11:34] <lei_> yes, I am checking, but if there are already some work about this problem, it is much better.
[11:35] <lei_> thanks, relaxed, I 'll check it.
[11:36] <viric> interesting, -re (-report I guess)
[11:36] <relaxed> no
[11:36] <viric> ah no. -re. oops
[11:36] <viric> :)
[11:38] <relaxed> lei_: man ffmpeg | less +/^' -re '
[11:43] <lei_> I am reading.
[11:48] <lei_> I have a h.264 es file, but I don't know how to write command line to generate ts file. @relaxed
[11:49] <relaxed> ffmpeg -i input.h264 -c copy -f mpegts output.ts
[11:50] <lei_> I am kind of newbie of ffmpeg
[11:51] <relaxed> http://trac.ffmpeg.org/wiki/x264EncodingGuide and http://ffmpeg.org/documentation.html
[11:56] <viric> can the h264 be stored 'alone' into a file?
[11:57] <viric> lei_: what is 'es file'?
[11:57] <viric> (I'm just curious)
[11:58] <lei_> just write every h.264 packet into a file, it is a es file.
[11:58] <relaxed> yes, in a elementary stream
[11:58] <relaxed> an*
[11:59] <viric> ahh.
[11:59] <viric> thank you
[11:59] <lei_> but it sounds like you can not write both h.264 and aac into a file. could ffmpeg can not read it.
[12:00] <relaxed> of course you can
[12:00] <lei_> ffmpeg can't read it.
[12:01] <viric> going back to my topic, does anyone know if the mpegts "Start Time" reported by ffmpeg is relevant for anything?
[12:01] <viric> I can't get afade=t=in working. the output video starts without any fade in.
[12:01] <lei_> hi, fflogger, i never paste a command line in this room.
[12:02] <lei_> thanks for your notice.
[12:03] <lei_> thanks relaxed, your command line works.
[12:03] <lei_> does relaxed's command line violate some rule?
[12:04] <viric> lei_: I think relaxed just wanted you to provide full detail for your claim about ffmpeg not being able to read the mixed file. And asked the bot to suggest you a paste site.
[12:04] <relaxed> fflogger is a bot
[12:06] <lei_> back to my question, I don't think you can save both h.264 data and aac data into a singlle file, I tried, ffmpeg can not read it.
[12:08] <relaxed> ffmpeg -i input.h264 -i input.aac -c copy -f mpegts output.ts
[12:09] <relaxed> for further support you will need to reread fflogger's message and do it so we can see the problem.
[12:10] <lei_> that's two file, I think a it is a right approach.
[12:11] <lei_> lol.
[12:11] <lei_> copy right suck.
[12:11] <lei_> sucks
[13:02] <TheOneRing> hi any idea why convertign to opus fails?
[13:02] <TheOneRing> http://paste.kde.org/pa492a087/
[13:11] <durandal11707> Trax|wrk: it doesn't fail its because of cover art,
[13:11] <durandal11707> TheOneRing: so add -vn
[13:42] <TheOneRing> k thx
[14:18] <__blasty_> hi. I have a FLV container'd video which uses H264 video codec. Unfortunately the first 122megabytes of this 16GB flv capture have gone corrupted (all zeroes by now)
[14:18] <__blasty_> is there any way, and what is the easiest way to recover the remaining video/audio data?
[14:18] <__blasty_> obviously all players out there will choke on it, as they have no context information about the format etc.
[14:19] <__blasty_> I have other captures made using the same setup which have *not* gone corrupted.. Is there any chance I could just jimmyrig the broken FLV by frankensteining the header of the undamaged FLV on top using a hexeditor/cat ?
[14:21] <viric> __blasty_: I think you can force the format and codecs, with '-format' and '-codec', before the -i.
[14:23] <__blasty_> viric: ok. Ill give it a shot, thanks
[14:27] <relaxed> if that doesn't work you could use `dd` or `split` to find out where the curroption ends and cut out the remaining portion
[14:27] <relaxed> er, corruption
[14:31] <iKriz> hi guys i'm using the ffmpeg library in my app only its hard to find documentation about setting up a RTSP stream using the library
[14:31] <iKriz> any examples anywhere?
[14:33] <iKriz> i dont want to use the exe files because i have a the frames in memory
[14:33] <iKriz> already encoded with nvenc
[14:33] <iKriz> just need a streaming instance from ffmpeg
[14:36] <__blasty_> viric: so im trying something very naive like: avconv -f h264 -i broken.mp4 fixed.mp4, however it cant seem to detect the duration of the broken input file properly, and thus wont write anything to the outputfile
[14:37] <__blasty_> I tried forcing that a bit by giving -t NNN (some value >1) .. but it won't fall for it :-( :-P
[14:41] <viric> avconv?
[14:41] <viric> this is not ffmpeg
[14:42] <viric> I've no idea how much avconv diverged
[14:44] <viric> __blasty_: h264 is not the format. h264 is the video codec.
[14:46] <__blasty_> proves ho much I know. punching 'ffmpeg' on my ubuntu machine claims it's deprecated and I should be using 'avconv' instead
[14:46] <__blasty_> was sort of assuming there that was all part of the ffmpeg project
[14:47] <viric> n
[14:47] <viric> no
[14:47] <viric> they forked.
[14:47] <__blasty_> ok, so in my case the format is/was 'flv', and then I need to specify some codec parameters as well I guess
[14:47] <durandal_1707> if you read carefully output you will see ffmpeg project is not mentioned
[14:47] <viric> ask ubuntu, about their advice "this ffmpeg is bad"
[14:48] <__blasty_> heh :)
[14:48] <viric> or find libav support somewhere, and check yourself who is the bad.
[14:48] <relaxed> #libav
[14:49] <__blasty_> is there an easy way to derive the correct "codec parameters" from a working flv file made using same setup?
[14:49] <__blasty_> 'ffprobe' perhaps ?
[14:49] <__blasty_> Stream #0.0: Video: h264 (Main), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 25 tbr, 1k tbn, 50 tbc <- Now I need to turn this info ffmpeg cli opts.. heh :)
[14:50] <durandal_1707> there is ffprobe documentation
[14:50] <durandal_1707> and it supports various outputs
[14:52] <__blasty_> durandal_1707: ok, well, I probably suck at reading this ffprobe manpage. I dont see any easy way to make it output something I can feed back into ffmpeg as cli opts again
[14:52] <__blasty_> thanks for all the headsup btw!
[15:00] <xlinkz0> I am trying to concat two files , they have the same h264 profile, same size, same fps, same tbr same tbn same tbc
[15:00] <xlinkz0> but the resulting video is corrupted
[15:00] <xlinkz0> how can i diagnose/fix this?
[15:06] <__blasty_> xlinkz0: what about just: ffmpeg -i file1 -i file3 -vcodec copy -acodec copy file_out.ext ?
[15:07] <__blasty_> how do I get encoder/decoder specific options? I know I can do -codecs for a list .. but.. no idea how to get encoder/decoder specific options
[15:07] <xlinkz0> you can't concat like that
[15:08] <__blasty_> ah that will attempt to mux them or something? Im quite new to all this :-/
[15:09] <xlinkz0> then you most likely can't help me with this :)
[15:09] <durandal_1707> xlinkz0: what you use to concat?
[15:09] <xlinkz0> concat demuxer
[15:09] <durandal_1707> how is video corrupted?
[15:09] <__blasty_> xlinkz0: but maybe you can help me! how do I get list of en/decoder specific options for a given codec? :-P
[15:10] <xlinkz0> dunno, for x264 you can google it, haven't used other encoders
[15:10] <xlinkz0> durandal_1707: uploading a testcase in 5 minutes
[15:10] <relaxed> ffmpeg -h encoder=libx264
[15:10] <__blasty_> relaxed: thx.
[15:10] <durandal_1707> __blasty_: specific options are usually documented
[15:15] <iKriz> anyone use the library to stream RTSP from memory?
[15:15] <iKriz> actually its RTP but anyhow :)
[15:17] <xlinkz0> durandal_1707: do you have any favorite uploading site?
[15:18] <xlinkz0> if you would like me to upload it somewhere else please do so, here's the archive : http://www.sendspace.com/file/0cj9xq
[15:18] <xlinkz0> ffprobe -show_streams shows identical output except for bitrate and duration
[15:23] <durandal_1707> xlinkz0: perhaps its not split at keyframe, and that could cause problems
[15:27] <durandal_1707> you got my last reply?
[15:27] <durandal_1707> xlinkz0: ^
[15:27] <xlinkz0> no, got disconnected
[15:28] <xlinkz0> durandal_1707: please repeat
[15:28] <durandal_1707> depending on how corruption looks like it may be simply because split is not done at keyframe
[15:28] <xlinkz0> each file looks ok on its own
[15:28] <xlinkz0> and i did not split any of them without stream copying
[15:29] <durandal_1707> but parts you want to join
[15:29] <xlinkz0> if i transcode the second file with x264 the same way i did with the first the only thing that changes is bitrate
[15:30] <xlinkz0> so is bitrate essential for the concat demuxer?
[15:30] <durandal_1707> maybe - maybe not
[15:31] <durandal_1707> only one frame is corrupted?
[15:31] <durandal_1707> and with what player?
[15:32] <xlinkz0> durandal_1707: the first video plays fine, the second one is entirely corrupted
[15:33] <xlinkz0> in the final file
[15:33] <xlinkz0> you can look at it yourself.. it's only 5 mb's
[15:33] <xlinkz0> did freenode filter my download link?
[15:40] <xlinkz0> durandal_1707: did you get the download link i sent?
[15:44] <durandal_1707> nope
[15:44] <durandal_1707> is only one frame corrupted?
[15:44] <xlinkz0> durandal_1707: sendspace.com/file/0cj9xq
[15:44] <xlinkz0> no
[15:44] <xlinkz0> the first part ( which corresponds to the first video ) plays fine, the second one is totally corrupt
[15:45] <xlinkz0> likewise if i switch them in the concat file so 2.mp4 is first it also plays fine
[15:46] <durandal_1707> in every player?
[15:46] <xlinkz0> in vlc
[15:47] <xlinkz0> and windows media player
[15:48] <durandal_1707> and it always happens when 2nd file have lower bitrate?
[15:48] <xlinkz0> the first file always plays fine
[15:49] <xlinkz0> second one always is corrupted
[15:49] <xlinkz0> doesn't matter the order
[15:49] <xlinkz0> only thing that fixes it is to have both files transcoded with x264 but that is not possible
[15:49] <xlinkz0> because i have to concat intro / outro files with footage from cameras that is stream copied
[15:50] <xlinkz0> i can't transcode every video from every camera
[15:50] <xlinkz0> every time i want to concat, it's too expensive
[15:50] <durandal_1707> i'm not h264 expert so perhaps you should contact one and/or open bug report
[15:50] <viric> what's the alternative to concat?
[15:51] <xlinkz0> i don't understand the question
[15:51] <tlhiv_work> i am having an extremely difficult time capturing video from my webcam and keeping my audio and video perfectly in sync
[15:52] <tlhiv_work> i've tried not even compressing the A/V at all when capturing and then encoding later ... the "capture" command that i am using is
[15:52] <tlhiv_work> ffmpeg -f v4l2 -r 25 -s 640x360 -i /dev/video0 -f alsa -i hw:1,0 -g 1 -c copy -y out.avi
[15:52] <durandal_1707> concat filter
[17:01] <stima> hi all
[17:01] <stima> can anyone help with build ffmpeg with x264 for windows?
[17:03] <relaxed> stima: http://ffmpeg.zeranoe.com/builds/
[17:03] <Mista_D> is there any video filter that can measure video quality in terms of pixelation "macroblockiness"?
[17:06] <stima> relaxed: thnx), but i need understand how it build manually ... I have a problem with linked error: _x264_bit_depth .. i googled but didnt find any info
[18:15] <_8680_> How should I delete a segment from an audio file with ffmpeg? Ive tried copying the part before the segment to be deleted and the part after, and then concatenating them, but the concatenation step spews warnings about missing timestamps.
[19:43] <rps2> Greetings. I'm trying to build ffmpeg 1.2.2 on a CentOS 5.8 machine, but I keep getting things like "libass not found" or "celt not found". I've checked and the -devel RPMs are present as are the headers and libraries.
[19:43] <rps2> This is configure complaining, by the way.
[19:44] <sacarasc> Check config.log (or it might be configure.log).
[19:44] <sacarasc> It's possible that your versions are just too out of date, as CentOS is a rather stable distro.
[19:45] <rps2> That's why I'm trying to build a later ffmpeg. The 0.6.5 version available for CentOS is too old to do what I need to do (test some playlist.m3u8 files).
[19:46] <sacarasc> Them links might be useful for you, if CentOS has a new enough kernel...
[19:46] <rps2> Nope. [root at bast1-r1 ffmpeg-1.2.2]# uname -r
[19:46] <rps2> 2.6.18-308.24.1.el5
[19:47] <sacarasc> :(
[20:13] <relaxed> rps2: 2.6.32 is the last longterm supported kernel.
[20:13] <relaxed> which my builds support.
[20:14] <rps2> I'm working on it. So far I sorted out that there's a dependency on libass that wasn't installed. However, libcelt0 doesn't seem to be available for CentOS 5, so that appears out.
[20:16] <relaxed> you can compile it yourself, or pay someone to do it for you if you really need it.
[20:16] <rps2> Yeah, I know, relaxed. I'm just trying to set up ffmpeg on a bunch of machines to load test a delivery platform.
[20:20] <relaxed> and you need celt support specifically?
[20:21] <rps2> No, I don't think so. These files I'm trying to test are x264/AAC3 for the most part.
[20:22] <relaxed> all your machines run el5?
[20:22] <rps2> No, some are el6.
[20:23] <rps2> I suppose I could try a prebuild for el6 for those machines.
[20:24] <relaxed> with ssh access I could build a static ffmpeg that would work on all of them, if you can't get it.
[20:26] <rps2> Give me a few more minutes. It's tedious to do this, but I'm working on it.
[20:31] <rps2> relaxed: The static build at http://dl.dropbox.com/u/24633983/ffmpeg/index.html worked on my el6 machines.
[20:35] <relaxed> they must have a 2.6.32+ kernel
[20:35] <rps2> Yes, they do.
[20:42] <asherawelan> I have been round in circles for days, looking at samples configs, but still feel like I'm no where with this. I have a avi file, h264 with mp3 audio and would like to stream it via mp4
[20:43] <asherawelan> Not sure the feed settings are correct, or indeed the stream settings - any advise would be greatly appreciated
[23:12] <asherawelan> I have this line to encode some video& but I get this err: Unknown encoder 'mp4'
[23:12] <asherawelan> ffmpeg -re -i /root/bigbuckbunny/big_buck_bunny_1080p_surround.avi -acodec copy -vcodec mp4 http://localhost:8090/feed1.ffm
[23:12] <asherawelan> What am i missing?
[23:16] <klaxa> try -c:v mpeg4
[23:16] <klaxa> instead of -vcodec mp4
[23:16] <klaxa> also, if you send it to ffserver, ffserver should handle conversion
[23:33] <asherawelan> klaxa: ok, thats giving me a new error: muxer does not support non seekable output
[23:34] <asherawelan> klaxa: I am still to get this working after 3 days, sigh
[23:36] <durandal_1707> codec is mostly irrelevant
[23:36] <rps2> Yes, you need to feed it to a file, then upload the file to your website. Sending it directly to a website isn't going to work.
[23:36] <durandal_1707> also error is clear, you can not write mp4 to non seekable output, use another format
[23:37] <durandal_1707> or open bug report stating that you actually need mp4 muxer that does not need seekable output
[00:00] --- Tue Aug 20 2013
More information about the Ffmpeg-devel-irc
mailing list