[FFmpeg-user] unsubscribe
unsubscribe -- Colin A. Bitterfield Direct: (571) 533-4700 https://www.linkedin.com/in/colin-bitterfield/ Mailto: co...@bitterfield.com On Jul 6, 2020, 5:48 AM -0400, FFmpeg user questions , wrote: > > unsubscribe ___ 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] Timecode based filenames
s a decimal number (00-53). %wis replaced by the weekday (Sunday as the first day of the week) as a decimal number (0-6). %Xis replaced by national representation of the time. %xis replaced by national representation of the date. %Yis replaced by the year with century as a decimal number. %yis replaced by the year without century as a decimal number (00-99). %Zis replaced by the time zone name. %zis replaced by the time zone offset from UTC; a leading plus sign stands for east of UTC, a minus sign for west of UTC, hours and minutes follow with two digits each and no delimiter between them (common form for RFC 822 date headers). %+is replaced by national representation of the date and time (the format is similar to that produced by date(1)). %-* GNU libc extension. Do not do any padding when performing numerical outputs. %_* GNU libc extension. Explicitly specify space for padding. %0* GNU libc extension. Explicitly specify zero for padding. %%is replaced by `%'. SEE ALSO date(1), printf(1), ctime(3), printf(3), strptime(3), wcsftime(3), xlocale(3) STANDARDS The strftime() function conforms to ISO/IEC 9899:1990 (``ISO C90'') with a lot of extensions including `%C', `%D', `%E*', `%e', `%G', `%g', `%h', `%k', `%l', `%n', `%O*', `%R', `%r', `%s', `%T', `%t', `%u', `%V', `%z', and `%+'. The peculiar week number and year in the replacements of `%G', `%g', and `%V' are defined in ISO 8601: 1988. BUGS There is no conversion specification for the phase of the moon. The strftime() function does not correctly handle multibyte characters in the format argument. BSDNovember 4, 2004BSD (END) %-* GNU libc extension. Do not do any padding when performing numerical outputs. %_* GNU libc extension. Explicitly specify space for padding. %0* GNU libc extension. Explicitly specify zero for padding. %%is replaced by `%'. SEE ALSO date(1), printf(1), ctime(3), printf(3), strptime(3), wcsftime(3), xlocale(3) STANDARDS The strftime() function conforms to ISO/IEC 9899:1990 (``ISO C90'') with a lot of extensions including `%C', `%D', `%E*', `%e', `%G', `%g', `%h', `%k', `%l', `%n', `%O*', `%R', `%r', `%s', `%T', `%t', `%u', `%V', `%z', and `%+'. The peculiar week number and year in the replacements of `%G', `%g', and `%V' are defined in ISO 8601: 1988. BUGS There is no conversion specification for the phase of the moon. The strftime() function does not correctly handle multibyte characters in the format argument. > On Apr 28, 2020, at 9:12 AM, Carl Eugen Hoyos wrote: > > Am Di., 28. Apr. 2020 um 17:52 Uhr schrieb Colin Bitterfield > mailto:co...@bitterfield.com>>: >> >> Question on Timecode Based Filenames: >> >> >> What is required to generate a filename based on timecode. >> >> i.e. filename-start-time_end-time.mov >> >> The % variables don’t seem to be well defined in the documentation. >> >> I have it working with strtime 1 and using %H%M%S type variables. >> >> Is there a reference for the %variables ? >> >> Regards, >> >> Colin >> >> ps read man ffmpeg-formats (and the documentation pages) >> >> >> Command: >> >> gtimeout 62m /opt/local/bin/ffmpeg -hwaccel videotoolbox -benchmark_all >> -hide_banner -stats -loglevel error -c dvvideo -pix_fmt 0rgb >> -capture_raw_data true -f avfoundation -i "ZR25 MC" -c: copy -f dv pipe: | >> /opt/local/bin/ffmpeg -i pipe: -hide_banner -c:v dvvideo -c:a:0 pcm_s16le >> -strftime 1 -copyts -timecode "00:00:00;00" -increment_tc 1 >> -reset_timestamps 0 -segment_time 00:05:00 -f segment >> “video_%H-%M-%S_production_original.mov" -y > > Complete, uncut console output missing, remove hide_banner when asking > for help here > and please use a testcase without the pipe. > > I don't know if the C library on macos supports strftime, it works on > Windows, but not mingw. > > Carl Eugen > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org <mailto:ffmpeg-user@ffmpeg.org> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > <https://ffmpeg.org/mailman/listinfo/ffmpeg-user> > > To unsubscribe, visit link above, or email > ffmpeg-user-requ...@ffmpeg.org <mailto:ffmpeg-user-requ...@ffmpeg.org> with > subject "unsubscribe". ___ 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".
[FFmpeg-user] Timecode based filenames
Question on Timecode Based Filenames: What is required to generate a filename based on timecode. i.e. filename-start-time_end-time.mov The % variables don’t seem to be well defined in the documentation. I have it working with strtime 1 and using %H%M%S type variables. Is there a reference for the %variables ? Regards, Colin ps read man ffmpeg-formats (and the documentation pages) Command: gtimeout 62m /opt/local/bin/ffmpeg -hwaccel videotoolbox -benchmark_all -hide_banner -stats -loglevel error -c dvvideo -pix_fmt 0rgb -capture_raw_data true -f avfoundation -i "ZR25 MC" -c: copy -f dv pipe: | /opt/local/bin/ffmpeg -i pipe: -hide_banner -c:v dvvideo -c:a:0 pcm_s16le -strftime 1 -copyts -timecode "00:00:00;00" -increment_tc 1 -reset_timestamps 0 -segment_time 00:05:00 -f segment “video_%H-%M-%S_production_original.mov" -y The gtimeout doesn’t seem to work; but that is a different issue. Platform OSX 10.14.x FFMPEG: ffmpeg version 4.2.git Copyright (c) 2000-2019 the FFmpeg developers built with Apple LLVM version 10.0.1 (clang-1001.0.46.4) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libjack --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-indev=jack --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfdk-aac libavutil 56. 35.100 / 56. 35.100 libavcodec 58. 59.101 / 58. 59.101 libavformat58. 33.100 / 58. 33.100 libavdevice58. 9.100 / 58. 9.100 libavfilter 7. 61.100 / 7. 61.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc55. 6.100 / 55. 6.100 ___ 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] AMD GPU + Vaapi encoding problem
I tried VAAPI with a RADEON 580 on Linux. It was intermittent at best. I wound up using Vulkan with success. This is the hwaccel command I was using for transcoding. time ffmpeg -hide_banner -stats -hwaccel vulkan -init_hw_device vulkan:0 -threads 16 -i input.mp4 -vf scale=854:480 -c:v libopenh264 -c:a copy -quality quality -b:v 2M -crf 23 -maxrate 2M -bufsize 6M -slice_mode dyn -max_nal_size 65535 -allow_skip_frames 1 output_gpu_3.mp4 -y I started writing an article on RADEON based transcoding: Here is a draft link. It is far from done. But I will finishing it this week https://medium.com/@cbitterfield/radeon-gpu-transcoding-with-ubuntu-18-04-lts-2e5143d0d1cd On Apr 8, 2020, 12:39 PM -0700, Tobias Kilb , wrote: > Uh, indeed. Good to know. I thought the development is going towards vaapi > from amd/intel. > > Regards > Tobias > > Ostap Batug schrieb am Mi., 8. Apr. 2020, 21:25: > > > https://wiki.archlinux.org/index.php/Hardware_video_acceleration#ATI/AMD > > > > On Wed, 8 Apr 2020 at 22:17, Tobias Kilb wrote: > > > > > Hi, > > > > > > AI am wondering why it shows vdpau because you have an amd graphics > > > adapter. > > > > > > Regards > > > Tobias > > > > > > Ostap Batug schrieb am Mi., 8. Apr. 2020, 21:08: > > > > > > > Hello, > > > > Yes this is the same machine > > > > i havent figured out a command to run with -init_hw_device , but > > > -hwaccels > > > > reports: > > > > Hardware acceleration methods: > > > > vdpau > > > > so seems that i don't have vaapi? although i am not certain, yes my gpu > > > is > > > > primarily supporting vdpau, but i have a sort of vaapi emulation with > > > > vdpau, or something? > > > > Regards, > > > > Repu > > > > > > > > On Wed, 8 Apr 2020 at 21:03, Ted Park wrote: > > > > > > > > > Hello, > > > > > > > > > > > Okay, i've used latest static build from git of amd64 arch, it > > can't > > > > find > > > > > > option -vaapi_device, > > > > > > and this is the output (ran from the extracted archive path): > > > > > > $ ./ffmpeg -vaapi_device /dev/dri/renderD128 -f x11grab -video_size > > > > > > 1920x1080 -i :0 -vf 'format=nv12,hwupload' -c:v h264_vaapi -b:v 7M > > > > > > -profile:v main -bf 0 output.mp4 > > > > > > ffmpeg version N-52056-ge5d25d1147-static > > > > > https://johnvansickle.com/ffmpeg/ > > > > > > Copyright (c) 2000-2020 the FFmpeg developers > > > > > > built with gcc 8 (Debian 8.3.0-6) > > > > > > configuration: --enable-gpl --enable-version3 --enable-static > > > > > > --disable-debug --disable-ffplay --disable-indev=sndio > > > > > > --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r > > > > > > --enable-gnutls --enable-gmp --enable-libgme --enable-gray > > > > > --enable-libaom > > > > > > --enable-libfribidi --enable-libass --enable-libvmaf > > > > --enable-libfreetype > > > > > > --enable-libmp3lame --enable-libopencore-amrnb > > > > --enable-libopencore-amrwb > > > > > > --enable-libopenjpeg --enable-librubberband --enable-libsoxr > > > > > > --enable-libspeex --enable-libsrt --enable-libvorbis > > --enable-libopus > > > > > > --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc > > > > > > --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 > > > > > > --enable-libxml2 --enable-libdav1d --enable-libxvid > > --enable-libzvbi > > > > > > --enable-libzimg > > > > > > libavutil 56. 42.101 / 56. 42.101 > > > > > > libavcodec 58. 76.100 / 58. 76.100 > > > > > > libavformat 58. 42.100 / 58. 42.100 > > > > > > libavdevice 58. 9.103 / 58. 9.103 > > > > > > libavfilter 7. 77.100 / 7. 77.100 > > > > > > libswscale 5. 6.101 / 5. 6.101 > > > > > > libswresample 3. 6.100 / 3. 6.100 > > > > > > libpostproc 55. 6.100 / 55. 6.100 > > > > > > Unrecognized option 'vaapi_device'. > > > > > > Error splitting the argument list: Option not found > > > > > > > > > > > > > > > The option might not be there any more, try using -init_hw_device > > > > instead, > > > > > and use -hwaccels to list additional hardware support? > > > > > Also confirm this is the same machine (or at least with similar > > > hardware) > > > > > that ran the earlier command? > > > > > > > > > > Regards, > > > > > Ted Park > > > > > > > > > > ___ > > > > > 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". > > > > ___ > > > > 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". > > > ___ > > > ffmpeg-user mailing list > > > ffmpeg-user@ffmpeg.org > > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > > To unsubscribe, visit link
Re: [FFmpeg-user] Question on Segment TImes
The tape deck is a Sony DSR-45 (not the “A” model). The tapes are pre-recorded studio dubbing masters. When I do ffprobe with avfoundation it produces this output: Stream #0:0: Video: dvvideo, yuv411p, 720x480 [SAR 8:9 DAR 4:3], 25000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc Stream #0:1: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s Stream #0:2: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s I was unable to map anything resemble 0:1 or 0:a:0 coming in from the deck. Once it was in an DV file, it worked as expected. I had not thought of this before, but perhaps I can map 0:v:1 to audio? Maybe it sees it all as a video. On Apr 4, 2020, 8:33 PM -0700, FFmpeg user questions , wrote: > > think this has to do with AVFoundation’s “raw data” option and how audio and > video is stored on the actual metallic sublimate tape (iirc, the > video/audio/timecode “streams” do not exist as discrete entities, but they > are all interleaved into an atomic “DV” tape-format (hence the 1M reported > tbn). I’m not sure how AVFoundation splits them up or isolates the detected > timecode or decide to join all the streams together, but I presume it’s > similar to the audio fixup menu options in FCPX import media window. > > I’m curious if this would work, but have you tried artificially increasing > the video size (via framerate, frame size, etc) to make it into what would be > considered HDV, or even DVCPRO and try adding the audio streams then? > Apparently it supports multiple streams (DVCPRO50, that is) ___ 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] Question on Segment TImes
Is there a way to consolidate this to one command? The goal is to import of DV-TAPE with the best quality in a single pass on the tape. Sometimes I have go back and parts from FCPX imports. The tapes are old and sometimes FCPX doesn’t like them. I was able to get it going with a PIPE: (and 30 experiments on time coding and segment timing) export TITLE="284_test"; \ ffmpeg -benchmark_all -stats -loglevel debug \ -c dvvideo -pix_fmt 0rgb -capture_raw_data true -f avfoundation -i DV-VCR \ -c: copy -f dv pipe: | ffmpeg -i pipe: -c:v dvvideo -c:a:0 pcm_s16le \ -strftime 1 \ -copyts \ -timecode "00:00:00;00" \ -increment_tc 1 \ -reset_timestamps 1 \ -segment_time 00:05:00 -f segment "${TITLE}_%H-%M-%S.mov" -y This yields the following: bash-3.2$ ffprobe -show_streams -select_streams a 284_test_004_18-00-51.mov ffprobe version 4.2.git Copyright (c) 2007-2020 the FFmpeg developers built with Apple clang version 11.0.0 (clang-1100.0.33.17) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-x86asm --enable-libx265 --enable-libdc1394 --enable-librtmp --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-version3 --enable-libsmbclient --enable-nonfree --enable-libfdk-aac libavutil 56. 38.100 / 56. 38.100 libavcodec 58. 65.102 / 58. 65.102 libavformat 58. 35.101 / 58. 35.101 libavdevice 58. 9.102 / 58. 9.102 libavfilter 7. 70.101 / 7. 70.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '284_test_004_18-00-51.mov’: Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf58.35.101 Duration: 00:05:00.00, start: 0.00, bitrate: 29798 kb/s Stream #0:0: Video: dvvideo (dvc / 0x20637664), yuv411p(bottom coded first (swapped)), 720x480 [SAR 8:9 DAR 4:3], 28771 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 29.97 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc58.65.102 dvvideo timecode : 00:34:59;28 Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 32000 Hz, stereo, s16, 1024 kb/s (default) Metadata: handler_name : SoundHandler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : TimeCodeHandler timecode : 00:34:59;28 Unsupported codec with id 0 for input stream 2 [STREAM] index=1 codec_name=pcm_s16le codec_long_name=PCM signed 16-bit little-endian profile=unknown codec_type=audio codec_time_base=1/32000 codec_tag_string=sowt codec_tag=0x74776f73 sample_fmt=s16 sample_rate=32000 channels=2 channel_layout=stereo bits_per_sample=16 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/32000 start_pts=640 start_time=0.02 duration_ts=9599632 duration=299.988500 bit_rate=1024000 max_bit_rate=N/A bits_per_raw_sample=N/A nb_frames=9599632 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:handler_name=SoundHandler [/STREAM] On Apr 4, 2020, 5:26 PM -0700, Moritz Barsnick , wrote: > On Sat, Apr 04, 2020 at 13:48:37 -0700, Colin Bitterfield wrote: > > Does anyone one know the magic option for getting all three streams into > > MOV. > [...] > > If I just change the container to “.mov” > > ffmpeg -capture_raw_data true -f avfoundation -i DV-VCR -map 0 \ > > -map_metadata 0 \ > > -c:v copy \ > > -c:a copy \ > > -c copy \ > > "-c copy" implies "-c:a copy" and "-c:v copy", by the way. > > > -t 10 output.mov -y > > > I get one stream: > > > > nput #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘output.mov’: > > Metadata: > > major_brand : qt > > minor_version : 512 > > compatible_brands: qt > > encoder : Lavf58.35.101 > > Duration: 00:00:10.01, start: 0.00, bitrate: 28773 kb/s > > Stream #0:0: Video: dvvideo (dvc / 0x20637664)
Re: [FFmpeg-user] Question on Segment TImes
OK: That solved the timestamp problem and created a missing stream. Does anyone one know the magic option for getting all three streams into MOV. If I use this to create a DV file (from DVR-DV) it works and creates this file: ffmpeg -capture_raw_data true -f avfoundation -i DV-VCR -map 0 \ -map_metadata 0 \ -c:v copy \ -c:a copy \ -c copy \ -t 10 output.dv -y Input #0, dv, from ‘output.dv’: Metadata: timecode : 00:00:00:00 Duration: 00:00:10.01, start: 0.00, bitrate: 28771 kb/s Stream #0:0: Video: dvvideo, yuv411p, 720x480 [SAR 8:9 DAR 4:3], 25000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc Stream #0:1: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s Stream #0:2: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s Three streams If I just change the container to “.mov” ffmpeg -capture_raw_data true -f avfoundation -i DV-VCR -map 0 \ -map_metadata 0 \ -c:v copy \ -c:a copy \ -c copy \ -t 10 output.mov -y I get one stream: nput #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘output.mov’: Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf58.35.101 Duration: 00:00:10.01, start: 0.00, bitrate: 28773 kb/s Stream #0:0: Video: dvvideo (dvc / 0x20637664), yuv411p, 720x480 [SAR 8:9 DAR 4:3], 28771 kb/s, 29.97 fps, 29.97 tbr, 1000k tbn, 29.97 tbc (default) Metadata: handler_name : VideoHandler I have tried every variation of -map. If I send the output to pipe and then to a file, all of the streams are their for DV If I do the import with Final Cut Pro X then I get this from the file. Also, FCPX seems to be able to find the original timestamp from when the media was created. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './2020-03-26/1999-07-31 13_43_37.mov’: Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2020-03-27T04:07:28.00Z com.apple.quicktime.make: Apple com.apple.quicktime.model: MacBookPro14,3 com.apple.quicktime.software: Mac OS X 10.15.3 (19D76) com.apple.quicktime.creationdate: 2020-03-26T20:57:12-0700 Duration: 00:00:42.34, start: 0.00, bitrate: 31057 kb/s Stream #0:0(und): Video: dvvideo (dvc / 0x20637664), yuv411p(smpte170m/smpte170m/bt709, bottom coded first (swapped)), 720x480 [SAR 8:9 DAR 4:3], 28771 kb/s, SAR 10:11 DAR 15:11, 29.97 fps, 29.97 tbr, 30k tbn, 29.97 tbc (default) Metadata: creation_time : 2020-03-27T04:07:28.00Z handler_name : Core Media Video encoder : DV/DVCPRO - NTSC timecode : 00:10:04;23 Stream #0:1(und): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: creation_time : 2020-03-27T04:07:28.00Z handler_name : Core Media Time Code timecode : 00:10:04;23 Stream #0:2(und): Audio: pcm_s16le (lpcm / 0x6D63706C), 32000 Hz, 4 channels, s16, 2048 kb/s (default) Metadata: creation_time : 2020-03-27T04:07:28.00Z handler_name : Core Media Audio Unsupported codec with id 0 for input stream 1 On Apr 4, 2020, 2:11 AM -0700, Gyan Doshi , wrote: > > > On 04-04-2020 11:59 am, Colin Bitterfield wrote: > > I am trying to segment split a stream coming in from AVFOUNDATION > > > > ffmpeg -benchmark_all -stats -loglevel debug -copyts \ > > -f avfoundation -capture_raw_data true -pix_fmt 0rgb -i DV-VCR -q 0 \ > > -map 0 -c:v copy -c:a copy -segment_time 00:00:10 \ > > -f segment 374_%03d.dv -y > > > > _ I have tried various combinations of “-increment_tc” and > > "-reset_timestamps 0" > > > > The video splits flawless at the time requ > > .dv is a bare bones container and does not support timestamps. Try MOV. > > Gyan > ___ > 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". ___ 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] Question on Segment TImes
Thanks, That solved it. On Apr 4, 2020, 2:11 AM -0700, Gyan Doshi , wrote: > > > On 04-04-2020 11:59 am, Colin Bitterfield wrote: > > I am trying to segment split a stream coming in from AVFOUNDATION > > > > ffmpeg -benchmark_all -stats -loglevel debug -copyts \ > > -f avfoundation -capture_raw_data true -pix_fmt 0rgb -i DV-VCR -q 0 \ > > -map 0 -c:v copy -c:a copy -segment_time 00:00:10 \ > > -f segment 374_%03d.dv -y > > > > _ I have tried various combinations of “-increment_tc” and > > "-reset_timestamps 0" > > > > The video splits flawless at the time requ > > .dv is a bare bones container and does not support timestamps. Try MOV. > > Gyan > ___ > 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". ___ 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".
[FFmpeg-user] Question on Segment TImes
I am trying to segment split a stream coming in from AVFOUNDATION ffmpeg -benchmark_all -stats -loglevel debug -copyts \ -f avfoundation -capture_raw_data true -pix_fmt 0rgb -i DV-VCR -q 0 \ -map 0 -c:v copy -c:a copy -segment_time 00:00:10 \ -f segment 374_%03d.dv -y _ I have tried various combinations of “-increment_tc” and "-reset_timestamps 0" The video splits flawless at the time requested and this has solved a lot of size issues. It would help if the time stamps did not reset to zero each time. Splitting the commandline. Reading option '-benchmark_all' ... matched as option 'benchmark_all' (add timings for each task) with argument ‘1’. Reading option '-stats' ... matched as option 'stats' (print progress report during encoding) with argument ‘1’. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument ‘debug’. Reading option '-copyts' ... matched as option 'copyts' (copy timestamps) with argument ‘1’. Reading option '-f' ... matched as option 'f' (force format) with argument ‘avfoundation’. Reading option '-capture_raw_data' ... matched as AVOption 'capture_raw_data' with argument ‘true’. Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument ‘0rgb’. Reading option '-i' ... matched as input url with argument 'DV-VCR’. Reading option '-q' ... matched as option 'q' (use fixed quality scale (VBR)) with argument ‘0’. Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument ‘0’. Reading option '-c:v' ... matched as option 'c' (codec name) with argument ‘copy’. Reading option '-c:a' ... matched as option 'c' (codec name) with argument ‘copy’. Reading option '-segment_time' ... matched as AVOption 'segment_time' with argument '00:00:10’. Reading option '-f' ... matched as option 'f' (force format) with argument ‘segment’. Reading option '374_%03d.dv' ... matched as output url. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument ‘1’. Finished splitting the commandline. Parsing a group of options: global . Applying option benchmark_all (add timings for each task) with argument 1. Applying option stats (print progress report during encoding) with argument 1. Applying option loglevel (set logging level) with argument debug. Applying option copyts (copy timestamps) with argument 1. Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input url DV-VCR. Applying option f (force format) with argument avfoundation. Applying option pix_fmt (set pixel format) with argument 0rgb. Successfully parsed a group of options. Opening an input file: DV-VCR. [avfoundation @ 0x7fc8ee008200] 'DV-VCR’ opened [avfoundation @ 0x7fc8ee008200] Selected framerate (29.970030) is not supported by the device. [avfoundation @ 0x7fc8ee008200] Falling back to default. — It looks like it is working segment @ 0x7fc8ef809600] stream:0 start_pts_time:0 pts:296 pts_time:9.87653 dts:296 dts_time:9.87653 -> pts:296 pts_time:9.87653 dts:296 dts_time:9.87653 [segment @ 0x7fc8ef809600] stream:0 start_pts_time:0 pts:297 pts_time:9.9099 dts:297 dts_time:9.9099 -> pts:297 pts_time:9.9099 dts:297 dts_time:9.9099 [segment @ 0x7fc8ef809600] stream:0 start_pts_time:0 pts:298 pts_time:9.94327 dts:298 dts_time:9.94327 -> pts:298 pts_time:9.94327 dts:298 dts_time:9.94327 [segment @ 0x7fc8ef809600] stream:0 start_pts_time:0 pts:299 pts_time:9.97663 dts:299 dts_time:9.97663 -> pts:299 pts_time:9.97663 dts:299 dts_time:9.97663 [segment @ 0x7fc8ef809600] segment:'374_000.dv' count:0 ended [AVIOContext @ 0x7fc8eda07a00] Statistics: 0 seeks, 136 writeouts [segment @ 0x7fc8ef809600] Opening '374_001.dv' for writing [file @ 0x7fc8eb65e500] Setting default whitelist 'file,crypto’ [segment @ 0x7fc8ef809600] segment:'374_001.dv' starts with packet stream:0 pts:300 pts_time:10.01 frame:296 [segment @ 0x7fc8ef809600] stream:0 start_pts_time:10.01 pts:300 pts_time:10.01 dts:300 dts_time:10.01 -> pts:300 pts_time:10.01 dts:300 dts_time:10.01 [segment @ 0x7fc8ef809600] stream:0 start_pts_time:10.01 pts:301 pts_time:10.0434 dts:301 dts_time:10.0434 -> pts:301 pts_time:10.0434 dts:301 dts_time:10.0434 [segment @ 0x7fc8ef809600] stream:0 start_pts_time:10.01 pts:302 pts_time:10.0767 dts:302 dts_time:10.0767 -> pts:302 pts_time:10.0767 dts:302 dts_time:10.0767 [segment @ 0x7fc8ef809600] stream:0 start_pts_time:10.01 pts:303 pts_time:10.1101 dts:303 dts_time:10.1101 -> pts:303 pts_time:10.1101 dts:303 dts_time:10.1101 [segment @ 0x7fc8ef809600] stream:0 start_pts_time:10.01 pts:304 pts_time:10.1435 dts:304 dts_time:10.1435 -> pts:304 pts_time:10.1435 dts:304 dts_time:10.1435 However, the video still starts at Zero: Input #0, dv, from '374_001.dv’: Metadata: timecode : 00:00:00:00 Duration: 00:00:01.63, start: 0.00, bitrate: 28771 kb/s Stream #0:0: Video: dvvideo, yuv411p, 720x480 [SAR 8:9 DAR 4:3], 25000 kb/s,
Re: [FFmpeg-user] Question on AVFoundation and importing from a DV-VCR
I am not exactly sure what a segment muxer is. Do you have an example? On Mar 27, 2020, 12:57 PM -0700, Carl Eugen Hoyos , wrote: > Am Fr., 27. März 2020 um 18:26 Uhr schrieb Carl Eugen Hoyos > : > > > > Am Fr., 27. März 2020 um 05:33 Uhr schrieb Colin Bitterfield > > : > > > > > Using this command brings in a 12GB DVVIDEO files > > > > > > ffmpeg -hwaccel videotoolbox -hide_banner -benchmark_all -stats -loglevel > > > error -f avfoundation -capture_raw_data true -pix_fmt 0rgb -i DV-VCR -t > > > 600 -q 0 -c:v copy -c:a copy 'Test7.dv' -y > > > > (q 0 looks superfluous and misguiding) > > > > > The problem are: > > > > > > 1. The file is huge (Is there a way to auto split this with a scene > > > detect filter? > > > > You cannot use a filter when you want to "codec copy", re-encoding would > > lead to significantly smaller files. > > > > But you can use pipe output and cut the file, that should unproblematic > > with dv files. > > And I should have mentioned that one of the segment muxers will also work. > > Carl Eugen > ___ > 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". ___ 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] Question on AVFoundation and importing from a DV-VCR
I will look into that. Ffmpeg | ffmpeg == Colin Bitterfield == On March 27, 2020 at 10:27:14 AM, Carl Eugen Hoyos (ceffm...@gmail.com) wrote: Am Fr., 27. März 2020 um 05:33 Uhr schrieb Colin Bitterfield : > Using this command brings in a 12GB DVVIDEO files > > ffmpeg -hwaccel videotoolbox -hide_banner -benchmark_all -stats -loglevel > error -f avfoundation -capture_raw_data true -pix_fmt 0rgb -i DV-VCR -t 600 > -q 0 -c:v copy -c:a copy 'Test7.dv' -y (q 0 looks superfluous and misguiding) > The problem are: > > 1. The file is huge (Is there a way to auto split this with a scene detect > filter? You cannot use a filter when you want to "codec copy", re-encoding would lead to significantly smaller files. But you can use pipe output and cut the file, that should unproblematic with dv files. Carl Eugen ___ 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". ___ 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] screen cast windows 10 desktop with audio
Hi, Duration: N/A, start: 1584387532.163434, bitrate: 1006131 kb/sStream #0:0: Video: bmp, bgra, 1366x768, 1006131 kb/s, 29.97 fps, 29.25 tbr, 1000k tbn, 1000k tbc Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, dshow, from 'audio=Microphone (Realtek High Definition Audio)': Duration: N/A, start: 123897.214000, bitrate: 1411 kb/sStream #1:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/sWhy not use dshow for both? Anyhow, do you mean that if you dont stream audio just the video works fine?Regards,Ted Park___ffmpeg-user mailing listffmpeg-user@ffmpeg.orghttps://ffmpeg.org/mailman/listinfo/ffmpeg-userTo unsubscribe, visit link above, or emailffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". ___ 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] Question on AVFoundation and importing from a DV-VCR
Thilo, Good Morning I am using the Mac ports ffmpeg-devel version. I can compile it from scratch for testing. The reason for trying to keep the original time stamps (which does not seem to happen) is I wanted Final Cut Pro to have the original scene information for splitting. The tapes are from a video studio I acquired and I am going to remaster them for re-release. So I need the maximum quality from the take. I think the issue is related to ffmpeg taking a set of defaults based on the first stream detected and then there are multiple streams (at least 3 or 4) which require defaults to change. My idea was to import the video raw to a file and then have FPCX do the import on the file. FCPX does not seem to work the same on a file as it does on controlling the deck for import. I am trying to streamline a workflow because after I finish 500 DV tapes I have another 500 8MM tapes to go. Regards == Colin Bitterfield co...@bitterfield.com == On March 27, 2020 at 3:49:14 AM, Thilo Borgmann (thilo.borgm...@mail.de) wrote: Hi, > I have been trying to get a direct import from a Sony DSR-45 DV Deck. Using > OS X Final Cut Pro hot annoying with various issues. > > Does anyone have suggestions or a method for doing this better? I have > 500-600 more DV tapes to ingest. > > Using this command brings in a 12GB DVVIDEO files > > ffmpeg -hwaccel videotoolbox -hide_banner -benchmark_all -stats -loglevel > error -f avfoundation -capture_raw_data true -pix_fmt 0rgb -i DV-VCR -t 600 > -q 0 -c:v copy -c:a copy 'Test7.dv' -y > > The problem are: > > 1. The file is huge (Is there a way to auto split this with a scene detect > filter? I have not tried this yet. > > 2 The videos I am working with consist of: > a. Intro video track no audio > b. 60 second intro (apparently with different time codes) > c. A 45 minute to 60 minute video > > What I get is either the intro video is too slow or the actual video I want > is too fast. It seems to depend on whether I start the tape before the intro > text, or during a video. I am guessing different time codes. sounds like different timestamps on the tape. Try to add a setpts filter if you don't need the original timestamps or try setting the output rate manually if you do (but I'm not sure about that...). > I tried a number of test cases results varied but in all cases one or the > other video was bad. > > My next round of testing will be with " -capture_raw_data false" That _might_ solve your issues regarding the playback speed. It might result in loss of quality - assuming you're about to archive these several hundred tapes. > I am running this on a MacBook Pro (10.15 Catalina) > > ffmpeg version 4.2.git Copyright (c) 2000-2020 the FFmpeg developers > built with Apple clang version 11.0.0 (clang-1100.0.33.17) I'm still on Mojave and can't comment on Catalina. However, your build is too old to have the latest patches to avfoundation. Which are especially important for you because I fixed the end of recording bug. There is no release yet featuring it, get a build from after March 5th. -Thilo ___ 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". ___ 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] Question on AVFoundation and importing from a DV-VCR
On March 26, 2020 at 10:05:58 PM, Ted Park (kumowoon1...@gmail.com) wrote: Hi, > I have been trying to get a direct import from a Sony DSR-45 DV Deck. Using > OS X Final Cut Pro hot annoying with various issues. > > Does anyone have suggestions or a method for doing this better? I have > 500-600 more DV tapes to ingest. > > Using this command brings in a 12GB DVVIDEO files Do you mean how it reaches the end of tape and refuses to finish saving, and if you force quit the files not usable?? And also does FCPX seem to lose control over the deck for no reason at all sometimes? I had a hell of a time and ended up using boot camp and premier pro as a workaround, macOS Catalina doesn't seem to like dv at all and hates HDV only marginally less. Yeah, that’s about right. I have adobe premiere but they cut all support for DV in the Catalina. I contact support about it. Scene detection for splitting doesn’t seem too appealing, try if more direct access to the deck gives you more options with libdc1394. (personally I would either downgrade to mojave and use final cut there, or install windows 10 and premier with their trial/nfr licenses and archive all the dv tapes you have now. Even on mojave the newer versions of FCPX are finicky with tape decks :/) I turned off all of the processing during ingestion. Seems to be a bit better. I just can’t sit an wait for the last frame to stop the import. Regards, Ted Park ___ 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". ___ 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".
[FFmpeg-user] Question on AVFoundation and importing from a DV-VCR
To Whom It May Concern: I have been trying to get a direct import from a Sony DSR-45 DV Deck. Using OS X Final Cut Pro hot annoying with various issues. Does anyone have suggestions or a method for doing this better? I have 500-600 more DV tapes to ingest. Using this command brings in a 12GB DVVIDEO files ffmpeg -hwaccel videotoolbox -hide_banner -benchmark_all -stats -loglevel error -f avfoundation -capture_raw_data true -pix_fmt 0rgb -i DV-VCR -t 600 -q 0 -c:v copy -c:a copy 'Test7.dv' -y The problem are: 1. The file is huge (Is there a way to auto split this with a scene detect filter? I have not tried this yet. 2 The videos I am working with consist of: a. Intro video track no audio b. 60 second intro (apparently with different time codes) c. A 45 minute to 60 minute video What I get is either the intro video is too slow or the actual video I want is too fast. It seems to depend on whether I start the tape before the intro text, or during a video. I am guessing different time codes. I tried a number of test cases results varied but in all cases one or the other video was bad. My next round of testing will be with " -capture_raw_data false" Test Cases: ffmpeg -hide_banner -benchmark_all -stats -loglevel error -f avfoundation -capture_raw_data true -pix_fmt 0rgb -i DV-VCR -t 140 -copyts -copytb 0 -vsync passthrough -c:v copy -c:a copy 'Test 1.dv' ffmpeg -hide_banner -benchmark_all -stats -loglevel error -f avfoundation -capture_raw_data true -pix_fmt 0rgb -i DV-VCR -t 140 -c:v copy -c:a copy ‘Test 3.dv' -y I am running this on a MacBook Pro (10.15 Catalina) ffmpeg version 4.2.git Copyright (c) 2000-2020 the FFmpeg developers built with Apple clang version 11.0.0 (clang-1100.0.33.17) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-librsvg --enable-libtheora --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --enable-opencl --disable-outdev=xv --enable-audiotoolbox --enable-videotoolbox --enable-sdl2 --disable-securetransport --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-x86asm --enable-libx265 --enable-libdc1394 --enable-librtmp --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-version3 --enable-libsmbclient --enable-nonfree --enable-libfdk-aac ====== Colin Bitterfield co...@bitterfield.com https://www.linkedin.com/in/colin-bitterfield-80612327/ == ___ 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".