Re: [FFmpeg-user] Extract all audio regardless of stream/channel count
2017-02-10 12:40 GMT+01:00 Carles Vila: > If you could give me a starting point, I could probably figure out. This comes with no guarantee, no documentation and very minimal testing, but since you asked about a starting point... I put up a small python script that take a file with many streams, detect audio streams, output mono streams as single output file and stereo streams as two files, all in one pass. The script doesn't test for any cornercase, so there. Even if it's not exactly fit for your task, it shows how you can easily retrieve the output of ffprobe and produce a minimal ffmpeg command line. http://pastebin.com/C53fqZG7 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Extract all audio regardless of stream/channel count
On Fri, 10 Feb 2017, Carles Vila wrote: Hi, I'd like to know if there is a simple way (script) to extract all audios individually from a video. The video could have N stereo streams (normally up to 16), M mono streams (up to 16), or a combination of both. Now I have to write the -map structure manually after probing the input. Ideally I need to end up with as many mono wavs as individual channels. If you could give me a starting point, I could probably figure out. I think you can only do this by dynamically generating the command line based on the probed input. So yes, you should write a script which first probes the input streams with ffprobe (there are many output formats: xml, json), then your script should determine the command line based on the number of channels in yout input streams, and finally the script should execute ffmpeg with the proper command line. Regards, Marton ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Extract all audio regardless of stream/channel count
Hi, I'd like to know if there is a simple way (script) to extract all audios individually from a video. The video could have N stereo streams (normally up to 16), M mono streams (up to 16), or a combination of both. Now I have to write the -map structure manually after probing the input. Ideally I need to end up with as many mono wavs as individual channels. If you could give me a starting point, I could probably figure out. Thank you! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Npm - videoshow taking long time to convert video from images
Sorry, but I dint get your response. I am almost new to ffmpeg world. On Fri, Feb 10, 2017 at 4:25 PM, Carl Eugen Hoyoswrote: > 2017-02-10 7:55 GMT+01:00 Vivek Jain : > > -af afade=t=in:ss=0:st=0:d=3 -af afade=t=out:st=861:d=3 > > This does not do what most users expect, only > one filter invocation is made. > > Carl Eugen > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > -- Thanks, Vivek ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] ffmpeg git server misconfigured
2017-02-10 9:55 GMT+01:00 Moritz Barsnick: > On Fri, Feb 10, 2017 at 01:37:24 +0100, Carl Eugen Hoyos wrote: >> >bash-4.3$ git clone --depth=1 --branch "n3.2.2" --single-branch >> > http://git.ffmpeg.org/ffmpeg ffmpeg >> >> Does it work with source.ffmpeg.org? > > I can confirm it does; to be more precise, it works with > git://source.ffmpeg.org/ffmpeg (note the different protocol, not > http(s)). > > source.ffmpeg.org is an alias for videolan.org, while git.ffmpeg.org > seems to be a server of its own, i.e. another mirror? I thought source.ffmpeg.org is the official git server, I don't know why the download page disagrees... Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Npm - videoshow taking long time to convert video from images
2017-02-10 7:55 GMT+01:00 Vivek Jain: > -af afade=t=in:ss=0:st=0:d=3 -af afade=t=out:st=861:d=3 This does not do what most users expect, only one filter invocation is made. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Npm - videoshow taking long time to convert video from images
Hi Moritz, My requirement is to create video using an audio and set of images with varying durations. I wouldn't want to compromise the quality unless there is no other way to reduce video generation time. Would you be able to advise if there is a good npm module over ffmpeg which does the conversion? My end goal is to run ffmepg over AWS lambda and generate video, so I am currently trying out various available node modules over ffmpeg. Thanks in advance! Vivek The below ffmpeg output is actually produced by npm-videoshow module (over ffmpeg) On Fri, Feb 10, 2017 at 2:37 PM, Moritz Barsnickwrote: > On Fri, Feb 10, 2017 at 12:25:38 +0530, Vivek Jain wrote: > > I am trying to create video using npm-videoshow, but it appears to take > > considerable time (~3 minutes for 14 minute video). Could someone please > > advise how can the timing be improved. > [...] > > ffmpeg process started: ffmpeg -i > > /var/folders/9f/1wx7q0954l94rhtc4r6r95xwgn > /T/videoshow-0bdf6f71-cc4d-498c-b7bf-eaf1eccaa9a6 > > -i /tmp/audio.mp3 -y -b:a 128k -ac 2 -r 25 -b:v 1024k -vcodec libx264 > > -filter:v scale=w=640:h=trunc(ow/a/2)*2 -f mp4 -map 0:0 -map 1:0 -t 864 > -af > > afade=t=in:ss=0:st=0:d=3 -af afade=t=out:st=861:d=3 -pix_fmt yuv420p > > video_test.mp4 > > > Total Time in conversion: 3 minutes 5 seconds > > You didn't say anything about your requirements. There are a lot of > things which can be done to increase conversion speed: > - buy a faster CPU; > - choose a faster codec, such as mpeg4; > - reduce the size of the output video; > - ... > > Or, assuming you actually want H.264 video with the given resolution: > > You can (almost) always exchange the parameters encoding quality, > encoding speed, and bitrate (bandwidth) for each other. Using libx264, > you could add "-preset ultrafast" and it will encode up to 10x as > quickly - but the resulting file will suffer in quality. Or, if you > drop the parameter "-b:v 1024k", the file may become very much larger. > You can play with the presets until you hit an optimal compromise for > yourself. > > Moritz > > P.S.: Isn't "scale=w=640:h=trunc(ow/a/2)*2" just a complicated way of > writing "scale=w=640:h=-2"? > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". -- Thanks, Vivek ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Npm - videoshow taking long time to convert video from images
On Fri, Feb 10, 2017 at 12:25:38 +0530, Vivek Jain wrote: > I am trying to create video using npm-videoshow, but it appears to take > considerable time (~3 minutes for 14 minute video). Could someone please > advise how can the timing be improved. [...] > ffmpeg process started: ffmpeg -i > /var/folders/9f/1wx7q0954l94rhtc4r6r95xwgn/T/videoshow-0bdf6f71-cc4d-498c-b7bf-eaf1eccaa9a6 > -i /tmp/audio.mp3 -y -b:a 128k -ac 2 -r 25 -b:v 1024k -vcodec libx264 > -filter:v scale=w=640:h=trunc(ow/a/2)*2 -f mp4 -map 0:0 -map 1:0 -t 864 -af > afade=t=in:ss=0:st=0:d=3 -af afade=t=out:st=861:d=3 -pix_fmt yuv420p > video_test.mp4 > Total Time in conversion: 3 minutes 5 seconds You didn't say anything about your requirements. There are a lot of things which can be done to increase conversion speed: - buy a faster CPU; - choose a faster codec, such as mpeg4; - reduce the size of the output video; - ... Or, assuming you actually want H.264 video with the given resolution: You can (almost) always exchange the parameters encoding quality, encoding speed, and bitrate (bandwidth) for each other. Using libx264, you could add "-preset ultrafast" and it will encode up to 10x as quickly - but the resulting file will suffer in quality. Or, if you drop the parameter "-b:v 1024k", the file may become very much larger. You can play with the presets until you hit an optimal compromise for yourself. Moritz P.S.: Isn't "scale=w=640:h=trunc(ow/a/2)*2" just a complicated way of writing "scale=w=640:h=-2"? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] ffmpeg git server misconfigured
fuck you 2017-02-10 15:55 GMT+07:00 Moritz Barsnick: > On Fri, Feb 10, 2017 at 01:37:24 +0100, Carl Eugen Hoyos wrote: > > >bash-4.3$ git clone --depth=1 --branch "n3.2.2" --single-branch > > > http://git.ffmpeg.org/ffmpeg ffmpeg > > > > Does it work with source.ffmpeg.org? > > I can confirm it does; to be more precise, it works with > git://source.ffmpeg.org/ffmpeg (note the different protocol, not > http(s)). > > source.ffmpeg.org is an alias for videolan.org, while git.ffmpeg.org > seems to be a server of its own, i.e. another mirror? > > Moritz > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".