[Ffmpeg-devel-irc] ffmpeg.log.20120816
burek
burek021 at gmail.com
Fri Aug 17 02:05:01 CEST 2012
[00:47] <NonaSuomy> http://pastebin.com/cbGNqwn2
[00:47] <NonaSuomy> trying to stream from a 4 port capture card to h264 I get this err msg above
[01:17] <JPeterson> please explain the rtsp output options http://ffmpeg.org/ffmpeg.html#rtsp
[01:17] <JPeterson> what does "to a RTSP server" mean?
[01:18] <JPeterson> is it also possible to open a rtsp listen socket?
[01:24] <burek> NonaSuomy, libx264 is not a decoder
[01:24] <burek> it's an encoder only
[01:25] <burek> it means you can't use -vcodec x264 before -i
[01:25] <burek> the order of options does matter, you know
[01:25] <burek> ffmpeg <input options> -i input1 <input options> -i input2 ... <output options> output
[01:27] <NonaSuomy> burek I got the layout of parms from a google search that told the guy the exact opposite as I had it the other way around but I trust your opinion and cant find that page again anyways.
[01:28] <NonaSuomy> so I am grabbing from the sd capture card does ffmpeg assume this as a raw video format
[01:28] <NonaSuomy> I have been trying parms in ever such order and not getting anything to spit out
[01:28] <NonaSuomy> but the flv works
[01:29] <NonaSuomy> for the other prots
[01:29] <NonaSuomy> ports
[01:29] <NonaSuomy> which looks like this ffmpeg -s 480x360 -f video4linux2 -standard NTSC -channel 0 -i /dev/video0 http://127.0.0.1:8090/cam1.ffm
[01:31] <NonaSuomy> that is currently running and spitting out a flv codec'd stream through ffserver
[01:46] <NonaSuomy> burek have no idea what to run so confused
[01:55] <JPeterson> whats the preferred way to stream from vlc to ffmpeg?
[01:55] <burek> for your cameras
[01:55] <burek> it is usually enough to do this
[01:56] <burek> ffmpeg -f v4l2 -s 480x360 -i /dev/video0 -vcodec libx264 -crf 23 -preset medium out.mp4
[01:56] <burek> or out.flv
[01:56] <burek> also you can add -channel 0 before -i
[01:57] <burek> for ffserver, just leave out all the output stuff (in this case everything after the -i, so "-vcodec libx264 -crf 23 -preset medium out.mp4")
[01:57] <burek> and replace it with http://127.0.0.1:8090/cam1.ffm
[01:58] <burek> because all the needed output stuff will be taken from the ffserver's http reply and configured by ffmpeg
[01:59] <burek> JPeterson why would you stream from vlc to ffmpeg
[01:59] <burek> NonaSuomy, the lines before my last one were for you :)
[02:00] <JPeterson> burek: to be able to seek during playback, and play a playlist, and possibly change subtitles during playback
[02:00] <NonaSuomy> ok I will try that out
[02:00] <JPeterson> burek: and to be able to play media from a rar archive
[02:00] <NonaSuomy> ffmpeg -f v4l2 -s 480x360 -i /dev/video0 -vcodec libx264 -crf 23 -preset medium out.mp4 think I tried this one but I put ffmpeg -f v4l2 -s 480x360 -i /dev/video0 -vcodec libx264 -crf 23 -preset medium http://127.0.0.1:8090/cam1.ffm
[02:01] <burek> NonaSuomy, that's not needed, because ffmpeg will get the output options from ffserver :)
[02:02] <burek> since you can have multiple outputs defined in ffserver, for ex.
[02:02] <burek> JPeterson why not using vlc only then?
[02:03] <JPeterson> burek: it can't output rtsp announce or rtmp
[02:14] <burek> JPeterson are you sure about that
[02:14] <JPeterson> burek: uhu
[02:15] <JPeterson> the docs is here http://www.videolan.org/doc/vlc-user-guide/en/ch04.html#id339397
[02:15] <burek> VLC versions 2.0.x and above support RTMP streaming through ffmpeg/libav.
[02:15] <burek> that's old docs
[02:15] <burek> read their wiki
[02:16] <burek> http://wiki.videolan.org/Rtmp
[02:16] <burek> also, visit #videolan
[02:17] <JPeterson> burek: why dont you tell me how to output rtmp then
[02:17] <burek> I'm not a vlc support expert
[02:17] <burek> so ask in #videolan
[02:17] <burek> I'm just saying a lot of things point to conclusion that it is possible with vlc
[02:20] <JPeterson> burek: except the code i guess
[02:20] <burek> JPeterson did you ask in #videolan?
[02:21] <JPeterson> burek: ya
[02:27] <JPeterson> but why ask when there is no rtmp interface http://git.videolan.org/?p=vlc.git;a=tree;f=modules/stream_out
[02:28] <JPeterson> burek: so the argument about what vlc does aside, can we get back to my question
[02:28] <burek> which is?
[02:28] <JPeterson> [01:55] <JPeterson> whats the preferred way to stream from vlc to ffmpeg?
[02:29] <burek> there is no
[02:29] <NonaSuomy> so burek I did this http://pastebin.com/TKjhcZY1
[02:29] <NonaSuomy> and all my stream launch with no errors but when i goto ps aux I dont see the h264 stream there
[02:30] <burek> NonaSuomy, can you comment out all the other streams except h264
[02:31] <NonaSuomy> sure
[02:31] <JPeterson> how do i stream rtsp from vlc to ffmpeg?
[02:32] <burek> JPeterson I don't know really
[02:32] <burek> ask in #videolan
[02:32] <JPeterson> ok let me rephrase that, how do i stream rtsp from any program to ffmpeg
[02:34] <burek> read the documentation for any program?
[02:34] <burek> how is that even remotely related to ffmpeg?
[02:36] <NonaSuomy> rebooting
[02:36] <NonaSuomy> how do i kill a ffmpeg stream kill -9 PID doesnt seem to do anything to it
[02:37] <NonaSuomy> or stop all of them
[02:37] <burek> NonaSuomy, killall -9 ffmpeg
[02:37] <NonaSuomy> so I dont have to reboot
[02:39] <NonaSuomy> hmm is that the right comment for the conf a #
[02:39] <NonaSuomy> as all the streams still started up with the server
[02:39] <NonaSuomy> except the h264 one
[02:40] <NonaSuomy> just to note killall -9 ffmpeg did nothing to them as well
[02:40] <burek> ps aux
[02:40] <NonaSuomy> yea
[02:40] <burek> see what state those processes are in
[02:41] <NonaSuomy> they are still there
[02:41] <NonaSuomy> root 1306 15.7 2.9 29364 14780 ? S 20:38 0:05 ffmpeg -s 480x360 -f video4linux2 -standard NTSC -channel 0 -i /dev/video0 http://127.0.0.1:8090/cam1.ffm
[02:41] <NonaSuomy> root 1307 17.7 2.9 29364 14780 ? S 20:38 0:05 ffmpeg -s 480x360 -f video4linux2 -standard NTSC -channel 3 -i /dev/video3 http://127.0.0.1:8090/cam4.ffm
[02:41] <NonaSuomy> root 1308 16.3 2.9 29364 14768 ? S 20:38 0:05 ffmpeg -s 480x360 -f video4linux2 -standard NTSC -channel 1 -i /dev/video1 http://127.0.0.1:8090/cam2.ffm
[02:42] <burek> kill -9 1306
[02:42] <burek> ?
[02:44] <NonaSuomy> root 1307 17.6 2.9 29364 14780 ? S 20:38 0:30 ffmpeg -s 480x360 -f video4linux2 -standard NTSC -channel 3 -i /dev/video3 http://127.0.0.1:8090/cam4.ffm
[02:45] <NonaSuomy> it just stays there with another pid
[02:45] <NonaSuomy> does ffserver keep them going
[02:46] <burek> probably
[02:46] <burek> try not using Launch directive
[02:46] <burek> and start ffmpegs in another shell
[02:46] <burek> brb
[02:46] <NonaSuomy> I killedall ffserver
[02:46] <NonaSuomy> and they went away
[02:47] <NonaSuomy> ah crap just realized what I was doing wrong
[02:48] <NonaSuomy> I was in my home dir
[02:48] <NonaSuomy> facepalm
[02:54] <NonaSuomy> so its all commented out now
[02:54] <NonaSuomy> and I get nothing
[02:54] <NonaSuomy> but ffserver starts fine
[02:54] <NonaSuomy> with just the cam 3 in there
[04:01] <rud> any "-f segment" users around ..?
[04:07] <relaxed> rud: what is your question?
[04:07] <rud> relaxed: when using -segment_list and -segment_list_type ext , you get a valid playlist, but without EXTM3U tags in them
[04:08] <rud> the files cannot be directly used for HLS, because iOS devices will choke on the file if they don't find at least two specific tags
[04:08] <rud> trying to find is there is a way to inject these tags using ffmpeg
[04:10] <rud> sorry, "-segment_list_type flat", not ext :/
[04:13] <relaxed> what's your command?
[04:15] <rud> -f segment -segment_time 5 -segment_list_type flat -segment_list stream.m3u8 -y -segment_format mpegts stream%05d.ts
[04:15] <rud> using git-master
[04:21] <relaxed> hmm, maybe you can insert the tags after encoding.
[04:21] <relaxed> with some scripting...
[04:26] <relaxed> It seems to be #EXTINF:$SECONDS,$NAME
[04:28] <rud> well, it's for live streaming, so i cannot add anything "after"
[04:29] <rud> the two really needed tags are : #EXTM3U\n#EXT-X-TARGETDURATION:5
[04:29] <rud> 5 being the -segment_time
[04:29] <rud> than per file, you can add the tag you just mentioned
[04:30] <rud> well, we should add that tag
[04:30] <relaxed> is the content live?
[04:30] <rud> yes
[04:30] <rud> pulled from a live RTMP feed
[04:31] <relaxed> okay... If the duration is the always the same and so is the file name, can't you create it beforehand anyway?
[04:32] <relaxed> you should probably file a bug report, but that might get you by until it's fixed. ^^
[04:33] <rud> well, i did post an enhancement request https://ffmpeg.org/trac/ffmpeg/ticket/1642
[04:33] <rud> i'm sure this feature could be handy .. for the ones that use ffmpeg itself, not it's libs in their own project :/
[04:33] <relaxed> s/duration/segment length/
[04:37] <relaxed> write a script that starts creating the stream.m3u8 file and increments by 5 seconds in real time, while checking on ffmpeg's pid.
[04:38] <relaxed> good luck
[04:39] <rud> relaxed: i have found another way, i can create a static playlist with files 1-5, and tell ffmpeg to cycle back to 1 after the 5th segment
[04:39] <rud> but& it's cranky
[04:40] <rud> i.e.: you can't keep *all* the footage.. meaning people can't read it from the beginning or seek back in time.
[04:58] <JPeterson> can i mux without transcoding?
[05:00] <sacarasc> Yes.
[06:22] <JPeterson> can i decode with dxva?
[08:46] <JPeterson> can i open a rtsp listening socket?
[08:59] <JPeterson> what's the equivalent of vlc's --sout="#rtp{sdp=rtsp://:1234/live.sdp}"?
[08:59] <JPeterson> or if youre not familiar with vlc, how do i open a rtsp listening socket with -f mpegts
[09:12] <shevy> ffmpeg -i "foo.4" -acodec libmp3lame -ab 128k "bar.mp3"
[09:12] <shevy> oops
[09:13] <shevy> ffmpeg -i "foo.m4" -acodec libmp3lame -ab 128k "bar.mp3"
[09:13] <shevy> question - is this bad? I only want to keep a .mp3 version of a .mp4 video file
[09:13] <shevy> I fail at pasting today... was supposed to be a .mp4 file ;P but I think you get the idea
[09:13] <shevy> or is -ab 128k too bad?
[09:14] <ubitux> you might prefer vbr
[09:14] <ubitux> -aq 0 or something
[09:15] <ubitux> it's unlikely, but if it's already in mp3 in the mp4 you can acodec copy
[09:15] <shevy> hmm the -aq, that would mean "try not to lose quality" ?
[09:15] <shevy> Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 191 kb/s hmm seems to be aac
[09:15] <ubitux> quality scale
[09:16] <ubitux> it's codec specific
[09:16] <shevy> I see, ok
[09:16] <ubitux> with libmp3lame, i guess it's equivalent to V0
[09:16] <ubitux> aka the best mode iirc
[11:02] <juanmabc> DEV amv AMV Video
[11:02] <juanmabc> whatever i do, no way to encode with that
[11:02] <juanmabc> and amv-codec-tools prints a weird color palette
[12:11] <JPeterson> sudo add-apt-repository ppa:motumedia/libav-daily dl ffmpeg_4%3a0.9~~git20120514.33524-1~precise1_all.deb that contain data.tar\.\usr\share\doc\ffmpeg\
[12:11] <JPeterson> 'am i incorrect to expecte the binary?
[13:24] <codinho> I have added timer on the video using drawtext filter but the time runs too slow, why this may happen?
[13:24] <codinho> and how can I solve this problem?
[15:30] <Mavrik> hmmm, ffmpeg.org libavfilter documentation page isn't working for awhile now
[15:30] <Mavrik> who should I report that to?
[15:31] <saste> Mavrik: the page was merged in filters.texi
[15:31] <saste> now it is integrated in command line docs
[15:31] <saste> we are thinking about creating separated pages per components (ffmpeg-filter, ffmpeg-codecs, ffmpeg-muxers etc.)
[15:32] <saste> feel free to suggest/open a ticket on trac
[15:32] <Mavrik> I see
[15:32] <Mavrik> saste: great, thanks :)
[15:32] <Mavrik> returning a 404 would probably be good though, google still returns the result :)
[15:33] <Mavrik> will write a ticket :)
[16:17] <Mavrik> hmm, also, is there any way to tell ffmpeg to skip frames - e.g. keep only every 10th frame?
[16:22] <saste> Mavrik: select filter (or mp=framestep, not sure if it works)
[16:23] <Mavrik> hmm, yeah, found it. It seems I also need to pass "-r" to prevent ffmpeg from duplicating output frames
[18:16] <ludde> How can I output every 240th frame of a movie into a png file?
[18:17] <saste> ludde: check the select filter
[18:19] <ludde> thanks
[18:35] <shevy> how many different developers are hacking on ffmpeg within a given month? roughly... 10?
[18:36] <iive> define developer :P
[18:40] <Mavrik> probably "how many different commiters have contributed accepted patches in a given month" :)
[18:49] <shevy> hmm
[18:50] <shevy> let's say 2 commits in one month would qualify as a committer
[18:52] <saste> shevy: http://www.ohloh.net/p/ffmpeg
[18:53] <saste> 59 contributors in the last month
[18:53] <shevy> cool
[19:06] <brodul> hi I am using git version of ffmpeg and it cant load the profile or vprofile for x264
[19:06] <brodul> I would like to load baseline profile
[21:17] <sugar> hello
[21:23] <sugar> i am converting video with ffmpeg and libx264
[21:24] <sugar> tried to use threds 0 and threads 4, and didn't see any different in speed
[21:24] <sugar> why?
[21:49] <patkoscsaba> hi everyone
[21:49] <patkoscsaba> is there an option to record a specific window on Linux (KDE) ?
[21:59] <applegekko> patkoscsaba, not sure but you could always just capture the screeen region where the window is
[22:14] <patkoscsaba> ok than ... is there any way ffmpeg can mark the recorded region, for example by drawing a rectangle to show the recorded area?
[22:20] <relaxed> patkoscsaba: xwininfo can give you the info required.
[22:21] <jesk> why do they all rip to mkv, mp4 would be so much cooler?!
[22:22] <jesk> all this transcoding work, crazy
[22:25] <JEEB> matroska supports much more stuff
[22:25] <JEEB> mp4 is limited in video, audio and subtitle formats
[22:26] <JEEB> as well as generally supported other kinds of streams such as attachments
[22:26] <JEEB> oh, and chapters
[22:26] <JEEB> mp4 has no official spec for chapters, only two different ways that are unofficial
[22:26] <JEEB> (the mov way and the Nero way)
[00:00] --- Fri Aug 17 2012
More information about the Ffmpeg-devel-irc
mailing list