[FFmpeg-user] Frame-accurate seekingin FFplay?
Hello I've been tasked with making a Python-based, cross-platform application that centres around (but which is not limited to) a central video player window. As a regular user of FFmpeg, I want to use FFplay, via the ffpyplayer library. However the problem I'm having is that while FFmpeg has had frame-accurate seeking for some time, and I can accurately pull images or conversions of a MOV file from FFmpeg, it seems that FFplay's seek is not frame accurate, even on the same MOV file. Frame accuracy is absolutely essential to my application, as users need to be able to jump or step to specific frames with confidence. Presently, using ffpyplayer's seek function, or the Kivy video library which is essentially a front end for ffpyplayer it seems, tends to land me on the keyframe prior to the frame that I want- sometimes up to 4 seconds out. This question is likely to be out of my league, but how difficult would it be to make FFplay frame accurate on the same principles as FFmpeg? I don't imagine it's as simple as just lifting code from one into the other? Is there a reason why this discrepancy between FFmpeg's ability and FFplay's ability still exists? This application is a rebuild of software that was using the QuickTime API and then Microsoft's MediaElement, both of which are frame-accurate when setting a position on the same MOV file. If FFplay cannot work frame accurately, can anyone recommend an alternative Pythonable video player library with frame-accurate control playback and MOV support? (I've already tried VLC, but it is nowhere near frame accurate either.) Thanks Stuart -- Stuart Bruce - stu...@stuartbruce.co.uk - www.stuartbruce.co.uk ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Image2 demuxer on Synology
permitted Second output: (from ffmpeg -i [input].mp4 -y [output].mp4 2>&1) ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease) configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-nonfree --enable-libfaac --enable-encoders --enable-pthreads --disable-bzlib --disable-protocol=rtp --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffserver --disable-ffplay --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-decoder=amrnb --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-encoder=zmbv --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc --enable-yasm --enable-libx264 --enable-encoder=libx264 libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 41.100 / 56. 41.100 libavformat56. 36.100 / 56. 36.100 libavdevice56. 4.100 / 56. 4.100 libavfilter 5. 16.101 / 5. 16.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../assets/editreader_data/Thumbnails/shots_internal/Screengrabs/EP202_TFS_V079_02Jan19_MM_WM.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42mp41 creation_time : 2019-01-03 15:04:12 Duration: 00:22:25.60, start: 0.00, bitrate: 10106 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 9785 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default) Metadata: creation_time : 2019-01-03 15:04:12 handler_name: Alias Data Handler encoder : AVC Coding Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default) Metadata: creation_time : 2019-01-03 15:04:12 handler_name: Alias Data Handler Output #0, mp4, to '../assets/editreader_data/Thumbnails/shots_internal/Screengrabs/nullOutput.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42mp41 Stream #0:0(eng): Video: h264, none, q=2-31, 128 kb/s, 25 fps (default) Metadata: creation_time : 2019-01-03 15:04:12 handler_name: Alias Data Handler encoder : Lavc56.41.100 libx264 Stream #0:1(eng): Audio: aac, 0 channels, 128 kb/s (default) Metadata: creation_time : 2019-01-03 15:04:12 handler_name: Alias Data Handler encoder : Lavc56.41.100 libfaac Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (libfaac)) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height -- Stuart Bruce - stu...@stuartbruce.co.uk - www.stuartbruce.co.uk ___ 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] Image2 demuxer on Synology
s8_planarPCM signed 8-bit planar A. pcm_u16bePCM unsigned 16-bit big-endian A. pcm_u16lePCM unsigned 16-bit little-endian A. pcm_u24bePCM unsigned 24-bit big-endian A. pcm_u24lePCM unsigned 24-bit little-endian A. pcm_u32bePCM unsigned 32-bit big-endian A. pcm_u32lePCM unsigned 32-bit little-endian A. pcm_u8 PCM unsigned 8-bit A. real_144 RealAudio 1.0 (14.4K) (codec ra_144) A. roq_dpcm id RoQ DPCM A..X.. s302mSMPTE 302M A..X.. sonicSonic A..X.. sonicls Sonic lossless A. tta TTA (True Audio) A..X.. vorbis Vorbis A. wavpack WavPack A. wmav1Windows Media Audio 1 A. wmav2Windows Media Audio 2 S. ass ASS (Advanced SubStation Alpha) subtitle S. dvbsub DVB subtitles (codec dvb_subtitle) S. dvdsub DVD subtitles (codec dvd_subtitle) S. mov_text 3GPP Timed Text subtitle S. ssa SSA (SubStation Alpha) subtitle S. srt SubRip subtitle (codec subrip) S. subrip SubRip subtitle S. webvtt WebVTT subtitle S. xsub DivX subtitles (XSUB) On Fri, 4 Jan 2019 at 12:35, Gyan wrote: > > On 04-01-2019 05:59 PM, Moritz Barsnick wrote: > > > > No chance for a PNG though, as far I can tell. > > Appears doable. I've posted an answer at > > https://superuser.com/questions/1375270/ffmpeg-waveform-png-invalid-argument > > Gyan > > ___ > 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". -- Stuart Bruce - stu...@stuartbruce.co.uk - www.stuartbruce.co.uk ___ 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] Image2 demuxer on Synology
Hello Out of nowhere I've been tasked with getting a small PHP script running on a Synology server to generate JPEG thumbnails from h.264 MOV files. The Synology is about 18 months old and completely 'vanilla', with no maintenance or updates, and it's still running the 2015-era version of FFmpeg that was preinstalled on it. The problem I'm hitting appears to be identical to this one: https://superuser.com/questions/1375270/ffmpeg-waveform-png-invalid-argument My own output is posted below- apologies for the formatting- but the key point seems to be that "--disable-muxer=image2" is in the output, so any attempt to output a JPEG or PNG file is failing with "not a suitable output format". So my questions are... - On a Synology system, what do I need to do to get the image2 muxer enabled? Can I change the config of the existing set-up, or do I need to do a re-install or update of the FFmpeg build? - If I need to reinstall or update, I'm not familiar with Synology systems- is there such a thing as a simple guide for FFmpeg installations on Synology? Google didn't show me any. - With the image2 demuxer disabled, is there a method for getting the preinstalled version of FFmpeg to export a JPEG file anyway? Thanks in advance Stuart ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease) configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --enable-version3 --enable-nonfree --enable-libfaac --enable-encoders --enable-pthreads --disable-bzlib --disable-protocol=rtp --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffserver --disable-ffplay --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-decoder=amrnb --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-encoder=zmbv --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc --enable-yasm --enable-libx264 --enable-encoder=libx264 libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 41.100 / 56. 41.100 libavformat 56. 36.100 / 56. 36.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 16.101 / 5. 16.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../fromAnima/Shots/animation_213_20181224/E202_SEQ220_SH0160_anim_r003.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf56.40.101 Duration: 00:00:01.52, start: 0.00, bitrate: 1873 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 1094 kb/s, 25 fps, 25 tbr, 10k tbn, 50 tbc (default) Metadata: handler_name : DataHandler Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s (default) Metadata: handler_name : DataHandler [NULL @ 0x1cda520] Requested output format 'image2' is not a suitable output format ../assets/editreader_data/Thumbnails/shots_internal/E202_SEQ220_SH0160_anim_r003_0020.jpg: Invalid argument -- Stuart Bruce - stu...@stuartbruce.co.uk - www.stuartbruce.co.uk ___ 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] Fastest way to get keyframe indices from MOV files?
On 23 April 2018 at 15:28, Gyan Doshi <gyando...@gmail.com> wrote: > On 4/23/2018 7:31 PM, Stuart Bruce wrote: > >> >> In principle, should there be a faster way to just get the keyframe / I >> frame numbers (or times), which doesn't require FFprobe to output over >> 1500 >> lines of data per minute of video for parsing afterwards? >> > > Using ffmpeg, you can run > > ffmpeg -copyts -discard nokey -i Timecode.mov -vf showinfo -an -f null > - > > The discard option sends only demuxer-flagged keyframes to the showinfo > filter. Takes a lot fewer seconds. You can get PTS values; the frame index > simply counts frames received by the filter, so not useful for your > purposes. > Thank you Gyan for your very prompt response. This is really very useful, thanks very much. On the same movie file it takes under 2 seconds, compared to the 20-30 seconds to get FFprobe's output. Although frame numbers would have been more relevant for this particular use case, I can work with parsing the pts_time values from FFmpeg's output and it does get the job done. Overall this is definitely a better and quicker solution than what I was currently working with. > Fastest way probably would be to use some other app which can dump data > from inside the MOOV box/atom, specifically the track stss box. > I would still be interested to hear if anyone has recommendations for such an app, though thanks to the above solution my particular need is no longer nearly so pressing. Thanks again Stuart -- Stuart Bruce - stu...@stuartbruce.co.uk - www.stuartbruce.co.uk ___ 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] Fastest way to get keyframe indices from MOV files?
Indirectly related to my previous enquiry... Programatically I want to use FFprobe get a list of the frame numbers (numbers preferred, times if necessary) of keyframes (I frames without the P frames) in a MOV file. At present I'm using the arguments: -select_streams v -show_frames "M:\ProcessTests\Timecode.mov" -of csv -show_entries frame=pkt_pts_time,pict_type but for this 30-minute video (available at http://www.twentypenguins.co.uk/misc/ffpmeg_tests/Timecode.mov ), that process is taking around 20-30 seconds to provide the lengthy result of approximately 45,000 CSV lines of frame info, which I then parse in my Windows app to find the line indices of every frame with an 'I' at the end. In principle, should there be a faster way to just get the keyframe / I frame numbers (or times), which doesn't require FFprobe to output over 1500 lines of data per minute of video for parsing afterwards? Thanks Stuart -- Stuart Bruce - stu...@stuartbruce.co.uk - www.stuartbruce.co.uk ___ 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] FFprobe sometimes freezing instead of exiting?
On 21 April 2018 at 17:24, Carl Eugen Hoyos <ceffm...@gmail.com> wrote: > 2018-04-21 14:25 GMT+02:00, Stuart Bruce <stuartrbr...@gmail.com>: > > The arguments being called to FFprobe are simply this: > > > > -show_streams "E:\Tests\2018-04-21\Timecode.mov" > > Exits immediately here. > Can you reproduce the issue from "cmd" (the shell)? > Thanks for the response, and apologies for the delay in replying. I haven't yet been able to reproduce the freeze from the command shell, which in itself is a possible clue to where my problem may lie. I am continuing to try and work it and I will post again once I have more information. Thanks Stuart -- Stuart Bruce - stu...@stuartbruce.co.uk - www.stuartbruce.co.uk ___ 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] FFprobe sometimes freezing instead of exiting?
=pcm_s16be codec_long_name=PCM signed 16-bit big-endian profile=unknown codec_type=audio codec_time_base=1/44100 codec_tag_string=twos codec_tag=0x736f7774 sample_fmt=s16 sample_rate=44100 channels=1 channel_layout=mono bits_per_sample=16 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/44100 start_pts=0 start_time=0.00 duration_ts=7938 duration=1800.00 bit_rate=705600 max_bit_rate=N/A bits_per_raw_sample=N/A nb_frames=7938 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 TAG:creation_time=2018-04-21T12:23:13.00Z TAG:language=eng TAG:handler_name=Apple Alias Data Handler [/STREAM] [STREAM] index=1 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=Main codec_type=video codec_time_base=1/50 codec_tag_string=avc1 codec_tag=0x31637661 width=640 height=360 coded_width=640 coded_height=368 has_b_frames=1 sample_aspect_ratio=N/A display_aspect_ratio=N/A pix_fmt=yuv420p level=31 color_range=tv color_space=smpte170m color_transfer=bt709 color_primaries=smpte170m chroma_location=left field_order=unknown timecode=N/A refs=1 is_avc=true nal_length_size=4 id=N/A r_frame_rate=25/1 avg_frame_rate=25/1 time_base=1/25000 start_pts=0 start_time=0.00 duration_ts=4500 duration=1800.00 bit_rate=160529 max_bit_rate=N/A bits_per_raw_sample=8 nb_frames=45000 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 TAG:creation_time=2018-04-21T12:23:14.00Z TAG:language=eng TAG:handler_name=Apple Alias Data Handler TAG:encoder=H.264 [/STREAM] [STREAM] index=2 codec_name=unknown codec_long_name=unknown profile=unknown codec_type=data codec_tag_string=tmcd codec_tag=0x64636d74 id=N/A r_frame_rate=0/0 avg_frame_rate=25/1 time_base=1/600 start_pts=0 start_time=0.00 duration_ts=108 duration=1800.00 bit_rate=N/A max_bit_rate=N/A bits_per_raw_sample=N/A nb_frames=1 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=1 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 DISPOSITION:timed_thumbnails=0 TAG:creation_time=2018-04-21T12:47:58.00Z TAG:language=eng TAG:handler_name=Apple Alias Data Handler TAG:timecode=01:00:00:00 [/STREAM] -- Stuart Bruce - stu...@stuartbruce.co.uk - www.stuartbruce.co.uk ___ 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] Trimming a MOV creating out-of-sync, under-length result
On 23 December 2017 at 11:14, Gyan Doshi <gyando...@gmail.com> wrote: > > Add -x264opts b_pyramid=0 i.e. > > -i "OutputTests_24p_v2.mov" -ss 00:00:04.041 -t 00:00:02.720 -r 24 > -x264opts b_pyramid=0 "AR003_H264-FF_v20.mov" > > See https://superuser.com/q/1119072/114058 > Thanks very much Gyan for the prompt and completely accurate response. Adding that extra b_pyramid=0 option sorts it all out and creates video files which display perfectly in both Premiere and Media Composer. One thing I did notice when first testing your suggestion was that it seems OK so long as I've added a -vcodec specification for the output. If I don't specify -vcodec, the problem seems to persist; but since I'm happy to add a -vcodec option, then I didn't test this very much and it's not a problem for my needs. Thanks again Stuart -- Stuart Bruce - stu...@stuartbruce.co.uk - www.stuartbruce.co.uk ___ 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] Trimming a MOV creating out-of-sync, under-length result
n, 24 tbc (default) Metadata: creation_time : 2017-12-23T10:12:48.00Z handler_name: Apple Alias Data Handler encoder : Lavc58.6.102 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default) Metadata: creation_time : 2017-12-23T10:12:48.00Z handler_name: Apple Alias Data Handler encoder : Lavc58.6.102 aac frame= 66 fps=0.0 q=-1.0 Lsize= 246kB time=00:00:02.73 bitrate= 735.6kbits/s speed=3.67x video:219kB audio:23kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.684352% [libx264 @ 01d16eda0d00] frame I:1 Avg QP:24.89 size: 8737 [libx264 @ 01d16eda0d00] frame P:19Avg QP:23.00 size: 4080 [libx264 @ 01d16eda0d00] frame B:46Avg QP:23.71 size: 2978 [libx264 @ 01d16eda0d00] consecutive B-frames: 1.5% 12.1% 13.6% 72.7% [libx264 @ 01d16eda0d00] mb I I16..4: 28.5% 48.8% 22.7% [libx264 @ 01d16eda0d00] mb P I16..4: 35.2% 40.4% 4.5% P16..4: 9.1% 2.7% 1.6% 0.0% 0.0%skip: 6.6% [libx264 @ 01d16eda0d00] mb B I16..4: 15.2% 17.9% 1.4% B16..8: 30.4% 4.9% 1.0% direct: 4.7% skip:24.5% L0:58.2% L1:38.5% BI: 3.3% [libx264 @ 01d16eda0d00] 8x8 transform intra:51.1% inter:83.2% [libx264 @ 01d16eda0d00] coded y,uvDC,uvAC intra: 27.8% 53.2% 2.7% inter: 17.0% 34.5% 0.3% [libx264 @ 01d16eda0d00] i16 v,h,dc,p: 28% 26% 20% 26% [libx264 @ 01d16eda0d00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 22% 33% 4% 4% 2% 4% 3% 2% [libx264 @ 01d16eda0d00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 22% 29% 4% 5% 3% 6% 3% 2% [libx264 @ 01d16eda0d00] i8c dc,h,v,p: 49% 26% 22% 3% [libx264 @ 01d16eda0d00] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 01d16eda0d00] ref P L0: 59.9% 8.7% 18.2% 13.1% [libx264 @ 01d16eda0d00] ref B L0: 87.4% 9.6% 3.0% [libx264 @ 01d16eda0d00] ref B L1: 95.4% 4.6% [libx264 @ 01d16eda0d00] kb/s:649.38 [aac @ 01d16edb4cc0] Qavg: 670.924 -- Stuart Bruce - stu...@stuartbruce.co.uk - www.stuartbruce.co.uk ___ 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] Find loudest point in media file, and return *time* of that point, not amplitude?
Hello I'm hoping to find a way in FFmpeg (or FFprobe or SOX, but ideally in FFmpeg) to process a video or an audio file and identify the loudest point in the file, as a time value. Both FFmpeg and SOX have commands for analysing the amplitude, but they only seem to return the loudness at the loudest point, whereas what I'm interested in is the timecode (or equivalent) within the file at which that loudness happens, or first happens. Is there a way to analyse an audio or video file and return the loudest point as a time value, rather than just the amplitude? I can't see one in the documentation but I'm hoping someone can help. Thanks Stuart ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Concatenating two audio files
This solution (making sure both files are PCM) worked first time, thank you very much for your help. Thanks also to the other people who responded. To tidy up loose ends about the thread: For various reasons I was trying to avoid the necessity for an FFmpeg update or installing SoX unless absolutely necessary, because the older version of FFmpeg is already deployed on the intranet here on which the tool will be run- this was purely for convenience. Reducing the parameters to a simpler -filter_complex concat, as Carl said, unfortunately did not work when I tried it, but this PCM solution has cracked it so I am using this happily now. Thanks again to everyone who helped. Stuart On 31 July 2014 12:40, Anatol anatol2...@gmail.com wrote: Turn your WAV files into raw PCM files - ffmpeg -i INPUT1 -c:a copy -vn -f s16le -y PCM1 Then u can either cat them together to get a raw PCM file or use ffmpeg concat protocol: ffmpeg -ar SAMPLE_RATE -channel_layout STEREO/MONO -f s16le -i concat:PCM1|PCM2|... -vn -c:a copy -f wav -y OUTPUT On Thu, Jul 31, 2014 at 1:47 PM, Stuart Bruce stuartrbr...@gmail.com wrote: Hello I've been trying to get FFmpeg to concatenate two audio files together, based on the top answer from this forum: http://superuser.com/questions/587511/concatenate-multiple-wav-files-using-single-command-without-extra-file Although I believe I've replicated the winning answer, I can't seem to work out what the correct syntax is to make it work. My log output (original parameters and console output) is below. For security I've had to change all the actual file paths to '' but all the paths and files are valid. I'm hoping somebody could point me to the problem, which I'm hoping is something as simple as having a quote mark out of place or something like that. Any help would be very much appreciated. Thanks Stuart FFmpeg process log. Started: 31/07/2014 11:45:59 exe: C:\Users\Stuart\***\FFmpeg\ffmpeg.exe Arguments: -i C:\Users\Stuart\AppData\*\cache\310714_3Vc1AQqWBXtqimH5Sj1j.wav -i C:\Users\Stuart\AppData\**\cache\310714_bGhog6vOWMmn8x4J8ADz.wav -filter_complex '[0:0][1:0]concat=n=2:v=0:a=1[out]' -map [out] C:\Users\Stuart\**\s-tk-220-00200.wav FFmpeg output: ffmpeg version N-53868-gc51654f Copyright (c) 2000-2013 the FFmpeg developers built on Jun 6 2013 03:00:45 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 35.100 / 52. 35.100 libavcodec 55. 15.100 / 55. 15.100 libavformat55. 8.102 / 55. 8.102 libavdevice55. 2.100 / 55. 2.100 libavfilter 3. 75.101 / 3. 75.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc52. 3.100 / 52. 3.100 Guessed Channel Layout for Input Stream #0.0 : mono Input #0, wav, from 'C:\Users\Stuart\*\cache\310714_3Vc1AQqWBXtqimH5Sj1j.wav': Metadata: encoder : Lavf55.8.102 Duration: 00:00:04.18, bitrate: 705 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s [wav @ 00353400] max_analyze_duration 500 reached at 5015510 microseconds [wav @ 00353400] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, wav, from 'C:\Users\Stuart\**\cache\310714_bGhog6vOWMmn8x4J8ADz.wav': Duration: 00:00:05.20, bitrate: 1411 kb/s Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s [AVFilterGraph @ 0035bd80] No such filter: '[0:0][1:0]concat=n=2:v=0:a=1[out]' Error configuring filters. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] Concatenating two audio files
Hello I've been trying to get FFmpeg to concatenate two audio files together, based on the top answer from this forum: http://superuser.com/questions/587511/concatenate-multiple-wav-files-using-single-command-without-extra-file Although I believe I've replicated the winning answer, I can't seem to work out what the correct syntax is to make it work. My log output (original parameters and console output) is below. For security I've had to change all the actual file paths to '' but all the paths and files are valid. I'm hoping somebody could point me to the problem, which I'm hoping is something as simple as having a quote mark out of place or something like that. Any help would be very much appreciated. Thanks Stuart FFmpeg process log. Started: 31/07/2014 11:45:59 exe: C:\Users\Stuart\***\FFmpeg\ffmpeg.exe Arguments: -i C:\Users\Stuart\AppData\*\cache\310714_3Vc1AQqWBXtqimH5Sj1j.wav -i C:\Users\Stuart\AppData\**\cache\310714_bGhog6vOWMmn8x4J8ADz.wav -filter_complex '[0:0][1:0]concat=n=2:v=0:a=1[out]' -map [out] C:\Users\Stuart\**\s-tk-220-00200.wav FFmpeg output: ffmpeg version N-53868-gc51654f Copyright (c) 2000-2013 the FFmpeg developers built on Jun 6 2013 03:00:45 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 35.100 / 52. 35.100 libavcodec 55. 15.100 / 55. 15.100 libavformat55. 8.102 / 55. 8.102 libavdevice55. 2.100 / 55. 2.100 libavfilter 3. 75.101 / 3. 75.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc52. 3.100 / 52. 3.100 Guessed Channel Layout for Input Stream #0.0 : mono Input #0, wav, from 'C:\Users\Stuart\*\cache\310714_3Vc1AQqWBXtqimH5Sj1j.wav': Metadata: encoder : Lavf55.8.102 Duration: 00:00:04.18, bitrate: 705 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s [wav @ 00353400] max_analyze_duration 500 reached at 5015510 microseconds [wav @ 00353400] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, wav, from 'C:\Users\Stuart\**\cache\310714_bGhog6vOWMmn8x4J8ADz.wav': Duration: 00:00:05.20, bitrate: 1411 kb/s Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s [AVFilterGraph @ 0035bd80] No such filter: '[0:0][1:0]concat=n=2:v=0:a=1[out]' Error configuring filters. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user