[Ffmpeg-devel-irc] ffmpeg.log.20111129
burek
burek021 at gmail.com
Wed Nov 30 02:05:03 CET 2011
[00:17] <w3gi> hallo... i have a flv-file and need to know the codec... how can i do this?
[00:18] <w3gi> i mean the vcodec
[00:18] <inashdeen> hi do i record sharp video from my webcam
[00:18] <sacarasc> w3gi: ffmpeg -i foo.flv
[00:18] <sacarasc> That should tell you.
[00:19] <sacarasc> inashdeen: What do you mean by 'sharp'?
[00:20] <inashdeen> the common ffmpeg -f oss -i /dev/dsp -f video4linux2 -s 320x240 -i /dev/video0 ~/Videos/recording.mpg doesnt give me a nice video
[00:20] <w3gi> Stream #0.0: Video: flv, yuv420p, 720x410, 65 kb/s, 25 tbr, 1k tbn, 1k tbc
[00:20] <w3gi> Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 224 kb/s
[00:21] <sacarasc> inashdeen: Because MPEG1/2 is pretty poo... Try -vcodec libx264 -profile fast -crf 20 ~/Videos/recording.mkv
[00:21] <w3gi> 1 min. / ca. 7-8 MB but when i use kdenlive (which use ffmpeg) the same vid. have 22-26 MB
[00:22] <w3gi> some idea wich vcodec i should set to get the video smaller?
[00:23] <sacarasc> Just set a lower bitrate.
[00:23] <inashdeen> sacaracs : actually this is my pob. the libx264 gimme Unknown decoder 'libx264'. but this only occur if i run it in bash, if i run it from terminal, the problem do not occur
[00:23] <sacarasc> ffmpeg -f oss -i /dev/dsp -f video4linux2 -s 320x240 -i /dev/video0 -vcodec libx264 -profile fast -crf 20 ~/Videos/recording.mkv
[00:24] <sacarasc> That;st the full command, to get your error, you're writing it wrong.
[00:24] <w3gi> i was using PiTiVi before... with the same bitrate... just the app crash all 5 klicks :(
[00:25] <w3gi> i just try to get per kdenlive the same result with size and quality
[00:30] <inashdeen> i got this with that, and i didnt even change one thing http://pastebin.com/VvMXz2mB
[00:31] <pasteeater> change "profile" to "preset"
[00:31] <inashdeen> Unrecognized option 'preset' ffmpeg: failed to set value 'fast' for option 'preset'
[00:32] <pasteeater> pastebin the complete, uncut, full, total console output
[00:33] <inashdeen> http://pastebin.com/D6fjtktN
[00:35] <pasteeater> your ffmpeg is too old to use "preset". use "vpre" instead.
[00:37] <inashdeen> how is that? just change it to vpre?
[00:37] <pasteeater> yes
[00:37] <pasteeater> your version used an older syntax, IIRC
[00:38] <inashdeen> now it says "Unknown decoder 'libx264' " again :(
[00:39] <sacarasc> You're writing the command wrong.
[00:39] <inashdeen> then how should i do it
[00:40] <sacarasc> ffmpeg [input options] -i input [output options] output
[00:40] <sacarasc> -vcodec libx264 is an output option.
[00:41] <inashdeen> ffmpeg -f alsa -ac 2 -i pulse -y -f video4linux2 -s 320x240 -i /dev/video0 -vcodec libx264 -vpre fast -crf 20 /home/ihsan/test.avi
[00:41] <pasteeater> or you may need to install libavcodec-extra-53
[00:41] <pasteeater> don't use avi. it doesn't like H.264 video with b-frames.
[00:42] <pasteeater> try mp4 or mkv instead
[00:43] <inashdeen> the problem is constant with mp4 and my ubuntu says my libavcodec-extra-53 is already the newest.
[00:44] <pasteeater> your error said "decoder" and I at first read "encoder", so ignore the libavcodec-extra-53 suggestion.
[00:44] <inashdeen> is there a way not to use libx264?
[00:44] <pasteeater> "the problem is constant with mp4". what is the problem?
[00:45] <inashdeen> it shows "Unknown decoder 'libx264' "
[00:45] <pasteeater> use a pastebin site to show your ffmpeg command(s) and the complete console output(s)
[00:46] <inashdeen> http://pastebin.com/z6cKzLwC
[00:47] <pasteeater> your command is missing
[00:47] <pasteeater> include your command and the output in the paste
[00:48] <inashdeen> i cant put the command directly because it is kind of auto generated. you know, something like zenity. but i can write it manually cause i wrote the script
[00:48] <inashdeen> is it ok?
[00:49] <pasteeater> somehow you need to show whatever command you used so we can see what is wrong
[00:50] <pasteeater> it's like if you ask a mechanic what is wrong with your car, but you don't bring the car
[00:50] <pasteeater> or show the script so i can at least have something to guess with
[00:51] <pasteeater> until then i'm agreeing with sacarasc that your -vcodec libx264 placement is incorrect
[00:52] <inashdeen> http://pastebin.com/gdurfwHB
[00:53] <inashdeen> i copy this directly from the code
[00:54] <pasteeater> why not run the command directly and avoid the script until you know that the command works?
[00:54] <sacarasc> inashdeen: Change it to ffmpeg $audio $video $location/$name$format
[00:54] <sacarasc> And format really should be mkv or mp4.
[00:56] <inashdeen> amazingly that works
[00:56] <inashdeen> sacarasc: thanx amillion :)
[00:57] <sacarasc> You had an -i after -vcodec
[00:57] <inashdeen> what that suppose to mean?
[00:57] <sacarasc> All input comes before output.
[00:58] <relaxed> before tells ffmpeg to decode using that codec
[00:58] <inashdeen> ok.huhuhu. thanx will learn ffmpeg more next time.my first time using it, seriously
[00:59] <relaxed> we should ban troubleshooting scripts in here.
[01:12] <ZacS123> hows does one use the stereo3d filter? I can see the code for it, but I get a no such filter error when trying to use it
[01:20] <pasteeater> ZacS123: hard to guess without seeing your command
[01:56] <ZacS123> pasteeater: all I tried was ffmpeg -i input.mov -vcodec libx264 -vf "stereo3d" output.mp4
[02:03] <MarioMey> Hello, everybody.
[02:03] <MarioMey> I have to convert a image secuence from 0151.png to 0200.png... FFMPG doesn't accept to start in 0151...
[02:03] <MarioMey> How to do it?
[02:04] <MarioMey> trying:
[02:04] <MarioMey> ffmpeg -f image2 -i %04d.png -crf 20 -aspect 16:9 -r 30 -b 6000k -s 1024x512 out.mp4
[02:04] <sacarasc> cat *.png | ffmpeg -f image2pipe - [blah]
[02:05] <MarioMey> why image2pipe doesn't apear in doc?
[02:05] <relaxed> I'm not sure you can cat pngs unless they've fixed that recently.
[02:05] <pasteeater> ZacS123: try -vf mp=stereo3d
[02:06] <relaxed> MarioMey: If that doesn't work --> http://ffmpeg.org/faq.html#How-do-I-encode-single-pictures-into-movies_003f
[02:10] <MarioMey> relaxed: thanks...!
[02:10] <MarioMey> sacarasc: thanks you too.
[02:20] <ZacS123> pasteeater: that seemed to work, just need to figure out the arguments now to the stereo3d filter and how to feed both eyes in
[02:38] <ZacS123> pasteeater: looking at it further it doesn't look like filter is what im after, im looking to produce a side-by-side, or above-below stereo output
[02:38] <pasteeater> do you have an input for each side?
[02:44] <echelon> how do i prevent audio/video from going out of sync?
[02:44] <pasteeater> ZacS123: might not be much different than mplayer's stereo3d other than the parameters must be integers: http://pastebin.com/7ahtYJLP
[02:45] <pasteeater> echelon: check your timestamps and frame rates.
[03:00] <ZacS123> pasteeater: Is there any filter that I can use to merge 2 frames into a single frame, i.e. to create my side-by-side or above-below stereo frame?
[03:04] <relaxed> ZacS123: you can do it with the overlay filter
[03:06] <relaxed> along with the pad filter to create the "canvas" where the overlay will go
[05:30] <relaxed> ZacS123: Did you figure it out?
[05:50] <ZacS123> relaxed: I'm still working through it, I am building an app with libavcodec
[05:51] <ZacS123> im just restructuring my application now to accept a left and right input frame and use an overlay filter
[05:54] <relaxed> I have some examples if you need them.
[07:00] <grepper> making a 720x480 8000kps dvd spec mpg, what is the best filter to use to reduce pixelation in dark areas ?
[07:01] <grepper> *kb/s
[07:02] <[two]> ffmpeg is really good with single audio/video file but why does it have so much problem with splitted vob/aob files with IFO
[07:04] <relaxed> you can concat the vobs but it can't read the dvd video format if that's what you mean.
[07:06] <Xd7mT> hello
[07:11] <Xd7mT> i am used ffmpeg version 0.6.2-4:0.6.2-3 and recorded video with my webcam used huffyuv codec. ~3 hours in result 27 GB. container - mkv. result - file unplayable with vlc, but after coding it with ffmpeg2theora with 'pro' parameters (see offsite) iv got 1,6 GB (27 GB to 1,6 GB), but quality is too worst. Previously im tried to record with mpeg4 (default) codec simalteneously with recording and got ~6 GB and better (much better) quality. Only one question:
[07:13] <Xd7mT> hm. latest version seems to be a 0.8.6, but in my debian testing i have 0.6.2
[07:16] <Xd7mT> no. my version is 0.7.2
[07:20] <[two]> relaxed even if you join splitted vobs files, it still needs to understand chapter information from .ifo file
[07:22] <relaxed> [two]: you have to dump the title you want to encode before using ffmpeg. You can do it with `mplayer -dumpstream -dumpfile movie.vob dvd://`
[07:23] <[two]> relaxed if joined .vob files has 3 videos inside; and i want to just use video2 with ffmpeg ; what do i type
[07:25] <relaxed> do you still have the dvd layout somewhere?
[07:25] <[two]> dvdlayout information is located in .ifo
[07:28] <relaxed> Figure out how to play what you want to encode with mplayer. Something like `mplayer -dvd-device /path/to/dvd/dir dvd://`, then once you have that add '-dumpstream -dumpfile movie.vob' to the command. You need to google or ask in #mplayer because it's offtopic here.
[07:55] <[two]> is it possible to put closedcaptioning other than mpeg2? (closedcaptioning NOT subtitle)
[07:58] <[two]> i want to play dvd-audio (audio_ts folder) what is best player that can do this
[10:52] <w3gi> hallo... wich vcodec makes with 800k vid. br. the smallest flv-files?
[10:53] <Mavrik> um
[10:54] <Mavrik> if you set 800k video bitrate the flv file will always be the same :P
[10:54] <Mavrik> the quality will differ
[10:54] <Tjoppen> flv supports H.264, right? -> x264
[11:02] <w3gi> itry libx264 ... but i get a file with 1009KB wich i can not play in totem e.g. ...
[11:03] <Tjoppen> you probably have to use the right profile
[11:03] <Tjoppen> like main instead of hig
[11:03] <Tjoppen> h
[11:04] <w3gi> i use actually kdenlive as frontend... also to compare videos...
[11:05] <w3gi> but -vcodec flv makes 26MB files... -vcodec libx264 ca. 1MB files wich seems to be broken... is there any other codec i can use?
[11:05] <w3gi> sorry but i am a totally noob in video editing...
[11:06] <w3gi> i just try to comp. 2 short clips for our homepage...
[11:07] <w3gi> but 26 MB for 1 min. looks for me not really inet friendly
[11:07] <Tjoppen> look for an x264 encoding guide
[11:17] <w3gi> ok it seems to be problematic... Tjoppen can you tell me another codec i can try?
[11:18] <w3gi> or can someone tell me wich vcodec's i can use for a valid flv-file?
[11:19] <Tjoppen> try -vcodec flv
[11:23] <w3gi> that is the standard wich makes MB
[11:26] <w3gi> is there just flv and libx264 and no other codec?
[11:27] <JEEB> if you are making a clip to be viewable on the internet, and with flash f.ex. you will want libx264
[11:27] <JEEB> it's just hands up the best encoder (format itself is H.264) for its format, and currently it's hands up the best format for video that you want to give out to people
[11:28] <JEEB> also, totem and others probably just fail loading the file :P happens often, you might want to play your output flv/mp4 file in flash or whatever :P
[11:28] <JEEB> also, do you care about a specific file size, or quality?
[11:30] <JEEB> as in, "every video must fit 5/10MB/XMB specific" or "I will let the encoder use as much space as needed for the quality I set (more or less, since we still don't have thousands of chinese children picking our results inside the encoder)"
[11:32] <w3gi> look... vcodec flv gives me 22,5MB / min.... that is to high... libx264 gives me 1 MB / min. wich is nice but i have also problems with the flowplayer... so is there a 3rd option i can try?
[11:32] <JEEB> w3gi, you are just using stuff wrong
[11:33] <JEEB> now just tell me which option you want and I will try to help you get further
[11:33] <JEEB> also, just checking but how old is your ffmpeg?
[11:34] <JEEB> certain things have become much easier to use lately + having newer libraries is never a bad thing
[11:34] <w3gi> i use kdenlive... f=flv acodec=libmp3lame ab=128k ar=44100 vcodec=libx264 minrate=0 b=800k progressive=1
[11:34] <w3gi> wich render per ffmpeg
[11:34] <JEEB> ok, sorry -- I have no idea what exactly kdenlive does
[11:35] <JEEB> I only know how to use the command line interface of ffmpeg/avconv to a level
[11:35] <w3gi> Fmpeg version 0.6-rpmfusion, Copyright (c) 2000-2010 the FFmpeg developers
[11:35] <w3gi> built on Jul 27 2010 03:51:48 with gcc 4.4.4 20100630 (Red Hat 4.4.4-10)
[11:35] <JEEB> ouch
[11:35] <JEEB> that's megassa old
[11:35] <JEEB> go update your ffmpeg and libx264 with it
[11:36] <JEEB> and LAME / possible aac encoding library while you're at it
[11:38] <JEEB> of course kdenlive might be retarded and need a specific ffmpeg version, so it might be that you might not be capable of doing anything with it. In that case I'd just build a newer ffmpeg and friends into my home folder -> output a lossless ffvhuff + PCM avi or something for the actual encoding
[11:38] <w3gi> ffmpeg-0.6-3.fc13 is the newest version
[11:38] <JEEB> for your distro version, could be
[11:38] <JEEB> it's by far not the newest in the real world tho
[11:39] <JEEB> welcome to "Distros never keep up", which is more problematic in multimedia stuff
[11:39] <JEEB> anyways, whatever was that -acodec format for 16bit 48kHz audio >_>
[11:40] <JEEB> w3gi, so yeah -- I recommend that you output your clip as a lossless AVI first
[11:40] <JEEB> then it can be encoded into whatever lossy format for distribution with a newer build of ffmpeg
[11:41] <JEEB> Because to get a good result from an older ffmpeg, not to mention that it's some weird API being used
[11:41] <JEEB> is much much harder
[11:41] <w3gi> JEEB, ok maybe... but before i start a stunt with x updetes and and and... maybe i can try another codec i just need 2 videos... that is all and i dont plan in the future more stuff like that
[11:41] <JEEB> and sometimes not possible :P
[11:41] <JEEB> w3gi, uhhh
[11:41] <JEEB> have you been reading at all?
[11:41] <JEEB> what I have been writing?
[11:42] <w3gi> yes i read
[11:42] <JEEB> I'm just telling you "Because you probably don't want to touch your distro too much, you might want to build a newer ffmpeg/libx264/LAME/faac|whatever into your home directory, and just output a lossless intermediate file from kdenlive"
[11:43] <JEEB> because unfortunately I'm not really capable or wishing to take you through all the possible quirks of using a lolold version of ffmpeg :3
[11:43] <JEEB> (and yes, that settings part you showed me got quite lulzy after the vcodec part)
[11:44] <JEEB> kdenlive -> lossless ffvhuff/PCM file -> encode final clip with newer tools
[11:46] <JEEB> so uhm, does this sound alright or do you want to keep banging your head onto something?
[11:47] <w3gi> ok... i will try... would be just easier when i would had generally an idea what i do.... :D
[11:47] <w3gi> i never have any contact with video editing... :(
[11:47] <JEEB> uhh
[11:47] <JEEB> why do I "ok... I will try..." for a question "does this sound alright"?
[11:48] <JEEB> *why do I get
[11:48] <JEEB> I'd like a yes/no answer so I know if I can ignore this channel or not for a while :3
[11:49] <w3gi> ok last question aac is ok for audio in flv or should i use mp3?
[11:50] <JEEB> yes, you clearly don't read what I write
[11:50] <JEEB> and that depends on flash
[11:50] <JEEB> you can put aac into flv
[11:50] <JEEB> but I mostly see it in mp4 with flash
[11:50] <JEEB> (although yes, lately in rtmp streams etc. there's aac-in-flv so I guess it supports it)
[11:52] <w3gi> i read it but i mean what is better... that this sure run... can also depends on the player version i think...
[11:52] <JEEB> I think pretty much everyone by now has a flash player version that can take H.264/AAC
[11:53] <JEEB> <w3gi> i read it but i mean what is better... that this sure run... <- also what does this mean
[11:54] <Mavrik> Adobe claims you should use H.264/AAC in flash anyway
[11:54] <w3gi> ok... i was trying to export a avi how you told and use ma old ffmpeg co convert to flv and get now a 1,5MB file ... wich looks nice...
[11:54] <JEEB> you're a trainwreck -.-
[11:55] <w3gi> i go ahead and try it in flowplayer... maybe the prob. was just in kdenlive
[11:55] <JEEB> Mavrik, also -- is it in your opinion so hard to grasp from my text that I might actually tell him how to do most stuff if he only told me what exactly he wanted, starting from the "do you care about specific size or quality" part?
[11:56] <JEEB> s/tell/hold his hand/
[11:57] <Mavrik> well
[11:57] <Mavrik> JEEB, nope, but if he doesn't read what you write then I can see how there could be a communication problem ;)
[11:57] <JEEB> Indeed
[11:58] <JEEB> I should probably do something productive
[13:10] <w3gi> JEEB, i see now what i need... that is exact what i want:
[13:10] <w3gi> video: ffmpeg Flash Video (FLV) Sorenson Spark / Sorenson H.263 / ffenc_flv -> 800K
[13:10] <w3gi> audio: L.A.M.E. mp3 encoder - 196k 48000
[13:10] <w3gi> just how to set this... ??
[13:10] <cryptopsy> WHAT?
[13:12] <w3gi> i get this settings from another programm...
[13:12] <cryptopsy> OKAY, SO WHAT DO YOU WANT TO DO?
[13:12] <w3gi> cryptopsy, i want to use this settings for a flv file... i hope someone know what this mean...
[13:12] <vivienschilis> is libvpx git master branch stable?
[13:13] <cryptopsy> CHECK THE DESCRIPTION, BRO
[13:13] <cryptopsy> w3gi: ARE YOU CONVERTING BETWEEN TWO FORMATS?
[13:13] <cryptopsy> I JOINED AFTER YOU ASKED THE ORIGINAL QUESTION, I THINK
[13:13] <w3gi> yes... avi -> flv
[13:14] <cryptopsy> OK YEA ITS PRETTY EASY, CHECK OUT THE EXAMPLES ON EHOW.COM
[13:14] <w3gi> audio should be lame mp3 196 / 48000
[13:14] <cryptopsy> USE -ACODEC COPY
[13:14] <w3gi> but wich -vcodec is Sorenson Spark / Sorenson H.263 ??
[13:15] <cryptopsy> SET IT ON YOUR INPUT FILE AND USE -ACODEC CPOY
[13:15] <cryptopsy> -ACODEC COPY
[13:15] <w3gi> the input is much bigger
[13:15] <cryptopsy> YEA ...
[13:16] <cryptopsy> -umv and -aic are the only ones that have 263 in the name, in the entire man page
[13:46] <cryptopsy> w3gi: see you around
[13:50] <burek> w3gi, type ffmpeg -codecs | grep -i h263
[14:03] <w3gi> burek, i get this:
[14:03] <w3gi> DEVSDT h263 H.263 / H.263-1996
[14:03] <w3gi> D VSD h263i Intel H.263
[14:03] <w3gi> EV h263p H.263+ / H.263-1998 / H.263 version 2
[14:04] <burek> well you can try either h263 or h263p
[14:04] <burek> since they are (E)ncoders
[14:04] <burek> produce an output
[14:05] <burek> and check if it has properties you need
[14:05] <fj_> hi everyone
[14:05] <Guest90795> everyone high
[14:05] <fj_> I'm trying to upgrade ffmpeg library
[14:06] <burek> ok, and :)
[14:08] <burek> fj_, and? :)
[14:09] <fj_> well in my old code I did memcpy(triPkg->encDataBuffer(), packet.data, packet.size); and it works
[14:09] <fj_> but now avcodec_decode_video2 takes a whole packet instead of packet.data
[14:09] <fj_> so when I do memcpy(triPkg->encDataBuffer(), &packet, packet.size);
[14:09] <fj_> it sometimes works but sometimes gives a segmentation fault
[14:10] <fj_> is packet.size the size of the whole packet? or just packet.data
[14:11] <burek> i guess whole packet
[14:11] <burek> wouldn't make sense to be just for data
[14:12] <burek> http://ffmpeg.org/doxygen/trunk/files.html
[14:12] <w3gi> crash with this settings: f=flv acodec=libmp3lame ab=192k ar=48000 vcodec=h263p minrate=0 b=800k progressive=1
[14:13] <burek> fj_ http://ffmpeg.org/doxygen/trunk/libavcodec_2utils_8c.html#eb2441bb9d76c881fc86a0085b2f13d2
[14:14] <burek> w3gi
[14:14] <burek> can you please use pastebin.com, to show your command line and its output?
[14:18] <fj_> thanks but decoding works fine if it doesn't segfault at memcpy
[14:20] <burek> i guess it works out of luck
[14:20] <burek> since the params changed too
[14:20] <burek> its not packet.size anymore
[14:20] <burek> read more carefuly
[14:21] <burek> anyway
[14:21] <burek> did you read the docs what is triPkg->encDataBuffer()
[14:21] <burek> did you try with just memcpy(triPkg->encDataBuffer(), &packet.data, packet.size);
[14:21] <burek> packet.data.size
[14:27] <fj_> packet.size didn't change
[14:28] <fj_> also doesn't really matter what size I use
[14:31] <fj_> but thanks anyway : )
[14:31] <fj_> guess i will stick with the old ffmpeg
[14:53] <Xd7mT> im determined why my video quality was worst. im forgot to set bigger resolution
[14:53] <Xd7mT> what resolution is recommended in capture?
[14:54] <Xd7mT> hd420 is good?
[14:54] <Xd7mT> 480
[14:56] <relaxed> Xd7mT: what was your command?
[14:58] <Xd7mT> ffmpeg -f video4linux2 -i /dev/video0 -s hd480 -r 25 -vcodec huffyuv filename.mkv
[14:58] <burek> move -s before -i
[14:59] <burek> you want to set size of the capture and not to resize an already captured frames
[14:59] <burek> the order of parameters is important
[14:59] <burek> :)
[15:00] <Xd7mT> its very strange but after my calculations video with length ~3 hours must weight 70 GB, but in fact result weight ~24 GB. Ist it cool?
[15:00] <burek> Xd7mT what exactly are you trying to do?
[15:01] <Xd7mT> im capture video from webcam
[15:03] <burek> and?
[15:05] <burek> Xd7mT and do what with it?
[15:07] <Xd7mT> i am used latest ffmpeg2theora with -p pro option and got not good quality in time when ffmpeg -f video4linux2 ...... [no '-vcodec' option] gives better quality. default codec is mpeg4
[15:08] <Xd7mT> but i wont mpeg. its proprietary, maybe its not fine
[15:08] <burek> i see
[15:08] <burek> try this
[15:09] <burek> ffmpeg -f video4linux2 -s vga -r 25 -i /dev/video0 -vcodec libx264 -crf 20 out.mp4
[15:09] <burek> or .mkv instead of .mp4
[15:09] <Xd7mT> sorry, but h264 propryetary isnt it?
[15:11] <burek> libx264
[15:12] <burek> a free variant of h264
[15:12] <burek> http://www.videolan.org/developers/x264.html
[15:12] <JEEB> lawl
[15:12] <JEEB> H.264 is still H.264
[15:13] <JEEB> so if this person actually cares about not using MPEG formats, then nothing can be done about it
[15:13] <JEEB> unfortunately both theora and vp8 are worse off than H.264 compression-wise, but that's how it rolls :P
[15:13] <JEEB> oh, and there's dirac and snow as well, but those are...
[15:13] <JEEB> "experimental", shall we say
[15:13] <JEEB> (as well as snow being 'dead')
[15:14] <burek> i mean its free as encoder
[15:14] <burek> h264 is just a format
[15:14] <burek> o gosh
[15:14] <JEEB> yes, but he asked "proprietary"
[15:14] <burek> just ignore me
[15:14] <relaxed> libvpx is the pinko commie codec of choice
[15:14] <burek> :)
[15:34] <niro> Hi, is there a way to make ffmpeg output 2 files. And by output 2 files, i mean, save a local copy and also create a stream for ffserver?
[15:35] <burek> not right now
[15:35] <burek> but you can try to use
[15:36] <burek> udp as an output
[15:36] <burek> and duplicate it
[15:36] <burek> send one stream to a file and another to a streaming server
[15:36] <burek> or use vlc
[15:39] <niro> so, if i wrote a little program and specified an output file for ffmpeg, and then piped the output too my program, which then duplicated it, would that work?
[15:40] <niro> s/too/to/
[15:40] <burek> hmh
[15:40] <burek> the main problem is
[15:40] <burek> you'll have to make your stream packetized
[15:41] <burek> i.e. if you just pipe the output to your program
[15:41] <burek> it will have to wait until all of the stream data is piped/transfered to your program
[15:41] <burek> in order for it to read the metadata
[15:41] <burek> which usually comes at the end
[15:41] <niro> it would be a live stream... so that wouldnt work
[15:42] <burek> well
[15:42] <niro> could i pipe a live stream back into ffmpeg?
[15:42] <burek> i'm not sure, i couln't make it in several months without udp or vlc
[15:43] <burek> so if you find the way, I'll be more than glad to see an example :)
[15:43] <burek> you can pipe video back and to ffmpeg
[15:43] <niro> when you say video, do you mean video exclusively, because this is 100 audio
[15:43] <niro> 100%
[15:43] <burek> i guess you need something like capture - split < file, stream
[15:44] <burek> hmh
[15:44] <burek> you know what you could do
[15:45] <burek> capture audio with ffmpeg, feed that to a media streaming server (like shoutcast or http server like ffserver)
[15:45] <burek> and just use another instance of ffmpeg to connect to media server and get/save the stream to a file on localhost
[15:46] <niro> i think that could be a brilliant idea...
[15:46] <niro> my own worry is...
[15:46] <niro> *only
[15:47] <niro> im developing for an embedded system, im already having to do live encoding, then serving from the system and then i'll have to reencode to save it as it'll be an flv
[15:47] <niro> im just hoping there's enough cpu to go around
[15:50] <relaxed> niro: you can have two outputs. did you try it?
[15:51] <niro> no, how would i specify it? -o file -o file2?
[15:53] <relaxed> ffmpeg -i input.wav -acodec libmp3lame -ab 128k output1.mp3 -acodec libmp3lame -ab 256k output2.mp3
[15:58] <niro> ffmpeg -f alsa -i hw:0,1 -acodec libspeex -f flv rtm:/some/stream/ -acodec libspeex file.spx
[15:58] <niro> would that work?
[15:59] <relaxed> give it a whirl
[16:00] <niro> cool, thanks for your help :)
[16:00] <relaxed> maybe the last output should be file.flv
[16:01] <niro> the local copy needs to be a .spx file really too keep the size to a minimum
[16:12] <burek> well, the 2 outputs example above actually uses double the cpu
[16:12] <burek> i think he wanted to use 1 process for encoding and split the work to (1) save to a file and (2) stream it live
[16:13] <burek> so, actually the muxing part needs to be done in 2 ways, not encoding
[16:27] <relaxed> burek: you could use tee
[16:29] <burek> hardly
[16:29] <burek> try to make a simple example command line, meaning, grab the audio/video from a webcam, split it with tee and save it / stream it to, say udp or ffm
[16:32] <relaxed> Would this not work? ffmpeg -i .... -f flv - 2>/dev/null | tee local.flv | ffmpeg -f -flv -i - -vcodec copy -acodec copy output
[16:34] <burek> well, the 2nd ffmpeg would wait until 1st one finishes
[16:34] <burek> and then would do vcodec copy and ..
[16:34] <burek> try without tee to pipe it like that
[16:35] <burek> heck, ill try it now :)
[16:36] <relaxed> I don't believe there would be any waiting
[16:50] <relaxed> burek: works fine here
[17:07] <bf4648> no one is chatting is this room?
[17:30] <clockwize> hey, is 30fps hdmi good enough to watch movies?
[17:31] <relaxed> should be
[17:32] <clockwize> for a media centre, that's good enough?
[19:00] <francogrex> Hi, I am trying this but it fails: ffmpeg -i D:/VIDEO_TS/VTS_02_2.VOB -ss 2138 -qscale 7 -vcodec libxvid -s 640x360 -r 23.976 -aspect 16:9 -ab 128k -ar 48000 -async 48000 -ac 2 -acodec libmp3lame -f avi -g 300 -bf 2 output.avi
[19:01] <francogrex> ffmpeg just quits without any output... anyone has an idea why?
[19:10] <francogrex> ?
[19:11] <relaxed> '-async 48000' needs to go
[19:11] <relaxed> pastebin your command and all output if that doesn't help
[19:12] <relaxed> I'm not sure if qscale woarks with libxvid
[19:12] <relaxed> works*
[19:14] <francogrex> relaxed: please see: http://paste.lisp.org/display/126163
[19:15] <relaxed> try with -ss 2138 before the input
[19:20] <francogrex> gives me: Error while decoding stream #0.1 and outputs a 10k file with nothing
[19:20] <francogrex> -ss used to work fine with outher than .vob input
[19:23] <beandog> did you actually decrypt the CSS on the dvd?
[19:23] <beandog> It looks to me like you're trying to access it directly
[19:24] <francogrex> beandog: i don't think that's the problem because without -ss the same command above works very fine
[19:35] <francogrex> actually -ss 30 (or any small number) also works fine; it's when it goes to large numbers that it bugs
[19:37] <pasteeater> your original -ss number was longer than your input duration
[19:37] <pasteeater> if you used a more recent ffmpeg it would have told you to check your -ss
[19:38] <pasteeater> i don't see this happen often, but this is the third time in a week or so.
[19:38] <francogrex> pasteeater: ! that's probably it... something weird with my VOB file starts not at 0 but at 25 min! ok sorry guys
[19:39] <francogrex> it's solved
[20:00] <burek> relaxed, just tried it, works with default vcodec (when i dont specify anything), but doesn't work with h264.. :S
[20:05] <burek> ffmpeg -f video4linux2 -s qvga -i /dev/video0 -f alsa -ar 44100 -i hw:0 -f flv - 2>/dev/null | tee local.flv | ffmpeg -f flv -i - -vcodec copy -acodec copy -f mpegts udp://burek:10001
[20:05] <burek> thats the command i used
[20:05] <burek> vlc can play only audio
[20:05] <burek> no video :/
[20:10] <newl> good to see you got rid of that iive clown
[21:56] <Mista-D> how do I checkout "ffmpeg version N-34031-ge403a97" from git? `git checkout ge403a97` didn't work.
[21:57] <newl_> git clone git://git.videolan.org/ffmpeg --depth 1
[21:57] <newl_> vat i useth
[21:57] <newl_> why not get the latest?
[21:58] <Mista-D> newl_: I need that specific version since it works in one particular instance for me.
[21:58] <Mista-D> newl_: its a win32 bin that works. I want to build in in RHEL now.
[21:59] <newl_> what is the problem ,,, issue? maybe it should be fixed?
[21:59] <Mista-D> newl_: I get vertical lines (barely visible) in Linux and no lines in Windows. (MPEG2 -> x264)
[22:00] <JEEB> Mista-D, the revision string after the number is a part of the sha-1 hash of the commit used
[22:00] <JEEB> oh
[22:00] <JEEB> that checkout should in theory work...
[22:01] <JEEB> oh wait
[22:01] <JEEB> git reset -hard ge403a97
[22:01] <JEEB> this should do it
[22:01] <JEEB> *--hard
[22:02] <Mista-D> JEEB: "fatal: ambiguous argument 'ge403a97': unknown revision or path not in the working tree."
[22:04] <Mista-D> JEEB: can I use version number? N-34031?
[22:04] <JEEB> no
[22:04] <JEEB> what's your git --version btw?
[22:04] <Mista-D> 1 hour ago
[22:04] <Mista-D> oh sorry..
[22:05] <Mista-D> its 1.7.4
[22:05] <JEEB> hmm
[22:06] <Mista-D> I'll bump it up to 1.7.7, just a sec.
[22:06] <sacarasc> ge403a97 isn't the full thing, though...
[22:07] <JEEB> well, I remember using short hashes with some repo tho...
[22:07] <JEEB> is there an easy way to grep the full hash?
[22:07] <JEEB> git log I guess
[22:08] <JEEB> git log|grep "ge403a97"
[22:08] Action: newl_ wonders how he knows he won't have the problem in the 'linux' version
[22:10] <clockwize> is 30fps good enough for smooth video playback?
[22:11] <Mista-D> newl_: I assume they operate similarly if all lib versions and configure are the same.. ?
[22:12] <sacarasc> clockwize: PAL is 24fps.
[22:12] <newl_> lots of parts/things going into compiling ffmpeg - are you doing ALL the parts from same source ? using mingw?
[22:13] <sacarasc> Or was it 25...
[22:13] <sacarasc> NTSC is only 30000/1001!
[22:13] <Mista-D> I'll use same FFmpeg and x264 versions, don't need the rest.
[22:13] <clockwize> sacarasc: 29?
[22:13] <clockwize> ok, that's cool then..
[22:13] <sacarasc> 29.97....
[22:14] <sacarasc> Though that is rounded.
[22:14] <pasteeater> newl_: i don't think a shallow repository with --depth 1 can checkout a previous hash...maybe.
[22:14] <clockwize> indeed
[22:14] <clockwize> .
[22:14] <newl_> pasteeater: i just use if for all new source each time
[22:15] <pasteeater> yes. it's fine for that.
[22:15] <pasteeater> if i understand you correctly
[22:15] <newl_> :)
[22:18] <pasteeater> Mista-D: how can we duplicate the vertical line issue? it would be nice to see which revision causes this if it's a regression.
[22:22] <Mista-D> pasteeater: adding all info to a doom10 post. just a sec.
[22:28] <newl_> vertical line ? sounds more like something scrapping some of the bits off as it goes through the projector
[22:46] <dericed> I'm trying to copy selected tracks from an input mxf to an output mxf. The input has 1 video, 8 audio, and 1 data track. I need the output to contain 1 video, 2 audio and 1 data track, so I'm using the -map option to specify the tracks and -c copy to copy them. However I get an error everything I try to copy the data stream, "Could not write header for output file #0 (incorrect codec parameters ?)" http://pastebin.com/czA2t53A
[22:46] <dericed> Is it possible to copy data stream? I saw this commit, http://git.videolan.org/?p=ffmpeg.git;a=commit;h=e3b540b42464395eadbc42b87331589e2e9e4301, but perhaps it doesn't help me.
[22:49] <Mista-D> pasteeater: http://doom10.org/index.php?topic=2034.0 -- vertical lines noise.
[23:18] <burek> dericed1, use -dcopy
[23:18] <burek> wait
[23:19] <burek> dericed1, your -map is wrong
[23:20] <burek> instead of 0:0 use 0.0
[23:21] <burek> crap.. its the same
[23:21] <burek> 0:0 is the same as 0.0
[23:37] <newl_> o^O
[00:00] --- Wed Nov 30 2011
More information about the Ffmpeg-devel-irc
mailing list