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

burek burek021 at gmail.com
Wed Oct 29 02:05:01 CET 2014


[00:04] <voip_> c_14, i tryed  -f tee " rtmp://10.110.1.129/live/1|rtmp://10.110.1.130/live/ttt"
[00:04] <voip_> result : Output #0, tee, to ' rtmp://10.110.1.129/live/1|rtmp://10.110.1.130/live/ttt':
[00:04] <voip_> sorry result: Output #0, tee, to ' rtmp://10.110.1.129/live/1|rtmp://10.110.1.130/live/ttt':
[00:05] <voip_> Output file #0 does not contain any stream
[00:05] <voip_> But with 1 output it works
[00:09] <voip_> c_14, http://pastebin.com/VDiiyLKU
[00:11] <c_14> Get rid of the space after the '"'
[00:12] <voip_> same error
[00:14] <c_14> try adding [f=flv] in front of each of the rtmp:// parts
[00:15] <voip_> with bracets ?
[00:15] <c_14> yep
[00:16] <c_14> "[f=flv]rtmp://10.110.1.129/live/1|[f=flv]rtmp://10.110.1.130/live/ttt"
[00:17] <voip_> same eroor : Output #0, tee, to '[f=flv]rtmp://10.110.1.129/live/1|[f=flv]rtmp://10.110.1.130/live/ttt':
[00:17] <voip_> Output file #0 does not contain any stream
[00:17] <c_14> Throw a -map 0 in there somewhere?
[00:18] <voip_> in my command i dont use map
[00:20] <c_14> yep, I was asking you to add one to see if it helps.
[00:20] <voip_> oh
[00:20] <voip_> i will try
[00:23] <voip_> so, it shuld be: -f tee -map 0:v -map 0:a "[f=flv]rtmp://10.110.1.129/live/1|[f=flv]rtmp://10.110.1.130/live/ttt" ?
[00:23] <c_14> should work, the -f tee might have to be directly in front of the " though
[00:30] <voip_> it works! -f tee -map 0:v -map 0:a  "[f=flv]rtmp://A|[f=flv]rtmp://B"
[00:30] <voip_> thanks
[00:30] <c_14> np
[00:30] <c_14> Not sure why the tee pseudo muxer drops the implicit maps though...
[03:27] <Foxhoundz> What is the best parameters to convert an mp4 video into an mp3
[03:27] <Foxhoundz> while preserving the quality
[03:27] <Foxhoundz> bit rate
[03:27] <Foxhoundz> etc.
[09:10] <BtbN> mp3 video? oO
[10:06] <equanox> quit
[10:34] <xata> halp
[10:36] <xata> i have to ask this question again. what is the fastest way to resize mpeg2, preferrably without recoding? not-ffmpeg stuff is fine, but only ones, that run on linux.
[10:38] <bove> What's the simplest way to set pixel aspect ratio to 1:1. Can I do setsar=0 ?
[10:39] <BtbN> you can't resize a video without re-encoding it.
[10:40] <bove> BtbN: This is during encode
[10:45] <bove> Think I found the answer in something I wrote a while back: -vf 'scale=%i:%i,setsar=1'
[14:39] <SilverCode> Hi, using the libav API, what is the best way to tell what the container is?
[14:40] <SilverCode> hang on, nm found it
[14:44] <khaosmarmoset> what's the best way?
[14:48] <SilverCode> ok, I'm not sure if it the *best* way, but it works for me: AVFormatContext->iformat->name
[14:59] <bencc1> when transcoding on Windows, does ffmpeg uses the GPU by default?
[14:59] <bencc1> is it faster and more efficient to use the GPU instead of CPU?
[15:03] <sacarasc> Depends what you mean by more efficient... It uses more power, but it's quicker to decode sometimes.
[15:06] <bencc1> sacarasc: how can I turn it on and test?
[15:06] <bencc1> sacarasc: I'm transcoding from raw video to h264
[15:06] <zybi1> hi
[15:08] <zybi1> I use linux, for a film festival, which format should I try to make if my video work is shot in 720p h.264
[15:09] <zybi1> the festival asks for one of these: DCP, HDCAM, QuickTime ProRes 422 und 35mm
[15:09] <zybi1> 35 mm definately not
[15:09] <zybi1> prores is compressed again, that's why it's bad, too, right=
[15:09] <zybi1> ?
[15:10] <zybi1> HDCAM does that mean kind of analogue on a HDCAM cassette or is it a file format? on which medium?
[15:10] <sacarasc> bencc1: I don't know, I've never done it. And usually, raw video can't be done on GPUs anyway. And encoding on GPUs suck.
[15:10] <nasojlsu> HDCAM is digital on a casette
[15:11] <bencc1> sacarasc: I'll use CPU for now. thanks
[15:11] <nasojlsu> ProRes is a container format for sony, wrapped in quicktime .mov
[15:12] <nasojlsu> I don't know if you will be able to do that in linux
[15:12] <nasojlsu> i don't know what dcp is...
[15:13] <iive> afaik, preres is codec and ffmpeg supports it
[15:14] <nasojlsu> iive, you are correct
[15:16] <nasojlsu> dcp looks like a special .mxf file.
[15:16] <nasojlsu> quicktime preres is probably your best bet
[15:16] <nasojlsu> now... time for some coffee
[15:16] <iive> prorest, my mistake ;)
[15:16] <iive> prores
[15:16] <iive> yff
[15:17] <nasojlsu> haha yeah. ProRes
[15:17] Action: iive needs some of that coffee
[15:22] <zybi1> https://en.wikipedia.org/wiki/Digital_Cinema_Package
[15:22] <zybi1> that's what dcp stands for
[15:43] <Tatou> hi \o/
[15:44] <Tatou> so i have a problem, someone can help me ? <3
[15:45] <Tatou> with this command : ffmpeg -i video.mkv -c:v libx264 -b:v 650k -c:a libfaac -b:a 192k -ac 2  -vf -s 720x404,subtitles=/home/yamaha/torrents/srt/subtitles.srt   /home/yamaha/torrents/out/video.mp4
[15:45] <Tatou> the commande -s (scale) doesn't work
[15:51] <alexvf> hi all, i want to use custom i/o to demux an incoming stream. What should i return in the read_packet callback when there is no data in the input if i want the callback to continue being called?
[15:51] <alexvf> i'm using libavformat 2.2
[16:01] <alexvf> i'm returning AVERROR(EAGAIN) now and i reset AVIOContext's eof_reached and error before calling av_read_frame again
[16:02] <alexvf> but, when some call to read_packet callback misses some data, i see noise in the decoded video
[16:04] <Mavrik> alexvf, is it possible you're just not properly cutting packets?
[16:04] <Mavrik> I've seen some decoders to be finnicky about that - e.g. returning full NAL units and stuff
[16:04] <alexvf> it is, but i thought av_read_frame cuts them for me
[16:04] <Mavrik> and things like that fact that packet should always have a full frame
[16:05] <alexvf> if not, what's the point of av_read_frame?
[16:06] <Mavrik> well look at the source
[16:07] <Mavrik> it seems that av_read_frame does do that, but it first checks for a stream flag
[16:07] <alexvf> i already did but i don't understand quite much
[16:07] <alexvf> from what i see, returning AVERROR(EAGAIN) should do the magic, or better said, avoid the magic
[16:10] <alexvf> is there some sample on how to use av_read_frame to read from network streams? i think i'm missing something
[16:10] <alexvf> i found a custom i/o sample, but only for reading files
[16:14] <Mavrik> well..
[16:14] <Mavrik> ffmpeg.c?
[16:14] <Mavrik> or ffplay.c?
[16:15] <iive> Tatou: I had no idea such syntax is still used, try with -vf scale=720:404,subttiles....
[16:15] <Tatou> ok i test
[16:16] <alexvf> i'll take a look to ffplay.c
[16:16] <alexvf> thanks Mavrik
[16:16] <Tatou> No, it doesn't work :s
[16:18] <Tatou> hum, ok
[16:21] <w00ds> hello!
[16:21] <w00ds> hope everyone is having a great day
[16:21] <Tatou> live : it work
[16:21] <w00ds> wanted to get some help with hardcoding subtitles in an mp4
[16:21] <Tatou> \o/
[16:21] <Tatou> I test
[16:21] <w00ds> trying to use the following command: ffmpeg -i video.avi -vf subtitles=subtitle.srt output_video.avi
[16:22] <w00ds> it spits this out though
[16:22] <w00ds> https://www.irccloud.com/pastebin/Nzm04tYl
[16:23] <w00ds> https://www.irccloud.com/pastebin/7noknHaL
[16:23] <w00ds> that is the configuration for ffmpeg im using.
[16:25] <kepstin-laptop> w00ds: first check the obvious thing, is the file 'subtitles.srt' in the current directory, with permissions such that it can be read?
[16:25] <kepstin-laptop> er, subtitle.srt, whatever.
[16:25] <w00ds> yes it is
[16:25] <relaxed> and use a normal pastebin site
[16:25] <w00ds> running the commands as root
[16:25] <w00ds> but yes, it's chmod 777 *
[16:26] <w00ds> relaxed: this one is built into my irc client
[16:26] <w00ds> i copy paste into irc, it creates a pastebin for me
[16:27] <relaxed> that's no excuse
[16:28] <w00ds> not an excuse, just educating you
[16:31] <relaxed> try one that doesn't require javascript or ask if it can open irc links, which seems viral
[16:32] <w00ds> its okay that my question stumps you relaxed
[16:33] <w00ds> just keep the chatroom clear for people who do have intelligence though, please.
[16:33] <iive> Tatou: good :)
[16:33] <Tatou> than's a lot, it work
[16:33] <Tatou> I test now x)
[16:33] <relaxed> w00ds: you're using my build, smartass
[16:36] <w00ds> i'm using your build?
[16:37] <relaxed> http://johnvansickle.com/ffmpeg/
[16:37] <w00ds> thats probably why it's not working, haha
[16:38] <iive> well, the log says it can't file the subtitle.srt file
[16:38] <w00ds> lets compile from scratch, get something actually working
[16:38] <w00ds> iive: think it's a bad .srt?
[16:38] <iive> more like wrong directory or permissions
[16:38] <w00ds> with mencoder it was able to read the file, but the video/audio was all corrupted/messed up ... this is why i like ffmpeg better
[16:39] <w00ds> im using my own pastebin
[16:39] <w00ds> thanks, but no thanks relaxed
[16:40] <iive> your own pastebin demands running a bunch of external scripts to show something...
[16:40] <iive> not good.
[16:40] <relaxed> iive: exactly
[16:41] <w00ds> thats unfortunate
[16:41] <w00ds> iive, permissions all 777
[16:41] <w00ds> running as root
[16:41] <w00ds> gave full paths to files/srt/mp4
[16:41] <w00ds> same outcome
[16:42] <kepstin-laptop> ... wow, how in the world can someone be so bad at making a pastebin that it shows a blank white page without javascript.
[16:43] <relaxed> and when you do enable javascript it asks to be the default for opening irc links
[16:45] <iive> i missed that... good the browser ask first.
[16:46] <iive> w00ds: try to give it absolute pathname to the file, if it fails, trace the file io calls using `strace`
[16:46] <w00ds> iive: i did provide absolute paths
[16:47] <w00ds> ./root/testing/ffmpeg-2.4.2-64bit-static/ffmpeg -i /vault2/downloads/video.mp4 -vf subtitles=/vault2/downloads/subtitle.srt /vault2/downloads/output_video.mp4
[16:49] <relaxed> fflogger gives good advice for getting help
[17:17] <ac_slater_> hey all. I need some libavformat advice. I want to mux two sources (video and data) into an mpegts stream. Any advice on creating program streams?
[17:21] <ac_slater_> ah I found some stuff... nevermind me
[17:24] <alexvf> Mavrik: neither ffmpeg.c or ffplay.c use custom I/O
[17:27] <alexvf> what i see is that AVERROR(EAGAIN) looks like the legit way to mean that av_read_frame has to continue being called
[17:34] <edibile> is it possible to stream to multicast ip using solely ffmpeg or is ffserver also required?
[17:35] <Mavrik> for multicast ffmpeg is enough
[17:35] <Mavrik> udp://224.etc range should just work
[17:36] <ac_slater_> edibile: are you just using udp as a transport or something like RTP/RTSP ?
[17:37] <edibile> was planning to use udp but am not entirely sure what the implications of using that over rtp/rtsp are
[17:37] <ac_slater_> edibile: RTP and RTSP and complicated. If you control both sides of the transmission, then it doesnt really matter
[17:38] <Mavrik> uh
[17:38] <Mavrik> that makes no sense :P
[17:38] <ac_slater_> Mavrik: haha yea it does
[17:38] <Mavrik> RTSP is a twoway protocol that kinda doesn't work over multicast :)
[17:38] <edibile> i'm using ffmpeg to combine multiple ip camera streams into a matrix and then want to multicast that combined stream so that other devices on my lan can access the stream
[17:38] <ac_slater_> Mavrik: RTSP delivers via RTP... the RTSP handshaking is TCP
[17:38] <Mavrik> edibile, then just pack it into mpeg2-ts and stream it as UDP stream
[17:39] <Mavrik> edibile, all devices on the subnet will be able to play the video as long as your router isn't doing anything funky
[17:39] <Mavrik> dealing with RTP/RTSP will just give you headaches in that kind of environment
[17:39] <ac_slater_> ^ which is what I said
[17:40] <edibile> ok, yeah, i'm not sure what's happening
[17:41] <ac_slater_> ill shut up. But I was asking if you were using RTP or planning on it. Since you said 'multicast' in general.
[17:42] <edibile> it works fine writing to a local file but when i change to "-f mgegts udp://224.1.1.1:1234" i can't connect
[17:42] <Mavrik> I hope that's a typo :D
[17:42] <Mavrik> can you do the pastebin?
[17:42] <Mavrik> ac_slater_, yeah, RTP is a pain -_-
[17:43] <Mavrik> even though, broadcasting SDP over SAP for multicast kinda works
[17:44] <edibile> not sure what i messed up, but i'll pastebin
[17:44] <ac_slater_> edibile: multicast is odd. 224.1.1.1 is valid but odd
[17:44] <edibile> ok, 239.101.101.1:1234
[17:45] <ac_slater_> also remember that 224.0.0.1 is the default group... and it's special
[17:49] <edibile> http://pastebin.com/px6axJd1
[17:49] <Mavrik> -_-
[17:49] <Mavrik> you'll save yourself ALOT of pain if you always explicitly set codecs.
[17:49] <Mavrik> you also didn't paste any important bits: the output.
[17:50] <Mavrik> right now we don't even know what format you're streaming in at all
[17:54] <edibile> ok, good point, deleted something i shouldn't have
[17:55] <edibile> seems it is using RTP though
[17:57] <Mavrik> makes no sense.
[17:57] <Mavrik> if you don't tell it to use rtp, it won't.
[17:57] <Mavrik> you're probably seeing RTP logs from the input since you're consuming RTSP streams ;)
[17:58] <edibile> yeah, ok, probably right =)
[18:00] <edibile> http://pastebin.com/cLr1Cb6N
[18:05] <Mavrik> dude.
[18:06] <Mavrik> why aren't you pasting the part with ALL THE STREAM INFORMATION and THE ACTUAL ERROR?!
[18:13] <edibile> sorry, didn't know you would want that (first time using ffmpeg)
[18:14] <edibile> http://pastebin.com/FKZuufnw
[18:39] <edibile> well, it's working fine now
[18:39] <edibile> maybe i wasn't letting it load long enough
[18:41] <edibile> thanks for the help
[18:50] <voip__> Hello guys, plesae help me with 1 stream processing and multiple IP outputs. In ffmpeg status i have someting like frame=  412 fps= 26 q=-1.0 Lsize=N/A time=00:00:16.74 bitrate=N/A dup=19 drop=0. My output hase audio, but no video.
[18:50] <voip__> http://pastebin.com/wByE8CB8
[19:30] <Diogo> ffmpeg -i http://<URL>/Teste.mov -c:v libx264 -f mp4 final.mp4
[19:31] <Diogo> anyone know why mov file request lots of HTTP 206 request to encode my video..
[19:31] <Diogo> with other files works wheel
[19:50] <Diogo> ?
[20:02] <voip__> any help ?
[21:01] <gilbahat> Hi, I would like some advice in choosing an intermediate editing codec. I need something which can be decoded and encoded by both ffmpeg and vfw. I prefer something with good enc/dec speed and not too high a bitrate, willing to take some lossyness - mjpeg is the baseline to compare to.
[21:03] <gilbahat> I guess I would start with the best recommended for ffmpeg and then see if I can hunt down a vfw codec for it
[21:06] <kepstin-laptop> do you need an intra-only codec?
[21:09] <llogan> gilbahat: i've used Ut Video with good results as an intermediate, but it may nto fit your "not too high a bitrate" requirement. it's lossless.
[21:10] <gilbahat> great question. I believe I do but I may just get away without it: the files will be edited, but are small (relatively speaking, up to 10 minute of raw footage at most), so maybe its not such a big deal. I believe I will need to benchmark to get a decisive answer.
[21:12] <kepstin-laptop> if you're considering mjpeg "to high bitrate" and are already using it in a lossy mode, then you'll probably have to go to an inter-coded lossy format.
[21:17] <gilbahat> kepstin-laptop: I dont consider the bitrate of mjpeg too high. the problem is, its so outdated that I believe that I could get much better quality for the same bitrate with a modern codec. but as far as intermediate codecs go, most seem to have higher bitrates than mjpeg but significantly better quality (DNxHD, ProRes, Cineform (not sure)), so I will take something which has a bitrate increase for a significant quality increase. Not 
[21:17] <gilbahat> why theres no demand for that - mj2k didnt seem to catch so well. motion jpeg XR never saw anything more than spec&
[21:19] <kepstin-laptop> hmm, most of the newer codecs designed specifically for intermediate work use higher bit depth color, which (assuming the entire processing chain uses high bit depths internally) reduces quality loss over multiple generations.
[21:19] <gilbahat> kepstin-laptop: the big question about using an inter-coded format is whether an editing software reading it will seek efficiently (i.e. use key frames, given a format that allows me to set the ratio of them)
[21:23] <kepstin-laptop> gilbahat: basically, you're gonna hit a quality per bitrate vs. encoding speed tradeoff, and you need to figure out which codec balances that tradeoff properly for your use case :/
[21:24] <kepstin-laptop> newer codecs can do better quality at a given bitrate, sure, but they do that by spending more time encoding (which is possible because computers have overall gotten faster)
[21:25] <gilbahat> kepstin-laptop: its a classic pick 2 isnt it. I have 2 options the way I see it: (1) look at modern popular intermediate codecs and see if any of them threw me a bone in the form of a lossy mode or (2) see if any modern non-intermediate codec offers some intra-only mode with fair bitrates.
[21:27] <gilbahat> kepstin-laptop: I know I am not exhausting my processing capacity encoding to mjpeg, so I can definitely get by with a codec that encodes slower. but it looks like that some of the modern things to do are supersets of approaches used in mjpeg - faster and better, because they are smarter so to speak.
[21:31] <voip__> guys, plesae help me with 1 stream processing and multiple IP outputs. In ffmpeg status i have someting like frame=  412 fps= 26 q=-1.0 Lsize=N/A time=00:00:16.74 bitrate=N/A dup=19 drop=0. My output has audio, but no video.
[21:31] <voip__> http://pastebin.com/wByE8CB8
[21:31] <kepstin-laptop> note that alongside other dedicated intermediate codecs, h264 (via x264) is also interesting to consider; it can be run intra-only, 4:4:4 sampling, high bit depths, etc, and the encoder's well-tuned
[21:33] <gilbahat> you know what, I guess that makes the most sense - I can get fair encoding speed, fair bitrates and definitely VFW support and quality encoder.
[21:55] <LucasG> Hi guys. I have problem with ffmpeg + ffserver. I would like to send stream via http but i have error Connection reset by peer. Detailed log: http://pastebin.com/kNcADER6 - I think, maybe  problem is in network (but it is not firewall problem). Maybe anyone have working ffserver instance and would like to try recive my stream in own ffserver?
[21:57] <LucasG> i will know that problem is on ffmpeg or ffserver side, or maybe both
[22:42] <kepstin-laptop> for what its worth, I poked some of the irccloud folks on twitter, and their pastebin is actually usable (sort of) without javascript now
[22:42] <kepstin-laptop> it just has a link to the raw, but whatever.
[22:48] <LucasG> More detailed pastebin: http://pastebin.com/D9LhWrUc
[23:00] <maui> hi all! can someone pls tell me how to use a distortion filter in a specific area
[23:11] <astr> I would like to save a video stream from a hd web cam and a seport audio source. I found the audio is not in sync. Is there a option to set an audio delay and would this fix the issue? I assume it would and that I would only have to update the audio delay number if I changed my audio DAC?
[23:12] <llogan> maui: maybe crop your desired area, then overlay the result on the undistorted version
[23:12] <astr> this would mean I could live stream in hd if I have the band width :D
[23:23] <LucasG> Any one can help with one little test with its ffserver?
[23:23] <llogan> might want to try the ffmpeg-user mailing list if you don't get help here
[23:24] <LucasG> thanks, i will try
[23:41] <voip__> hi llogan, pls help me with 1 stream processing and multiple IP outputs. In ffmpeg status i have someting like frame=  412 fps= 26 q=-1.0 Lsize=N/A time=00:00:16.74 bitrate=N/A dup=19 drop=0. My output hase audio, but no video.
[23:41] <voip__> http://pastebin.com/wByE8CB8
[23:48] <llogan> voip__: sorry, i have almost no experience with rtmp protocol
[23:49] <voip__> my problem with 2 outputs , i tink i am using vrong command
[23:53] <deivor> does it work if you output to one flv file?
[23:54] <llogan> do you need to add "-flags +global_header"?
[23:58] <voip__> deivor, you mean my case
[23:58] <voip__> ?
[23:58] <deivor> yes
[00:00] --- Wed Oct 29 2014


More information about the Ffmpeg-devel-irc mailing list