[Ffmpeg-devel-irc] ffmpeg.log.20120730
burek
burek021 at gmail.com
Tue Jul 31 02:05:01 CEST 2012
[00:00] <Shimmy> Anyone please help: https://ffmpeg.org/trac/ffmpeg/ticket/747
[00:02] <daniel___> Hello
[00:03] <daniel___> Can I please have some help?
[00:08] <daniel___> I have a problem with my ffmpeg it is when I try to upload my videos to youtube they play fine on my computer but on youtube they are displayed as a grey box whats the reason for this? can it be fixed? thanks :)
[00:11] Last message repeated 1 time(s).
[00:11] <burek> ask youtube?
[00:12] <daniel___> I thiink it maybe somthing to do with the encoding from ffmpeg I have googled and cant find a fix that why I asked you guys :)
[00:13] <frogs> probably encoding it into a codec/container that youtube can't handle
[00:15] <daniel___> This is the code im using tell me what I need to tweak to make it work please: :) ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1024x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 myvideo.mkv then after the recording i type this for the encoding: ffmpeg -i myvideo.mkv -acodec libfaac -ab 128k -ac 2 -vcodec libx264 -preset slow -crf 22 -threads 0 our-final-product.mp4
[06:05] <Buglouse> I want to censor the -bleep- censorship, does ffmpeg provide a capability to pass a file through a filter removing the specific tones?
[06:21] <relaxed> unbleep the bleeps!
[06:22] <relaxed> I'm pretty sure that's not possible with ffmpeg.
[06:24] <michaeljwjr> Is it possible to write a script that can play one file, then another file when streaming without losing the stream? I want to play an intro, then jump into the stream. Thank you in advance.
[06:26] <Buglouse> wget/mplayer dumpfile/dumpstrem
[06:26] <relaxed> michaeljwjr: it might be possible with -i concat:
[06:27] <soulstitchmmo> ok i'll look that up later. Thank you relaxed.
[08:34] <axtroz> Greetings. I'm using FFMPeg to create videos from images on windows. I need to create a blank audio stream with that because the initial video is concated to another video that has audio, but the audio stream is getting lost and the second video has no sound. I red that under *nix and linux one can use /dev/zero. Is there any alternative for windows? NUL and NULL doesn't work :(
[11:16] <twid> How guys.....Whats the use of avfilter in ffmpeg...Thanks in advance...
[12:01] <rjiejie> hi, i'm a newbie, someone knows about that which file is the "mp4" demuxer in ffmpeg source code ? thanks
[12:34] <twid> rjiejie : its libavformat/mov.c for demuxing and libavformat/movenc.c fro muxing... I hope this is what you looking for..
[12:56] <burek> twid
[13:11] <rjiejie> twid: thanks for your help :)
[13:19] <twid> NO prob...
[14:50] <liquidee> is it possible to stream hardware video encoder's MPEG-4 output to ethernet? how can i achieve this with ffmpeg?
[15:21] <someone-noone> liquidee, sure. Use tcp://hostname:port or udp://hostname:port as output filename
[15:26] <liquidee> avconv -i /dev/video4 -codec copy -b 64k -r 25 -f h264 rtp://192.168.0.116:5004
[15:26] <liquidee> is this correct? because im getting black screen on the receiving laptop
[15:28] <liquidee> heres the output:
[15:28] <liquidee> http://pastebin.com/Ty6bZ71S
[15:29] <saste> liquidee: no you can't read from /dev/video4 that way, you need v4l2
[15:30] <saste> also you're using avconv, here we support ffmpeg
[15:30] <liquidee> using ffmpeg says its deprecated and that i should use avconv instead
[15:31] <liquidee> how can i read it with v4l2?
[15:31] <microchip_> that's a lie
[15:31] <saste> liquidee: ffmpeg is deprecated only according to debian
[15:31] <liquidee> oh
[15:32] <saste> liquidee: http://ffmpeg.org/ffmpeg.html#video4linux2
[15:32] <liquidee> is there any option to command ffmpeg to use v4l2?
[15:37] <saste> liquidee: yes read the examples in the linked document
[15:38] <liquidee> Requested output format 'video4linux2' is not a suitable output format
[15:38] <liquidee> : (
[15:54] <liquidee> what about:
[15:54] <liquidee> avconv -v debug -f video4linux2 -i /dev/video4 -codec copy -f h264 rtp://192.168.0.116:5004
[15:55] <bogie> is there any way to access the list of available devices(e.g. dshow devices) via the ffmpeg api directly? as in not printing them to the console, i know setting the list_devices option will print it, but i want to have the list rather than the output. cheers
[16:37] <intgr> Hi! Are there any instructions for migrating from deprecated API calls in ffmpeg, such as the av_open_input_file -> avformat_open_input change?
[16:39] <saste> intgr: usually doxy tells you the replacement
[16:39] <saste> usually it's just a rename, or an added (optional) params
[16:39] <saste> *param
[16:40] <intgr> Hmm
[16:42] <intgr> http://ffmpeg.org/doxygen/trunk/deprecated.html doesn't list av_open_input_file for example... Am I looking at the right place?
[16:44] <intgr> Ok, av_open_input_file is already removed (not deprecated) in recent versions...
[16:49] <twid> intgr: for that best thing to do is checkout sourcecode...
[16:50] <intgr> Looks like it's easier to just freeload Chromium commits for conversion examples ;)
[16:51] <twid> Source says about av_open_input_file: "deprecated use avformat_open_input instead."
[16:52] <intgr> Ok thanks :)
[17:11] <intgr> And I take it that it's not documented anywhere, what version macros I should use for these API calls?
[17:29] <twid> intgr : version.h shows 0.10.2
[17:49] <w34> Hi, I am currently trying to port the simple field filter from libmpcodecs
[17:50] <w34> and ran into an issue with some mplayer flag
[17:51] <w34> Posted my code on pastebin: http://pastebin.com/KjRYXmyM
[17:55] <saste> w34: please post development issues on ffmpeg-devel
[17:56] <saste> anyway the mp fields are useless in ffmpeg
[17:58] <saste> w34: if you want to support only planar formats, you should accept only planar formats
[17:58] <saste> that is you need to declare in query_formats the accepted formats
[17:59] <w34> alright
[18:00] <w34> so query_format is pretty much the right way to implement the flag thingy
[18:04] <bogie> is there any way to access the list of available devices(e.g. dshow devices) via the ffmpeg api directly? as in not printing them to the console, i know setting the list_devices option will print it, but i want to have the list rather than the output. cheers
[18:07] <saste> bogie: no there is no such API for querying the devices
[18:08] <bogie> hmm imho thats a major defect for my purpose, i do not want to deal with the winapi to get a list of devices, would be better if ffmpeg would list those, as it does in dshow_cycle_devices
[18:09] <saste> bogie: designing a *generic* interface for that would prove to be rather difficult, since it should work with all devices, that is it should be generic enough
[18:09] <saste> anyway patches are welcome
[18:10] <bogie> i suspected that ;)
[18:53] <gionnico> hi
[18:54] <gionnico> can I concatenate mpeg2 files with ffmpeg ?
[19:09] <twid> gionnico : yes..and Google gives "cat abc.mpg def.mpg | ffmpeg -f mpeg -i - -vcodec copy -acodec copy ghi.mpg"
[19:12] <sacarasc> You can concatenate multiple mpeg2 files using cat a.mpg b.mpg > c.mpg
[19:53] <relaxed> The correct way is -i concat:a.mpg\|b.mpg -c copy
[21:05] <filo1234> Hi all, can someone exlplain me how to convert a video theora .ogg to 3gp mobile format? I have git version of ffmpeg compiled
[21:08] <filo1234> well problem was zixe and audio bitrate
[21:09] <filo1234> sorry :) and bye
[21:27] <blight> hi guys
[21:27] <blight> i have a movie with an mp3 audio stream which is strange
[21:29] <blight> the time base of the audio stream is 1/19983 and the pts seems to slowly drift away from the real time
[21:30] <blight> i count how many samples i get from the decoder and i calculate the sample position from the time base and pts, i think some rounding errors accumulate so the pts is a bit too slow/fast
[21:30] <blight> i guess there is no way to fix this?
[21:30] <blight> because after seeking i have to trust the pts
[21:30] <blight> (to know where the audio stream is and to sync it with the video)
[21:31] <blight> any ideas/input on this problem?
[22:01] <fabiobik> hello guys. i want to stream my webcam via internet.
[22:02] <fabiobik> i have a trust webcam lsusb gives me this:
[22:02] <fabiobik> Bus 001 Device 005: ID 093a:2468 Pixart Imaging, Inc. SoC PC-Camera
[22:02] <fabiobik> and my dmesg is
[22:02] <fabiobik> just a second
[22:03] <fabiobik> http://pastebin.com/1ghNMAVv
[22:03] <fabiobik> can please someone help me streaming?
[22:07] <llogan> fabiobik: http://ffmpeg.org/ffmpeg.html#video4linux2
[22:07] <llogan> https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20capture%20a%20webcam%20input
[22:08] <fabiobik> llogan, thank you for your reply. Im trying using an raspberry to a webcam streamer
[22:18] <fabiobik> llogan, i guess video4linux dont have support to my webcam
[22:21] <llogan> fabiobik: sorry, i have little experience with webcams.
[22:21] <fabiobik> llogan, dont worrie, thanks
[22:22] <llogan> someone else might know if you provide more info
[22:22] <fabiobik> llogan, im completly noob. what command i should use?
[22:27] <llogan> fabiobik: do you know the device path? "/dev/videoN" probably /dev/video0
[22:28] <fabiobik> llogan, well i guess so. it appears on dmesg?
[22:28] <fabiobik> http://pastebin.com/1ghNMAVv
[22:28] <Element9> I'm trying to record the screen with sound and I can get a got video or good audio, but I record both, audio is too fast
[22:29] <Element9> here are command I'm using: http://pastebin.com/KWD28n3Q
[22:29] <Element9> am I doing something wrong?
[22:32] <llogan> fabiobik: i don't know. try ffmpeg-user mailing list if you don't get an answer here today
[22:33] <relaxed> Element9: try setting a framerate before the input
[22:34] <relaxed> also, don't use avi as the output container.
[22:37] <stampe> any experience here in reading the base media header for timecode data?
[22:37] <Element9> relaxed: what do you mean by "before the input"? is the paramter order important?
[22:37] <relaxed> yes it is, -r 25 -i $input
[22:38] <Element9> relaxed: oh yeah, I do need mp4, not avi, but with mp4 the audio is chopy
[22:38] <Element9> relaxed: where can I read about how the order of parameters afect the meaning of the parameter?
[22:38] <Element9> relaxed: and thanks for helping me
[22:39] <relaxed> no problem, the man page is good
[22:39] <Element9> relaxed: it seems like it's not faster when audio plays but it's stutters
[22:40] <Element9> relaxed: can ffmpeg.exe produce the same text as "man ffmpef"? I'm Windows
[22:40] <Element9> well, there's surely man page for it on the net
[22:44] <Element9> and i get tons of these messages "real-time buffer 142% full! frame dropped!"
[22:44] <relaxed> Element9: http://dl.dropbox.com/u/24633983/ffmpeg.pdf
[22:49] <Element9> is there a specific section that you recommend which could help me with sync problems? or should I just sit down and go through all of it? :)
[22:49] <relaxed> Hmm, do you really need lossless?
[22:50] <relaxed> Try lowering the input frame rate to 15 or 20.
[22:51] <Element9> relaxed: no I don't, I just thought that would be more cpu friendly and less prone to choppiness
[22:51] <Element9> let me try that
[22:51] <relaxed> and -crf 18
[22:51] <fabiobik> annot find a proper format for codec_id
[22:51] <fabiobik> *C
[22:52] <relaxed> fabiobik: pastebin your command and all output
[22:53] <fabiobik> relaxed, oh sorry
[22:53] <fabiobik> one second
[22:53] <llogan> generally lossless is used for the capture and then re-encode later to take advantage of lossless capture speed
[22:53] <fabiobik> relaxed, http://pastebin.com/VvkdNDjH
[22:54] <Element9> relaxed: same result, unfortunately
[22:54] <relaxed> fabiobik: -f avconv ?
[22:55] <fabiobik> relaxed, wot?
[22:55] <llogan> Element9: remove -b 500k. it won't make a difference since it's probably being ignored, but it's mutually exclusive when used with -crf
[22:55] <relaxed> llogan: Yeah, I was thinking lossy might be faster and less choppy.
[22:56] <Element9> llogan: that's exactly what I'm trying to do. I would like to do realtime compression, but I'm not sure if it's doable with x264 on doable on 2.1ghz dual core cpu. is it?
[22:56] <fabiobik> relaxed, sorry not understand the question
[22:56] <relaxed> fabiobik: Are you using linux?
[22:56] <fabiobik> relaxed, yes :)
[22:56] <llogan> Element9: i know nothing of dshow, so i don't know.
[22:57] <fabiobik> in my laptop its only linux
[22:57] <Element9> llogan: I wouldn't expect dshow to be bottleneck there, but, of course, I'm not sure
[23:00] <fabiobik> relaxed, do you know how do i solve this?
[23:00] <Element9> relaxed: it looks like dshow uses -framerate instead of -r. or are those unrelated?
[23:01] <relaxed> fabiobik: for the audio you probably want "-f alsa -i hw"
[23:01] <fabiobik> if i use this avconv -t 10 -f video4linux2 -s 176x144 -r 30 -i /dev/video0 -f avconv -i /dev/dsp1 -f mpeg webcam.mpeg
[23:01] <fabiobik> relaxed, i dont want audio
[23:01] <fabiobik> just image
[23:02] <relaxed> then omit "-f avconv -i /dev/dsp1"
[23:02] <relaxed> I'm guessing you don't want mpeg1 either.
[23:03] <fabiobik> i just want to test my webcam :)
[23:03] <fabiobik> record something
[23:04] <relaxed> fabiobik: avplay -f video4linux2 -i /dev/video0
[23:05] <fabiobik> relaxed, i dont have graphic display
[23:05] <fabiobik> *graphical desktop
[23:06] <relaxed> fabiobik: avconv -f video4linux2 -r 15 -s 640x480 -i /dev/video0 -q:v 3 -y out.avi
[23:07] <fabiobik> video4linux2 @ 0x105b400] The V4L2 driver changed the video from 640x480 to 352x288
[23:07] <fabiobik> [video4linux2 @ 0x105b400] Cannot find a proper format for codec_id 0, pix_fmt -1.
[23:07] <fabiobik> /dev/video0: Input/output error
[23:07] <fabiobik> :S
[23:07] <fabiobik> my problem is with codecs?
[23:08] <fabiobik> this is a little weird
[23:09] <relaxed> Add "-pix_fmt yuyv422" before the input, and stop pasting the error in the channel. Use pastebin.com
[23:09] <fabiobik> sorry
[23:10] <fabiobik> relaxed, before the input?
[23:10] <relaxed> yes
[23:10] <fabiobik> before webcam?
[23:11] <relaxed> -i = input
[23:11] <fabiobik> same error
[23:13] <relaxed> change the resolution to -s 352x288
[23:14] <fabiobik> same...
[23:15] <fabiobik> avconv -f video4linux2 -r 15 -s 352x288 -pix_fmt yuyv422 -i /dev/video0 -q:v 3 -y out.avi
[23:15] <fabiobik> its what im trying
[23:15] <relaxed> remove -pix_fmt yuyv422
[23:16] <fabiobik> :\
[23:16] <fabiobik> same error
[23:16] <fabiobik> relaxed, thank alot for your help man but appears nothing solve this
[23:18] <Element9> just tried: just tried http://pastebin.com/mynFTCYx with the same result as always. CPU is not maxing out and wasn't maxing out on any of the command I tried
[23:18] <Element9> maybe there's something from with video and/or audio devices
[23:18] <Element9> they do work good separately though
[23:21] <Element9> does this work for anyone? with appropriate linux video/audio sources, of course. I guess everyone is on linux here
[23:22] <Element9> I mean with settings like this
[23:33] <vitrums> Hi there. I'm running ubuntu 12.04 and I recently made some changes in my compiz and unity settings. Then brought all the changes back to the fabric. The problem is that ffmpeg is encoding with 2x speed. What could be the reason of it?
[23:34] <Element9> good night everyone
[23:35] <piie> hi, I've got a problem with streams when remuxing a video: http://nopaste.info/71b9c12570.html
[23:36] <piie> somehow streams are transposed
[23:37] <piie> in principle it works, but mplayer is then not able to play the second audiostream
[23:58] <llogan> vitrums: encoding twice as fast? isn't that a good thing? i don't see how compiz/unity will generally affect encoding speed.
[23:58] <vitrums> llogan: hm... I'll describe my problem a little bit more accurate
[00:00] --- Tue Jul 31 2012
More information about the Ffmpeg-devel-irc
mailing list