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

burek burek021 at gmail.com
Fri May 4 02:05:02 CEST 2012


[03:33] <PMacDiggity> Hello, is it possible to stream from a file/live video source with ffmpeg to a transcoded (or not transcoded) RTP/RTMP/UDP output? How about taking an RTP/RTMP/UDP unicast stream and unicasting it to multiple destinations? I've see the question asked in a bunch of forums, but none seem to have a conclusive answer one way or the other, and haven't been able to get it to work myself. Thanks
[04:07] <C0rn3ll> I am streaming video but it is not working with iphones or ipads. Can you look at this and tell me what I am doing wrong?
[04:07] <C0rn3ll>  ffmpeg -passlogfile "$movie" -i "$movie" -pass 1 -s 500x374 -vcodec libx264 -vpre veryslow_firstpass -b 500k -bt 500k -threads 0 -f rawvideo -an -y /dev/null && ffmpeg -passlogfile "$movie" -i "$movie" -pass 2 -s 500x374 -acodec libfaac -ab 96k -ac 2 -vcodec libx264 -vpre veryslow -b 500k -bt 500k -threads 0 "$NEWPATH"
[04:12] <_SKiTZO> C0rn3ll: i'm no expert but i think you cannot stream using passes
[04:12] <_SKiTZO> because each pass neeed to complete before the next starts
[04:12] <C0rn3ll> that is my encoding script I use to convert my video to mp4
[04:12] <_SKiTZO> and streaming doesnt have a beginning and/or end
[04:12] <_SKiTZO> ah ok
[04:13] <_SKiTZO> so the resulting mp4 doesnt work on i*
[04:14] <C0rn3ll> the resulting video plays on everything but apple devices
[04:15] <C0rn3ll> my ffmpeg build is from july 2010. Should I get a newer version or is my script wrong?
[04:31] <_SKiTZO> I don't know . I would look for a "working" script example on the net and then gradualy change from that towards what you have, and find which changes make it stop working
[04:32] <_SKiTZO> since I don't know what the requirements of apple players are
[04:33] <_SKiTZO> this looks like a start: http://fclose.com/b/linux/3540/converting-video-files-for-ipod-iphone-ipad/
[04:35] <VooDooNOFX_> C0rn3ll, how is the iPad getting to your video stream?
[04:37] <littlebat> maybe you can use "ffmpeg -i filename" or "mediainfo filename" to detect media parameters of some medias your ipad can play
[04:37] <VooDooNOFX_> I'm pretty sure it doesn't support x264, only mp4 or qt
[04:50] <C0rn3ll> my files are server up via a webbrowser
[04:51] <C0rn3ll> the iphone or ipad reaches my files via a web url like http://something.com/myfile.mp4
[04:57] <pasteeater> C0rn3ll: you could use the ipod640 preset or use a more recent ffmpeg and use -preset foo -profile:v baseline -level 30 (or the ipod640 preset)
[04:58] <pasteeater> old syntax is "-vpre veryslow -vpre ipod640". recent syntax would be "-preset veryslow -vpre libx264-ipod640"
[05:04] <_SKiTZO> I have a webcamera that i would like to "expose" on the network as an available video stream for playing back in VLC. So far I have set up an avserver .conf that wants to receive data on http://localhost:8090/webcam.ffm
[05:04] <_SKiTZO> but i am strugling to have avconv feed it from my webcam
[05:06] <_SKiTZO> i am wondering how can i tell avconv which format that i want to record in. I get "The V4L2 driver changed the video from xxx to yyy"
[05:06] <_SKiTZO> also when  all options are set up the command just quits
[05:07] <_SKiTZO> no recording takes place
[05:07] <_SKiTZO> but if i use the exact same settings outputing to a local file it records just fine
[05:08] <_SKiTZO> I would love some tips on which parameters to specifyt to have a successfull streaming set up
[05:55] <pasteeater> _SKiTZO: use a pastebin site to show your ffmpeg command and the complete console output
[06:48] <juanmabc> how to understand?: Number of stream maps must match number of output streams
[06:48] <juanmabc> i do ffmpeg -i file.avi -map 0 -acodec copy -vcodec copy -vb 800KB ffile.avi
[06:49] <juanmabc> to get all audio streams
[06:49] <juanmabc> and decrease HD
[06:49] <juanmabc> ffmpeg-0.8.10
[06:56] <pasteeater> juanmabc: use a pastebin site to show your ffmpeg command and the complete console output
[06:56] <juanmabc> that's really all
[06:56] <pasteeater> also, -vcodec copy and -vb are mutually exclusive.
[06:56] <pasteeater> the output contains useful information other than any obvious errors
[06:56] <juanmabc> i tried -vcodec mpeg4 thinking in that same message
[06:57] <pasteeater> so ffmpeg is probably ignoring -vb 800k, which is probably what you want anyway.
[06:58] <pasteeater> "and decrease HD", oh you what to reduce the size of video.
[06:59] <juanmabc> yep, so -vcodec mpeg4 -vb 800KB, i've used this other times, new thing is keep all streams
[06:59] <juanmabc> mainly 0.0 video 0.1 spanish 0.2 english
[07:00] <juanmabc> i think if i just encode with no -map 0 it picks the first ones
[07:00] <juanmabc> again, with -map 0, gives that "should match message"
[07:04] <pasteeater> if you provide the console output someone may see the issue, but now i must leave.
[07:15] <juanmabc> i got it -newaudio
[07:24] <grepper> which was removed in ffmpeg 0.9 afaik
[09:15] <AntumDeluge> How can I send a "quit" signal to an ffmpeg process that is running in the background? When it is running in the background I cannot press the "q" key to stop encoding. Right now I am using the Linux command "kill" to send a TERM signal to the process ID, but I do not think that this ends the encoding cleanly.
[09:18] <Tjoppen> it handles whatever signal ^C is IIRC
[09:18] <Tjoppen> it should write footers etc.
[09:19] <AntumDeluge> Pressing "^C" is the same as pressing "q"? Then sending a TERM signal via the kill command should be safe, right?
[09:20] <Tjoppen> the truth is in the code
[09:20] <Tjoppen> try encoding a mov or mp4. if it's playable then yes, it did write footer
[09:20] <Tjoppen> s
[09:21] <AntumDeluge> Okay, great! My videos have all been playable so far. Thanks for the help.
[10:33] <GreatEmerald> Hm, I wonder why when I record the screen and encode the recording with mpeg4, while synchronising audio to video, it works fine, while if I use libx264, I get nothing but ALSA overruns...
[10:33] <GreatEmerald> I use these commands: http://pastebin.com/gXL2PZxU
[10:35] <GreatEmerald> Oops, there was a mistake there, I meant this: http://pastebin.com/SUHarR6A
[15:55] <_SKiTZO> when providing input to an avserver feed with avconv, is it possible to tell avconv to match the required parameters of the feed?
[15:55] <_SKiTZO> such as bitrate,rate,width and height?
[15:56] <_SKiTZO> or must it be specified by hand?
[16:43] <StaRetji> folks, how would one reduce volume of va stream in output?
[16:43] <StaRetji> I have a stream that I restream, but audio is very loud
[16:43] <StaRetji> i tried with -vol 128 but it seems it has no effect
[17:30] <stream> Good day, I would like to know how to stream video using ffmpeg on the service aliez.com?
[17:36] <stream> I see in the log: "Closing connection: NetStream.Failed
[17:36] <stream> rtmp://live.aliez.com/aliezlive-live/xxxxxxxxxxxxxxxxx: Operation not permitted"
[17:38] <stream> my FFMPEG(ubuntu 11.10): ffmpeg version N-40077-g9b84f8a Copyright (c) 2000-2012 the FFmpeg developers built on Apr 23 2012 19:28:29 with gcc 4.6.1
[17:55] <stream> there is anyone else?
[22:01] <goiken> i have an error: http://pastehtml.com/view/bwv2yvyvc.txt
[22:08] <goiken> here's the config.log: http://pastehtml.com/view/bwv3j0f48.txt
[22:28] <iive> goiken:  x264.h: No such file or directory
[22:29] <goiken> what does that mean?
[22:29] <goiken> or rather what do i do to fix it :-)
[22:32] <iive> goiken: it means that you don't have the development files for x264
[22:32] <iive> you need the header (.h) file, in addition to the library
[22:35] <goiken> so i just `sudo apt-get install x264` and retry ?
[22:36] <iive> try with x264-dev
[22:40] <goiken> unable to locate package
[22:40] <goiken> x264 alone seems to work though
[22:41] <goiken> ok& did that and i ran it again: same error
[22:45] <iive> can you find x264.h file somewhere on your filesystem, preferably in /usr/include or /usr/local/include
[22:45] <iive> x264 is already compiled, you need that .h file for compilation.
[22:47] <goiken> hm& `(ls /usr/include/ && ls /usr/local/include) | grep x264` gives nothing
[22:48] <goiken> `ls -R` doesn't help either
[22:48] <iive> i don't remember all apt-get and dpkg commands
[22:48] <iive> can you check if x264-dev have installed successfully and what files does it contain?
[22:49] <iive> also usually main packages like x264 do contain a references to other optional packages, like the -dev ones.
[22:49] <goiken> i ran `apt-get install x264` (without -dev) and it worked without returning any errors
[22:49] <goiken> when i tried it with '-dev' it said, that there was no such package
[22:52] <iive> it usually says the names of the related packages when installing, take a closer look of the text
[22:53] <goiken> The following packages were automatically installed and are no longer required:
[22:53] <goiken> libboost-regex1.42.0 ttf-wqy-zenhei libswresample0 libsdl-net1.2 libsdl-ttf2.0-0 libboost-iostreams1.42.0 libavfilter2 libavdevice53
[22:53] <goiken> mean those?
[22:55] <iive> nope
[22:55] <iive> ok, try apt-get builddep ffmpeg
[22:56] <goiken> Invalid operation builddep
[22:58] <sgfgdf_> hi, guys! i'm trying to encode a mp3 file to aac+ encoded m4a file using -- ffmpeg -i file.mp3 -acodec libaacplus -ac 2 -ab 32k file.m4a . the mp3 file is 7.9 MB and the output m4a file is 811 KB and with really bad quality. while doing the convertion there was messages like this "Truncating packet of size 1024 to 317". any help, please?
[23:01] <iive> builddeps?
[23:01] <iive> build-dep(s)
[23:13] <pasteeater> goiken: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[23:14] <goiken> pasteeater& that's what i followed to produce the error
[23:15] <pasteeater> curses. what ubuntu version?
[23:16] <goiken> iive: `build-deps` wroked& and now? `./configure &`
[23:16] <goiken> i'm on version  11.04
[23:17] <pasteeater> you shouldn't really build-deps if you're compiling from Git.
[23:18] <pasteeater> did x264 even get installed? just run "x264".
[23:19] <goiken> goiken at allan:~/ffmpeg$ x264
[23:19] <goiken> x264 [error]: No input file. Run x264 --help for a list of options.
[23:19] <pasteeater> x264 --version
[23:19] Action: goiken afk cooking
[23:20] <goiken> x264 --version
[23:20] <goiken> x264 0.118.2092 6eac7c3
[23:20] <goiken> (libswscale 2.1.0)
[23:20] <goiken> (libavformat 53.24.0)
[23:20] <goiken> (ffmpegsource 2.16.0.0)
[23:20] <goiken> built on Dec 28 2011, gcc: 4.5.2
[23:20] <goiken> configuration: --bit-depth=8
[23:20] <goiken> x264 license: GPL version 2 or later
[23:20] <goiken> libswscale/libavformat/ffmpegsource license: GPL version 2 or later
[23:23] <pasteeater> kind of old. didn't you compile it today?
[23:25] <pasteeater> that's not from the repository, and i bet it was compiled without --enable-static.
[23:33] <goiken> hm& so what would i do to fix it?
[23:34] <goiken> i fetched and installed some x24 from a repository an hour ago& not sure if this is the one that is used
[23:35] <pasteeater> remove the old x264 (and libx264-dev if build-deps brought that in).
[23:35] <pasteeater> and then follow x264 compile instructions as in guide
[23:40] <pasteeater> you can see if the binary belongs to a specific package: dpkg -S /usr/bin/x264
[23:40] <pasteeater> or dpkg -S /usr/local/bin/x264
[23:41] <pasteeater> depending if it was integrated into the package manager
[23:42] <esby> trying to compile gegl on ubuntu 11.10; getting /usr/local/lib/libavcodec.a(lpc_mmx.o): relocation R_X86_64_PC32 against symbol `ff_pd_1' can not be used when making a shared object; recompile with -fPIC ; i am assuming --enable-pic must be used when compiling ffmpeg, but it does not change anyhting, i am missing something ?
[23:53] <pasteeater> esby: did you see the ubuntu compile guide?
[23:54] <pasteeater> oh, i missed "gegl"
[23:54] <pasteeater> anyway, the question is still valid
[23:55] <esby> pasteeater: well i checked it, but found nothing relevant, i was using a similar guide (in french)
[23:56] <esby> but this sounds linked with gecl anyway
[23:56] <esby> gegl
[00:00] --- Fri May  4 2012


More information about the Ffmpeg-devel-irc mailing list