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

burek burek021 at gmail.com
Mon Nov 11 02:05:01 CET 2013


[00:12] <dgbaley27> Eh, never mind, I just wrote some quick code to do it with libmp4v2
[01:17] <jonno11> Hi, is it possible to loop a video input file with ffmpeg?
[01:18] <jonno11> "ffmpeg -re -i content/adstream -loop 1 -c copy -f flv rtmp://test.myserver.com/live/test"
[01:18] <jonno11> ^ this doesn't work...
[01:46] <l_r> hello
[03:47] <Compn>  Stream #0:0: Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], SAR 73:41 DAR 1168:369, 23.98 fps, 23.98 tbr, 48003.07 tbn, 47.95 tbc (default)
[03:47] <Compn> is that SAR and DAR normal ?
[04:11] <matham> I'm wondering how I can add subtitles read using avcodec_decode_subtitle2 into a overlay filter. ffplay seems to handle only bitmap subs and it blends those using manual code. ffmpeg also seems to do some manual hacking for bitmap subs only. ffplay for me doesn't display non-bitmap subs. Finally, from the filter page the subtitles filter requires a filename? not sure how to use this with avcodec_decode_subtitle2.
[04:32] <funyun> hi. how can i encode multiple wmv files into one h264 mp4 file?
[04:32] <funyun> or is that not possible with ffmpeg?
[04:50] <Compn> funyun : its possible
[04:50] <Compn> matham : should be using textsubs anyhow :P
[04:50] <Compn> funyun : check concat in manual
[05:09] <matham> Compn: you mean to use with the subtitles filter with text subs? That filter seems to require a seperate file containing the subtitles. The file I was testing with is an mkv file with a subtitle stream. Is there a way to feed that into the subtitles filter?
[05:09] <Compn> extract it first :)
[05:09] <Compn> i know, its stupid
[05:09] <Compn> mkvextract
[05:09] <Compn> or mplayer -dumpsub
[05:11] <matham> Oh, ok. Thanks :)
[07:38] <ron__> Compiling static FFmpeg for Linux, but FFplay won't build... any ideas
[07:46] <ron__> Hello Compiling static FFmpeg for Linux, but FFplay won't build... any ideas
[07:47] <sacarasc> relaxed might be able to help when he's around...
[07:48] <ron__> I see relaxed on the list, but not lit up
[07:48] <sacarasc> He's the only person I can think of offhand that builds statically.
[07:50] <ron__> Does he build statically for linux? same as gusari.org
[08:27] <matador007> G'day
[09:07] <buu> If I'm running the command: ffmpeg -f concat -i out -c copy output.avi; why would it give me the error: [concat @ 0x9c1900] Impossible to open 'out' ?
[09:08] <buu> Also it segfaults =[
[10:30] <sacarasc> buu: What is "out"?
[10:55] <buu> sacarasc: A text file
[10:55] <buu> Containing "file 'foo'...
[12:16] <relaxed> buu: try: ffmpeg -i concat:1.ext\|2.ext\|3.ext ...
[12:23] <buu> relaxed: I thought that wouldn't work unless you could naturally concatenate the files?
[12:48] <relaxed> explain what you're doing.
[12:55] <seece> i can't get my ffserver audio stream to send anything, any ideas why? here's the configuration http://pastebin.com/raw.php?i=hijnewiP
[12:56] <seece> here's the ffmpeg source stream http://pastebin.com/raw.php?i=7Epx1DjG
[12:59] <seece> and ffplay output http://pastebin.com/raw.php?i=R3dzkc5g
[13:44] <Samus_Aran> any tips on losslessly cutting pieces from an .mts file (Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc, Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s)?
[13:44] <Samus_Aran> I'm getting debug messages like: first_dts 90000 not matching first dts 315000 in the queue
[13:44] <Samus_Aran> it just sits and eats 100% CPU and does nothing
[13:45] <Samus_Aran> # ffmpeg -sn -ss 00:02:03 -t 3 -i *01*.mts -acodec copy -vcodec copy output.mp4
[13:45] <Samus_Aran> example line.  I'm not really sure what's wrong.
[13:46] <Samus_Aran> I also tried using -acodec pcm_s16le, as I'm not sure if .mp4 can handle AC3 audio, but no change
[13:54] <l_r> could anyone help me to find the most efficien solution to my problem?
[13:54] <Samus_Aran> l_r: what's your problem?
[13:55] <l_r> i need to feed a server from a camera which is capable of mjpeg and h264, but h264 s not supported by v4l2 it seems
[13:57] <l_r>  want to send mjpeg without conversions to the server
[14:02] <Samus_Aran> l_r: V4L2 should support h.264, but I'm not experienced
[14:03] <l_r> but it lists the format as Unsupported
[14:03] <l_r> [video4linux2 @ 0x14089c0] C : Unsupported :                 H264 : {64-1920, 8}x{64-1080, 8}
[14:04] <l_r> oh no
[14:04] <l_r> the new version i ve just compiled supports it
[14:04] <l_r> thx
[14:04] <l_r> i ll try it
[14:04] <l_r> Samus_Aran, do you know how to setup an efficient solution with this?
[14:05] <l_r> something like "send h264 to the server WITHOUT conversion in the middle"
[14:05] <Samus_Aran> does your device do hardware encoding of h.264?
[14:06] <Samus_Aran> or are you converting a raw signal with ffmpeg or what?
[14:06] <Samus_Aran> I've only briefly used V4L and VLC streaming servers, so I'm not much help
[14:06] <l_r> Samus_Aran, yes,it does hw h264
[14:07] <Samus_Aran> VLC streaming server might be easy to use, if it can play the stream it can broadcast it
[14:07] <l_r> yes, i have successfully used vlc
[14:07] <l_r> but i am trying ffmpeg now
[14:07] <Samus_Aran> an example I found, not sure if it's helpful: v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=H264; vlc v4l2c/h264://
[14:07] <l_r> i want to setup  a solution with it
[14:07] <l_r> yes,vlc rocks
[14:13] <Samus_Aran> l_r: if VLC can play it, it can stream it.  is it not working?  http://www.videolan.org/doc/streaming-howto/en/
[14:13] <Samus_Aran> section 2 has GUI, section 3 command line
[14:28] <Samus_Aran> solved my problem.  cutting pieces of video worked fine after converting the container from .mts to .mp4
[14:28] <Samus_Aran> it also made the video files a lot smaller, 53MB savings on a 1GB file.  :p
[14:28] <Samus_Aran> so much overhead
[14:29] <Samus_Aran> it seems the .mts files can't seek properly, causing the buffer problems.
[14:29] <Samus_Aran> not sure if it's an ffmpeg bug or what, but it's annoying.
[14:30] <Samus_Aran> night.
[15:47] <lkiesow> Hi, I'm trying to downmix a stereo audio stream to a mono stream encoding it with libfdk_aac using a VBR (and doing some filtering that does not matter at this point)
[15:47] <lkiesow> I noticed that both of the following commands work without a problem:
[15:47] <lkiesow>   ffmpeg -y -i 1372360064.wav -t 15 -c:a libfdk_aac -vbr 3 test4.aac
[15:47] <lkiesow>   ffmpeg -y -i 1372360064.wav -t 15 -c:a libfdk_aac -ac  1 test4.aac
[15:47] <lkiesow> However, if I combine the -ac and -vbr options I get the following error:
[15:48] <lkiesow>   [libfdk_aac @ 0x1c4c380] Unable to encode frame: Encoding error   Audio encoding failed (avcodec_encode_audio2)
[15:48] <lkiesow> I'm using the latest stable (FFmpeg 2.1)
[15:48] <lkiesow> Any thoughts?
[15:48] <jonno11> Hi. I'm using ffmpeg to stream a file to rtmp server. Is there any way to loop over the input file? Or even better a playlist?
[15:48] <lkiesow> jonno11: If I remember correctly then there is a -loop parameter
[15:49] <jonno11> lkiesow: Hmm yeah I tried that... -loop 1 did nothing
[15:50] <jonno11> "ffmpeg -re -i adstream -loop 1 -c copy -f flv rtmp://localhost:1935/live/r2" - just ignored the -loop parameter
[15:52] <lkiesow> Hm, can't find the -loop option in the manpage but it says that at least -loop_input only works for images
[15:52] <lkiesow> Thats probably the problem
[15:52] <klaxa> -loop 1 will also loop once iirc
[15:52] <klaxa> -loop 0 should loop infinitely
[15:53] <klaxa> at least it did in mplayer2 :x
[15:53] <lkiesow> &and mplayer
[15:56] <therube_> lkiesow: did you build ffmpeg yourself?  if not, where did you get a build with libfdk_aac ?
[16:00] <lkiesow> therube_again: I build it mysqlf, xes
[16:00] <lkiesow> *yes
[16:02] <lkiesow> The problem with libfdk_aac is that you cannot redistribute it if you also link against x264 :(
[16:07] <lkiesow> therube_again: I could give you the source rpms though
[16:07] <lkiesow> They might be helpful if you use a RedHat based os
[16:08] <therube_again> i'm nowhere near the stage of being able to build, but thanks anyway (& i'm on windows)
[16:19] <lkiesow> no one any thoughts about the problem?
[16:39] <Anarhist> hi, is there a way to remove a still schene (when there is no change between frames)?
[16:39] <Fjorgynn> Hi, I am trying ffmpeg -list_devices true -f dshow -i dummy
[16:39] <Fjorgynn> but I get that it's depricated
[18:00] <Bombo> is there a ffmpeg build with hardcoded x264 presets?
[18:01] <Bombo> (i mean for win)
[18:08] <Bombo> is that possible anyways?
[18:11] <vl4kn0> Hi, is it possible to set FPS while decoding a video or do I just decode it and ignore it? Can I just read the frame and not decode it then? Or do I need to flush some sort of internal buffer when not decoding the retrieved frame?
[18:15] <Bombo> i tried -vpre superfast, but it says 'superfast not found' and i don't see the profile in the source tarball...
[18:17] <klaxa> superfast is not a default x264 preset
[18:17] <klaxa> try fast, faster or ultrafast instead
[18:23] <Bombo> klaxa: ultrafast is ultrabad
[18:24] <Bombo> faster is too slow
[18:38] <JEEB> you shouldn't use vpre for libx264's presets
[18:38] <JEEB> but -preset
[18:38] <JEEB> also, superfast *is* a libx264 preset
[18:38] <JEEB> http://mewiki.project357.com/wiki/X264_Settings#preset
[18:38] <lkiesow> Bombo: Have a look at the x264 documentation. There you can find what parameters the presets actually set. Then you can set them manually
[18:38] <lkiesow> x264 --fullhelp
[18:38] <JEEB> you have superfast and veryfast between ultrafast and faster :P
[18:39] <JEEB> Bombo, everything new enough that is linked with libx264 has the presets available via -preset
[18:39] <JEEB> including zeranoe's binaries
[18:40] <JEEB> lkiesow, that should only be the last resort, but as you can see there's *two* presets between the two he is trying :P
[18:40] <JEEB> and yes, proper libx264 presets are not in ffpreset files, they are internal to libx264
[18:40] <JEEB> and you use them via -preset, not -pre
[18:48] <cm13g09> OK.. so I've just built ffmpeg from source on Raspi and my desktop.....
[18:48] <cm13g09> and I'm now trying to stream from raspi (ffmpeg) to my desktop (ffserver)
[18:48] <cm13g09> av_interleaved_write_frame(): Connection reset by peer
[18:49] <cm13g09> is the error I'm getting
[18:49] <cm13g09> Any suggestions?
[19:06] <Samus_Aran> when doing -ss 00:00:57 -t 3, is it not supposed to do a 3 second clip starting at 57 seconds?  instead it is producing a 60 second clip starting at 57 seconds.
[19:12] <Bombo> JEEB: ah! ok thx... works with -preset superfast ;)
[19:16] <JEEB> :)
[19:16] <JEEB> basically the -pre setting is for separate ffpreset files
[19:16] <JEEB> and -preset is for possible internal presets
[19:19] <Samus_Aran> got it working putting the times after the input video
[19:50] <klaxa> <JEEB> also, superfast *is* a libx264 preset
[19:51] <klaxa> oh...
[19:55] <zWaR> enyone ever got rtmpt stream through proxy working on win?
[20:01] <Bombo> JEEB: i tried with -vpre superfast
[20:01] <Bombo> should rename it to -filepreset and -internalpreset -fpre -ipre or something like that
[20:02] <Bombo> maybe
[20:02] <Bombo> ;)
[20:05] <JEEB> Bombo, -preset was added for x264 originally and the setting name was basically just matched with the x264 cli one
[20:05] <JEEB> --preset with the x264 binary, and -preset with ffmpeg
[20:42] <matador007> Hi :)
[20:55] <phr3ak> hi
[20:56] <phr3ak> do you know any software that can do DRC dynamic range compression?
[21:01] <l_r> could anyone help me to find the most efficien solution to my problem?
[21:01] <l_r> i need to feed a server from a camera which is capable of mjpeg and h264. i have no luck
[21:02] <l_r> i don't what is wrong, but it seems ffmpeg always tries to transcode the video
[21:02] <l_r> from mjpeg or h264 to yuv420p and then sends it to the server feed
[21:27] <fyp> hello, i've been using this guide, like before,  but right now on this installation of lmde a problem arises in the final step (compiling and installing ffmpeg)
[21:27] <fyp> http://vjetnamnet.com/how-to-compile-ffmpeg-with-h-264-and-lame-in-ubuntu-debian/
[21:27] <fyp> it tells me to come here
[21:27] <fyp> and yes it is the latest git, the guide makes  me get it
[21:30] <fyp> http://pastebin.com/HUk4MKcP
[21:31] <fyp> even if I do what i'm being told about adding libopencore_amrnb is version3 and --enable-version3 is not specified. then configure does nothing
[21:38] <wmnnd> Hey there, I have a a dash file and I'm trying to copy its video content into an MP4 container. In order to do that, I use ffmpeg -i file.dash -an -vcodec copy output.mp4
[21:39] <wmnnd> However, I only get a file that is 284 bytes. This is the console output I get from ffmpeg: http://pastebin.com/217mZveX
[21:40] <wmnnd> If I use ffplay on the dash file, it works without any problems.
[21:41] <wmnnd> Do you maybe have an idea how I could resolve this issue?
[21:41] <fyp> be patient indeed, my issue has been floating for 15 minutes
[21:41] <fyp> :)
[21:42] <fyp> you seem to be doing something somewhat advanceed, i just have an issue like that : http://pastebin.com/217mZveX
[21:42] <fyp> if you can help out to pass the time while you get an answer
[21:42] <fyp> i've followed this guide before on other computers/linuxes whatever and it worked
[21:42] <JEEB> fyp, I think that configure output is pretty understandable
[21:43] <fyp> yeah
[21:43] <JEEB> opencore-amrnb needs GPLv3
[21:43] <fyp> i added --enable-version3
[21:43] <fyp> nothing happens
[21:43] <JEEB> and --enable-version3 is not specified
[21:43] <JEEB> oh
[21:43] <JEEB> dunno :P
[21:43] <fyp> first time I see configure just do nothing after pressing enter
[21:43] <fyp> yeah it's unusual :p
[21:44] <fyp> should I add it somewhere specific ?
[21:44] <JEEB> shouldn't matter unless you did something weird
[21:44] <fyp> most likely not, i followed that guide i linked to before
[21:45] <fyp> so it has everything compiled with it, lame, vpx, x264 etc.
[21:45] <JEEB> I don't really get it why people need guides for compiling ffmpeg, it's not /that/ hard
[21:45] <JEEB> and generally you need two to four external dependencies at max
[21:45] <JEEB> x264, fdk-aac, libvorbis and libvpx
[21:46] <JEEB> and two of those can be just fine with what you get from the repositories
[21:46] <JEEB> (vorbis and vpx)
[21:46] <fyp> it's just faster, and all those parameters they use after checkinstall, not things i'd know out of nowhere
[21:46] <JEEB> also there's an official guide on the trac if you really need one :P
[21:46] <fyp> when i compile simpler things i just go with checkinstall and no parameters like this
[21:46] <JEEB> but that sounds like a bug if it stays there doing nothing
[21:47] <JEEB> try current git HEAD and if it still does it, go report it with the standard output and config.log (as much of it as has been written) pasted
[21:47] <fyp> there I entered it again, i'm gonna see if it's going to sit there eternally
[21:48] <fyp> ah
[21:48] <fyp> it didnt
[21:48] <fyp> after 40 seconds i know the answer now
[21:48] <fyp> ERROR: libass not found
[21:48] <fyp> ok then
[21:48] <JEEB> also on an unrelated note: do you really need LAME and opencore-amr?
[21:48] <fyp> i really need LAME
[21:48] <JEEB> (or libass)
[21:49] <JEEB> ok, so you do mp3 /encoding/
[21:49] <JEEB> ?
[21:49] <fyp> yep
[21:49] <JEEB> ok
[21:49] <fyp> i rip a lot of freshly bought music
[21:49] <fyp> me so evil
[21:49] <JEEB> do you need theora encoding?
[21:49] <fyp> ;)
[21:49] <fyp> brb, gonna install libass and see what happens
[21:49] <JEEB> theora being the very old xiph video format based upon VP3
[21:50] <JEEB> (encoder is around MPEG-4 Part 2 quality nowadays, I think?)
[21:50] <JEEB> also are you sure you need librtmp?
[21:50] <JEEB> ffmpeg has an internal rtmp(e) implementation
[21:53] <fyp> i know of theora but x264 is where it's at, i've been disbelieving how small I can make video files, especially huge as an elephant HD wmv's into tiny files
[21:54] <JEEB> yes, x264 is the best encoder currently
[21:54] <fyp> i dont know/remember what rtmp is, but hey, that guide never failed me before, must be because i'm getting familiar with a real linux using mint debian edition
[21:54] <fyp> it configured fine now
[21:54] <JEEB> rtmp is an adobe streaming protocol and as I said, ffmpeg has its own support for it
[21:54] <JEEB> so you can leave it out
[21:54] <JEEB> if you enable librtmp that will disable the internal support, if I recall correctly
[21:55] <JEEB> also you can leave libtheora out if you know you're not going to encode theora
[21:55] <JEEB> vp3/theora support is internal decoding-wise
[21:55] <fyp> i'm not sure that's gonna be causing me problems, but i'll put that in my massive txt of ideas for another time
[21:55] <fyp> too late now, it's compiling
[21:55] <fyp> ;p
[21:55] <JEEB> generally not, the internal support tends to be better than librtmp in many cases
[21:56] <JEEB> I recommend people use it unless they specifically have something that doesn't work with the internal one and works with librtmp
[21:56] <JEEB> (and report that problem)
[21:56] <JEEB> the guy who made the support was working on it at the same time as I did my summer of code project last year
[21:57] <fyp> you had something going though, i did have to dowload libopencore_amrnb
[21:57] <fyp> it it can remove steps in the future I'll take it
[21:57] <JEEB> that's only for a certain specific type of amr and I think that might mostly be useful as an encoder (?)
[21:58] <JEEB> so generally you can leave it out
[21:58] <JEEB> ffmpeg does have an internal amr decoder
[21:58] <JEEB> AMR is a format generally used for very very low bit rate voice encoding
[21:58] <fyp> well, i do encode stuff a lot, i'm a major content deliverer on some private torrent thingy
[21:59] <JEEB> I'm pretty sure you won't be encoding AMR
[21:59] <fyp> yeah me too
[21:59] <fyp> lol
[21:59] <JEEB> so remove both of the amr ones
[21:59] <JEEB> remove librtmp
[21:59] <JEEB> remove libtheora
[21:59] <fyp> well next time sir, right it has been compiled
[22:00] <fyp> i've taken note
[22:00] <JEEB> do you encode or plan to encode VP8/9?
[22:00] <fyp> yeah, that can happen  sometimes
[22:00] <fyp> in the future
[22:00] <fyp> mostly
[22:00] <fyp> when flash goes the way of the dodo
[22:00] <JEEB> everything supports H.264 pretty much
[22:00] <JEEB> including firefox
[22:00] <JEEB> (´
[22:01] <fyp> html5 ?
[22:01] <fyp> ;)
[22:01] <JEEB> yes
[22:01] <fyp> oh well, i know google have a thing for vpx
[22:01] <JEEB> of course they have, it's their thing
[22:01] <JEEB> too bad VP8 came very late to the party :P
[22:02] <JEEB> VP9 is at least less late
[22:02] <JEEB> but have fun using it right now
[22:02] <JEEB> VP8 encoding was slow, and VP9 is even more so
[22:05] <fyp> its nice to know some of those added parameters are absolutely not necessary though, like theora
[22:06] <fyp> but as my speciality irl is chemistry and not computer science I'll usually do what makes everything work, even if burdens hehe
[22:06] <JEEB> ffmpeg has support for pretty much everything and the kitchen sink, and since you're not trying to please everyone on the planet like package managers in linux distributions, you don't have to build an ffmpeg with a lot of stuff linked in
[22:06] <fyp> i know vpx will be needed when youtube is only html5 most likely
[22:06] <JEEB> no
[22:06] <JEEB> youtube always encodes your stuff
[22:07] <JEEB> so it doesn't matter what you give to it
[22:07] <fyp> doesn't vpx make it "online friendly"
[22:07] <JEEB> and libvpx is primarily an encoder
[22:07] <JEEB> decoding is internal
[22:07] <fyp> like in Handbrake with mp4's
[22:07] <JEEB> that has nothing to do with what libvpx gives you when you build ffmpeg with it
[22:07] <fyp> k
[22:07] <fyp> well
[22:07] <JEEB> youtube gives you both H.264 and VP8/9
[22:07] <JEEB> and all of that is decoded INTERNALLY
[22:08] <JEEB> and as for what you give to youtube, that will always get re-encoded
[22:08] <fyp> take a look around on any search engine, the top rated guides all say to have it support vpx
[22:08] <fyp> how could I know? :)
[22:08] <JEEB> sigh...
[22:08] <JEEB> it's around these things that you should think :)
[22:08] <JEEB> "What will I be doing with this thing"
[22:09] <JEEB> I mean, ffmpeg has pretty much all the decoders internal
[22:09] <JEEB> so input is not a problem
[22:09] <JEEB> what is left is the encoding side
[22:09] <JEEB> so you have to think what you will be encoding in
[22:09] <JEEB> that generally tends to be a simple thing
[22:09] <fyp> all of that i know, but sometimes some of these codecs or whatever are obscure i dont know them so imagine it is something else entirely, like I said, my crazy language is organic chemistry
[22:09] <JEEB> (do note that ffmpeg has a lot of internal, default-enabled encoders)
[22:10] <fyp> i took your advice for the future though
[22:10] <fyp> :)
[22:10] <JEEB> most people are just fine with libx264 and libfdk (H.264 and AAC)
[22:10] <JEEB> also rebuilding ffmpeg is not that hard nor does it take long
[22:10] <JEEB> if you ever end up needing something extra
[22:10] <fyp> eh, i'm done with it now
[22:10] <fyp> don't order me around to rebuild it bro ;p
[22:10] <JEEB> let's just say that you generally won't need anything extra :P
[22:11] <JEEB> no, I'm just saying for the future
[22:11] <fyp> ah alright
[22:11] <JEEB> blindly following guides is not good
[22:11] <fyp> well that's been useful, thanks
[22:11] <JEEB> no problem
[23:54] <Chat2511> Hello all
[00:00] --- Mon Nov 11 2013


More information about the Ffmpeg-devel-irc mailing list