[Ffmpeg-devel-irc] ffmpeg.log.20120313
burek
burek021 at gmail.com
Wed Mar 14 02:05:01 CET 2012
[00:00] <pasteeater> Freakshow: you mean directly? or dump from hdv tape to file and then to ffmpeg?
[00:00] <Freakshow> directly
[00:00] <pasteeater> you can probably pipe from dvgrab into ffmpeg.
[00:00] <Freakshow> yeah, dvgrab doesn't have a port for osx
[00:00] <Freakshow> that I can find
[00:00] <Freakshow> :(
[00:01] <Freakshow> was totally thinking that at first, and then found that it was linux only
[00:01] <pasteeater> I assumed you were using Linux. Not sure what to suggest for OS X.
[00:01] <Freakshow> :P
[00:02] <Freakshow> to be fair, I should have said on os x
[00:06] <pasteeater> Freakshow: i forgot about "--enable-libdc1394". maybe that will allow you to grab from the device.
[00:07] <pasteeater> maybe that won't work for you. I don't know anything about OS X.
[00:19] <_goTAN> hope I dont get hanged if I am asking a not ffmpeg related question here
[00:20] <_goTAN> I try to transcode evert .mkv in one folder with a shell script which should run as a cron job. http://pastebin.com/6hHb6nT7
[00:21] <_goTAN> its not working as expected...somehow he doesnt want to stop, even I do rm-r input.mkv after transcoding
[00:22] <cbsrobot> _goTAN: put quotes around $datei
[00:22] <cbsrobot> "$datei"
[00:23] <_goTAN> oh really
[00:23] <_goTAN> ?
[00:23] <_goTAN> that should fix it?
[00:24] <_goTAN> also rm -r "$datei" ?
[00:24] <cbsrobot> yes
[00:24] <cbsrobot> make sure $datei is never / :-)
[00:24] <_goTAN> is that possible?
[00:24] <_goTAN> I want to run this script every 5 min
[00:25] <_goTAN> so in most cases there are no mkv files
[00:25] <_goTAN> but it should never enter the loop if find doesnt return any result
[00:29] <_goTAN> oh
[02:26] <_klk_> hi all, i have an mpeg2 ts file capture from broadcast
[02:26] <_klk_> here is the stream information
[02:26] <_klk_> http://pastebin.com/EL2Yk4kS
[02:26] <_klk_> i was wondering, what information is in the data stream?
[02:26] <_klk_> Program 81
[02:26] <_klk_> Stream #0.7[0x840]: Data: BDC0 / 0x30434442
[02:29] <sebr> Hey folks. I'm trying to create a timelapse, and using the following command: ffmpeg -i img%04d.jpg -r 25 -vcodec libx264 -vpre hq -b 5000k timelapse.mp4. The videoo that gets created is black and white however. Individual images are fine. Any clue why?
[02:34] <unixabg> Greetings, I am wanting to add date stamp of yyyy:mm:dd:hh:ss to video as I download it. Is there an example I can examine to see how to do this?
[02:45] <echelon> for some reason ffmpeg can't locate any encoders
[02:45] <echelon> Unknown decoder 'libxvid'
[02:46] <echelon> hmm.. nevermind i had the -i argument passed to the front
[02:46] <echelon> err to the end
[02:48] <echelon> for some reason the audio quality degrades when using sameq
[02:49] <echelon> does sameq only apply only to the video stream?
[02:51] <echelon> i just get this line when i try to set the audio codec settings
[02:51] <echelon> frame= 0 fps= 0 q=0.0 size= 10kB time=10000000000.00 bitrate= 0.0kbit
[02:51] <echelon> over and over
[02:52] <echelon> the output file is only 12K
[02:52] <echelon> hardly anything in it
[02:53] <echelon> i'll just use mencoder -_-
[05:23] <_klk_> hi all, i'm noticing a memory leak when using libav* libraries to read from a mpeg 2 transport stream
[05:23] <_klk_> valgrind output is here: http://pastebin.com/bDTCJcHT
[05:23] <_klk_> looks like memory is being lost in av_read_frame ?
[05:27] <PurplePeter> Hmm. I've done what seems like the obvious thing with ffserver, and it's failing no matter what I do.
[05:39] <darkstarbyte> What option would I use to copy the subtitles from a video, without anything else?
[05:43] <relaxed> darkstarbyte: ffmpeg -i input -map 0:s:0 -c copy -f ass output.txt
[05:43] <darkstarbyte> ass?
[05:43] <relaxed> assuming they're sub station alpha
[05:44] <relaxed> or -f srt
[05:45] <darkstarbyte> thanks
[09:22] <f0rm4t> Morning! Looking for a heads-up on ffmpeg and F4V. I've read "It can", "It Can't", "Just change the file extenstion of a mp4", "remux it" etc etc etc... Can ffmpeg output a F4V containing during encode?
[09:23] <f0rm4t> "container" not "containing" Ha!
[09:31] <bove> is there an easy way to change the playback rate (fps) of a quicktime x264 file?
[10:18] <f0rm4t> okay got it... searches yield fuck all on it. -vcodec x264 -f flv output.f4v
[10:18] <f0rm4t> ACTIVE this chat, isn't it. LOL!
[10:44] <Amnesia> question, I want to merge 2 files to one, I tried specifying both files with -i cd1.avi -i cd2.avi
[11:00] <Amnesia> it stops when the first file is done
[11:23] <kelnoky_> what's the easiest way to take file x, cut out everything but minutes 10 to 12 and save those two minutes in a seperate file?
[11:36] <kriegerod> kelnoky_: ffmpeg -i file -ss 10:00 -t 2:00 out.file
[11:36] <kriegerod> sth like this
[11:37] <kelnoky_> thank
[11:37] <kelnoky_> *thank you
[11:37] <kelnoky_> basically found it myself the same second you answered :D
[11:40] <kriegerod> Question: after several hours of decoding h264 (packed into RTMP/FLV) i get lots of decoding warnings: http://pastebin.com/aLHN5mGa . Decode operation does not give error retcode. The resulting screen is grey . Can i (and how should i) check the counter of errors? I'd like to reopen the stream in such case.
[14:07] <unixabg> Greetings, I am wanting to add date stamp of yyyy:mm:dd:hh:ss to video as I download it. Is there an example I can examine to see how to do this?
[14:42] <Guest71079> I'm kinda a noob at this ... I'm trying to compile ffmpeg on Ubuntu 11.10 and I get an error during 'make' that states 'can not be used when making a shared object; recompile with -fPIC'
[14:42] <Guest71079> not sure what this is asking since you can use -fPIC in the ./configure line
[14:42] <Guest71079> can anyone help me out here?
[14:49] <sacarasc> Are you following the Ubuntu compilation guide from the topic?
[14:49] <cbreak-work> CFLAGS=-fPIC doesn't help?
[14:49] <Guest71079> would that be added to the ./configure line?
[14:50] <Guest71079> i dont have that on the line yet
[14:50] <cbreak-work> I would first check sacarasc' hint
[14:50] <cbreak-work> if that doesn't help, setenv the CFLAGS
[14:51] <Guest71079> oops .. didnt see his .. sarcasasc .. i followed it but ... ffmpeg now has all kinds of compile errors
[14:52] <Guest71079> so it no longer works
[14:53] <Guest71079> im trying to eliminate all i can so i can get it to compile .. had to add --disable-indev=lavfi and outdev=sdl just to get it to comple
[14:56] <Guest71079> ok CFLAGS=-fPIC says unknown option :(
[14:57] <Guest71079> and like i say im kinda new to compiling so im not sure how to setenv the CFLAGS properly :(
[14:57] <sacarasc> Guest71079: ./configure <stuff here> && CFLAGS=-fPIC make
[14:58] <luc4> Hi! Anyone having troubles with wma on ARM?
[14:58] <Guest71079> ok ill give that a shot
[14:59] <Guest71079> ok .. takes a while before it fatally crashes .. lets see if it makes it past it this time :D
[15:02] <cbreak-work> Guest71079: CFLAGS is an env var
[15:02] <Guest71079> i believe it made it past where it failed last time :D thanks for the help .. its looking good for a full compile ;D
[15:02] <cbreak-work> you would setenv it
[15:03] <Guest71079> ok
[15:03] <Guest71079> sorry .. lol bit slow ... linux isnt my first language :D
[15:04] <Guest71079> sacarasc's command worked for me tho so i didnt have to setenv
[15:04] <Nagy> does DXVA work with ffmpeg out of the box?
[15:05] <ubitux> did you check http://ubuntuforums.org/showthread.php?t=786095 out?
[15:05] <ubitux> afaik it is not required to add yourself the -fPIC, it should be autodetected
[15:05] <ubitux> if not, i'm afraid there is a bug
[15:05] <Nagy> previously I thought that ffmpeg only returned frames that could be sent to a DXVA decoder in your own code, but looking at dxva2.c it looks to me like ffmpeg does everything needed
[15:07] <Guest71079> ubitux: were you talking to me about -fPIC ?
[15:07] <ubitux> yes
[15:08] <Guest71079> here is what my .config line looked like ... it woudnt compile ...
[15:08] <Guest71079> ./configure --enable-gpl --enable-postproc --enable-pthreads --enable-swscale --enable-x11grab --enable-libfaac --enable-avfilter --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-vdpau --enable-libdc1394 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-nonfree --enable-vers
[15:09] <Guest71079> i had to add um ...
[15:10] <Guest71079> --disable-indev=lavfi --disable-outdev-sdl --enable-shared
[15:11] <Guest71079> then it crashed saying an not be used when making a shared object; recompile with -fPIC'
[15:11] <Guest71079> not sure wht it was building at the time i got that error tho
[15:13] <Guest71079> with the command sarc gave me ... it crashed again :(
[15:14] <Guest71079> but did go much farther but the error is the same as i saw before
[15:15] <Guest71079> seems this has something to do with x264
[15:15] <Guest71079> man i wish i knew this stuff better :D
[17:13] <chiken> hello, can someone help me with convertong from 60 fps to 30fps ?
[17:14] <chiken> pls :-)?
[17:14] <sacarasc> -r
[17:14] <chiken> ffmpeg -i input_file.mp4 -r 30 -y output_file.mp4 wont work :(
[17:15] <chiken> i try that
[17:15] <chiken> with -c copy or -codec copy, same story, wont work
[17:15] <spaam> of it wont work with copy..
[17:15] <spaam> ofc
[17:15] <spaam> you need to rencode it
[17:16] <chiken> spaam: ok, how :-)? i'm newbie
[17:16] <spaam> it depends what you want
[17:16] <chiken> best quality ;-)
[17:17] <chiken> the footage is from gopro hero 2, recorded on 720p at 60fps
[17:17] <spaam> -c:v libx254 -preset slow -crf 21
[17:17] <spaam> but with 264 and not 256
[17:17] <spaam> erhm
[17:17] <spaam> 254
[17:17] <chiken> :-)
[17:18] <chiken> Unknown encoder 'libx254'
[17:18] <chiken> ffmpeg -i GOPR0057.MP4 -r 30 -c:v libx254 -preset slow -crf 21 Go57.mp4
[17:19] <spaam> i said libx264 ..
[17:19] <JEEB> re-read his line
[17:19] <chiken> oh :/
[17:19] <spaam> it was a typo.
[17:19] <chiken> sory :(
[17:19] <chiken> Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
[17:20] <JEEB> you might want to -c:a copy
[17:20] <JEEB> (set the audio codec to 'copy')
[17:20] <chiken> YEAH :D
[17:20] <chiken> thx kind sir :-)
[17:20] <chiken> but why does -c:v copy, wont work ?
[17:21] <spaam> you need to rencode the video if you going to change the framerate
[17:21] <JEEB> well, if you just wanted to change the speed of the video instead of a proper frame rate conversion then it'd work
[17:21] <JEEB> but in this case you want to lower the frame rate AS WELL AS keep the length of the clip
[17:21] <JEEB> this means removing frames
[17:21] <chiken> ok :-), now i do understand
[17:21] <JEEB> and you can't really remove those in most H.264 streams :)
[17:22] <JEEB> (you could if it was all intra but most encoders don't do that)
[17:22] <JEEB> (and other nicely compressing formats)
[17:22] <chiken> ok, two more questions, what does preset slow do and -crf 21 ?
[17:22] <JEEB> preset is the libx264's compression versus speed setting
[17:23] <JEEB> http://mewiki.project357.com/wiki/X264_Settings#preset
[17:23] <JEEB> you usually want to use the slowest that you don't think is too slow
[17:23] <JEEB> crf is a rate control mode (constant rate factor), that effectively is the closest to "constant quality" we can have
[17:23] <JEEB> or generally "set a quality level"
[17:24] <chiken> oh :-)
[17:24] <chiken> ok
[17:24] <chiken> again, thx kind sirs :-)
[17:24] <JEEB> and basically with crf you usually want to use the highest number that still looks good to you
[17:26] <chiken> i think this will take some time ;p
[17:26] <chiken> i got t3000 celeron ( 1.8 ghz )
[17:38] <matjaz> Hi! I would like to remux .mov to .mp4 with all streams (at least video, audio and text).
[17:38] <matjaz> I have the following input.mov: 0:0 Video: h264, 0:2 Audio: aac, 0:5 Subtitle: mov_text
[17:38] <matjaz> I am using the following command: ffmpeg -i input.mov -map 0:0 -map 0:2 -map 0:5 -c copy -scodec copy -f mp4 -y output.mp4
[17:39] <matjaz> (see output here: http://pastebin.com/ZPNgAP9M
[17:39] <matjaz> ffmpeg says it will copy all three streams, but in fact it copies only audio and video. What happened to the subtitle stream?
[18:05] <matjaz> Ok, let me rephrase the question: Can I extract the subtitles from the QT .mov in .srt format *with timecodes*? I only get .srt text without timecodes with ffmpeg. On the other hand, .srt extraction from .mp4 with MP4Box works just fine.
[18:55] <danolj> question about '-flags2 +mixed_refs' on a recent version of ffmpeg built from github
[18:56] <danolj> I get the error message Undefined constant or missing '(' in 'mixed_refs'
[18:56] <danolj> followed by Unable to parse option value "mixed_refs" and Error setting option flags2 to value +mixed_refs
[18:56] <danolj> documentation via google is a little sketchy on what to do so I'm here
[18:59] <JEEB> why are you trying to poke around specific libx264 settings is my first question
[18:59] <danolj> it is a good question
[19:00] <danolj> naively I've picked up some sample two pass encoding command lines from the Interwebs and they include this option
[19:00] <JEEB> ok, so they most probably are just picked up from some ancient ffmpeg version, from the times when it was actually hard to use libx264 well with le ffmpeg
[19:00] <JEEB> *they are
[19:00] <danolj> probably
[19:01] <JEEB> now, do tell what exactly you are trying to achieve :)
[19:01] <danolj> I do wish that Google would truncate results older than ....
[19:01] <danolj> so perhaps it is wise to simply leave out the option?
[19:01] <danolj> no harm, no foul
[19:02] <JEEB> I'm pretty sure those other settings might be more or less herp derp thus I am asking you about what exactly are you trying to achieve :)
[19:02] <JEEB> Because we can build the command line from that information
[19:02] <danolj> all I'm doing is converting VOB's to h264 with an overlay to include a logo
[19:02] <danolj> I have some 300 VOBs taken off of DVDs and need to add the overlay
[19:02] <JEEB> 1) are you encoding for a specific piece of hardware, or just "for PC playback"? 2) are you specifically limited in hard drive space, or you just want good compression and a certain quality level?
[19:03] <danolj> no limit on disk space, I'd like as good a quality as the original VOB
[19:04] <JEEB> alrighty, so it makes more sense to use the crf rate control mode than some kind of a bitrate and two pass encoding
[19:04] <JEEB> now for the first part
[19:05] <danolj> btw, I have the overlay figured out already
[19:05] <JEEB> yes, I'm not going to comment on that
[19:05] <danolj> I'm respectful of your time
[19:05] <JEEB> anyways, do answer the first point
[19:06] <Goffredo> hi all, I have trouble compiling ffmpeg, is this the right channel?
[19:06] <JEEB> Goffredo, yes -- ask the question and stay around on the channel until someone answers
[19:07] <danolj> sorry, encoding for PC playback and upload to YouTube so things have to be deinterlaced which I know how to do
[19:07] <JEEB> yes, -vf yadif
[19:08] <JEEB> okies then
[19:08] <danolj> here's a sample I encoded using almost no options, http://www.youtube.com/watch?v=aSMG7g_cp9M
[19:08] <JEEB> for youtube I'd probably recommend some kind of lossless tho
[19:08] <JEEB> liek ffvhuff or x264's lossless mode
[19:08] <danolj> whatever you think is best
[19:08] <JEEB> well, youtube re-encodes in any case :P
[19:08] <JEEB> thus you want to give it the best possible
[19:09] <JEEB> since it's going to be raped in any case
[19:09] <JEEB> (of course lossless is huge and should only be used for such purposes)
[19:09] <danolj> yes, I am also giving the mp4's or mkv's (whatever is the proper extension) to various people for playback on their computer
[19:10] <danolj> I have 5 years of race videos to encode, ~100 races per year, 8 to 10min per race!
[19:10] <JEEB> for mkv you could just copy the input audio (be it pcm or ac3 or dts), for mp4 some things don't like ac3 or dts in mp4 so that'd have to be re-encoded
[19:10] <Goffredo> Ok thx. So here it goes. I'm on arch linux, if i install ffmpeg and x264 from the repos, launching from commandline gives this error (both from x264 and ffmpeg) http://pastebin.com/kwrC02Hd
[19:10] <JEEB> anyways, back to the lossy high quality encodes for people to be given out
[19:11] <danolj> you've lost me a bit - not an expert on video stuff, much bettern on audio codecs
[19:11] <danolj> the codec/container thing makes my head hurt
[19:11] <JEEB> mkv and mp4 are containers
[19:12] <JEEB> mp4 is generally much more limited, and many players that support mp4 might not support all audio codecs that can be muxed into it (like AC3 or DTS that could be used in the input DVD)
[19:12] <JEEB> mkv is generally more lax and if something supports mkv it will most probably support ac3/dts as well
[19:12] <danolj> ok
[19:12] <JEEB> + funny enough you can't mux raw PCM audio into mp4
[19:13] <JEEB> anyways, back to the video side of things, I'll give you an example that encodes video and copies audio into a matroska file
[19:13] <JEEB> ffmpeg -i input.derp -c:v libx264 -preset:v TheSlowestPresetYouCanTake -crf TheHighestCRFValueThatStillLooksGoodForYou -vf yadif -c:a copy out.mkv
[19:13] <JEEB> you can find a listing of presets here: http://mewiki.project357.com/wiki/X264_Settings#preset
[19:14] <JEEB> and I recommend you start your crf value search from 24 or so
[19:14] <danolj> reading now
[19:14] <JEEB> if it looks bad, lower it
[19:14] <pasteeater> Goffredo: the repo ffmpeg shouldn't do that.
[19:14] <JEEB> if it looks good, push it higher
[19:14] <JEEB> anyways, that should be relatively easy to understand :)
[19:15] <JEEB> input, set the video codec, set the video preset, set the crf rate factor, do yadif deinterlacing, set audio codec to 'copy' -- and output the result into out.mkv
[19:15] <danolj> what is the range of values on CRF?
[19:15] <Goffredo> pasteeater: so what am I doing wrong?
[19:15] <JEEB> with 8bit x264 0 to 51
[19:16] <pasteeater> JEEB: what's the rang for 10-bit? offset -12?
[19:16] <JEEB> pasteeater, yup
[19:16] Action: pasteeater still needs to monkey with 10-bit
[19:16] <Goffredo> I'm trying to compile ffmpeg from git now
[19:16] <danolj> I found this comment "15 being lowest compression and highest quality/bitrate and 28 being the opposite."
[19:16] <pasteeater> Goffredo: use a pastebin site to show your ffmpeg command and the complete console output
[19:17] <JEEB> danolj, that is a common range of 'sane'ish values, but it really does depend on your source and so on and so on
[19:17] <Goffredo> ok that was the complete console ouput for the command ffmpeg -version
[19:17] <danolj> ok
[19:17] <pasteeater> Goffredo: what's the output of 'pacman -Q ffmpeg'
[19:17] <JEEB> so start with 24 or so
[19:17] <JEEB> and see how it does
[19:18] <JEEB> encode a 5000 frame part or so
[19:18] <Goffredo> ffmpeg 20120127-3
[19:18] <Goffredo> (not pastebinning these as they are very short, ok?)
[19:18] <pasteeater> yes, it's fine
[19:18] <danolj> JEEB: not immediately sure how to encode just 5000 frames
[19:19] <danolj> -dframes?
[19:19] <Goffredo> oh btw, programs using ffmpeg seem to work well (blender vlc)
[19:19] <JEEB> neither am I to be honest, as I mostly use avisynth and x264 for encoding :D
[19:19] <pasteeater> repo ffmpeg is libavformat.so.53, not 54 as shown in your paste. you must have compiled something weirdly
[19:19] <JEEB> I've just gotten used to some basics of ffmpeg >_>
[19:19] <pasteeater> -vframes 5000
[19:19] <pasteeater> or maybe frames:v. i can't remember these changes
[19:20] <Goffredo> pasteeater: what would be the best way to clean up my system?
[19:20] <pasteeater> what did you do?
[19:20] <Goffredo> lots of things (compile from aur packages, replacing stuff)
[19:21] <pasteeater> package management isn't my strong point. was it ffmpeg-git from AUR?
[19:21] <JEEB> danolj, anyways -- find the crf value you like and then find the preset you like (slowest that isn't too slow for you)
[19:21] <Goffredo> also that output comes from x264 as well
[19:21] <JEEB> and then you can just encode all of them like that :3
[19:21] <Goffredo> (yes ffmpeg-git from AUR)
[19:22] <pasteeater> that's my package, but i don't know how you ended up with that message.
[19:23] <danolj> JEEB: the encoding was terribly pixelated at those values
[19:23] <pasteeater> it conflicts with ffmpeg and x264 (via x264-git) so you should not have ffmpeg and x264 repo installed too
[19:23] <JEEB> danolj, well 24 is relatively high and I pick it so for a reason
[19:23] <danolj> I did a 'slower' preset and 24
[19:23] <danolj> so 15 will improve it?
[19:23] <JEEB> it's easier to see when something becomes better usually than when something becomes 'better'
[19:23] <JEEB> don't go straight so low :P
[19:23] <Goffredo> no, indeed. It is not installed anymore, but I tried to install it in the last few days, to see if it could solve the problem
[19:23] <JEEB> take it gradually to find the highest value that still looks good for you
[19:24] <danolj> understood
[19:25] <pasteeater> and ffmpeg-git does not install and .so files, so i doubt that package is the issue
[19:25] <pasteeater> unless you edited the PKGBUILD
[19:26] <pasteeater> s/and/any
[19:26] <Goffredo> do you have any suggestions?
[19:27] <pasteeater> seems more like a package management issue than ffmpeg. might want to ask in #archlinux how to clean up.
[19:27] <Goffredo> ok thx
[19:27] <pasteeater> because i'm not really sure what you did
[19:28] <Goffredo> yes that was what i was thinking
[19:28] <Goffredo> thx for the help though!
[19:28] <pasteeater> if you don't get any help there then maybe the forums, and still of no, then come back here. save your console history of what you did if you still have it.
[19:30] <JEEB> danolj, and should you need mp4, the difference would be mainly to set -c:a to some aac encoder (libvo_aacenc, faac or aac) and set a bitrate/quality option for it :)
[19:31] <JEEB> (and of course end the output file name with dot-mp4 instead of dot-mkv)
[19:31] <danolj> so the encoder crashes after encoding 20 seconds of video with "Application provided invalid, non monotonically increasing dts to muxer in stream 1: 26624 >= 26624
[19:31] <danolj> av_interleaved_write_frame(): Invalid argument
[19:31] <danolj> "
[19:31] <pasteeater> use a pastebin site to show your ffmpeg command and the complete console output
[19:31] Action: pasteeater is a parrot
[19:32] <JEEB> a parrot is fine too, although I prefer cats
[19:32] <pasteeater> i repeat the same line.
[19:33] <JEEB> yeah, and I was trying to make a joke with the "A cat is fine too." internet meme
[19:33] <danolj> http://pastebin.com/mxJ75Ra0
[19:34] <danolj> I have a stray cat, been feeding it for months, still haven't given it a name
[19:34] <pasteeater> memes come to me late. i just saw "dancing baby"
[19:34] <danolj> perhaps I should simply call him/her 'lol'
[19:34] <pasteeater> how about "JEEB"?
[19:34] <danolj> that would require some explaination!
[19:35] <JEEB> sounds like that vob is not really being liked by le ffmpeg
[19:36] <danolj> I'm removing various options from ffmpeg to see which one offends
[19:40] <JEEB> danolj, uhhh
[19:41] <danolj> typo?
[19:41] <JEEB> it's not the options
[19:41] <JEEB> ffmpeg doesn't seem to like that vob
[19:42] <JEEB> "Application provided invalid, non monotonically increasing dts to muxer in stream 1: 26624 >= 26624"
[19:42] <JEEB> non-monotonic time stamps
[19:45] <JEEB> you could try setting the frame rate manually to 30000/1001 by setting -r before -i
[19:45] <JEEB> not sure if that would override that or not tho
[19:47] <danolj> This encode went fine, however, the resulting file size is huge
[19:47] <danolj> http://pastebin.com/USDWLALy
[19:47] <JEEB> also, I somewhat recommend you update to r2184 of x264
[19:48] <JEEB> because there was a threading bug fixed there
[19:48] <danolj> ok
[19:48] <JEEB> also, the only differences in that command line are: you don't set a preset and the audio isn't copied from the source
[19:49] <JEEB> (and instead autoselected to be re-encoded to vorbis)
[19:49] <JEEB> nothing else is different
[19:49] <danolj> ok
[19:49] <JEEB> I guess the audio copying might not be going well because of the borked timestamps but I really don't know -- it should be herping a derp at you in any case
[19:50] <JEEB> that is, if you are using the same vob
[19:50] <danolj> I am using the same VOB
[19:51] <JEEB> anyways, I'm pretty sure the x264-related options don't have anything to do with it
[19:51] <danolj> sure
[19:51] <JEEB> it could be that the copying of audio might be reading the borked timestamps or whatever
[19:52] <JEEB> but making you re-encode the audio makes me think of "U SERIOUS!?" mostly
[19:52] <JEEB> try -c:a libfaac
[19:52] <JEEB> instead of -c:a copy
[19:55] <danolj> JEEB: yes, agreed on the audio
[19:55] <danolj> I'll let you know what I figure out
[19:59] <danolj> JEEB: it is the '-c:a copy' that causes the issue to occur
[20:00] <JEEB> danolj, so yeah -- whatever timestamps it's reading they're not letting it just copy the audio from the VOB :/
[20:01] <danolj> so it is an audio timestamp problem
[20:01] <danolj> I'll just downsample it to 64k mono mp3's and let the pleebs deal with it :-)
[20:02] <JEEB> nah, rather just encode to aac with libfaac
[20:02] <JEEB> and do mp4s
[20:02] <JEEB> and that's it
[20:02] <danolj> not mkv's
[20:02] <JEEB> well, the main positive point of mkv would've been to keep the original audio
[20:02] <JEEB> if you can't do that
[20:02] <danolj> got it! I'm learning new things every day
[20:03] <JEEB> :)
[20:03] Action: danolj wnats to rename JEEB to JENIUS
[20:03] <sacarasc> JEENIUS.
[20:04] <danolj> just curious about your opinion on aac v. vorbis, I've encoded many millions of tracks to vorbis for a business that I used to own
[20:04] <danolj> sacarasc: better!
[20:04] <JEEB> well, in this case the selection of AAC is mostly because you'll possibly be giving those files to randoms and there's a bigger chance that they'll be able to play mp4 than mkv
[20:04] <danolj> I suspect that vorbis is not widely distributed as a playback codec in standard media players, but I don't know that for sure
[20:05] <danolj> I answered my own question
[20:05] <danolj> wide spread compatibilit
[20:05] <danolj> y
[20:05] <JEEB> you could of course mux ac3 into mp4 as well, but not all mp4-capable players (flash/quicktime) are capable of dealing with ac3 in mp4
[20:08] <danolj> how about I encode into stone tablets
[20:08] <JEEB> hah
[20:08] <JEEB> I wish thee luck
[20:09] <danolj> it would be a lot of tablets and difficult to put into flip book format, but durable and adoptable
[21:01] <Goffredo> pasteeater: Just came back to say I solved my problem, thx for your time!
[21:02] <Goffredo> Is there any support (or planned) to read from dvds?
[21:46] <pasteeater> Goffredo: what was the issue?
[21:46] <pasteeater> i mean how did you fix it?
[21:58] <Goffredo> emh simply my shell was pointing to /usr/local/bin/ffmpeg instead of /usr/bin/ffmpeg
[21:58] <Goffredo> so basically i was trying to launch my half built ffmpeg, with libraries built for the arch linux repo ffmpeg
[21:59] <Goffredo> i then simply rm /usr/local/bin/ffmpeg
[21:59] <Goffredo> hash -r
[21:59] <Goffredo> and everything was solved! :)
[22:01] <pasteeater> you must have compiled ffmpeg manually instead of using ffmpeg-git
[22:02] <danolj> JEEBsv: so it seems that to get the quality I want, crf of 18 or better is required
[22:03] <danolj> which makes very large files, but that's okay
[22:03] <pasteeater> Goffredo: ffmpeg can read from a mounted non-encrypted dvd
[22:03] <danolj> Goffredo: I can second that
[22:04] <pasteeater> otherwise you can use tccat, vobcopy, mplayer, or whatever.
[22:04] <pasteeater> IIRC
[22:12] <Goffredo> non-encrypted dvds are rare though, right? :)
[22:14] <Goffredo> how hard would it be to pass content to ffmpeg without saving to hard-disk (like with a pipe)
[22:14] <Goffredo> ?
[22:14] <Goffredo> like directly reading from memory?
[22:16] <danolj> so you want to decrypt to standard out then
[22:17] <danolj> use the this option on vobcopy '-o -' then pipe to your ffmpeg command
[22:18] <Goffredo> does this pass through hard disk?
[22:18] <danolj> vobcopy [some options] -o - | ffmpeg -i pipe:0 [some options]
[22:18] <danolj> not to my knowledge
[22:19] <Goffredo> ok thx
[22:19] <Goffredo> so basically i could wrap up those vobcopy and ffmpeg to directly rip dvds?
[22:19] <danolj> I haven't tried all those things myself, but there is no reason to believe that you won't be successful
[22:20] <danolj> I suspect a google search of 'vobcopy pipe ffmpeg' will yield examples
[22:21] <Goffredo> thx very much
[22:21] <Goffredo> it would be a very handy tool
[22:22] <Goffredo> i'll report if i have any updates, i fyou are interested
[22:38] <luc4> Hi! Anyone having troubles with wma on ARM?
[22:56] <niki_> I have used the ffmpeg to encode yuv420p frames to h264 baseline-profile , preset-veryfast and stream them with rtp. However because i need to have more control on the h264 encoder options i created an h264 application which encodes the frames with the parameters i want to nalunits. My question is how to feed the ffmpeg-api with these nal-units ? thanks
[22:57] <niki_> whisch functions hsould i use ?
[23:16] <Craig`> can somebody help me with determining the length of vob files?
[23:17] <Craig`> basically, vob files (dvd) aren't one per episode for tv series so i'm trying to figure out when one episode starts, from ffmpeg -i blah.vob if the episode starts around 2 minutes before the end then the length returns the second episode length (which is good)
[23:17] <Craig`> however, one episode starts 6 mins before the end: http://pastie.org/3589158 -- it looks like the get position function is failing
[23:17] <Craig`> any ideas?
[23:18] <Craig`> ffmpeg -i VTS_01_1.VOB is returning the correct time the second episode starts but the function is failing for whatever reason.
[23:19] <Craig`> before any suggests converting the vobs to avi I know this can be done but i'm wanting only dvd backups, not episodes too (plus this is somewhat of a learning experience)
[23:20] <Craig`> (i'm wanting the length to be 00:06:05)
[23:20] <Mista_D> can I encode to ADPCM with 1 or 2 bits per sample?
[00:00] --- Wed Mar 14 2012
More information about the Ffmpeg-devel-irc
mailing list