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

burek burek021 at gmail.com
Sat Oct 26 02:05:01 CEST 2013


[01:42] <pfloyd> I'm trying to combine the m2ts in a BDMV folder to a single m2ts and I'm seeing a ton of these:  [mpegts @ 0x805078a00] Non-monotonous DTS in output stream 0:1; previous: 84819058, current: 84819056; changing to 84819059. This may result in incorrect timestamps in the output file.
[01:42] <pfloyd> using command line:  ffmpeg -i "concat:f1|f2|f3|..." -c copy combined.m2ts
[01:42] <pfloyd> is there a better way to convert BDMV to a format my popcorn hour will like?
[01:43] <pfloyd> or does anyone know if a popcorn hour will just play a folder with BDMV in it like it does a DVD rip?
[03:45] <Ulfalizer> how does the resampling stuff in libavcodec/avcodec.h (av_audio_resample_init(), audio_resample(), etc.) relate to libswresample?
[07:27] <xsacha> hi
[07:43] <xsacha> i have a weird crash in ffmpeg and was wondering if anyone could help
[07:53] <xsacha> my system is blackberry10. i upgraded from ffmpeg 1.2 to ffmpeg 1.4 (latest) and now i get crashes from avformat_find_stream_info
[07:54] <xsacha> specifically, when i remove this line it no longer crashes (even though this line was also in 1.2): https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/utils.c#L2750
[07:54] <xsacha> i followed its codepath to avcodec_open2
[07:55] <xsacha> when i comment out this line it no longer crashes: https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/utils.c#L1181
[07:55] <xsacha> it doesn't seem related to &tmp though. because if i do an: AVDictionary *foo = NULL; av_dict_copy(&foo, *options, 0);   it crashes again
[09:07] <dreamhawk> hello, can anyone help me here with "yasm/nasm not found or too old. " on a centos 6.4 ?
[09:08] <JEEB> compile your own yasm and put it somewhere that goes into PATH :)
[09:08] <JEEB> http://yasm.tortall.net/Download.html
[09:08] <dreamhawk> JEEB: http://www.pawprint.net/news/article/105/Compiling-FFMpeg-on-Centos-5/ <-- i followed this, simply put all in a shell-script and executed it :)
[09:09] <JEEB> yeah, no
[09:09] <JEEB> that's three years old and contains no traces of a newer yasm
[09:09] <dreamhawk> https://trac.ffmpeg.org/wiki/CentosCompilationGuide this gave me same error yesterday. :/
[09:10] <JEEB> that tells you to build your own yasm, so you most probably did not have yasm in your PATH, or had it come in PATH after a possibly package installed one
[09:11] <JEEB> that seems to install binaries under /bin in your $HOME
[09:11] <JEEB> echo $PATH and see if it is there
[09:26] <dreamhawk> JEEB: not, no Yasm there
[09:30] <JEEB> it's not Yasm, it's yasm (at least the binary name). And you did understand what I meant, right?
[09:31] <dreamhawk> JEEB: i think so, this is a bit new for me, i've mostly yum installed everything, now i need aac-support and need to compile myself. and i didnt find anything with "yasm" in echo $PATH
[09:32] <JEEB> ugh
[09:32] <JEEB> do you know what PATH is?
[09:32] <JEEB> it is not linux-specific and it serves a certain purpose
[09:32] <JEEB> (windows and friends have a PATH system variable as well)
[09:33] <dreamhawk> Yes i know about it.
[09:33] <JEEB> ok
[09:33] <JEEB> so you did not see the spot that script would install the yasm binary to in your PATH?
[09:33] <JEEB> that would explain why it didn't work then :P
[09:33] <JEEB> uhh, not script
[09:33] <JEEB> compilation guide
[09:34] <JEEB> (see the --bindir it sets pretty much everywhere)
[09:34] <JEEB> also you don't really need nasm methinks, since everything in there that uses asm uses yasm, not nasm
[09:35] <JEEB> also uninstall any packaged yasm that you might have installed
[09:35] <dreamhawk> i have ran yum remove yasm
[09:36] <JEEB> anyways, if you want to follow that guide, make sure ${HOME}/bin is in your PATH
[09:36] <JEEB> since that is what it is based upon
[09:37] <JEEB> oh, LAME uses nasm o_O
[09:37] <JEEB> never knew
[09:37] <JEEB> but if you don't need mp3 encoding you don't need LAME anyways
[09:37] <JEEB> most people only need libx264 and libfdk-aac
[09:37] <dreamhawk> ooh
[09:39] <dreamhawk> JEEB: so i change --bindir to like, /usr/ instead?
[09:39] <JEEB> generally on linux you don't want to use /usr/ as-is since packages generally tend to go there
[09:39] <JEEB> /usr/local is generally used for locally built things
[09:39] <JEEB> (that you want to be in a root-only-writable area)
[09:40] <dreamhawk> Ok :), so how could i add yasm path to PATH ?
[09:40] <JEEB> which are you going with?
[09:41] <dreamhawk> that centos guide, seems the best
[09:41] <JEEB> export PATH=${HOME}/bin:${PATH}
[09:41] <JEEB> : is the delimiter of PATH directories
[09:41] <JEEB> the guide uses ${HOME}/bin so I used that
[09:42] <JEEB> after that if you echo $PATH or ${PATH} you should see that your home directory's bin directory is now in PATH
[09:42] <JEEB> there are various files where you can put this to automate this so that when you launch a shell you will get that done
[09:43] <JEEB> such as dot-bashrc or dot-bash_profile
[09:45] <dreamhawk> JEEB: alright! :)
[10:04] <chandra_> Hi, I am trying to compile ffmpeg 1.2.4 on ubuntu 13.10 with gcc 4.7
[10:05] <chandra_> there are my flags for configure --disable-yasm --enable-shared --disable-static --extra-cflags=-fPIC
[10:05] <chandra_> I got a linker error : libavutil/lls.o: relocation R_X86_64_PC32 against undefined symbol `memset@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
[10:06] <chandra_> Please can any one help me out
[10:08] <relaxed> chandra_: try adding --extra-ldflags="-static" and removing --extra-cflags=-fPIC
[10:08] <JEEB> first of all 1.2.4 is old, second of all if you needed PIC there's --enable-pic, third of all you really don't want to compile without yasm, fourth of all that error seems to be coming from glibc, not ffmpeg, so compiling ffmpeg with PIC will not exactly help :P Also make sure you clean your source tree every time you change configuration
[10:09] <JEEB> heck, yasm 1.2 comes with 13.10
[10:09] <JEEB> so you could just install the packaged one
[10:09] <chandra_> thank you
[10:09] <chandra_> i try it now
[10:10] <JEEB> also the standard compiler on 13.10 is 4.8, any specific reason you're using 4.7?
[10:11] <chandra_> 4.8 has some compilation problem with my source code
[10:11] <JEEB> (although since you are not setting --cc I bet you are actually compiling with 4.8, unless ffmpeg's configure takes in the value of CC env. variable)
[10:12] <chandra_> ok
[10:14] <chandra_> Actually, /usr/bin/gcc -> gcc-4.7 :)
[10:14] <chandra_> in my system
[10:29] <matthias_arch> I'm recording my desktop with ffmpeg while playing Minecraft. I've set the FPS to 30. If i start the recording before starting the game the fps stays at 30, but if i start the recording if minecraft is already started up the fps is first around 67 and goes slowly down and is not such stable like in option1. any ideas, I'm recording no sound
[10:44] <matthias_arch> durandal_1707: pastebin.com/tZ6jsDXv
[10:45] <matthias_arch> durandal_1707: if i start the game after starting recording the fps stays everytime at 30
[10:53] <durandal_1707> matthias_arch: that is not ffmpeg from FFmpeg but from fork
[10:55] <matthias_arch> durandal_1707: should i ask in #fork?
[10:56] <durandal_1707> if you intend to use fork
[10:56] <durandal_1707> lol, and not literal fork
[10:59] <matthias_arch> would it work with the "original" FFmpeg?
[10:59] <JEEB> depends on a lot of things
[10:59] <matthias_arch> yes i got that from the ubuntu repo
[10:59] <JEEB> anyways, basically with libav-based binaries you should ask from #libav and use the avconv binary when possible instead of ffmpeg. Because they left the ffmpeg binary more or less unattended after rewriting parts of it as avconv.
[10:59] <JEEB> those rewrites were then of course merged into ffmpeg's ffmpeg
[11:31] <diroots> hi there
[11:34] <diroots> I have P2 mxf files : 1 video mxf and 4 audio mxf, in which format can I convert this to, with losless conversion, and keeping the 4 mono audio tracks separated? mkv container? is there another format/container allowing 4 distincts audio tracks?
[11:35] <diroots> or can I merge these mxf to one single mxf containing video and audios? will this be editable by common video tools??
[11:38] <durandal_1707> mkv can have any number of distinct audio tracks
[12:26] <plm>  morning all =D
[12:33] <brontosaurusrex> diroots, get mkvtoolnix and try to remux
[14:16] <hexy> Hey people, question.. How would I strip the audio from video A and replace it with audio from video B without re-encoding the video -- I don't know if it's possible or not without re-encoding.
[14:17] <hexy> But any help would be very appreciated =]
[14:17] <sacarasc> -c copy and -map
[14:21] <hexy> sacarasc: So it would be something like ffmpeg -i a.avi -c copy -map ...????
[14:22] <sacarasc> Yes, something like that.
[14:22] <hexy> sacarasc: I was asking what comes after.. if you don't mind
[14:22] <hexy> sacarasc: I apologize, it's my first time using ffmpeg
[14:22] <sacarasc> I've never got map to work, so I can't help any further.
[14:23] <hexy> Ugh, sacarasc, suggesting something that I would break my head over. Thanks lol
[14:25] <sacarasc> It would be something like ffmpeg -i blah.avi -i -audio.mp3 -map 0.0:0.0 -map 1.0:0.1 -c copy output.avi
[14:25] <sacarasc> That's about as much as I can help. :D
[14:28] <hexy> sacarasc: I'm reading about the -map option, maybe I'll figure it out. Also, I need to take the audio from a video file, not mp3, so it's a bit more tricky I'm assuming. But thank you anyways.
[14:28] <sacarasc> Not really.
[15:08] <troulouliou_dev> hi i have a s-video/rca capture card the i would like to stream as sap/rtsp stream. can anybody help ?
[17:02] <LithosLaptop> +
[17:02] <LithosLaptop> oops
[17:09] <plm> people, anyone can help to understand about realtime stream and HLS using ffmpeg?
[17:10] <plm> I would like to streaming a rtsp camera over internet, but just peer to peer.
[17:12] <plm> rstp_camera---(eth0)box1---internet---box2. I would like in box1 to do a hls from video of rstp and in box2 I will watch that video..
[17:13] <plm> I try ffmpeg hls to generate files, but files not stop to create while video input not finish. But video will never finish, becouse is rtsp from camera, how I do?
[17:15] <plm> I tryed this in box1 ./ffmpeg -y -i http://187.71.63.23:8082 -pix_fmt yuv420p -vcodec libx264 -acodec libfaac -r 25 -profile:v baseline -b:v 1500k -maxrate 2000k -force_key_frames 50 -s 640x360 -map 0 -flags -global_header -f segment -segment_list /var/www/hls/index_1500.m3u8 -segment_time 10 -segment_format mpeg_ts -segment_list_type m3u8 /var/www/hls/segment%05d.ts
[17:15] <plm> sorry, I change rtsp by http on camera, so input on ffmpeg in http
[18:10] <plm> anyone?
[19:37] <zap0> i have some video i'm trying to convert to MP4, but i'm getting   "width not divisisble by 2"  errors.    width's are odd :(    is there some magic to crop 1 line off the edge?
[19:37] <zap0> or add a line
[19:40] <JEEB> zap0, there are crop and pad video filters for that
[19:41] <JEEB> http://ffmpeg.org/ffmpeg-filters.html#crop
[19:41] <JEEB> see the examples part and so forth for usage examples
[19:43] <zap0> crop=in_w-1:out_h=in_h
[19:59] <zap0> seperate topic:   is there a filter for detecting scene change/cuts in a video?
[20:08] <yairgo> Is the only way to get ffmpeg on centos 6 to compile it from source?
[20:10] <sacarasc> What version kernel do you have?
[20:10] <yairgo> 6.4
[20:11] <sacarasc> That's the distro version number... What does `uname -a` say if you do it on the command line?
[20:12] <yairgo> sorry, Linux video-server 2.6.32-358.23.2.el6.x86_64
[20:12] <sacarasc> You should be able to use the latter of them.
[20:13] <sacarasc> Download it, extract it and use it as ./ffmpeg. Or add it to your $PATH and use it as ffmpeg.
[20:13] <yairgo> ok, I don't have an issue with trying to compile from source, I was more curious
[20:13] <sacarasc> There's that way!
[20:13] <sacarasc> It's up to date and easier.
[20:14] <yairgo> I didn't know if my google ability was missing a source repo somehow
[20:15] <yairgo> thanks sacarasc
[20:47] <cheri> hi I am able to capture elementary streams from a multicast ts it has h264 video and ac3 audio codec. I want to transcode it to flv on the fly how can I do it. any idea
[21:14] <hexy> Hey people, question.. How would I strip the audio from video A and replace it with audio from video B without re-encoding the video
[21:20] <JEEB> hexy, ffmpeg -i video.A -i video.B -map 0:v -map 1:a -c copy video.out
[21:20] <JEEB> something like this
[21:20] <JEEB> two inputs, map to output the video from input 0 (first file), and audio from input 1 (second file)
[21:20] <JEEB> and then -c copy to copy the data instead of transcoding
[21:21] <hexy> JEEB Thank you!
[21:21] <cheri> hi can anyone help me how to encode mpeg ts into flash
[21:25] <cheri> I am trying this but doesn't work ffmpeg -i input.ts  -c:v flv -b:v 1000k -c:a libmp2lame -f flv -y output.flv
[21:25] <hexy> JEEB: I'm only getting audio as the output
[21:26] <JEEB> hexy, show used command and the full terminal output in a pastebin
[21:26] <hexy> Okay, one sec
[21:27] <cheri> sorry the typo thats actally libmp3lame
[21:29] <hexy> JEEB: http://pastebin.com/uZQCt9Mt
[21:30] <JEEB> hexy, you can see by yourself that after output you have H.264 and AAC in there
[21:31] <JEEB> and in stream mapping you can see that it picked the first stream from the first input file, and second from the second fil
[21:31] <JEEB> *file
[21:31] <JEEB> so that part seems to be working fine
[21:31] <JEEB> and most definitely should not contain only audio
[21:32] <hexy> JEEB: I just ran through the entire outputed file again just to make sure, and still nothing.
[21:32] <hexy> Only audio that is..
[21:32] <JEEB> also you should have been able to use -map 0:v and -map 0:a to mark that you want video and audio from those, no need to explicitly put the number there
[21:33] <JEEB> although your ffmpeg is old as hell
[21:33] <JEEB> (by now)
[21:33] <JEEB> hexy, dunno -- either how you are reading it fails or that old ffmpeg build fails
[21:33] <JEEB> it seems to be most definitely doing what you want
[21:33] <hexy> JEEB: I literally installed the new compiled version today
[21:34] <JEEB> it could be a newly compiled version, but it's from the 0.10 branch
[21:34] <hexy> Should I build from source?
[21:34] <JEEB> 20 months ago 	n0.10 	FFmpeg 0.10 release 	tag 	| commit | shortlog | log
[21:34] <JEEB> that's basically where it was branched :P
[21:34] <JEEB> 20 months ago
[21:34] <JEEB> hexy, or you could grab a static build
[21:34] <hexy> Where?
[21:35] <hexy> I was looking for one
[21:35] <JEEB> http://ffmpeg.gusari.org/static/
[21:35] <JEEB> I guess here
[21:44] <hexy> JEEB: Sorry, it was just a bad player... Got it working! Thanks dude
[21:52] <smjd> hey... is it possible to record my desktop, and have always some buffer size filled? so that I have maybe four last minutes recorded on my hard drive, no more or less
[21:57] <smjd> could be useful catching bugs and other things
[21:58] <smjd> +for
[23:19] <teratorn> is there already some common data structure somewhere for recycling AVFrame* objects?
[23:33] <hexy> I am unable to sync the audio, why is that?? This is the command I used: ffmpeg -i first.avi -itsoffset 6.0 -i second.avi -map 0:v -map 1:a -c copy out.avi
[00:00] --- Sat Oct 26 2013


More information about the Ffmpeg-devel-irc mailing list