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

burek burek021 at gmail.com
Wed Oct 3 02:05:01 CEST 2012


[00:41] <someguy> hello. I'm trying to implement an streaming using ffmpeg. I've successfully implemented it using the line in of my sound card and then transmitting the sound using mp3 coding, but now I want to do it in a lossless format like wav or flac (Iit's a must for my application)
[00:42] <someguy> but all my efforts to do that have been failed
[00:42] <someguy> the command that works for me is the following
[00:42] <someguy> ffmpeg -f alsa -i hw:0 -acodec libmp3lame -ar 11025 -ac 1 -f rtp rtp://234.5.5.5:1234
[00:43] <someguy> but when I change the acodec for pcm_s16le it gives me an error in the player
[00:44] <someguy> I'm using VLC and it gives me the following error "SDP required: A description in SDP format is required to receive the RTP stream. Note that rtp:// URIs cannot work with dynamic RTP payload format (97)."
[00:44] <someguy> how can I solve it?
[00:44] <someguy> how can I streaming in lossless format?
[03:00] <msmithng> wow... go away for a few weeks, I come back and there's forums, ffmpeg 1.0 is released
[03:01] <msmithng> lots of good stuff
[05:33] <klaxa> just a short question, i'm running ffmpeg version 0.11.1 and was a bit surprised that "ffmpeg -i INPUT -c copy OUTPUT" is not equivalent to "ffmpeg -i INPUT -map 0 -c copy OUTPUT" is this intentional? the first version copies audio, video and subtitle, the second one does so too, includes all attachments though
[05:34] <klaxa> in the manual it states that if you use no stream specifier it should match all streams, even if i selected attachments seperately with -codec:t copy it wouldn't copy a single attachment
[05:37] <klaxa> just updated to ffmpeg 1.0, same results
[08:42] <diegoviola> hi
[08:42] <diegoviola> is there a way to check what subtitles an mkv file has without actually playing the file?
[08:42] <diegoviola> like check the info, etc
[08:42] <klaxa> mkvinfo?
[08:42] <klaxa> from the package mkvtoolnix
[08:42] <diegoviola> ty
[08:43] Last message repeated 1 time(s).
[08:43] <klaxa> np
[08:43] <klaxa> you could also do ffmpeg -i INPUT.mkv and it would list the streams... i think ffmpeg would exit with an error code though
[08:44] <diegoviola> i see, i will try them both, thanks
[08:47] <diegoviola> yeah mkvtoolnix worked great
[08:47] <diegoviola> with ffmpeg -i i got some message like: "Invalid data found when processing input"
[08:47] <diegoviola> thanks
[08:47] <klaxa> oh that's weird
[08:48] <diegoviola> maybe some corrupt file
[09:38] <rubendv> is there a way to encode a video from an image sequence if they don't have filenames like image001.png image002.png etc?
[09:44] <saste> rubendv, -pattern_type glob in the image2 demuxer
[09:51] Action: ubitux didn't hear much Nicolas recently... :(
[09:51] <ubitux> oups bad chan
[11:17] <xan_IT> hi to all i need help for use avconv, this is the right channel?
[11:18] <JEEBsv> #libav would be that
[11:19] <xan_IT> thz
[11:48] <xan_IT> i need to create video from list of png
[11:58] <burek> klaxa, that's intended behavior
[11:58] <burek> somehow it makes sense to some people
[11:58] <burek> to select just a/v streams from the input, by default
[11:58] <burek> so, yes, you need to use -map 0 to map all streams from your first (0) input
[11:59] <JEEBsv> yeah, it's a funny thing
[15:07] <creespekt> Hi!Can somebody help me in converting a 23.98 fps .mkv to 25 fps mpeg-2 keeping the same length and without flickering?
[15:08] <creespekt> i managed to convert it to 25 fps, but the image is flickering in every second or so..
[15:08] <creespekt> is there a way to eliminate this flickering?
[15:09] <creespekt> i suspect that the couse of the flickering is the frame duplication
[15:10] <creespekt> is it possible in any sofware way to make 25 fps from 23.98?
[15:13] <burek> creespekt, can you pastebin your command and complete output
[15:17] <creespekt> here it is: http://pastebin.com/pYVUF6Qm
[15:19] <burek> sir, you are not using ffmpeg
[15:19] <creespekt> i am trying to make a 25mbit, full hd, interlaced, 25 fps mpeg-2
[15:19] <burek> please visit libav's support channel
[15:23] <creespekt> i tried there, but i got the information, that theres no any solution, to convert a 23.98 fps video to 25 fps
[15:24] <burek> I'm really not familiar with that tool at all, so I'm not of much help here
[15:24] <burek> :/
[15:24] <relaxed> it works the same as ffmpeg
[15:24] <creespekt> i am asking just in general
[15:24] <burek> if it works the same, why the separate project then?
[15:25] <burek> and no, it doesn't work the same
[15:25] <creespekt> is this possible to make 25 fps from 23.98 with any software?
[15:25] <burek> creespekt, did you try with ffmpeg?
[15:26] <relaxed> burek: for the same reason there's no world peace
[15:26] <creespekt> yeah, i got the same outcome, but i cant paste you command from there
[15:26] <creespekt> thats why iam trying in every other tool
[15:27] <burek> well, if you can provide ffmpeg logs, I might be able to help
[15:27] <creespekt> ok
[15:31] <creespekt> i cant find any logs:/
[15:33] <creespekt> so in general ( no matter what program) is it possible to make 25 fps from 23.98?
[15:33] <burek> it is
[15:33] <burek> one way is to not preserve the speed
[15:34] <burek> (just changing the fps)
[15:34] <burek> the other is to maintain the speed
[15:34] <burek> by duplicating/dropping frames
[15:34] <creespekt> i need to use the second one
[15:35] <creespekt> i need to maintain to video length
[15:35] <creespekt> but with duplicating the frames, the video flickering in action screen with fast movement
[15:36] <creespekt> and i try to avoid it somehow
[15:36] <burek> did you try ffmpeg -i INPUT -vcodec ... -acodec ... -r 25 output
[15:36] <creespekt> yeah, and its flickering
[15:36] <burek> try some other video encoder
[15:37] <burek> which handles screen changes better
[15:37] <creespekt> it is 25 fps, but you can see, especially in the background scenes during fast movements, that ist not continous
[15:37] <burek> according to your avconv command, you are doing a lot of things at once
[15:37] <burek> so it is difficult to narrow down the exact source of your problem
[15:37] <burek> try one thing at the time
[15:37] <burek> to find what's causing your trouble
[15:37] <burek> and just work around it
[15:38] <creespekt> okok
[15:39] <creespekt> i just wanted to know the is it theoretically possible to do this or i am just wasting my time
[15:39] <creespekt> thanks
[15:40] <creespekt> and sorry for the wrong channel:)
[15:40] <burek> np :beer: :)
[15:52] <carnau> is it possible concatenate fade filter(in|out) more than 2 times?
[16:16] <relaxed> carnau: did you try chaining mulitple fade filters together?
[16:21] <carnau> I'll do to be sure
[16:21] <carnau> *do it
[20:20] <Pooky5> Hi guys, I have problem. I convert avi file with two audio tracks. FFmpeg can't recognize their name, in output from ffmpeg - i file.avi I get this "Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 32 kb/s"
[20:22] <Pooky5> In output file, I get two audio tracks, bat their name is "und" and "und2".
[20:23] <relaxed> ffmpeg version?
[20:24] <Pooky5> ffmpeg version git-2012-10-01-c39916b
[20:25] <relaxed> Distro?
[20:25] <Pooky5> Ubuntu 12.04
[20:26] <relaxed> Are there errors encoding it?
[20:27] <Pooky5> no errors, everything goes well
[20:30] <Pooky5> so, can I at least specify name of this stream when I use -map 0:1 [some_name] -map 0:2 [another_name] ?
[20:31] <Element9> can I set bitrate for encoding to wav, aiff and flac?
[20:33] <relaxed> Element9: No but with flac you can set -compression_level
[20:34] <Element9> relaxed: thanks! where could I have found that myself?
[20:34] <ubitux> Pooky5: can't you use some language metadata?
[20:34] <ubitux> and/or title
[20:35] <ubitux> like mmh -metadata:s:0 title='stream 0 title' -medatadata:s:1 title=... ?
[20:35] <Pooky5> ubitux: good point, I will try that and see what happend
[20:35] <ubitux> "title" and "language" meta are special iirc
[20:35] <ubitux> i don't know if avi is able to store that info
[20:36] <relaxed> Element9: nowhere really... It's mentioned in `ffmpeg -h full | less` but nothing specific for flac.
[20:36] <ubitux> mkv certainly is
[20:36] <ubitux> you can use ffprobe to check
[20:36] <Pooky5> yea, I convert from avi to mkv
[20:37] <Pooky5> mkv is wonderful really
[20:37] <relaxed> Element9: google or reading the source
[20:37] <Element9> relaxed: or asking here. :) thanks again
[20:40] <klaxa> speaking of mkv being wonderful, they state on their website it's designed for live streaming too, i can find not much documentation on how to use it with live streaming though
[20:41] <klaxa> i already asked in #matroska but they seem dead, is there any way i can get some documentation on libmatroska?
[20:41] <ubitux> ffmpeg doesn't use libmatroska
[20:42] <ubitux> there is a native muxer & demuxer
[20:42] <klaxa> so the way i understand it i have to send a header prior to the actual stream when joining a stream mid-stream is that correct?
[20:42] <klaxa> therefore i have to generate a header on the fly for the stream that is to be sent, right?
[20:43] <klaxa> just sending the header of the file doesn't really work, i tried that
[20:43] <klaxa> could i utilize the ffmpeg code to do that?
[20:44] <ubitux> i don't know matroska
[20:45] <klaxa> okay, thanks for reading it though
[20:45] <klaxa> should i send a mail to the matroska mailing list?
[20:45] <klaxa> do you think that would get me any further?
[20:46] <ubitux> no idea, you may want to contact libav-user (https://www.ffmpeg.org/contact.html)
[20:47] <klaxa> thanks
[21:19] <JoeyJoeJo> I have an IP camera that uses the RTSP protocol. I can view it in VLC, but ffmpeg says "Unable to find a suitable output format". I know the camera records in h264. How can I make ffmpeg play RTSP streams
[21:41] <JoeyJoeJo> relaxed: http://pastebin.com/gtdXQpD5
[21:43] <relaxed> No, reread it and try again.
[21:47] <JoeyJoeJo> relaxed: http://pastebin.com/Q90eL6vi
[21:48] <relaxed> Oh, try  ffmpeg -i rtsp://192.168.2.101:554/trackID=1&basic_auth=YWRtaW46YWRtaW4=
[21:49] <relaxed> er, sorry
[21:49] <relaxed> ffmpeg -i "rtsp://192.168.2.101:554/trackID=1&basic_auth=YWRtaW46YWRtaW4="
[21:52] <JoeyJoeJo> relaxed: that was step in the right direction, but I'm still not getting video. http://pastebin.com/L52xxbpM
[21:53] <pzich> well you're specifying the input, what do you want to happen from there?
[21:54] <JoeyJoeJo> I was expecting a window to pop up and show me some video
[21:54] <relaxed> you want ffplay
[21:54] <relaxed> and quote the url
[21:55] <pzich> yeah, the & is getting confused in bash
[21:55] <JoeyJoeJo> Ok, I'll give that a shot. Thanks
[21:55] <pzich> that's the '[1] 24029'
[21:55] <JoeyJoeJo> So should I escape it like this? \&  Or will the quotes take care of it?
[21:55] <pzich> quotes will do it
[22:09] <Primer> Hi, I'm using the latest 64 bit ffmpeg static build for windows to encode some fraps files I've created to h.264/mp3 for uploading to youtube. It seems that the archive doesn't come with presets?
[22:09] <Primer> Or has that changed? I read something about them being built in now
[22:10] <Primer> when I try to run an encode without any presets, both my CPU cores spike and after about 30 minutes, only about 350 frames were encoded
[22:11] <sacarasc> -preset veryslow
[22:11] <sacarasc> Or whatever other preset you care to use.
[22:11] <Primer> ok, that works
[22:12] <Primer> except I'm seeing the same thing where my CPUs are pegged, and the output in the terminal (I'm using mintty on cygwin) doesn't update
[22:12] <Primer> even killing the process takes a while
[22:12] <Primer> with ^c
[22:13] <sacarasc> Tried using cmd?
[22:13] <Primer> frame=   87 fps=9.1 q=28.0 size=     443kB time=00:00:00.13 bitrate=27190.6kbits/s  <-- hasn't moved
[22:13] <Primer> no because I have this all scripted
[22:13] <Primer> and cmd batch is fail
[22:16] <Primer> I now wonder if writing to the terminal is causing this lag
[22:19] <Primer> yeah, windows shows mintty as not responding
[22:21] <Primer> even if I "> /dev/null 2>&1" the output file barely grows
[22:22] <Primer> If I copy the file over to my ubuntu box it works fine
[22:22] <Primer> processors on that box are much slower though
[22:22] <Primer> hence my desire to encode on this machine
[22:22] <Primer> guess I'll try cmd
[22:23] <Primer> OK, seems I was using the old directory's command line
[22:24] <Primer> so, nm :)
[22:27] <Primer> so which preset would be recommended for high quality YT upload? I have tons of bandwidth, so that's not a problem
[22:36] <Pooky5> CHA! I got it!
[22:36] <Pooky5> It was metadata language!
[22:53] <burek> Primer
[22:53] <burek> try with -preset and -crf
[22:53] <Primer> yes, I have been using preset slow and crf 22
[22:54] <Primer> and baseline
[22:54] <Primer> which I confess, I don't even know what they do
[22:55] <burek> dont use -profile unless you know you need it
[22:55] <Primer> you mean -preset?
[22:55] <burek> "You should set this if you know your playback device only supports a certain profile. Most decoders support High profile, so there's no need to set this."
[22:55] <burek> -profile
[22:55] <burek> <Primer> and baseline
[22:56] <burek> baseline is a profile, not preset
[22:56] <Primer> I've never used -profile
[22:56] <klaxa> is high profile the default setting
[22:56] <burek> klaxa, the profile is (I think) auto-determined by the frame size
[22:56] <klaxa> ah
[22:56] <burek> but please read the docs
[22:56] <burek> to be 100% sure
[22:57] <burek> Primer, how did you specify "baseline"
[22:58] <Primer> -fpre "f:\ffmpeg-x64\presets\libx264-baseline.ffpreset"
[22:58] <Primer> and I don't even know if that was doing anything
[22:58] <burek> can you please provide your entire command
[22:58] <burek> because preset files have been deprecated for libx264 (if that's what you are using)
[22:58] <Primer> time $FF -i "${1}" -acodec flac -vcodec libx264 -fpre "f:\ffmpeg-x64\presets\libx264-slow.ffpreset" -fpre "f:\ffmpeg-x64\presets\libx264-baseline.ffpreset" -crf 22 -threads 0 $OUT 2>&1 | tee -a log
[22:59] <burek> I see
[22:59] <Primer> again, in cygwin with mintty
[22:59] <burek> try without -fpres
[22:59] <Primer> actually that's a script
[22:59] <Primer> well, that no longer works
[22:59] <Primer> hence the use of -fpre
[22:59] <burek> time $FF -i "${1}" -acodec flac -vcodec libx264 -preset slow -crf 22 -threads 0 $OUT 2>&1 | tee -a log
[22:59] <Primer> lovely!
[23:00] <burek> -preset and -crf are now options of libx264 library
[23:00] <burek> so no need for external presets
[23:00] <Primer> cool
[23:07] <Primer> https://www.youtube.com/watch?v=roF1kmOWUuY
[23:07] <Primer> just made that with -preset slow -crf 22
[23:07] <Primer> looks pretty good at the best quality
[23:10] <burek> looks very fluent too
[23:17] <Primer> I just want to be able to fraps some game content then call a script to encode and upload, and have it look decent on YT
[23:19] <Primer> it's nice being able to do this with a bash script too
[23:19] <Primer> because using any form of windows scripting just sucks
[23:21] <pzich> hah
[00:00] --- Wed Oct  3 2012


More information about the Ffmpeg-devel-irc mailing list