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

burek burek021 at gmail.com
Tue Mar 19 02:05:01 CET 2013


[00:25] <luc4> Hi! I noticed that AVCODEC_MAX_AUDIO_FRAME_SIZE was removed. Why?
[01:59] <fatpony> what does that warning mean? data is not aligned! This can lead to a speedloss
[05:06] <dagerik> i want to extract some parts from a video file. when issuing ffmpeg -ss 01:30:30.00 -t 20 -i file.avi test.avi  the audio is out of sync
[05:08] <dagerik> fflogger: here it is; http://bpaste.net/show/1860AoWCrkQPSbJevvwx/
[05:10] <ubitux> fflogger is a bot
[05:10] <dagerik> ok
[05:10] <ubitux> dagerik: first, retry with -c copy
[05:10] <dagerik> where do i put it. i read that order matters
[05:10] <ubitux> and see if it helps
[05:11] <ubitux> as output option
[05:11] <ubitux> so before test.avi
[05:11] <dagerik> that fixed it
[05:11] <ubitux> also, -t is an output option, you should move it after the -i
[05:11] <dagerik> it is now in sync
[05:12] <ubitux> great, and it should have been faster
[05:12] <ubitux> and without quality loss
[05:13] <ubitux> the seek might not be that exact though now
[05:13] <ubitux> (since it likely pick a keyframe)
[05:39] <AlbinoGeek> This is not specifically an ffmpeg question, however; ffmpeg could probably be used to solve it, hence me asking here.
[05:39] <AlbinoGeek> I don't quite know where to ask this, so feel free to send me to another channel if it better fits the question; how would I go about batch transcoding a drive (36TB) of video files, down to 720p Stereo at maximum (ie: leave file if it's worse or already the same, else transcode down.)
[05:40] <AlbinoGeek> Is there even any efficient way of doing this?
[05:53] <klaxa> you can use ffprobe to check for video dimensions
[05:53] <klaxa> and re-encode if it's higher than 1280x720
[05:54] <klaxa> some shell scripting should be sufficient
[05:59] <AlbinoGeek> klaxa: Yeah, the output of ffprobe confuses me a little, since streams seem to come in a different order dependong in which file I run it on.
[05:59] <AlbinoGeek> using: ffprobe -v quiet -print_format json -show_format -show_streams filename
[06:00] <AlbinoGeek> I would see multiple streams with different width/height definitions, some videos files didn't see any streams with a height/width set.
[06:01] <klaxa> so some are audio only?
[06:01] <AlbinoGeek> klaxa: Nope :(  They're all videos with audio.
[06:01] <klaxa> and if you get multiple streams, why not just select the largest one?
[06:03] <AlbinoGeek> Shame it's a windows box, shell scripting will be interesting :P
[06:03] <AlbinoGeek> Oh well, PHP it is.
[06:03] <klaxa> oh god, lol
[10:16] <t4nk565> how to generate yuyv raw video stream by ffserver?
[10:16] <t4nk565> in ffserver.conf, how to config the <Stream> </Stream>
[10:16] <t4nk565> is there any example for Videocodec yuyv
[10:17] <t4nk565> in ffserver.conf, Stream section:
[10:17] <t4nk565> <Stream test.yuyv> Feed feed1.ffm Format ? VideoSize 640x480 VideoFrameRate 30 VideoCodec yuv4 NoAudio </Stream>
[10:18] <t4nk565> Does anyone have idea?
[10:44] <zap0> http://xkcd.com/1187/
[11:46] <zxc> I converted a video of 24.14 fps, 24.83 tbr to PNG files. What -r should I use when putting it back together?
[11:47] <Mavrik> hmm, 24.14 fps is a strange number :)
[11:48] <Mavrik> zxc, you probably had 23.976 input video
[11:48] <Mavrik> use that
[11:49] <zxc> so I shouldn't trust ffprobe?
[11:50] <rudivs> I am trying to replace the sound from an ogv video with an mp3 file, using this command: avconv -i INPUT_VIDEO.ogv -i INPUT_SOUND.mp3 -c:v copy -c:a copy -map 0:1 -map 1:0 OUTPUT_VIDEO.ogv and I get this error: http://pastebin.com/LUAkRv5b ([ogg @ 0x9a110e0] Unsupported codec id in stream 1). Any ideas to get it working?
[12:06] <durandal_1707> rudivs: there is no avconv in FFmpeg
[12:12] <rudivs> durandal_1707, apologies, I thought the two were related. I have also tried ffmpeg with the following command:
[12:12] <rudivs> ffmpeg -i INPUT_VIDEO.ogv -i INPUT_SOUND.mp3 -map 0:1 -map 1:0 -vcodec copy -acodec copy OUTPUT_VIDEO.ogv
[12:13] <durandal_1707> your are still using program from wrong project
[12:13] <durandal_1707> you will see from output of ffmpeg that it is not from FFmpeg but from fork
[12:15] <durandal_1707> which is already obvious from pastegin you already posted
[12:16] <rudivs> you are correct durandal_1707: http://pastebin.com/sRjPUq9h
[12:17] <durandal_1707> also i do not think mp3 is supported in ogg
[12:17] <durandal_1707> so -c copy cant work
[12:18] <rudivs> thanks durandal_1707, I'll try to convert the mp3 to ogg first, and try again
[12:52] <Celsyum> Hi, im stuck with ffmep for two weeks and I need some help. Im using AIR 2.0 to send rawdata to ffmpeg and everything is working nice on Windows , but on Linux video fails to render. In 6 seconds of streaming ffmpeg just renders 8-10 frames on Linux, thougth I set 30 fps and on Windows rendered file is perfect. Here is Command: http://pastebin.com/UQirYCxF
[12:52] <Celsyum> Windows output http://pastebin.com/s0zJmcAX . Linux output http://pastebin.com/qU0y69wX
[12:54] <kaffeebohne> Hi, i have got a problem with ffmpeg on windows when i try to encode an avs-file: http://paste42.de/5129/&linenr
[13:13] <kaffeebohne> Ok, all fine with the 32-bit build
[15:48] <kaffeebohne> Ok, now i have got an other problem: http://paste42.de/5130/&linenr (The error is on line 42). I have no clue, it is awlays the same frame... :/
[15:49] <JEEB> could be a lot of things from your avs script to the newly edited avs input module in ffmpeg
[15:50] <JEEB> the guy who added avxsynth support seems to have led to problems on the avs support side with certain plugins :V
[15:52] <kaffeebohne> I would say it has to be the module, the script is fine, already encoded it with megui, but because the oneclick is not working and i have to merge i want to use ffmpeg. ^^
[15:54] <Zeranoe> Can FFmpeg be used to change the gamma, contrast, and brightness?
[15:55] <kaffeebohne> Zeranoe: I use avisynth for that.
[15:55] <kaffeebohne> But i am kind of a noob with ffmpeg. :D
[15:56] <ubitux> Zeranoe: yes
[15:56] <ubitux> mp=eq2 for now ;)
[15:56] <ubitux> or frei0r plugin maybe
[15:56] <ubitux> but yeah, not ideal; it's on the todo list
[16:03] <Zeranoe> ubitux: Thanks a lot, that will do
[16:19] <grepper> I was trying to come up with a fast, and more frame accurate way of getting a video length then avconv -i FILE.  "avconv  -vcodec copy -f null -y /dev/null  -i FILE" seems to work - any reason this is not a very good solution ?
[16:21] <ubitux> grepper: you can use ffprobe -count_frames
[16:21] <ubitux> note that avconv is part of another project
[16:23] <grepper> fflogger: oops, sorry, I am actually testing both ffmpeg and avconv and am in both channels
[16:24] <ubitux> btw, the command you're trying should be better with "ffmpeg -i file -c copy -f null -"
[16:24] <grepper> ubitux: is -count_frames as fast as the command I was using ?
[16:25] <ubitux> since it decodes i guess no; but you have -count_packets otherwise
[16:25] <ubitux> note that it doesn't give you a duration
[16:25] <ubitux> maybe that's not what you want
[16:25] <grepper> well, I don't mind massaging the output with bc or whatever
[16:27] <grepper> hm, -count_packets gives a result the same as without that switch it seems, I see Duration there
[16:29] <grepper> time ffprobe -count_packets /home/robert/svn/tovid/samples/monkey.mpg 2>&1 |grep Duration
[16:29] <grepper>   Duration: 00:03:48.70, start: 0.500000, bitrate: 1656 kb/s
[16:32] <ubitux> you need to get the packet count
[16:38] <grepper> sorry, I don't understand
[16:40] <ubitux> ffprobe -i file -show_streams -count_packets
[16:40] <ubitux> and look for nb_read_packets
[16:46] <grepper> ah, okay, that works
[16:47] <grepper> how to limit it to just video ?  My ffprobe doesn't seem to have -select_streams
[16:48] <ubitux> then upgrade :p
[16:48] <ubitux> that's the purpose of that option i guess
[16:48] <grepper> using ffmpeg-2013-02-2 from git
[16:49] <grepper> er, ffmpeg-2013-02-26
[16:50] <ubitux> should be in
[16:50] <ubitux> it was added last year
[16:52] <ubitux> grepper: are you trying to workaround a broken duration?
[16:52] <ubitux> increasing probesize might help
[16:52] <ubitux> counting frame will not work with at least vfr
[16:53] <grepper> ah
[16:53] <grepper> okay, I'll play around with it, thanks for your help so far
[17:06] <grepper> maybe I'll give up on accuracy across many formats/codecs and just use mplayer -identify and be done
[18:17] <burek> "Hello, how I can turn on hwaccel decoding with ffplay? ffmpeg is compiled with vaapi, but I can not find any switch."
[18:17] <burek> does anyone know how?
[18:18] <JEEB> hwaccels need code to be implemented on the using side as well, guess if any of the ff* tools have that :P
[18:18] <JEEB> or well, the idea of hwaccels is to just make it simpler to use those things, but since they often need (usually platform-specific) stuff for it, that is left to be handled by the using app
[18:19] <burek> so, shortly, it doesn't support it? :)
[18:20] <JEEB> ye
[18:21] <burek> ok :) thanks :)
[18:44] <dmonjo> hello
[18:44] <dmonjo> how easy is it to convert h264 to vp8?
[18:56] <mark4o> dmonjo: https://ffmpeg.org/trac/ffmpeg/wiki/vpxEncodingGuide
[19:25] <dmonjo> mark4o: thats from mp4 to vp8 :/
[19:26] <dmonjo> can we use other containers?
[19:26] <mark4o> dmonjo: h.264 is usually in an mp4 container
[19:26] <mark4o> sure you can use another container
[20:07] <imac_> hello, is there anybody can help me about ffmpeg?
[20:07] <imac_> and ffserver
[20:09] <`md> lol iive :D
[20:16] <Demon_Fox> How would I rip subtitles?
[20:17] <Demon_Fox> dvdsub
[20:17] <ubitux> what does that mean?
[20:17] <Demon_Fox> ?
[20:18] <ubitux> what do you want to do?
[20:18] <Demon_Fox> Take dvd subtitles and turn them into srt subtitles
[20:19] <ubitux> you need an ocr tool
[20:19] <ubitux> ffmpeg can't do that
[20:19] <Demon_Fox> oh, thanks
[20:20] <ubitux> at best you can remux or re-encode them into another container
[20:20] <Demon_Fox> mkvmerge it is
[20:23] <ubitux> ?
[20:23] <ubitux> ffmpeg can remux & re-encode
[20:23] <ubitux> it just doesn't do ocr
[20:25] <Demon_Fox> for the muxing
[20:25] <Demon_Fox> I have been using ffmpeg to convert everything into separate files
[20:42] <Demon_Fox> ubitux, How about copying the subtitles off without changing them?
[20:42] <ubitux> -c:s copy
[20:42] <ubitux> that's what i refered as remuxing
[20:44] <Demon_Fox> It won't do it
[20:44] <Demon_Fox> If
[20:44] <Demon_Fox> I use the extension .sub
[20:44] <Demon_Fox> but will if I use .srt
[20:44] <ubitux> dvdsub are bitmap as i said
[20:44] <ubitux> you can't get text out of it
[20:44] <ubitux> and ffmpeg doesn't have a VobSub muxer yet
[20:44] <ubitux> only demuxer
[20:45] <Demon_Fox> I know
[20:45] <ubitux> so you can't output a .idx/.sub yet
[20:45] <Demon_Fox> I am thinking it just does not like the container
[20:45] <ubitux> what is your destination container?
[20:45] <Demon_Fox> .sub
[20:46] <Demon_Fox> Though it will take .srt and still output the data
[20:46] <ubitux> i don't understand what you are doing
[20:46] <Demon_Fox> It is just undetectable to sub2srt
[20:46] <Demon_Fox> A paste bin I shall make
[20:47] <Demon_Fox> http://dpaste.com/1026996/
[20:50] <ubitux> a .sub without a .idx will be unusable anyway.
[20:51] <ubitux> so there is no point in trying this
[20:51] <tuxy> when trying to compile the latest ffmpeg, should I be using the latest latest audio and video libraries?
[20:51] <ubitux> you might achieve this with -f mpegps as output option though, but that's not sure
[20:51] <ubitux> tuxy: what do you mean?
[20:52] <Demon_Fox> ubitux, Sorry, I don't know what you mean by .sub without a idx
[20:52] <tuxy> like h.x264 libraries and lame libraries
[20:52] <tuxy> do the independent libraries have to be updated in order to compile and use the latest ffmpeg?
[20:53] <xlinkz0> does the ffmpeg executable use more than one thread?
[20:53] <ubitux> Demon_Fox: a .sub can be used by a player if it's generated along with a .idx; that's called VobSub, and ffmpeg doesn't have a vobsub muxer yet
[20:54] <ubitux> xlinkz0: yes
[20:54] <ubitux> tuxy: no, just a "recent enough" for most of them
[20:54] <xlinkz0> ubitux:  .. by default? or do i have to give it some option?
[20:54] <ubitux> should be by default
[20:55] <Demon_Fox> ubitux, sorry for the burden, but could I have an example ffmpeg line?
[20:55] <Demon_Fox> you said something about -f mpegps
[20:55] <ubitux> Demon_Fox: you CAN NOT do it with ffmpeg currently
[20:55] <ubitux> ah, well just add -f mpegps before the .sub
[20:55] <Demon_Fox> oh, sorry
[20:55] <ubitux> but that won't do what you want anyway
[20:56] <Demon_Fox> What will it do?
[20:56] <xlinkz0> ubitux:  what does it use threads for?
[20:57] <ubitux> xlinkz0: some decoders and encoders sometimes support threading
[20:57] <ubitux> it depends on the codec
[20:57] <ubitux> Demon_Fox: use an ocr tool
[20:58] <xlinkz0> can i disable it?
[20:58] <ubitux> yes, -threads 1 as input and output option
[20:58] <xlinkz0> thanks
[20:58] <Demon_Fox> ubitux, Sorry to keep asking, but do you know of any ocr tools that will do what I want/
[20:59] <ubitux> no but "ocr dvdsub" on google might give you some hint
[20:59] <ubitux> i think avidemux has a module but that might not be the most efficient
[20:59] <ubitux> i remember seeing one on github one day,
[21:09] <freshbone123> I'm looking for someone familiar with ffmpeg in europe for work? where do I find these people?
[21:11] <tacajushi> do I need to create a new bug at ffmpeg bugslist https://bugs.gentoo.org/show_bug.cgi?id=461028 ?
[21:13] <ubitux> tacajushi: if you are able to reproduce the bug with ffmpeg yes
[21:14] <tacajushi> ubitux: but the gentoo dev also can reproduce with sample which i enclose to this bug
[21:14] <ubitux> are you sure the problem is from ffmpeg?
[21:15] <tacajushi> ubitux: it's a suggestion from gentoo dev and I was able to reproduce on mplayer and mplayer2
[21:15] <tacajushi> ubitux: also take a look at bt
[21:15] <ubitux> how is that related to ffmpeg?
[21:15] <ubitux> can you reproduce with ffplay?
[21:16] <tuxy> ubitux, when compiling making ffmpeg, there are some arguments in functions that are "deprecated"
[21:16] <tuxy> are those warnings significant?
[21:16] <ubitux> don't worry about the warnings
[21:16] <tuxy> ok
[21:16] <tacajushi> ubitux: well I'm not able
[21:17] <ubitux> tacajushi: you should report it to mplayer or mplayer2 maybe then
[21:17] <ubitux> of course if you can reproduce with ffmpeg or ffplay, opening a bug is the correct thing
[21:19] <tacajushi> ubitux: thanks I wasnt aware of ffplay
[21:21] <ubitux> i can't reproduce the crash here
[21:21] <ubitux> but ffmpeg 0.10...
[21:21] <ubitux> we are in 1.2
[21:21] <ubitux> it's kinda old :p
[21:23] <tacajushi> I want to ask one more question, why some people switching ffmpeg over libav?
[21:25] <tacajushi> libav over ffmpeg*
[21:25] <onto> Hi! Are there any examples of use of libavdevice to capture + save video/audio?
[21:26] <onto> If I understand correctly, I use the avdevice_register_all to register the devices and use avcodec api to capture streams --- but how exactly?
[21:27] <ubitux> tacajushi: do they?
[21:28] <ubitux> tacajushi: if some people @gentoo or @debian make you think that that's because some libav developers are also gentoo and debian contributors
[21:48] <dmonjo> hello guys
[21:48] <dmonjo> any good experience with raspeberry pi ?
[21:49] <Mavrik> nope
[21:50] <dmonjo> ffmpeg supports OMX?
[21:50] <Mavrik> nop
[21:50] <dmonjo> are you sure?
[21:50] <Mavrik> yes.
[21:50] <dmonjo> hehe ok
[21:50] <dmonjo> thanks
[21:50] <dmonjo> having hard time with gstreamer
[22:09] <dmonjo> Mavrik: http://jeremyblythe.blogspot.com/2012/05/raspberry-pi-webcam.html
[22:09] <dmonjo> they are using ffmpeg
[22:26] <Mavrik> dmonjo, at two frames per second in MJPEG format.
[22:29] <dmonjo> Mavrik: so no way to get like real video? without lags? even without ffmpeg?
[22:29] <Mavrik> am
[22:29] <Mavrik> you have a very slow 600MHz processor with very little bandwidth there
[22:29] <Mavrik> it's just a bad hardware for image capture
[22:30] <dmonjo> http://www.youtube.com/watch?v=8N7kgtL0-Ts
[22:30] <dmonjo> check that!
[22:30] <dmonjo> is it for real!?
[22:36] <Dayofswords> anyone know what this error means http://pastebin.com/BkgfS0t4
[22:46] <tuxy> ubitux, is there a good guide to encoding in linux?
[22:46] <tuxy> encoding .m2ts to mkv
[22:47] <tuxy> saste, ffmpeg itself can be used as an encoder? what about using mencoder?
[22:48] <saste> tuxy, sure you can use mencoder, but this channel is about ffmpeg
[22:48] <tuxy> gotcha
[22:50] <ubitux> mencoder is not maintained anymore btw
[22:50] <ubitux> since years now
[22:53] <tuxy> hmm so better to use ffmpeg
[00:00] --- Tue Mar 19 2013


More information about the Ffmpeg-devel-irc mailing list