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

burek burek021 at gmail.com
Wed Jul 27 03:05:01 EEST 2016


[03:00:49 CEST] <Ravens_S> I am need of a little bit of help. I am trying to create a batch file that can mass convert an entire directory of music. The batch file will request the location of your files and where you want the files to go and in the middle it will convert that whole directory from say flac to mp3. Any suggestions?
[03:03:21 CEST] <DHE> shell scripting?
[03:03:33 CEST] <DHE> it's doable, but ffmpeg won't do all the work for you
[03:03:45 CEST] <Ravens_S> In the form of window batch file.
[03:04:31 CEST] <Ravens_S> I have a small script that I am have put together but cant figure out why it is not working.. and that is what lead me here.
[03:05:22 CEST] <DHE> if you prefix your command with 'echo', a batch file will print out the commands it would run instead of running it. useful for debugging?
[03:06:27 CEST] <Ravens_S> I have tried something like that
[03:06:46 CEST] <Ravens_S> What I have come to is that my script stops working at this line
[03:06:48 CEST] <Ravens_S> $ (for FILE in %inputpath%.flac ; do ffmpeg -i "$FILE" -f mp3 -ab 192000 "`basename "$FILE" .flac`%outputpath%".mp3" || break; done)
[03:07:23 CEST] <furq> that doesn't look like batch
[03:08:26 CEST] <Ravens_S> You know what you are right. I just looked at the source I got it from and it is bash... damn it
[03:08:41 CEST] <Ravens_S> Back to the drawing board
[03:08:51 CEST] <Ravens_S> Thank furq
[03:31:43 CEST] <Ravens_S> Ok so I have done some googling and I came across this script.
[03:31:45 CEST] <Ravens_S> FOR %%f IN (%input%\*.flac) DO ( echo Converting: %%f ffmpeg -i "%%f" -ab 320k -map_metadata 0 "%output%%\%~nf.mp3" )
[03:32:33 CEST] <Ravens_S> The only problem is that once I put in the input and the output it will only create one file instead of multi files
[03:37:38 CEST] <KDDLB> why are you converting FLACs to MP3s? just asking
[03:38:38 CEST] <Ravens_S> Well I am trying to create a script that will do if for you automatically and vise versa
[03:39:09 CEST] <Ravens_S> It is ultimately a learning process for me
[03:39:29 CEST] <KDDLB> ah
[03:39:30 CEST] <KDDLB> ok
[07:09:43 CEST] <mrelcee> i convert FLAC to ALAC and dump them in a demp folder, which every 5 minutes is scanned and if there's a folder in there it gets moved to my 'Automatically add to iTunes'.  folder..   works quite slick.
[07:09:49 CEST] <mrelcee> demp/temp
[07:12:15 CEST] <mrelcee> i do my lifting in perl though, not shell script....
[09:03:38 CEST] <wouter__> I am using vaapi to encode my web cam as a live stream, but I am seeing high CPU usage on a single thread (70-80% on an i7-5557U), can this be reduced? Command is ffmpeg -vaapi_device /dev/dri/renderD128 -i /dev/video0 -vf 'format=nv12,hwupload' -c:v h264_vaapi -b:v 300k -r 30 rtmp://user:pass@server/live/stream
[09:18:26 CEST] <chovy> can i draw text on an input.gif file?
[09:19:34 CEST] <chovy> the problem i'm having is i have an input.mp4 and i generate a scaled down input.gif from it...but I can't seem to draw text on the scaled down .gif only the .mp4 which means the text shrinks when it scales.
[09:21:45 CEST] <thebombzen> chovy: use -vf scale before you use -vf drawtext
[09:21:56 CEST] <thebombzen> then it'll do the drawtext on the video post-scale
[09:26:38 CEST] <chovy> thebombzen: thanks
[09:27:16 CEST] <chovy> thebombzen: can you take a look at my script?
[09:28:14 CEST] <chovy> i'm basically doing three ffmpeg runs
[09:29:21 CEST] <chovy> i'm not actually scaling the video
[09:29:26 CEST] <chovy> it only scales the .gif
[09:30:01 CEST] <thebombzen> I'm actually going to bed now lol. it's 3:30 a.m. here
[09:30:52 CEST] <chovy> thebombzen: https://gist.github.com/anonymous/20993ba3cc001c784731135e0b6e89a8
[09:31:24 CEST] <chovy> its quick. i'm thinking i have to add a command to scale the video down first. but this is going to take like 10 minutes to run
[10:32:37 CEST] <nichego> i run ffprobe -count_frames on some files. it takes some time to run but does not output anything besides the information that comes from running ffprobe without that switch. what am i doing incorrectly?
[11:02:26 CEST] <platzhirsch> If I stream something to ffmpeg which listens on rtmp, what would be a good way to switch the input stream dynamically to just black frames. Is that something which can be done within ffmpeg, do I need to build something with GStreamer here or any other ideas?
[14:17:17 CEST] <_Vi> How do I play this RTP stream:  `ffmpeg .... -c pcm_s16le  -f rtp   rtp://192.168.99.116:12346/` ? What FFmpeg command should stay on the other side?
[14:21:54 CEST] <_Vi> If I try `ffmpeg -ar 44100 -ac 2 -f s16le  -i udp://:12346 ....`, I hear the scrambled sound (because of RTP headers). How do I make FFmpeg interpret those headers (manually specifying all codecs and bit rates on command line instead of in SDP file).
[14:31:17 CEST] <_Vi> Strangely, it works with pcm_s16be...
[15:52:01 CEST] <libdavid> hi. i'm having some trouble with the "movie" filter
[15:52:23 CEST] <libdavid> according to https://ffmpeg.org/ffmpeg-filters.html#movie-1 the file "can also be a device or a stream accessed through some protocol"
[15:53:11 CEST] <libdavid> but when i try to submit an m3u8 file over http i get this: http://pastebin.com/spWkPK0n
[15:53:56 CEST] <libdavid> how can i pass the movie filter an m3u8 file over http?
[23:20:54 CEST] <gudenau> Hello!
[00:00:00 CEST] --- Wed Jul 27 2016


More information about the Ffmpeg-devel-irc mailing list