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

burek burek021 at gmail.com
Fri Apr 20 02:05:02 CEST 2012


[00:33] <sanitypassing> can anyone tell me how to use ffmpeg to downscale a video?
[00:33] <sanitypassing> I want to downscale 1080 to 720, but retain the same options (audio, container, etc)
[00:56] <taqattack> sanitypassing: your ffpmpeg would look like "-i <inputfile> -vcodec copy -acodec copy -s 1280x720 -f <container = mp4,flv> <outputfile>"
[00:58] <taqattack> Why do I get frame drops? http://pastebin.com/x13M2U6f
[01:05] <burek> retarded kde
[01:05] <burek> once you kill the systray, all your apps are lost
[01:05] <burek> and they say windows sucks.. :)
[01:08] <DelphiWorld> hello everyone
[01:08] <DelphiWorld> libavcodec-dev libavformat-dev libswscale-dev libavcodec-extra-53 ffmpeg
[01:09] <DelphiWorld> do these projects exist in the ffmpeg repo?
[01:09] <burek> ffmpeg repo?
[01:09] <DelphiWorld> burek: repository
[01:09] <DelphiWorld> burek: i mean associated with ffmpeg, or ceparate projects?
[01:13] <DelphiWorld> any answer? :| :*
[01:13] <burek> no :)
[01:13] <DelphiWorld> burek: no for what :P
[01:14] <DelphiWorld> burek: are you a dev?
[01:18] <DelphiWorld> hello saste
[01:19] <saste> hi
[01:20] <DelphiWorld> saste: please, can you help me? not a ffmpeg issue maybe, byut a project that use ffmpeg :)
[01:22] <saste> DelphiWorld: don't ask to ask, just ask, personal help requests are considered rude as we're not an help desk
[01:22] <saste> (and here is 1am in the morning)
[01:22] <DelphiWorld> saste: sory for that :P
[01:22] <DelphiWorld> saste: i know italia;)
[01:22] <DelphiWorld> saste: let me pb
[01:25] <DelphiWorld> saste: http://dpaste.com/734007/
[01:26] <saste> CODEC_TYPE_AUDIO => deprecated and removed one year ago
[01:26] <saste> you need either to update the source code, or if that's not possible you can use and old ffmpeg version
[01:26] <saste> any version before 0.7 should be fine
[01:26] <DelphiWorld> saste: recomand a release please ? if you can; otherwise, let me stuck with it.
[01:27] <saste> i said, 0.7
[01:27] <saste> or you can try with the oldabi branch which is a bit more updated
[01:27] <DelphiWorld> saste: how can get a old version? i'm on git :(
[01:27] <saste> sorry i mean *before* 0.7
[01:27] <saste> DelphiWorld: then learn how to use git ;-)
[01:28] <saste> git will show you all the branches, but i don't remember the command
[01:28] <DelphiWorld> saste: is 0.7.12 good?
[01:28] <DelphiWorld> saste: git branch -
[01:28] <DelphiWorld> saste: git branch -r
[01:28] <saste> not sure maybe it's too recent, i never remember if the big bump was with 0.7 or 0.8
[01:28] <saste> yes
[01:28] <saste> with oldabi you're safe
[01:29] <DelphiWorld> saste: i got 0.6.2
[01:29] <saste> that's fine as well
[01:39] Action: DelphiWorld slaps burek around a bit with a large trout
[01:39] <burek> ^^
[01:40] <DelphiWorld> burek: :)
[01:41] <DelphiWorld> can ffmpeg server do multicast?
[01:41] <burek> yes
[01:41] <buhman> how can I stop ffmpeg from multithreading?
[01:41] <burek> buhman, -threads 1 ?
[01:41] <buhman> I tried threads 1, but there seem to be multiple ffmpeg processes spawned regardless
[01:41] <DelphiWorld> saste: make install to install it, right?
[01:41] <burek> ffmpeg processes or threads?
[01:42] <buhman> I'm doing ffmpeg -i {} -target ntsc-dvd -aspect 16:9 -sameq -threads 1 {.}-vob.mpg
[01:45] <buhman> yet each ffmpeg process spawns 8 other threads
[01:45] <buhman> processes*
[01:47] <burek> maybe just remove -threads altogether
[01:47] <buhman> that's what I started with
[01:49] <buhman> http://sprunge.us/OOgO
[01:49] <buhman> 8 ffmpeg processes which each spawn 9 more
[01:49] <buhman> that seems like a waste of resources
[01:49] <buhman> yet when I just start a single instance of ffmpeg, it doesn't fully utilize all 16 execution units
[01:49] <buhman> not even close
[01:50] <buhman> single-threaded instances of ffmpeg seem to be much more efficient
[01:53] <burek> buhman, then start 1 instance with -threads 17
[01:54] <buhman> but each of the sub-processess only use maybe 1% cpu
[01:54] <buhman> seems like a waste of process-scheduling
[01:54] <buhman> and the parent ends up using possibly 250% cpu
[01:55] <buhman> when it should be doing 1600%
[01:55] <burek> which version of ffmpeg are you using
[01:55] <DelphiWorld> sacarasc: yet another error with 0.6.5 http://dpaste.com/734021/
[01:55] <buhman> http://sprunge.us/PCdZ
[01:56] <buhman> perhaps it's too old?
[01:56] <buhman> apr 12... that's dinosauric right?
[01:56] <burek> buhman, it doesn't matter when is it compiled, but how old the source code is
[01:57] <burek> yours is 7 days old
[01:57] <buhman> I would assume a git pull was done the same time the compile was
[01:57] <burek> how did you manage to have git-2012-04-13 version compiled on april 12th? :D
[02:00] <burek> buhman, -threads 1 will make it non multithreaded definitely
[02:00] <burek> now, why do you have 8 ffmpeg processes, I don't know
[02:01] <buhman> burek: different timezones?
[02:22] <DelphiWorld> what is sfix?
[02:37] <DelphiWorld> Yasm...
[05:24] <gustavo_cm> Hello. Does anyone know if I can get with "libvorbis" the same effect I get with "libx264 -vpre max"?
[05:24] <gustavo_cm> With this, I set the compression to max and speed to min.
[05:28] <Plorkyeran> afaik libvorbis doesn't have any speed/quality tradeoff options
[05:30] <gustavo_cm> Plorkyeran: ok, thanks!
[09:50] <RobertNagy> "Email the list and indicate the location of the sample." is that referring to the ffmpeg user mailing list, or the bug tracker?
[10:45] <biscii> hey guys
[10:46] <biscii> can anyone point me to the command where i can segment mp3 audio -> iOS format ?
[12:54] <Guest93874> hi there, this is Rohit here, I am trying to cross compile ffmpeg for ARM, on a Ubuntu 10.04
[12:54] <Guest93874>  ./configure --cross-prefix=arm-none-linux-gnueabi- --extra-ldflags=-static --target-os=linux --arch=x86
[12:54] <Guest93874> but i get en error stating the following - "arm-none-linux-gnueabi-gcc is unable to create an executable file.
[12:54] <Guest93874> C compiler test failed."
[12:54] <Guest93874> may i request for your help, any information is very appreciated
[15:19] <Mosselmaniac> hi all
[15:19] <Mosselmaniac> i have a mp4 file, i want to add an image to it for test purposes. It can be a jpg or png, i don't mind for now
[15:20] <Mosselmaniac> if i export (to jpg) a screenshot of a specific time of the mp4, it works correctly, so ffmpeg is properly installed
[15:20] <Mosselmaniac> i'm on a shared hosting using php, so it's pretty hard to debug now
[15:21] <Mosselmaniac> do i really need to use a watermark.so file or something? or can i do without it?
[15:21] <Mosselmaniac> i got now: ffmpeg -i nieuw.mp4 -vhook '/usr/lib/vhook/watermark.so -f test.png -m 1 -t 222222' -an mm.flv
[15:32] <Mosselmaniac> somebody could help me?
[17:04] <kriegerod> how should i track by git log what is the set of revisions where libavcodec had version MAJOR/MINOR/MICRO 54/10/100? I have such libavcodec/version.h in vlc prebuilt contribs for apple-darwin10. I do git log libavcodec/version.h; bae053f and 0afd8f1 seem close, but not exact. Any help?
[17:21] <flipside> Is there a 100% lossless way to capture video. I need HD 1080p (my screen) and near perfect color space. This does not look ultra sharp ffmpeg -v 1 -r 30 -f x11grab -s 1920x1080 -i :0.0 -vcodec libx264 -preset ultrafast -crf 0 -threads 0 cast.mkv
[17:22] <flipside> Don't care how big the video is. After I edit everything Ill compress it.
[17:31] <flipside> Compiled using the newest ffmpeg version N-35349-ga4a88fd today.
[17:32] <mraca> hi, freshly checked out ffmpeg from git failing to compile due to an error in libavdevice/dv1394.c; Can anyone verify that it's in fact compiling and that it's just me?
[17:33] <mraca> arch: x64, os: ubuntu
[17:35] <flipside> mraca I just compiled mine 2 min ago on Debian wheezy. Did not have any problems.
[17:37] <mraca> @flipcode tnx
[17:37] <mraca> pardon, flipside... :)
[17:40] <flipside> mraca you asked if others had a problem with and error compiling. I just compiled N-35349-ga4a88fd on a x64 Debian Squeeze box. Had no problems.
[17:40] <flipside> sorry Debian wheezy
[17:49] <mraca> does anybody have an idea why the compilation would break at CC  libavdevice/dv1394.o ? full output here: http://pastebin.com/JcGwwsvR
[17:57] <flipside> Can I get a RGB (4:4:4) colorspace for x11grab. Doing this now and it is not sharp enough ffmpeg -v 1 -r 30 -f x11grab -s 1920x1080 -i :0.0 -vcodec libx264 -preset ultrafast -crf 0 -threads 0 cast.mkv
[17:58] <flipside> mraca I am not getting that error. Is it something new for you?
[18:00] <mraca> yes
[18:01] <flipside> Not like it prolly matters but what kind of machine are  you using?
[18:02] <mraca> 2.6.32-34-server #77-Ubuntu SMP x86_64 GNU/Linux
[18:02] <mraca> i'm guessing that there something wrong with my build env
[18:02] <mraca> there are no dependencies to go wrong with, right? It's just yasm-1.2.0
[18:11] <flipside> mraca the little script I wrote I have the following sudo apt-get -y install yasm texi2html libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev
[18:12] <flipside> mraca when I was using Ubuntu I wrote this http://pastebin.com/NHXrsBxm
[18:12] <mraca> tnx, I'll try with that
[18:14] <Mosselmaniac> Could somebody help me???
[18:14] <flipside> mraca just don't forget to change this homepath=/home/erik/git-svn to you. $HOME/sandbox might be nicer
[18:15] <mraca> no prob, saw it :)
[18:19] <flipside> Anybody know how to get a true losses x11grab. Can't seem to get a 444 color space.
[18:20] <flipside> Looks like a YV12 (4:2:0) ??
[18:21] <Mavrik> flipside: your commandline?
[18:22] <Mosselmaniac> flipside: would you please help me out for a second?
[18:22] <Mosselmaniac> i installed ffmpeg on a webserver, tried to call some functions via php. but didn't work out
[18:22] <flipside> Mavrik -f x11grab -s 1920x1080 -i :0.0 -vcodec libx264 -preset ultrafast -crf 0 -threads 0 cast.mkv
[18:22] <Mosselmaniac> so i installed it first on my windows machine using http://ffmpeg.zeranoe.com/builds/
[18:23] <Mavrik> flipside: your video is being converted to YUV4:2:0 because you're encoding into h.264
[18:23] <Mosselmaniac> now i would _love_ to generate my mp4 file with a png on top of it, for test purposes. but no clue now, tried 1000 things now ;-)
[18:24] <Mavrik> flipside: as far as I know there's currently no way to encode 4:4:4 with ffmpeg, not to mention that kind of video probably won't be playable on most players
[18:24] <flipside> Mavrik hmm can I use HuffYUV or FFV1 with ffmpeg?
[18:25] <Mavrik> flipside: yeah, huffyuv works losslessly (tested)
[18:25] <Mavrik> didn't try ffv1
[18:25] <loo> Can anyone take a look @ this http://ffmpeg.org/trac/ffmpeg/ticket/1224 ? I need to fix this ASAP, this is killing me
[18:25] <Mavrik> flipside: also recording huffyuv in RGB mode will make sure you don't lose anything
[18:25] <Mosselmaniac> Anybody else who mcould help me? i'm in here since 13:00 ;-)
[18:25] <flipside> Mavrik did not know there was support for that. Cool.
[18:26] <flipside> Mavrik could you give me an example of a cmd.
[18:26] <Mavrik> um
[18:26] <Mavrik> -codec:v huffyuv will probably work ;)
[18:27] <flipside> lol kind of guessed it would be something like that.
[18:27] <flipside> thx
[18:29] <flipside> Mosselmaniac Could you elaborate a little on what you are doing?
[18:30] <flipside> Mosselmaniac Scratch that. Saw the above and have to admit I don't know a thing about Windows.
[18:31] <Mosselmaniac> hehe ;-) but from a linux point of view?
[18:31] <sgfgdf> hello, guys! i have an mkv file which contains: video (V_MPEG4/ISO/AVC); audio (A_DTS); subtitles (S_TEXT/UTF8); is it possible to play that on a DVD player that is branded with DivX logo, or somehow i should convert it?
[18:31] <Mosselmaniac> ffmpeg -i nieuw.mp4 -vf "movie=test.png [watermark]; [in][watermark] overlay=10:10 [out]" outputvideo.flv
[18:31] <loo> Mavrik, could you help me, please?
[18:31] <Mosselmaniac> flipside: that doesn't work now
[18:32] <Mosselmaniac> flipside: which command should you pass to ffmpeg to get a png on top of a video?
[18:33] <sacarasc> sgfgdf: Generally DVD players that support MPEG4 only support it ASP in AVI. And the subs will almost definitely not work. So, yes, you will have to convert.
[18:34] <Mavrik> loo: without problem  description, pastebin  of command line, probably not.
[18:34] <loo> Well, I have written the problems there and pasted, the output, please wait, I'll try to do that all over again :)
[18:35] <Mosselmaniac> Guys i want a watermark on my video? could somebody help me
[18:35] <sgfgdf> sacarasc, okay so i need an AVI container because of the player? is thsis V_MPEG4/ISO/AVC a H.264 encoded video?
[18:35] <sacarasc> Yes.
[18:36] <sacarasc> To both.
[18:36] <dericed> Mosselmaniac: first see http://ffmpeg.org/libavfilter.html#overlay-1
[18:36] <Mavrik> loo: well, my log is limited ;)
[18:36] <loo> So I have a dvbt stream which is being converted with ffmpeg and sent to red5 server using rtmp. The ffmpeg exits when 5.x seconds are converted. If I add analyzeduration flag, then I can extend it to 14.x seconds. If I cat the dvb stream and use the cated file as an input, then the whole file is being converted.
[18:36] <Mosselmaniac> dericed: i read that 100 times now ;-)
[18:37] <Mosselmaniac> dericed: but i got something
[18:37] <Mosselmaniac> ffmpeg -i nieuw.mp4 -acodec copy -vf "movie=test.png [wm];[in][wm] overlay=5:5 [out]" -f mp4 -b 2500k -vcodec libx264 -vpre fast -ac 1 -y output.mp4
[18:37] <Mosselmaniac> COOL!!
[18:37] <sgfgdf> sacarasc, i have used the mkvtoolnix tools to extract the subtitles. if i do the same with the audio and the video how can i combine them into playable avi for my player? i don't know if the player can play this audio A_DTS.
[18:38] <sacarasc> sgfgdf: It's not just combining them, you'd have to convert the video and render the subtitles onto it directly (hard subbing).
[18:38] <loo> Mavrik, ^; + will add the console output
[18:38] <dericed> Mosselmaniac: 1 more time ;)
[18:39] <Mavrik> loo: hmm
[18:39] <dericed> Mosselmaniac: so did your last ffmpeg run work?
[18:39] <Mavrik> loo: that seems like a demuxer problem, try checking the input for buffer size
[18:39] <Mosselmaniac> dericed: that 1 worked :)
[18:39] <Mavrik> loo: you may be getting buffer underruns
[18:39] <Mosselmaniac> on my windows installation....
[18:40] <Mosselmaniac> however, i would have liked that it worked on my shared hosting environment, but ffmpeg returns me the error that -vf is not recognized??
[18:40] <Mavrik> loo: even though most people use other tools to grab DVB input and then convert that with ffmpeg
[18:41] <sgfgdf> sacarasc, i think that i had played a video with separate subtitles (file .srt) on that player. not sure though. so when i extract the components i have to convert the H.264 video to DivX. is this right? what about the audio then?
[18:41] <loo> Mavrik, what kind of tools? :) First time doing this so haven't found anything else.. :)
[18:41] <sacarasc> sgfgdf: You could use ffmpeg to do it all in 1 step... The audio should work fine, if it is allowed in AVI.
[18:42] <Mavrik> loo: lemme see if I can remember (never did that myself, don't have a DVB tuner at hand :\ )
[18:43] <loo> Mavrik, here's the output http://pastebin.com/aAzS9Uwz
[18:43] <sgfgdf> sacarasc, i'm asking about the audio, because i haven't heard of that auio type. i have heard about mp3 aac ac3, but not for A_DTS.
[18:43] <Mosselmaniac> Mavrik
[18:43] <sacarasc> DTS is often used on DVDs and Blurays.
[18:43] <Mosselmaniac> dericed:
[18:44] <Mosselmaniac> i have my movie that is 500px width and 576 height
[18:44] <Mosselmaniac> now i want to add 800px to the left of the movie, and place an image on that empty space
[18:44] <Mosselmaniac> how should we do that? i figured out step 2 now...
[18:45] <Mavrik> loo: it seems people use dvbstreamer forthat mostly
[18:45] <Mavrik> loo: but that definetly looks like a buffer underrun problem, can't seem to find a way to increase buffer size though
[18:45] <loo> wasn't it deprecated?
[18:45] <sgfgdf> sacarasc, if we pretend i have extracted the audio.dts and video.raw and subtitles.srt how can i combine them into one avi lets say a 30 seconds sample and if everything is okay i will run it for the whole video?
[18:46] <Mavrik> loo: probably, as I said, I have little experience with grabbing from DVB tuners
[18:46] <loo> Mavrik, the buffer size isn't a changeable flag? this is really sad. The wierd fact is that the analyzeduration extends the time.
[18:47] <Mavrik> loo: it's not for "file" input
[18:47] <Mavrik> loo: and it's logical - increasing analyze duration forces ffmpeg to preload larger  part of file
[18:48] <sacarasc> sgfgdf: I've never burnt subtitles onto the video with ffmpeg, so I am unsure.
[18:48] <loo> Mavrik, so you are sure that there's no option how to fix this? :(
[18:49] <Mavrik> loo: I'm not sure, there might be something buried in documentation... also ffmpeg-users list could help you as well :)
[18:49] <Mosselmaniac> could somebody help me??
[18:49] <sgfgdf> sacarasc, any suggestions if we skip the step with embeding the subtitles? if i want to play the video with audio?
[18:49] <loo> Mavrik, maybe create a fifo file? :D
[18:49] <Mosselmaniac> my movie is 500px in width, i want to add lets say 800px to that, on the left side. which parameter should i use?
[18:50] <Mosselmaniac> mavrik? loo?
[18:50] <Mavrik> Mosselmaniac: read the damn documentation -_-
[18:50] <sgfgdf> sacarasc, btw when i extracy the video is it raw video with no container? in my case just H.264 video stream?
[18:50] <Mavrik> loo: that, or try grabbing with a DVB grabber (or just use cat) and pipe input into ffmpeg
[18:50] <Mavrik> that might help :)
[18:51] <loo> Mavrik, you mean cat the data into a fifo file and then pipe the input into ffmpeg?
[18:51] <Mavrik> mhm
[18:52] <sacarasc> sgfgdf: Don't bother demuxing, that's more hassle than is needed. Something like this might work: ffmpeg -i foo.mkv -ss 300 -t 30 -codec:a libmp3lame -codec:v mpeg4 -b:a 192k -b:v 800k output.avi
[18:52] <Mosselmaniac> Mavrik: i read it
[18:52] <loo> Mavrik, is there something special that I have to do to pipe it in?
[18:52] <sacarasc> Though I don't really know much about encoding to ASP, as it is poo and out of date.
[18:52] <Mosselmaniac> is this the one? http://ffmpeg.org/ffmpeg.html#format
[18:53] <loo> Mavrik or just use -i fifoFile.mpeg
[18:56] <mraca> epilog: the compilation problem was due to my env settings; not sure whether C_INCLUDE_PATH or CPP_...;
[18:56] <mraca> thx @flipside for his help one again
[18:57] <sgfgdf> sacarasc, the video codec you mention is mpeg4 is it another name for DivX or they are mutually exclusive? about the audio does this mp3 codec support more than 2 channels?
[18:58] <sacarasc> DivX is an implementation of MPEG4 ASP. And I am not sure MP3 supports more than 2 channels.
[18:58] <sgfgdf> sacarasc, if i leave the audo to be dts do you think i wont play?
[18:58] <sacarasc> I am not sure.
[18:59] <sacarasc> I am not sure if DTS is supported in AVI.
[18:59] <sgfgdf> sacarasc, ah, right, okay.
[18:59] <flipside> mraca did you get it working?
[19:00] <sgfgdf> sacarasc, why do you tell me to use ffmpeg at once instead of extracting the video audio and so on? is it faster. what is the right way to do it in order to loose as less as of the quality?
[19:02] <sacarasc> sgfgdf: You might get some desynchronisation if you do it the longer, more painful way.
[19:03] <sgfgdf> sacarasc, but will i loose less quality if i use the longer way?
[19:03] <sacarasc> No.
[19:08] <loo> Mavrik, created a fifo file, cated the stream to it and then used it with ffmpeg, but nothing..
[19:11] <sgfgdf> sacarasc, i changed the libmp3lame to libfaac, because it says that the video is more than 2 channels and mp3 needs <= 2. but the result of the video quality is noticable worse. do you think just the mpeg4 codec is bad. here is information about the original mkv file -- http://cl.ly/1g0O162Z3T1f2H1F0z1k .
[19:12] <sacarasc> Yes, MPEG4 ASP is bad.
[19:12] <sgfgdf> sacarasc, those DVD players are really useless nowadays.
[19:16] <cbsrobot> SDC
[19:16] <cbsrobot> $
[19:25] <flipside> Seems like huffyuf is using YUV4:2:0 pixel format by default ?
[19:25] <sgfgdf> sacarasc, if i try to just change the container from mkv to mp4 will ffmpeg drop the subtitles and any other information besides the audio and video?
[19:25] <sacarasc> I don't know what types of subtitle MP4 supports.
[19:27] <sgfgdf> sacarasc, i mean in my mkv there are embeded subs. and i want to remove them while changing the container. if i do -acodec copy and -vcodec copy it is not converting anything right?
[19:27] <flipside> Is this right for completly lossless -vcodec huffyuv -pix_fmt bgra
[19:28] <sacarasc> sgfgdf: To remove them, use the -map command.
[19:28] <flipside> sgfgdf that -codec:v copy -codec:a copy will not re-compress your sound or video. You can just put whats in there in an other "container"
[19:31] <flipside> sgfgdf to get rid of all the other streams just use -sn -codec:v copy -codec:a -sn out.mkv
[19:31] <flipside> forgot the copy after -codec:a
[19:33] <sgfgdf> sacarasc, flipside, thank you very much for your help guys!
[19:33] <flipside> np
[19:33] <Kingsy> guys, I have a command I am using to capture video --> ffmpeg -f video4linux2 -r 30 -i /dev/video0 -b 5000k out.avi <-- but according to the output on the command line when its capturing rather than 30fps I am getting 7.. and tbh it looks like that too.. the output is pretty jumpy and a little noisey too.. what can I do to tweak this?
[19:35] <Kingsy> for example when I exited the program this was its status --> frame=   44 fps=  5 q=4.6 Lsize=    6966kB time=11.60 bitrate=4919.4kbits/s
[19:35] <Kingsy> so it captured 44 frames and was doing it at 5 fps.. thats a far cry away from 30.. what is going wrong..
[19:36] <loo> mavrik, isn't there a possibility to buffer the stream with ffmpeg? Or make ffmpeg wait till it receives the next frame? dvbstreamer isn't available currently..
[19:42] <Kingsy> even lowering the resolution to like 320x240 doesnt help the fps.. it still hovers around 8-9fps..
[19:46] <loo> Any ideas where / how to buffer data from dvb card before sending it to ffmpeg? Ffmpeg crashes if I use the dvb card dirrectly
[19:53] <Kingsy> argh.. this is frustrating
[19:53] <loo> anyone?
[19:53] <Kingsy> perhaps the camera just doesnt handle it
[19:54] <Kingsy> actually.. impossible.. because if you don't "record" and you use mplayer tv:// its like 30 fps.. SUPER sharp
[20:14] <Kingsy> burek: you kickin around?
[20:21] <burek> Kingsy, try using some less cpu intensive encoder
[20:21] <burek> for example -vcodec libx264 -preset ultrafast
[20:22] <Kingsy> burek: should that matter? i have a i7
[20:23] <loo> Any ideas where / how to buffer data from dvb card before sending it to ffmpeg? Ffmpeg crashes if I use the dvb card dirrectly
[20:23] <Kingsy> burek: ffmpeg is using 2% of my cpu when capturing
[20:25] <Kingsy> burek: also I have libx264-116 installed but ffmpeg says Unknown decoder 'libx264'
[20:27] <loo> :?
[20:29] <burek> Kingsy, try with latest git version
[20:29] <burek> also use -threads 0
[20:30] <Kingsy> oh ok.. I think I still have that somewhere
[20:31] <Kingsy> burek: http://pastie.org/3818253
[20:31] <Kingsy> still got the same thing
[20:32] <Kingsy> burek: the only difference between my version and the latest is the "unknown decoder part" is red underlined.. heh
[20:35] <Kingsy> burek: well actually the output is a little different --> http://pastie.org/3818275 <-- if it matters..
[20:35] <Kingsy> not really sure what to do here
[20:41] <loo> Burek, can you help me please?
[20:47] <RobertNagy> where do I find windows debug binaries?
[20:53] <Kingsy> burek: according to ffmpeg it doesnt even support decoding using libx264 -->      EV    libx264         libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[20:54] <Mavrik> libx264 is not a decoder.
[20:57] <Kingsy> Mavrik: it was some advice from burek
[20:57] <Kingsy> Mavrik: see, I am trying to capture some webcam footage at 30fps (or the max it can handle) and it keeps hovering around 7 fps.. when I use ffmpeg -f video4linux2 -r 30 -i /dev/video0 -b 5000k out.avi   any advice on how to speed that up >
[20:58] <Kingsy> Mavrik: burek said to use libx264
[20:58] <JEEB> (hint: setting codec before -i sets the decoder, after -i sets the encoder)
[20:58] <Mavrik> indeed
[20:58] <Mavrik> Kingsy, did you try dumping unencoded video first?
[20:58] <Mavrik> so you see if it's a CPU issue or hardware/demuxer issue?
[20:58] <Kingsy> Mavrik: no I don't know how to do that.. I am very new to all of this
[21:00] <Kingsy> Mavrik: I am assuming if I dump the unencoded video and its still low framerate then its nothing to do with the encoder.. its a hardware thing right?
[21:03] <Mavrik> Kingsy, it's either camera or ffmpeg
[21:03] <Mavrik> Kingsy, try "-codec copy"
[21:04] <Mavrik> something like ffmpeg -f video4linux2 -r 30 -i /dev/video0 -codec copy output.avi
[21:04] <Mavrik> (or output.mp4 if your camera gives out encoded stream)
[21:06] <Kingsy> output was --> frame=   86 fps=  8 q=-1.0 Lsize=   51622kB time=00:00:11.68 bitrate=36195.8kbits/s
[21:06] <Kingsy> so 8 fps
[21:07] <Kingsy> Mavrik: ^^
[21:08] <Kingsy> surely this cant be the camera.. if you use mplayer tv:// the output is like 30 or 25fps and its super sharp
[21:10] <Kingsy> Mavrik: what do you think?
[21:16] <basilgohar> I have three AVCHD MTS files (00000.MTS, 00001.MTS, 00002.MTS) that are all in one sequence.  I can concatenate them together into one, and I can also feed this concatentated file into ffmpeg via stdin, remux it using vcodec/acodec copy, and output another MPEG-TS file and I get the same data when I decode.
[21:17] <Kingsy> I would just love to get a definitive answer one either, its ffmpeg or its the hardware... I don't know if I should buy a new webcam.. if I do and have the same problem I will be really annoyed..
[21:17] <basilgohar> But when I do the same thing, except output to Matroska, I get a different output, including different duplicated frames and different dropped frame counts.
[21:18] <basilgohar> Why is there a difference in decodded video when muxing the video into MPEG-TS and Matroska?
[21:21] <ckb> anyone here use widevine?
[21:45] <dizzylizzy> okay so
[21:45] <dizzylizzy> i used recordmydesktop for something and i have an ogv, and then i need to convert it to another format, something like avi
[21:45] <dizzylizzy> but my question is more about audio manipulation
[21:46] <dizzylizzy> if i wanted to adjust the audio or do something like effects on it is it safe to extract the audio from the original, do the changes, and then just splice it back in with ffmpeg?
[21:46] <dizzylizzy> or are there risks involved with that things like maybe matching the exact duration
[21:48] <gustavo_cm> dizzylizzy: I would use SoX for that
[21:49] <gustavo_cm> dizzylizzy: http://sox.sourceforge.net/
[21:50] <dizzylizzy> I think i've used sox before for ripping audiobooks
[21:50] <dizzylizzy> make each file one chapter things like that
[21:50] <dizzylizzy> mmk!
[21:50] <dizzylizzy> and not worry about things matching up perfectly? or should that be okay as long as I'm not stretching or cutting anything
[21:52] <gustavo_cm> dizzylizzy: I never had problems with SoX regarding to conserving the original length of the audio.
[21:54] <dizzylizzy> okay!! good to know :)
[21:59] <gustavo_cm> :]
[22:51] <ckb> marco?
[23:28] <xandy> hi, i've a video with a damaged audio trac.  if i extract the audio with "ffmpeg -i video.flv audio.flac" ffmpeg prints warnings while extracting and other software crashes while processing the extracted aduio
[23:34] <loo> Can I convert video directly from an usb dvbt stick with ffmpeg, or should I use something between them? Currently ffmpeg exits the proccess after 5seconds, probably because of buffer issue..
[23:35] <xandy> loo shouldn't be a problem if your video bitrate is lower than the stick read rate
[23:36] <loo> xandy, how to check if it's true?
[23:37] <loo> xandy, if I use the /dev/dvb/adapter0/dvr0 as the input, then ffmpeg exits after 5sec, if I add analyzeduration, it's possible to extend that time to 14 seconds. If I cat the dvb stream and use the sample file, ffmpeg converts everything till the end..
[23:38] <xandy> strange
[23:38] <xandy> cant help you with that sorry
[23:39] <burek> basilgohar, inside your mpegts container, what streams are there?
[23:39] <burek> can you do ffmpeg -i 00000.MTS
[23:39] <burek> and use pastebin to show output
[23:39] <burek> loo, yes? :)
[23:39] <burek> RobertNagy, try google for: zeranoe ffmpeg
[23:40] <RobertNagy> doesn't provide debug builds
[23:40] <burek> you can send him an email
[23:40] <burek> and ask him politely to make one
[23:41] <RobertNagy> hm, I guess I could
[23:41] <loo> burek, what? :) I probably wanted your help a while ago :)
[23:41] <burek> loo, what ffmpeg line do you use ?
[23:41] <burek> xandy, try -acodec copy -vn out.wav
[23:42] <burek> oh that won't work, sorry
[23:42] <burek> xandy, can you just do ffmpeg -i video.flv and copy it to the pastebin
[23:43] <xandy> burek http://pastebin.com/m8ASptGT
[23:44] <burek> Audio: nellymoser?
[23:44] <burek> and your ffmpeg is so old
[23:44] <burek> like 3 yaers old
[23:45] <xandy> yea its a ustream recording
[23:46] <burek> what is the appropriate container for that kind of audio
[23:46] <xandy> yes i've ffmpeg on a debian stable
[23:46] <burek> update it
[23:46] <burek> it's really old
[23:47] <xandy> ok
[23:47] <loo> burek, just a sec, I'll drop the log
[23:47] <burek> xandy, is this it? http://en.wikipedia.org/wiki/Asao_(codec)
[23:48] <loo> burek http://pastebin.com/aAzS9Uwz
[23:49] <burek> anyway, xandy, try this: ffmpeg -i video.flv -acodec copy -vn audio.flv
[23:49] <burek> and try to play that in some audio player (vlc?)
[23:49] <burek> also: Stream #0.1: Audio: nellymoser, 2 Hz, mono, s16
[23:49] <burek> 2 Hz ? :)))
[23:49] <burek> loo, did you try with video4linux2?
[23:50] <loo> burek, no, what's that?
[23:50] <burek> ffmpeg -f video4linux2 -i /dev/dvb/adapter0/dvr0 out.avi
[23:50] <burek> try that
[23:51] <loo> I'll try to emerge the v4l first of all :)
[23:51] <burek> also, did you try ffprobe /dev/dvb/adapter0/dvr0
[23:51] <burek> just to see what is it actually that you are getting at your input
[23:52] <loo> burek, is v4l included in ffmpeg, or I have to download it? without setting anything up I tryed http://pastebin.com/dSefH9qb
[23:53] <taypen> hey, how can i convert mkv to mpeg4, i want to watch some movie on the iPad
[23:53] <burek> loo, abandon v4l, try ffprobe
[23:54] <burek> taypen, ffmpeg -i input.mkv -acodec copy -vcodec copy -scodec copy out.mp4
[23:54] <loo> burek, ffprobe http://pastebin.com/uPfvMvpD
[23:55] <burek> that's not ffprobe
[23:55] <burek> og
[23:55] <burek> sorry :)
[23:55] <loo> burek, sorry, somehow didn't seewhere to copy from :)
[23:56] <taypen> burek, thanks, it works also with other types?
[23:56] <burek> well, try ffmpeg -f mpegts -i /dev/dvb/adapter0/dvr0 out.ts
[23:57] <burek> taypen, well, it depends
[23:57] <burek> it was just a remux
[23:57] <burek> (change of muxer/container, not touching video/audio inside)
[23:58] <burek> but if your ipad doesn't support video/audio streams, then you'll have to see what it does support and re-encode streams
[23:58] <loo> burek, http://pastebin.com/pcZ7xw7k
[23:58] <burek> support those*
[23:59] <burek> [h264 @ 0xa04fa60] concealing 1620 DC, 1620 AC, 1620 MV errors
[23:59] <burek> and this one is terminal [h264 @ 0xa04fa60] mmco: unref short failure
[00:00] --- Fri Apr 20 2012


More information about the Ffmpeg-devel-irc mailing list