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

burek burek021 at gmail.com
Sat Jul 28 02:05:01 CEST 2012


[01:02] <felixge> ffmpeg allows me to extract individual pngs from a video using: '%4d.png' as the output file name
[01:02] <felixge> is there a way to get this data written to stdout, rather than into those files?
[01:02] <felixge> that is: I want individual pngs as an output stream (jpeg would be ok too)
[01:03] <sacarasc> Maybe "-f png -" as the end of your command.
[01:04] <felixge> sacarasc: [NULL @ 0x7f92b1844600] Requested output format 'png' is not a suitable output format : /
[01:07] <eduardosouza> Hey guys I am trying to convert my video files into something that I can play on my website. But it seems like something is wrong with the conversion. Is there a quick way of just converting files into lets say mp4?
[01:13] <d4forze> mp4 is a container
[01:16] <perrth> wish that ffmpeg picked by gstreamer :( why libav?,fromn user POV ffmpeg has more features.. confusing
[01:18] <perrth> and I like the openal and modplug stuff here, missed in libav
[01:35] <eduardosouza> ok I got it but my videos are coming out without auto
[01:35] <eduardosouza> suggestions??
[01:35] <d4forze> without auto?
[01:35] <eduardosouza> sorry
[01:36] <eduardosouza> audio
[04:44] <randomguy123> Hi FFMPEG, I use a video server and I want to make ffmpeg talk directly to it. I have api lib and I can connect and READ raw yuv frames or WRITE yuv frames to it. Can you recommend where to look for clues?
[04:45] <randomguy123> At first, I wanted to look for some device in implementation in avdevice lib
[04:46] <randomguy123> but I also think it's possible to add virtual container format that stores raw yuv frames, but since the server is streamable then my container can't know the size etc. So, what is recommneded path I should take?
[10:58] <roxlu_> hi guys, the pts and dts are those properties of a container format? or codec?
[11:23] <vhdirk> hi all
[11:24] <vhdirk> I recorded a video with some camera, and by default it records with a resolution of 960x720, PAR=4:3, DAR=16:9
[11:25] <Mavrik> aaaand? :)
[11:25] <vhdirk> now, I'm looking for a way to convert this to 1280x720, PAR=1:1, DAR 16:9
[11:25] <vhdirk> this basically means splitting al rectangular pixels in half
[11:26] <Mavrik> vhdirk: usually I do this chain:
[11:26] <Mavrik> scale=iw*sar:ih,setsar=1:1,scale=1280x720
[11:26] <Mavrik> to convert to square pixels
[11:28] <Mavrik> (the last scale is obviously scale=1280:720)
[11:29] <vhdirk> Mavrik, thanks, but that does not seem to work
[11:29] <Mavrik> well.
[11:30] <vhdirk> here you go :) http://pastebin.com/1Ci934eu
[11:32] <Mavrik> first of all, you're not even using ffmpeg
[11:32] <Mavrik> vhdirk: and of course this won't work
[11:32] <Mavrik> since you're just copying the video stream
[11:32] <Mavrik> not reencoding it
[11:33] <vhdirk> aha, that makes sense :)
[11:36] <Mavrik> vhdirk: to change PAR you need to reencode video :)
[11:36] <Mavrik> so choose an output codec/format and reencode it
[11:36] <Mavrik> and then the video filter will work as well :)
[11:38] <vhdirk> I thought -vcodec copy would just copy the codec parameters. silly me, it's still early here
[11:41] <Mavrik> ^^
[11:41] <vhdirk> Mavrik, thanks that actually works :)
[11:42] <Mavrik> np ;)
[12:09] <roxlu_> I'm reading up on how dts/pts work with codecs and muxers. I found a post which says: "a timebase in ffmpeg is rational. So if your timebase is 100/2997, you will have 0,1,2,3,4...etc, when it is 1/2997, you will have 0,100,200,300,etc..".  Can someone explain what is meant with a rational time base? (Maybe it's a language barrier I'm facing here)
[12:20] <Mavrik> roxlu_: it just means it's a rational number
[12:20] <Mavrik> roxlu_: http://en.wikipedia.org/wiki/Rational_number :)
[12:22] <roxlu_> Mavrik: hehe thanks, that's what I got :) but. I would say that: 1/1000 results in smaller numbers then 100/1000
[12:22] <Mavrik> but that wouldn't mean the same
[12:22] <Mavrik> the numbers would still be (And would have to be) rational ;)
[12:23] <roxlu_> hehe ok I'm feeling kind of dumb now :)
[12:23] <roxlu_> what do you mean with "number would still be rational", what numbers are you referring too?
[12:24] <Mavrik> the timebase numbers ;)
[12:24] <roxlu_> are the 1,2,3,4 etc.. and 0,100,200, the timebase numbers? (or numerators)
[12:25] <Mavrik> no, 1/1000, 100/2997 etc. are :)
[12:27] <Mavrik> 1,2,3,4; 0,100,200 would be timestamps in your context
[12:27] <roxlu_> ah.. I think i'm almost there to understand this :)
[12:29] <roxlu_> so because the timebase is 1/2997, the timestamps need to be bigger (0,100,200). as ((1/2997) * 100) == ((100/2997) * 1)
[12:30] <Mavrik> roxlu_: timebase just tells you how much time passes between two timestamps (between 1 and 2) for examplee
[12:30] <Mavrik> *example
[12:30] <Mavrik> 1/2997 means that from 1 to 2 exactly 1/2997 second passes
[12:30] <Mavrik> 100/2997 means that from 1 to 2 exactly 100/2997 of a second passes
[12:30] <Mavrik> everything else is high-school math :D
[12:31] <roxlu_> Mavrik: these timestamp / timebase are related to ffmpeg/encoding/decoding.  I'm tryig to understand how it all relates.
[12:31] <Mavrik> yeah
[12:32] <Mavrik> "timebase" is a basic unit of time
[12:32] <Mavrik> and timestamps on decoded (and encoded) packets are expressed in the units of timebase (not seconds)
[12:33] <roxlu_> Mavrik: so the timestamp value is just an integer which goes from 0,1,2,3,4,5....
[12:33] <roxlu_> and the meaning of this number relates to the timebase
[12:33] <Mavrik> yeah
[12:34] <roxlu_> so the actually time in seconds is: timestamp * timebase ?
[12:34] <Mavrik> if your timebase would be equal to 1 (1/1)
[12:34] <Mavrik> 0, 1, 2, 3, 4, 5
[12:34] <roxlu_> yep, cool! thanks a lot
[12:34] <Mavrik> would mean that frames are shown at 00:00:00, 00:00:01, 00:00:02...
[12:34] <roxlu_> awesome!
[12:34] <Mavrik> if timebase is equal to 0.5 (1/2)
[12:34] <Mavrik> those same frames with those same timestamps would be shown at 00:00:00, 00:00:00.5, 00:00:01... t
[12:35] <roxlu_> ok. I understand now!
[12:35] <roxlu_> And then there is also something related with timestamps for muxers and codecs
[12:36] <roxlu_> as a dts/pts for a muxer relates to both video and audio, am I right?
[12:37] <Mavrik> roxlu_: yeah
[12:38] <Mavrik> muxer only sees streams
[12:38] <roxlu_> Mavrik: those are the AVStream* ?
[12:38] <Mavrik> mhm
[12:48] <roxlu_> or Mavrik what did you mean with stream? (like a stream of bytes?)
[12:50] <Mavrik> container has several streams (which can be audio, video, data, etc.)
[12:50] <Mavrik> muxer muxes those streams and produces the container with all data
[12:50] <roxlu_> yes, ok.
[12:51] <roxlu_> I was thinking how these timestamps are used when i.e. demuxing
[12:51] <roxlu_> because, when looking at the avcodec functions, there are separate functions for encoding video and audio. Though the timestamps should match some how
[12:53] <Mavrik> not really
[12:53] <Mavrik> :)
[12:53] <Mavrik> you check timebase on video stream, you show frame when it tells you to
[12:53] <Mavrik> you check timebase on audio stream, you play frame when it tells you to :)
[12:54] <roxlu_> ah ok
[12:56] <roxlu_> Ok so when I'm encoding in live video and audio, the I actually need to make sure to set the pts correctly.
[12:56] <roxlu_> based on the current time and scaled to the time_base of my video and for the audio to the timebase of the audio
[14:43] <Tuxist> hi
[14:43] <bennu> Haha, hi.  =D
[14:44] <Tuxist> I try to convert pictures to vp8 video but i don't which api i need for this
[14:45] <Tuxist> i have already creat a index with the pictueres that i need
[14:50] <bennu> Sorry man, I probably don't know enough to help you.  However, I can do my best.
[14:50] <bennu> You installed ffmpeg with libvpx enabled, correct?
[15:04] <Tuxist> i have problems to understand things in the c api
[15:37] <Element9> I'm trying to capture a video of the screen with sound and I can't get a good result - frame rate isn't that good and sound is chopy. I'm trying to record in 1600x900 and I have dual core cpu on 2.1ghz. Is that not good enough or I can't tweek the parameters right?
[16:04] <balachmar> I want to put my video into another container, without transcoding it. Somehow, my TV doesn't like the file through DLNA. Even though it is a straight digital tv dump. I am trying to use -map to select the streams, because ffmpeg doesn't like one of the subtitle tracks.
[16:05] <balachmar> I have a command like this: ffmpeg -i inputFile.mkv -map 0:0 -vcodec copy -map 0:1 -acodec copy output.mp4
[16:05] <balachmar> But I get the following error:
[16:05] <balachmar> [mp4 @ 0x283f120] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 6 >= 4
[16:05] <balachmar> av_interleaved_write_frame(): Invalid argument
[16:07] <balachmar> file information is pasted here: http://pastebin.com/hHh4F1q3
[16:13] <balachmar> I just figured out that I don't need the mapping, I can just use -sn to get the same result (error)
[18:30] <delicado> hi im using libavcodec, what function should i use to replay a video after i reached an EOF? i mean i just want to loop the video.
[18:32] <saste> delicado: you need to seek back, check libavfilter/src_movie.c for an example
[18:33] <delicado> ill look into it. thanks.
[18:41] <burek> Element9, you have a tutorial on wiki
[18:42] <burek> balachmar can you please use a pastebin site (like www.pastebin.com) to show your ffmpeg command and the complete console output?
[19:20] <bwalker898> Hi, I'm using ffmpeg to stream a flv video via rtmp to red5. It works, but for some reason ffmpeg runs very quickly and then finishes, so I can only watch about 3 seconds of video on my website. Does anyone know why ffmpeg quits so quickly?
[19:36] <bwalker898> figured it out. apparently i needed to use ffmpeg -re to stop ffmpeg from sending the data as fast as possible
[19:43] <soulstitchmmo> Good Morning. I'm trying to stream to Twitch, and I keep getting the following error: Unrecognized option 'preset'
[19:43] <soulstitchmmo> Failed to set value 'fast' for option 'preset'
[19:45] <relaxed> soulstitchmmo: command?
[19:45] <soulstitchmmo> fmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0+0,0 \
[19:45] <soulstitchmmo>  -f alsa -ac 2 -i pulse -vcodec libx264 -preset "$QUAL" -s "$OUTRES" \
[19:45] <soulstitchmmo>  -acodec libmp3lame -ab 128k -ar 44100 -threads 0  \
[19:45] <soulstitchmmo>  -f flv "rtmp://live.justin.tv/app/$STREAM_KEY"
[19:46] <relaxed> try -preset:v fast
[19:47] <bwalker898> does anyone know what the ffmpeg command would be to stream from a webcam?
[19:47] <soulstitchmmo> Unrecognized option 'preset:v'
[19:47] <soulstitchmmo> Failed to set value 'fast' for option 'preset:v'
[19:47] <relaxed> ffmpeg version?
[19:48] <soulstitchmmo> no idea. How do I find that out?
[19:48] <relaxed> run ffmpeg and look at the top
[19:49] <soulstitchmmo> ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
[19:50] <johnbender> soulstitchmmo: you and I sir are doing the exact same thing :D
[19:50] <soulstitchmmo> lol
[19:51] <johnbender> soulstitchmmo: https://gist.github.com/3f75d86183cea0fd40d7
[19:51] <johnbender> superfast works for me
[19:51] <johnbender> though I'm on oneiric not precise
[19:51] <soulstitchmmo> what is that link?
[19:51] <johnbender> soulstitchmmo: its a pastebin
[19:51] <johnbender> github
[19:52] <johnbender> can anyone help me get my pulse audio sync'd up with a video overlay?
[19:52] <soulstitchmmo> ok so... what does it do? Sorry I'm trying out linux gaming and I'd like to stream it.
[19:52] <johnbender> is that possible
[19:52] <soulstitchmmo> oh that's just your function.
[19:52] <johnbender> soulstitchmmo: that will stream to justin tv
[19:53] <johnbender> soulstitchmmo: I have it in ~/.bin/
[19:53] <johnbender> which is in my path
[19:53] <johnbender> so I use it like: bash ~/.bin/stream-jtv `cat ~/.jtv-key`
[19:54] <johnbender> I put my justin.tv streaming key in ~/.jtv-key so I don't spew it all over the internet
[19:54] <johnbender> and that command just drops it in as the first argument the snippet I gave you
[19:54] <soulstitchmmo> well, I don't have any errors, but my stream isn't live :p
[19:54] <johnbender> soulstitchmmo: you'll probably want to tweak the resultion of the desktop capture
[19:55] <johnbender> and I'm still trying to get the webcam overlay sync'd with the audio
[19:55] <johnbender> soulstitchmmo: to test it out, you can replace the last line "-f flv ..." with "~/foo.mp4"
[19:55] <johnbender> then view it with `totem ~/foo.mp4`
[19:56] <burek> soulstitchmmo you are not using ffmpeg
[19:56] <burek> you're using a fork of ffmpeg
[19:56] <burek> so you might go to their support channel and ask there probably?
[19:57] <johnbender> burek: where is that, #libav?
[19:57] <burek> dunno
[19:57] <burek> use google?
[19:57] <johnbender> :/
[19:57] <johnbender> thanks
[19:57] <burek> soulstitchmmo can you please use a pastebin site (like www.pastebin.com) to show your ffmpeg command and the complete console output?
[19:57] <burek> oh man
[19:57] <burek> I need sleep again :D
[19:58] <burek> johnbender I didn't tell that to you
[19:58] <burek> <soulstitchmmo> ffmpeg version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
[19:58] <burek> I was refering to him :)
[19:58] <johnbender> correct, but I think you were addressing me about using google when I asked where the IRC channel was
[19:58] <burek> now, can you, johnbender, provide your ffmpeg command line and complete/uncut output?  :)
[19:59] <johnbender> burek: I'm on ubuntu too, though so I might needs head over there myself
[19:59] <johnbender> let me get the version
[19:59] <burek> well, ok :)
[19:59] <johnbender> burek: ffmpeg version 0.7.6-4:0.7.6-0ubuntu0.11.10.1
[19:59] <burek> can you use a pastebin
[20:00] <johnbender> for the version?
[20:00] <soulstitchmmo> http://pastebin.com/d7tA4CE6
[20:00] <burek> for the complete output
[20:00] <johnbender> I'll gladly use a pastebin for the output if I'm in the right irc channel
[20:00] <johnbender> burek: do you care if I use a gist?
[20:00] <burek> soulstitchmmo, you can either continue with that fork
[20:00] <burek> or you can uninstall it and compile your own ffmpeg
[20:00] <soulstitchmmo> Sorry burek, what's a fork?
[20:00] <burek> I would advise later
[20:01] <burek> it's kinda a copy of project headed in another direction
[20:01] <burek> johnbender feel free to
[20:01] <soulstitchmmo> I followed that wiki, but ubuntu told me that I didn't have it installed and to sudo apt-get install ffmpeg-libavtools or something like that.
[20:02] <johnbender> burek: https://gist.github.com/238d9905bfc0e0c9d6e6
[20:02] <bwalker898> Hi, does anyone know the ffmpeg command to stream from a webcam on ubuntu via rtmp to red5 media server? I can stream a static video correctly, but I can't figure out how to send the webcam
[20:02] <burek> one of ubuntu's maintainer (or more precise debian's) is a head of the libav project (a fork of ffmpeg), so I wouldn't be surprised he would put any kind of message, just to turn users to libav instead of ffmpeg
[20:03] <burek> they made it really hard for users to trully make their own decision, but ok
[20:03] <burek> in their house they can do whatever they want
[20:03] <johnbender> I deal with enough oss politics, I'll stay out of this discussion :D
[20:03] <burek> smart choice :)
[20:04] <burek> soulstitchmmo, well, I compiled ffmpeg on any distribution I got my hands on, including ubuntu
[20:04] <burek> so I'm pretty sure you were doing something wrong, or something..
[20:04] <soulstitchmmo> ok i'll copy paset through the thing again.
[20:04] <burek> bwalker898: ffmpeg -i input -vcodec ... -f flv rtmp://ip.of.rtmp.server/
[20:06] <bwalker898> burek: thanks. i assume input should be /dev/video0, what is the "..." for?
[20:06] <burek> no
[20:06] <burek> what is your input actually
[20:07] <burek> ("-vcodec libx264" for example)
[20:07] <johnbender> burek: bwalker898: ffmpeg -f video4linux2 -i /dev/video0 ??
[20:07] <burek> yes, also use v4l2-ctl
[20:07] <burek> to see what youre device supports
[20:07] <burek> -e
[20:07] <bwalker898> burek: i don't know?  i have a webcam and i've seen video4linux2 used a lot on the internet
[20:07] <burek> bwalker898 usb cam?
[20:07] <bwalker898> burek: yes
[20:08] <burek> up there, what johnbender wrote
[20:08] <bwalker898> burek: k
[20:08] <burek> also, the full version is something like
[20:08] <burek> ffmpeg -f v4l2 -s 640x360 -r 25 -i /dev/vide0 -vcodec libx264 -f flv rtmp://ip
[20:10] <bwalker898> burek: is there a different encoder I can use? ffmpeg said libx264 was unkown
[20:11] <johnbender> burek: you'll have to install x264 explicitly I think
[20:11] <burek> you really want x264
[20:11] <johnbender> err misdirect
[20:12] <burek> it's like the best video codec today
[20:12] <burek> or at least one of the best
[20:12] <burek> see compiling section
[20:12] <burek> its really quick
[20:12] <bwalker898> burek: i just removed the -vcodec line hoping the default would work and it did!. Is there an advantage to the x264 codec?
[20:12] <burek> huh...
[20:13] <burek> is ferrari better than opel? :)
[20:14] <bwalker898> burek: thanks. i guess i'll try to install it. Does it make video quality better?
[20:14] <burek> it does
[20:17] <bwalker898> burek: the video works. but the frame rate is only 12, even though i think the -r 25 comand you said is supposed to make it 25fps. Do you know why this would be?
[20:18] <burek> bwalker898 can you please use a pastebin site (like www.pastebin.com) to show your ffmpeg command and the complete console output?
[20:21] <soulstitchmmo> ok now I am getting 'File for preset 'superfast' not found: http://pastebin.com/d7tA4CE6
[20:22] <bwalker898> burek: http://pastebin.com/Ui0FyCps
[20:22] <burek> soulstitchmmo, type x264 --help to see the list of possible presets
[20:22] <burek> they are mapped directly
[20:24] <burek> bwalker898 Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 320x240, q=2-31, 200 kb/s, 1k tbn, 30 tbc
[20:24] <burek> it is 30 fps
[20:24] <burek> check with vlc player or some other
[20:24] <burek> to see if the fps is 30
[20:24] <burek> should be
[20:24] <soulstitchmmo> --preset <string>       Use a preset to select encoding settings [medium]
[20:24] <soulstitchmmo>                                   Overridden by user settings.
[20:24] <soulstitchmmo>                                   - ultrafast,superfast,veryfast,faster,fast
[20:24] <soulstitchmmo>                                   - medium,slow,slower,veryslow,placebo
[20:24] <burek> but, it might be that your camera is capturing the image
[20:25] <burek> at 12 fps so that's why you get the slow fps
[20:25] <soulstitchmmo> it says that it's an option.
[20:25] <burek> oh, that's because you've set presets for both audio and video
[20:25] <burek> change -preset to -preset:v
[20:26] <soulstitchmmo> it says vpre not preset
[20:26] <soulstitchmmo> should it be preset:v instead of vpre?
[20:26] <burek> bwalker898, can you type: v4l2 --list-formats-ext > log.txt
[20:26] <burek> and paste the log.txt to pastbein
[20:26] <burek> vpre is deprecated
[20:27] <bwalker898> burek: yeah one sec
[20:27] <burek> -vpre and -preset:v are two different things
[20:27] <burek> vpre looks into the preset file
[20:27] <burek> while -preset:v tells libx264 encoder to use its native preset
[20:28] <burek> without any preset file
[20:29] <burek> bwalker898, sorry
[20:29] <burek> v4l2-ctl
[20:29] <burek> it's: v4l2-ctl --list-formats-ext > log.txt
[20:29] <burek> and it's contained in v4l2-utils package in debian/ubuntu
[20:31] <soulstitchmmo> ok, so... I have progress. I'm streaming... and it's going somewhere... lol. This is the command I am using to get it to work: ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0+0,0 \
[20:31] <soulstitchmmo>  -f alsa -ac 2 -i pulse -vcodec libx264 -preset:v "$QUAL" -s "$OUTRES" \
[20:31] <soulstitchmmo>  -acodec libmp3lame -ab 128k -ar 44100 -threads 0  \
[20:31] <soulstitchmmo>  -f flv "rtmp://live.justin.tv/app/$STREAM_KEY"
[20:31] <burek> soulstitchmmo, there is a reason we ask people to use pastebin
[20:31] <soulstitchmmo> I don't see anything on my stream, but I can see in terminal that frames are being made.
[20:31] <burek> so please try to take that into consideration next time :)
[20:31] <soulstitchmmo> ok one sec.
[20:32] <soulstitchmmo> http://pastebin.com/d7tA4CE6
[20:32] <burek> well I don't see anything here
[20:32] <soulstitchmmo> my terminal is still running, I just don't know where it's going :p
[20:32] <burek> just your command
[20:32] <burek> take a look at the Output:
[20:32] <burek> if it is like this Output #0, flv, to 'rtmp://128.104.153.123:1935/live/livestream':
[20:32] <burek> then it's obvious :)
[20:33] <bwalker898> burek: http://pastebin.com/gtvY64rL
[20:33] <burek> bwalker898, are you sure that's the right output (did you type the command correctly)
[20:34] <bwalker898> burek: v4l2-ctl --list-formats-ext > log.txt
[20:34] <soulstitchmmo> Ok how's this? http://pastebin.com/d7tA4CE6
[20:34] <burek> then your camera is one really simple camera :)
[20:34] <burek> it only supports continuous jpeg images
[20:34] <bwalker898> burek: lol okay, i have another nicer one here. it sounds like i should try that one...
[20:35] <burek> soulstitchmmo, why are you constantly cut your output?
[20:35] <burek> what's the point?
[20:35] <soulstitchmmo> Huh?
[20:35] <soulstitchmmo> I don't understand the question. I apologise.
[20:36] <burek> you always cut some part you find interesting :)
[20:36] <burek> so I have to instruct you to do it again :)
[20:36] <burek> try to always provide a full uncut output
[20:36] <burek> to save time for both :)
[20:36] <soulstitchmmo> Well it's a continous stream of information
[20:36] <soulstitchmmo> I don't know what you need to see.
[20:36] <burek> full output?
[20:36] <soulstitchmmo> It's constantly updating
[20:36] <burek> well
[20:37] <soulstitchmmo> my terminal is just updating frame= blah blah
[20:37] <burek> run it again like this: ffmpeg -t 10 (all the other options) 2> log.txt
[20:37] <burek> that will run it for 10 seconds
[20:37] <burek> and provide you with log.txt that we need
[20:37] <soulstitchmmo> ok
[20:39] <soulstitchmmo> ok let's hope this is what you need: http://pastebin.com/d7tA4CE6
[20:40] <burek> there are errors
[20:40] <burek> as you can see
[20:41] <johnbender> soulstitchmmo: you need to set those variables if you haven't
[20:42] <johnbender> I'm assuming that INRES isn't set?
[20:42] Action: johnbender could be wrong
[20:43] <johnbender> burek: did you get a chance to look at my gist?
[20:43] <johnbender> I know you're helping stitch so I'm happy to wait :D
[20:45] <soulstitchmmo> burek: http://pastebin.com/d7tA4CE6
[20:45] <soulstitchmmo> I just put the variables in their directly.
[20:46] <burek> johnbender I see it, what exactly is the problem (you're using libav not ffmpeg)
[20:47] <johnbender> burek: the v4l input is delayed
[20:47] <johnbender> ideally I'd like to sync it with the pulse audio input but I'd settle for "close"
[20:47] <johnbender> burek: I'll try #libav, hopefully they'll know what to do
[20:47] <burek> soulstitchmmo: Output #0, flv, to 'rtmp://live.justin.tv/app/live_22303455_pUP5U3DxOWvHfmBAuEJs7FiGGL44hu'
[20:48] <burek> it is going to justin.tv
[20:48] <burek> johnbender you might try updating ffmpeg
[20:48] <burek> to latest version
[20:49] <burek> since a lot of bugs are fixed each day
[20:49] <burek> and you are also using very old version of it
[20:50] <johnbender> burek: I tried building from git following the ubuntu install guide but all I got was continuous dropped frames :(
[20:50] <burek> try to build ffmpeg with libx264 and libvo_aacenc
[20:50] <burek> that should give you a stable stream
[20:51] <burek> also, read a little about -async -isync and -vsync
[20:51] <burek> see if that helps
[20:51] <johnbender> burek: I did, using the guide on the ffmpeg site
[20:51] <johnbender> burek: will do
[20:51] Action: johnbender goes off to read
[20:53] <randomguy123> Hi FFMPEG, I use a video server and I want to make ffmpeg talk directly to it. I have api lib and I can connect and READ raw yuv frames or WRITE yuv frames to it. Can you recommend where to look for clues?
[20:53] <randomguy123> At first, I wanted to look for some device in implementation in avdevice lib
[20:53] <randomguy123> but I also think it's possible to add virtual container format that stores raw yuv frames, but since the server is streamable then my container can't know the size etc. So, what is recommneded path I should take?
[20:54] <burek> randomguy123, take a look at ffmpeg's source code
[20:54] <burek> see how it handles yuv
[20:55] <burek> and copy/paste the logic
[20:55] <soulstitchmmo> That's where I'm supposed to rtmp too.
[20:56] <randomguy123> burek: my main concern is to try to write a new avdevice or a new "virtual" container handler for avformat. Where to find and copy code - I'll figure out..
[20:56] <burek> soulstitchmmo that's where you are currently outputing your result
[20:57] <soulstitchmmo> I just tried a different RTMP server, still not seeing anything on my stream.
[20:58] <burek> well if it sends the stream without problems, then it's not ffmpeg's issue any more, is it :)
[20:58] <soulstitchmmo> theoretically :p
[20:58] <soulstitchmmo> what do I replace if I want to send it to a local file? So I can just make sure it's doing something
[20:59] <burek> replace rtmp://... with bla.flv
[21:00] <soulstitchmmo> YAY!
[21:01] <soulstitchmmo> so that all works :D
[21:01] <burek> :)
[21:01] <soulstitchmmo> just a matter of getting the streaming to twitch thing to work. Thanks Burek.
[21:01] <burek> :beer: :)
[21:07] <soulstitchmmo> Fan freaking tastic. Set up a seperate script for local recording, so that's awesome. Just have to get the streaming now :p
[21:09] <pertplus> hi I just converted a mp4 to wmv and there are grey artifacts/spots on parts that are supposed to be black, especially when they move..
[21:10] <pertplus> how can i fix this ;) ?
[21:11] <pertplus> command i used was ffmpeg -i infile.mp4 outifle.wmv
[21:33] <burek> pertplus, well specify some encoding quality options
[21:33] <burek> don't leave it at default
[21:34] <pertplus> thats what i figured but i cant find the name of the options
[21:34] <pertplus> how do i do it at best quality
[21:34] <burek> did you read the documentation
[21:35] <burek> try for example with -b
[21:35] <burek> or something, I dunno
[21:35] <pertplus> i ok
[21:36] <burek> best quality you would get without re-encoding :)
[21:36] <burek> something like: ffmpeg -i input -c copy output
[21:36] <burek> but I don't know if wmv format would support the codec from input
[21:36] <pertplus> but i have to conver t from mp4 to wmv
[21:36] <burek> mp4 is a format/container
[21:36] <pertplus> ill try -b
[21:36] <pertplus> oh
[21:36] <burek> you don't convert a container
[21:36] <burek> you convert streams inside it
[21:36] <pertplus> ok
[21:37] <pertplus> then ill try to copy
[21:37] <burek> anyway, can you use pastebin to show the output of ffmpeg -i infile.mp4
[21:40] <pertplus> bunch of message about clipping coefficients
[21:42] <soulstitchmmo> ok, i recroded a gameplay session, and the sound is way out of sync.
[21:46] <pertplus> how do i copy with highest possible quality
[21:46] <pertplus> -sameq ?
[22:41] <relaxed> pertplus: -c copy
[00:00] --- Sat Jul 28 2012


More information about the Ffmpeg-devel-irc mailing list