Re: [FFmpeg-user] Scaling a video with multiple different resolutions
of course, if you want to output a 852x480 video, you can do it by: ffmpeg -i video.webm -filter_complex “[0:v]split=2[out1][out2];[out1]trim=start=starttiem1:end=endtime1,scale=w='if(gt(a,1.775),852,trunc(480*a/2)*2)':h='if(lt(a,1.775),480,trunc(852/a/2)*2),pad=w=852:h=480:x='if(gt(a,1.775),0,(852-iw)/2)':y='if(lt(a,1.775),0,(480-ih)/2)':color=black[trim0];[out2]trim=start=starttiem2:end=endtime2,scale=w='if(gt(a,1.775),852,trunc(480*a/2)*2)':h='if(lt(a,1.775),480,trunc(852/a/2)*2),pad=w=852:h=480:x='if(gt(a,1.775),0,(852-iw)/2)':y='if(lt(a,1.775),0,(480-ih)/2)':color=black[trim1];[trim0][trim1]concat=n=1:v=1:unsafe=1:a=0[v]” -map [v] -map [0:a] -c:v libx264 -c:a aac out.mp4. 1.775 in the command is equal to 852/480 > On 13 Jan 2017, at 8:10 AM, Alex Spellerwrote: > > I have a webm file that has multiple different resolutions in it (it's a > screen capture of a window that changes dimensions). > > https://www.dropbox.com/s/ptueirabmmht0fr/4be7fdb7-d7e9-41b4-ba26-e20a3eeb6026.webm?dl=0 > > Is there any way to "normalize" the dimensions and output a video of a > constant resolution, having e.g. black borders around the video when the > resolutions change > > If you play the video on the dropbox page above, in chrome or firefox, how > that looks is what I'd like to output. Tried messing around with scale, > setsar and setdar parameters but I can't figure out how to get output > that's not just distorted > > Any help appreciated, thanks! > ___ > 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".
[FFmpeg-user] Need help understanding framerate conversion!
Hi All, I need to mux and then framerate convert a rawvideo .mov file, and a PCM 16bit 48Khz wav file. For example, a .mov file is exactly 10 seconds long, and a .wav file is also exactly 10 seconds. The initial .mov file is a 30 frames-per-second, but after muxing with the audio, I need to convert it to 29.97. The issue I’m seeing is that for some reason, the resulting video file is slightly longer than 10 seconds, and the resulting audio is just shy of 10 seconds. This leads to the audio being out-of-sync with the video by the end of the video. In reality, I’m performing this task with much longer clips, and so the av-sync issue is much more noticeable, but even at 10 seconds the sync offset is noticeable in a video editor. What am I doing wrong? I’ve tried separating the muxing and framerate conversion into separate FFmpeg calls, but that doesn’t help. I’ve tried numerous setting combinations, but nothing keeps the audio at the correct length. I’ve tried using atempo to stretch the audio, but that doesn’t even seem to work. Here is an example command I’ve tried: ffmpeg –y –i initial_video.mov –i initial_audio.wav –c:v rawvideo –c:a pcm_s16le –pix_fmt uyvy422 –r 3/1001 output.mov I’m clearly missing something here, but I have no idea why the audio track would end up shorter (in the 10s example, it’s about 9.98 seconds after), and the video longer (about 10.06). Thanks! ~Thomas ___ 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] error when I compile Microsoft ffmpeginterop
Am 12.01.2017 um 23:35 schrieb Carl Eugen Hoyos: All the software is the newest.FFMPEG is version 3.2.2. This is not the newest FFmpeg, it is ten weeks old then release more often then 10 weeks or more when do you realize that ffmpeg is the only mailing list and project on this planet where people are supposed to use snapshots? according to https://ffmpeg.org/releases/ *it is* the newest release ___ 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] Scaling a video with multiple different resolutions
I have a webm file that has multiple different resolutions in it (it's a screen capture of a window that changes dimensions). https://www.dropbox.com/s/ptueirabmmht0fr/4be7fdb7-d7e9-41b4-ba26-e20a3eeb6026.webm?dl=0 Is there any way to "normalize" the dimensions and output a video of a constant resolution, having e.g. black borders around the video when the resolutions change If you play the video on the dropbox page above, in chrome or firefox, how that looks is what I'd like to output. Tried messing around with scale, setsar and setdar parameters but I can't figure out how to get output that's not just distorted Any help appreciated, thanks! ___ 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] error when I compile Microsoft ffmpeginterop
2017-01-12 18:26 GMT+01:00 Alfred: > There is some errors when I compile ffmpeginterop. This is not software supported by FFmpeg (from a quick look, it seems to be software supported by Microsoft). > I do follow the > https://trac.ffmpeg.org/wiki/CompilationGuide/WinRT#CompilingforWindows10 > and try to just BuildFFmpeg.bat. Please understand that scripts are not supported here, only configure lines. > The first method,the error print is cl is unable to create an executable > file. > C compiler test failed. > The second method ,the error is > GNU assembler not found, install/update gas-preprocessor Did you try this? > I complie the arch=x64 and x86 is ok and can be used,just > arch=arm is error. > All the software is the newest.FFMPEG is version 3.2.2. This is not the newest FFmpeg, it is ten weeks old. 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".
[FFmpeg-user] Optimizing ProRes speed on a MacPro Trashcan
I've written an applescript to take media files off of XDCam cards, rename them, process them as ProRes and then send them off to our media management system. The problem is that there is a step where I have to drop them in a ProRes watchfolder for them to be processed by Adobe Media Encoder. This requires setting up watchfolder settings on each computer. I'd love to handle that encode inside my script via FFmpeg. The issue I've run into is that Media encoder is almost twice as fast as FFmpeg when creating a ProRes. So I'm wondering, are there any ways to speed up the ProRes encode with flags? Does quicksync work for ProRes? I've got AMD FirePro D500 cards. Any thoughts are appreciated! ___ 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] Optimizing ProRes speed on a MacPro Trashcan
I've written an applescript to take media files off of XDCam cards, rename them, process them as ProRes and then send them off to our media management system. The problem is that there is a step where I have to drop them in a ProRes watchfolder for them to be processed by Adobe Media Encoder. This requires setting up watchfolder settings on each computer. I'd love to handle that encode inside my script via FFmpeg. The issue I've run into is that Media encoder is almost twice as fast as FFmpeg when creating a ProRes. So I'm wondering, are there any ways to speed up the ProRes encode with flags? Does quicksync work for ProRes? I've got AMD FirePro D500 cards. Any thoughts are appreciated! ___ 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] Subtitles with accent marks not being burnt in
>Hi all, > >I'm running version N-82966-g6993bb4 of ffmpeg on Windows 7 64-bit: > >Burning in subtitles works fine for me, except I notice that lines are omitted >if they contain an accent: for example, several lines of subtitles >containing >the name "Champs-Elysées" are omitted. (Note the entire line is omitted.) > >The command I use is the typical one: > >ffmpeg -i input.mkv -vf subtitles=input.srt -vcodec libx264 -acodec ac3 >output.mp4 > >I've included my fonts.conf below - perhaps something is missing from it? > >Paul Might be nothing but is the srt saved as Unicode text or ANSI? I have done a lot of subtitle burn in with the SubStation Alpha format and text files must be in UTF-8 format for it to work. Sean ___ 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".
Re: [FFmpeg-user] issue with [PATCH] avformat/hlsenc: actual segment file size and duration in segment filenames
2017-01-13 0:40 GMT+08:00 Christian Johannesen: > On Thu, Jan 12, 2017 at 11:32 AM, Christian Johannesen < > chrisjohanne...@gmail.com> wrote: > > > > > > > On Thu, Jan 12, 2017 at 1:27 AM, Steven Liu > > wrote: > > > >> > >> I have sent a patch to the ffmpeg-devel maillist, you can test it. > >> > > > > I've tested the patch from http://ffmpeg.org/pipermail/ > ffmpeg-devel/2017- > > January/205706.html on Windows 2012 x64 with msys2. It now works as > > expected and creates the directory & index.m3u8 with filenames that > include > > the size in bytes and duration. Thanks very much for creating the patch! > > > > ffmpeg.exe -i D:\media\mix_of_clip_960x540_2128.mp4 -codec copy -f hls > > -hls_time 6 -hls_list_size 0 -hls_flags second_level_segment_index+ > > second_level_segment_size+second_level_segment_duration -use_localtime 1 > > -use_localtime_mkdir 1 -hls_segment_filename > "D:\media\mix_of_clip_960x540_ > > 2128\segment_%%04d_%%08s_%%013t.ts" D:\media\mix_of_clip_960x540_ > > 2128\index.m3u8 > > ffmpeg version N-83083-gf7191cc Copyright (c) 2000-2017 the FFmpeg > > developers > > built with gcc 6.2.0 (Rev2, Built by MSYS2 project) > > ... > > > > 01/12/2017 11:31 AM 307,944 segment_0117_00307944_ > > 006006400.ts > > 01/12/2017 11:31 AM 309,636 segment_0118_00309636_ > > 006006400.ts > > 01/12/2017 11:31 AM 302,868 segment_0119__ > > 0.ts > > 121 File(s)117,359,480 bytes > > > > Looks like I may have misspoke, the last segment looks to be an issue. > ___ > 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". > patch update, and fix it, the problem is in hls_write_trailer for the last segments. ___ 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] issue with [PATCH] avformat/hlsenc: actual segment file size and duration in segment filenames
On Thu, Jan 12, 2017 at 11:32 AM, Christian Johannesen < chrisjohanne...@gmail.com> wrote: > > > On Thu, Jan 12, 2017 at 1:27 AM, Steven Liu> wrote: > >> >> I have sent a patch to the ffmpeg-devel maillist, you can test it. >> > > I've tested the patch from http://ffmpeg.org/pipermail/ffmpeg-devel/2017- > January/205706.html on Windows 2012 x64 with msys2. It now works as > expected and creates the directory & index.m3u8 with filenames that include > the size in bytes and duration. Thanks very much for creating the patch! > > ffmpeg.exe -i D:\media\mix_of_clip_960x540_2128.mp4 -codec copy -f hls > -hls_time 6 -hls_list_size 0 -hls_flags second_level_segment_index+ > second_level_segment_size+second_level_segment_duration -use_localtime 1 > -use_localtime_mkdir 1 -hls_segment_filename "D:\media\mix_of_clip_960x540_ > 2128\segment_%%04d_%%08s_%%013t.ts" D:\media\mix_of_clip_960x540_ > 2128\index.m3u8 > ffmpeg version N-83083-gf7191cc Copyright (c) 2000-2017 the FFmpeg > developers > built with gcc 6.2.0 (Rev2, Built by MSYS2 project) > ... > > 01/12/2017 11:31 AM 307,944 segment_0117_00307944_ > 006006400.ts > 01/12/2017 11:31 AM 309,636 segment_0118_00309636_ > 006006400.ts > 01/12/2017 11:31 AM 302,868 segment_0119__ > 0.ts > 121 File(s)117,359,480 bytes > > Looks like I may have misspoke, the last segment looks to be an issue. ___ 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] issue with [PATCH] avformat/hlsenc: actual segment file size and duration in segment filenames
On Thu, Jan 12, 2017 at 1:27 AM, Steven Liuwrote: > > I have sent a patch to the ffmpeg-devel maillist, you can test it. > I've tested the patch from http://ffmpeg.org/pipermail/ffmpeg-devel/2017-January/205706.html on Windows 2012 x64 with msys2. It now works as expected and creates the directory & index.m3u8 with filenames that include the size in bytes and duration. Thanks very much for creating the patch! ffmpeg.exe -i D:\media\mix_of_clip_960x540_2128.mp4 -codec copy -f hls -hls_time 6 -hls_list_size 0 -hls_flags second_level_segment_index+second_level_segment_size+second_level_segment_duration -use_localtime 1 -use_localtime_mkdir 1 -hls_segment_filename "D:\media\mix_of_clip_960x540_2128\segment_%%04d_%%08s_%%013t.ts" D:\media\mix_of_clip_960x540_2128\index.m3u8 ffmpeg version N-83083-gf7191cc Copyright (c) 2000-2017 the FFmpeg developers built with gcc 6.2.0 (Rev2, Built by MSYS2 project) configuration: libavutil 55. 43.100 / 55. 43.100 libavcodec 57. 72.100 / 57. 72.100 libavformat57. 62.100 / 57. 62.100 libavdevice57. 2.100 / 57. 2.100 libavfilter 6. 69.100 / 6. 69.100 libswscale 4. 3.101 / 4. 3.101 libswresample 2. 4.100 / 2. 4.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\media\mix_of_clip_960x540_2128.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.11.100 Duration: 00:12:00.68, start: 0.00, bitrate: 1248 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 960x540 [SAR 1:1 DAR 16:9], 1115 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default) Metadata: handler_name: VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name: SoundHandler Output #0, hls, to 'D:\media\mix_of_clip_960x540_2128\index.m3u8': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.62.100 Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 960x540 [SAR 1:1 DAR 16:9], q=2-31, 1115 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc (default) Metadata: handler_name: VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: handler_name: SoundHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [hls @ 00404720] hls->dpp = [0.041711] frame=17278 fps=15085 q=-1.0 Lsize=N/A time=00:12:00.61 bitrate=N/A speed= 629x video:98101kB audio:11261kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Directory of D:\media\mix_of_clip_960x540_2128 01/12/2017 11:31 AM . 01/12/2017 11:31 AM .. 01/12/2017 11:31 AM11,008 index.m3u8 01/12/2017 11:31 AM 470,940 segment__00470940_006049067.ts 01/12/2017 11:31 AM 552,908 segment_0001_00552908_006006400.ts 01/12/2017 11:31 AM 807,836 segment_0002_00807836_006006400.ts 01/12/2017 11:31 AM 895,256 segment_0003_00895256_006006400.ts 01/12/2017 11:31 AM 858,972 segment_0004_00858972_006006400.ts 01/12/2017 11:31 AM 553,660 segment_0005_00553660_006006400.ts 01/12/2017 11:31 AM 488,048 segment_0006_00488048_006006400.ts 01/12/2017 11:31 AM 570,768 segment_0007_00570768_006006400.ts 01/12/2017 11:31 AM 364,720 segment_0008_00364720_006006400.ts 01/12/2017 11:31 AM 435,972 segment_0009_00435972_006006400.ts 01/12/2017 11:31 AM 801,444 segment_0010_00801444_006006400.ts 01/12/2017 11:31 AM 661,384 segment_0011_00661384_006006400.ts 01/12/2017 11:31 AM 607,992 segment_0012_00607992_006006400.ts 01/12/2017 11:31 AM 899,768 segment_0013_00899768_006006400.ts 01/12/2017 11:31 AM 1,095,100 segment_0014_01095100_006006400.ts 01/12/2017 11:31 AM 1,072,164 segment_0015_01072164_006006400.ts 01/12/2017 11:31 AM 916,688 segment_0016_00916688_006006400.ts 01/12/2017 11:31 AM 827,012 segment_0017_00827012_006006400.ts 01/12/2017 11:31 AM 1,098,672 segment_0018_01098672_006006400.ts 01/12/2017 11:31 AM 971,772 segment_0019_00971772_006006400.ts 01/12/2017 11:31 AM 824,380 segment_0020_00824380_006006400.ts 01/12/2017 11:31 AM 710,452 segment_0021_00710452_006006400.ts 01/12/2017 11:31 AM 707,068 segment_0022_00707068_006006400.ts 01/12/2017 11:31 AM 1,019,712 segment_0023_01019712_006006400.ts 01/12/2017 11:31 AM 579,040 segment_0024_00579040_006006400.ts 01/12/2017 11:31 AM 572,084
Re: [FFmpeg-user] Subtitles with accent marks not being burnt in
Le tridi 23 nivôse, an CCXXV, Paul Moloney a écrit : > The command I use is the typical one: > > ffmpeg -i input.mkv -vf subtitles=input.srt -vcodec libx264 -acodec ac3 > output.mp4 We need to see the full output for that command. Regards, -- Nicolas George signature.asc Description: Digital signature ___ 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] Subtitles with accent marks not being burnt in
Hi all, I'm running version N-82966-g6993bb4 of ffmpeg on Windows 7 64-bit: ffmpeg version N-82966-g6993bb4 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --e nable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libb s2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enab le-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb -- enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libo pus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --ena ble-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc -- enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-l ibx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --ena ble-lzma --enable-decklink --enable-zlib libavutil 55. 43.100 / 55. 43.100 libavcodec 57. 70.100 / 57. 70.100 libavformat57. 61.100 / 57. 61.100 libavdevice57. 2.100 / 57. 2.100 libavfilter 6. 68.100 / 6. 68.100 libswscale 4. 3.101 / 4. 3.101 libswresample 2. 4.100 / 2. 4.100 libpostproc54. 2.100 / 54. 2.100 --- Burning in subtitles works fine for me, except I notice that lines are omitted if they contain an accent: for example, several lines of subtitles containing the name "Champs-Elysées" are omitted. (Note the entire line is omitted.) The command I use is the typical one: ffmpeg -i input.mkv -vf subtitles=input.srt -vcodec libx264 -acodec ac3 output.mp4 I've included my fonts.conf below - perhaps something is missing from it? WINDOWSFONTDIR C:\Windows\Fonts ~/fonts . ~/.fonts mono monospace sans serif sans-serif sans sans-serif conf.d WINDOWSTEMPDIR_FONTCONFIG_CACHE ~/.fontconfig 0x0020 0x00A0 0x00AD 0x034F 0x0600 0x0601 0x0602 0x0603 0x06DD 0x070F 0x115F 0x1160 0x1680 0x17B4 0x17B5 0x180E 0x2000 0x2001 0x2002 0x2003 0x2004 0x2005 0x2006 0x2007 0x2008 0x2009 0x200A 0x200B 0x200C 0x200D 0x200E 0x200F 0x2028 0x2029 0x202A 0x202B 0x202C 0x202D 0x202E 0x202F 0x205F 0x2060 0x2061 0x2062 0x2063 0x206A 0x206B 0x206C 0x206D 0x206E 0x206F 0x2800 0x3000 0x3164 0xFEFF 0xFFA0 0xFFF9 0xFFFA 0xFFFB 30 Paul ___ 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".