Re: [FFmpeg-user] Convert audio to CSV

2024-06-30 Thread Media Mouth



> On Jun 30, 2024, at 08:43, Michael Koch  wrote:
> 
> Am 30.06.2024 um 14:22 schrieb Media Mouth:
>> 
>>>> Which microcontroller are you using?
>>> Either Teensy LC or Seeed Xiao SAMD21. They both have a built-in DAC.
>>> In the meantime I found that "Sonic Visualiser" can open WAV and export CSV.
>>> 
>>> Michael
>> I'm not familiar with those but it Teensy does seem to have an optional 
>> filesystem akin to the one avail on the esp32
> 
> I know, but inserting the waveform into the C source code is much easier. My 
> microcontroller boards don't have SD cards.
> The problem is already solved. Preprocessing is done with FFmpeg (load the 
> audio file, cut out a segment and change the sample rate), then Sonic 
> Visualiser is used for conversion to CSV, then Libre Office for removing the 
> first column from the CSV file (I don't need the sample number). Then 
> copy-and-paste to the C source.
> 
> Michael

Hacky and awesome! Thanks for sharing.
___
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] Convert audio to CSV

2024-06-30 Thread Media Mouth



>> Which microcontroller are you using?
> 
> Either Teensy LC or Seeed Xiao SAMD21. They both have a built-in DAC.
> In the meantime I found that "Sonic Visualiser" can open WAV and export CSV.
> 
> Michael

I'm not familiar with those but it Teensy does seem to have an optional 
filesystem akin to the one avail on the esp32
___
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] Convert audio to CSV

2024-06-30 Thread Media Mouth



> On Jun 30, 2024, at 01:38, Michael Koch  wrote:
> 
> Hi,
> 
> is it possible to convert an audio waveform to a CSV list?
> I want to insert 2048 samples of a waveform into the C source code for a 
> microcontroller.
> 
> Michael
> 

Which microcontroller are you using?
___
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] Audio mapping and mixing

2024-06-09 Thread Media Mouth
Following up on an earlier post "amix vs amerge / how to" but now testing on 
ffmpeg version 7.0.1

The overall goal here is to learn how (if possible) to take source files with 
10 - 20 audio channels and mixdown / assign those in various ways to -- 2 
channel, 4 channels etc etc -- it depends on the who's requesting the mixdown.

I've been testing with -filter_complex amix, amerge, and join.  I'm not yet 
sure which is most suitable to the task or whether there are better FFmpeg 
approaches altogether.

If the goal is to take a source with lots of audio streams and mix those down 
in any combo, how could that be achieved?
According to the FFmpeg documentation amix "Mixes multiple audio inputs into a 
single output ", which suggests 
amix is not the best choice?
One post I read suggested 'join' provided more control & flexibility than both 
'amerge' and 'amix', so I've been testing with that

I made some progress, but not yet doing mixdowns.  Simply assigning to input 
streams to the same output track generates an error...

ffmpeg -i SoundTestIn.mxf \
-filter_complex 
'join=inputs=4:channel_layout=stereo:map=0.0-FR|1.0-FR|2.0-FL|3.0-FR' \
SoundTestOut.mov

Error: Multiple maps for output channel 'FR'

Perhaps join is NOT the best approach?  Thanks for any insights here.



full output

ffmpeg version 7.0.1 Copyright (c) 2000-2024 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.3.9.4)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0.1 --enable-shared 
--enable-pthreads --enable-version3 --cc=clang --host-cflags= 
--host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl 
--enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d 
--enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus 
--enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy 
--enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract 
--enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis 
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig 
--enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex 
--enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack 
--disable-indev=jack --enable-videotoolbox --enable-audiot
 oolbox --enable-neon
  libavutil  59.  8.100 / 59.  8.100
  libavcodec 61.  3.100 / 61.  3.100
  libavformat61.  1.100 / 61.  1.100
  libavdevice61.  1.100 / 61.  1.100
  libavfilter10.  1.100 / 10.  1.100
  libswscale  8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc58.  1.100 / 58.  1.100
[Parsed_join_0 @ 0x63df4000] Multiple maps for output channel 'FR'.
[AVFilterGraph @ 0x621f] Error initializing filters
Failed to set value 
'join=inputs=4:channel_layout=stereo:map=0.0-FR|1.0-FR|2.0-FL|3.0-FR' for 
option 'filter_complex': Invalid argument
Error parsing global options: Invalid argument

___
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] amix vs amerge / how to

2024-06-08 Thread Media Mouth



> On Jun 8, 2024, at 22:12, Carl Zwanzig  wrote:
> 
> On 6/8/2024 5:46 PM, Media Mouth wrote:
>> ffmpeg version 3.1.11 Copyright (c) 2000-2017 the FFmpeg developers
> 
> First thing is to get a modern version of ffmpeg, that one is positively 
> _ancient_.
> 
> (And also not to top-post on this mailing list.)
> 
> Later
> 
> z!

Getting a modern version of ffmpeg would actually be the 2nd thing.
1st thing would be to convince hip hot Hollywood to upgrade their Avid systems.
MacOS Mojave running Avid 2018 is a surprisingly stubborn industry standard.  
I'd gladly upgrade, but it's not up to me.

To be fair, I can test and dev on latest version ffmpeg on my Mac, but 
ultimately this needs to work the ancient machines at work.

Currently we're doing surprising well -- doing lots of transcodes, text 
overlays, slates, and time code burns on ffmpeg 3.1.11
Any chance I can get channel mapping and mixdowns to work as well?

c!
___
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] amix vs amerge / how to

2024-06-08 Thread Media Mouth
Following up...

Here's an attempt at re-mapping audio using "channelmap" as opposed to amix, 
amerge, or join

input.mxf is a 4-audio channel video file
Goal of this test to move a1 to a3, a2 to a4,  a3 to a1, a4 to a2 and output 
the results to a 

ffmpeg -i input.mxf \
-filter_complex "channelmap=channel_layout=quad:map=0-2|1-3|2-0|3-1" \
output.mov

Here's the stdout

ffmpeg version 3.1.11 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: 
  libavutil  55. 28.100 / 55. 28.100
  libavcodec 57. 48.101 / 57. 48.101
  libavformat57. 41.100 / 57. 41.100
  libavdevice57.  0.101 / 57.  0.101
  libavfilter 6. 47.100 /  6. 47.100
  libswscale  4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Guessed Channel Layout for Input Stream #0.3 : mono
Guessed Channel Layout for Input Stream #0.4 : mono
Input #0, mxf, from 'input.mxf':
  Metadata:
product_version : 1.0.47.10029.1
application_platform: MXF::SDK (4.7.6) on Mac OS X
product_uid : d49f75ba-4965-4cfa-9d11-cd87206287e0
uid : e103e154-25da-11ef-80db-804a1469dc20
generation_uid  : e103e155-25da-11ef-9902-804a1469dc20
company_name: Avid Technology, Inc.
product_name: Avid MediaProcessor Plug-In
modification_date: 2024-06-08 21:05:48
material_package_umid: 
0x060A2B340101010501010D1213C5AB48E0DF86046904068872F3804A1469DC20
timecode: 09:21:59:23
  Duration: 00:00:03.29, start: 0.00, bitrate: 121676 kb/s
Stream #0:0: Video: dnxhd, yuv422p(bt709/unknown/unknown), 1920x1080, SAR 
1:1 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc
Metadata:
  file_package_umid: 
0x060A2B340101010501010D1213591381E0DF860469040688E37F804A1469DC20
  file_package_name: Source Package
Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
Metadata:
  file_package_umid: 
0x060A2B340101010501010D1213591381E0DF860469040688E37F804A1469DC20
  file_package_name: Source Package
Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
Metadata:
  file_package_umid: 
0x060A2B340101010501010D1213591381E0DF860469040688E37F804A1469DC20
  file_package_name: Source Package
Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
Metadata:
  file_package_umid: 
0x060A2B340101010501010D1213591381E0DF860469040688E37F804A1469DC20
  file_package_name: Source Package
Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
Metadata:
  file_package_umid: 
0x060A2B340101010501010D1213591381E0DF860469040688E37F804A1469DC20
  file_package_name: Source Package
[Parsed_channelmap_0 @ 0x7fb6757014e0] input channel #1 not available from 
input layout 'mono'
[Parsed_channelmap_0 @ 0x7fb6757014e0] input channel #2 not available from 
input layout 'mono'
[Parsed_channelmap_0 @ 0x7fb6757014e0] input channel #3 not available from 
input layout 'mono'
[Parsed_channelmap_0 @ 0x7fb6757014e0] Failed to configure input pad on 
Parsed_channelmap_0
Error configuring complex filters.
Invalid argument



> On Jun 8, 2024, at 15:09, Media Mouth  wrote:
> 
> I'm looking to take Avid MXF outputs with up to 20 audio tracks, and mix them 
> down to various combinations, e.g. Stereo Mix, Stereo music, mono dialogue 
> only, Mono DM&E splits, etc etc. all kinds of permutations and combinations.
> 
> So the basic pipeline: Export MXF from Avid with "Direct Out" (i.e. all 
> timeline audio tracks sent to discreet channels in the MXF) and then use 
> FFmpeg to mix down the audio tracks in any combo.
> If we can figure this out, it will make our post production far more 
> efficient.
> 
> I perused FFmpeg's docs and various forums, but have yet to find clear, 
> comprehensive way to use -map, -filter_complex / amerge and/or amix to 
> achieve this.
> 
> Thanks
> 
> C. Munque.

___
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] amix vs amerge / how to

2024-06-08 Thread Media Mouth
I'm looking to take Avid MXF outputs with up to 20 audio tracks, and mix them 
down to various combinations, e.g. Stereo Mix, Stereo music, mono dialogue 
only, Mono DM&E splits, etc etc. all kinds of permutations and combinations.

So the basic pipeline: Export MXF from Avid with "Direct Out" (i.e. all 
timeline audio tracks sent to discreet channels in the MXF) and then use FFmpeg 
to mix down the audio tracks in any combo.
If we can figure this out, it will make our post production far more efficient.

I perused FFmpeg's docs and various forums, but have yet to find clear, 
comprehensive way to use -map, -filter_complex / amerge and/or amix to achieve 
this.

Thanks

C. Munque.
___
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] How do you keep all video metadata when transcoding using ffmpeg?

2023-09-30 Thread Media Mouth
Consider
- Always retaining camera originals
- Extracting the metadata using ffmpeg and maybe exiftool and capturing 
that either in matching-named sidecar files and/or in a media asset manager.

> On Sep 29, 2023, at 04:46, Stéphane Archer  wrote:
> 
> This includes:
> 
>   -
> 
>   EXIF
>   -
> 
>   IPTC
>   -
> 
>   XMP
>   -
> 
>   other metadata type I may not be aware of that my camera writes when
>   creating the file
> 
> 
> -- 
> Best Regards,
> 
> Stephane Archer
> ___
> 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] Is there a way to re-encode an inefficiently encoded file without losing quality and reducing file size?

2023-09-30 Thread Media Mouth

> On Sep 30, 2023, at 17:47, Stéphane Archer  wrote:
> 
> I'm not sure I understand what you mean, do you mean a hash like md5 and
> sha1?
> Could you please elaborate and simplify a bit?


I checked-- I was referencing this from your OP

> Is there any good reason why FFmpeg which sees that the video file input
> and output match every single characteristic doesn't copy the stream to
> avoid useless reencoding?
> Basically doing "-vcodec copy" automatically.

Based on that I was assuming you had existing files and arriving files new 
files that might or might not match your existing files
(Your actual situation may be different.  Might be helpful if you can provide 
more context about what you're trying to achieve.)

But to answer your question re hash: yes an md5 or sha.

I cobbled up a quick algorithm but instead of solving the problem it reveals a 
logic flaw

Take the following

ExistingFile = some file you might want to update
NewFile = The file that might update it.
ExistingFileHash = shasum -a 512 /path/to/ExistingFile
NewFileHash = shasum -a 512 /path/to/NewFile
if(NewFileHash <> ExistingFile){
delete ExistingFile (or archive it, depending on your workflow)
ffmpeg -i ExistingFile -whateversettings NewFile **Here's the logic 
flaw**
} else {
Don't do anything to the ExistingFile
}

* An Existing File that was transcoded ffmpeg would never match hashes with a 
new file.  or if it did match, it would seem there's no reason to transcode it.

So it sounds like there's more to the story of what you're trying to achieve.

Are you maybe instead trying to see if the metadata of a NewFile matches stored 
metadata of an Existing file, and if not, then do a transcode?

___
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] How to merge and map 1 video file with 4 audio files?

2023-09-30 Thread Media Mouth
How to merge and map 1 video file with 4 audio files?

We've have 1 video file, 4 audio files, all same length.
The video file is DNxHD36
The audio tracks are all .wav

The goal is to merge all 5 files in sync

Based on https://ffmpeg.org/ffmpeg.html#Advanced-options I tried the following:

ffmpeg \
-i 'Video.mxf' \
-i 'Audio1.wav' \
-i 'Audio2.wav' \
-i 'Audio3.wav' \
-i 'Audio4.wav' \
-c:v copy \
-c:a pcm_s24le \
-map 0:v:0 \
-map_channel 1.0.0 OUTPUT_CH0 \
-map_channel 2.0.0 OUTPUT_CH1 \
-map_channel 3.0.0 OUTPUT_CH2 \
-map_channel 4.0.0 OUTPUT_CH3 \
'/Volumes/ANF_VFX/prjx531-Xfers/ANF_103_230908_Soft Lock_MixStage_test.mxf'

Getting error
[NULL @ 0x7f814601a200] Unable to find a suitable output format for 'OUTPUT_CH0'
OUTPUT_CH0: Invalid argument

Also tried removing the extra 0 in the -map_channel lines,
e.g. -map_channel 1.0 OUTPUT_CH0 instead of
-map_channel 1.0.0 OUTPUT_CH0

Got error
Syntax error, mapchan usage: [file.stream.channel|-1][:syncfile:syncstream]



___
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] Trying to merge and map 1 video file with 4 audio files

2023-09-25 Thread Media Mouth
We've have 1 video file, 4 audio files, all same length.
The video file is DNxHD36
The audio tracks are all .wav

The goal is to merge all 5 files in sync

Based on https://ffmpeg.org/ffmpeg.html#Advanced-options I tried the following:

ffmpeg \
-i 'Video.mxf' \
-i 'Audio1.wav' \
-i 'Audio2.wav' \
-i 'Audio3.wav' \
-i 'Audio4.wav' \
-c:v copy \
-c:a pcm_s24le \
-map 0:v:0 \
-map_channel 1.0.0 OUTPUT_CH0 \
-map_channel 2.0.0 OUTPUT_CH1 \
-map_channel 3.0.0 OUTPUT_CH2 \
-map_channel 4.0.0 OUTPUT_CH3 \
'/Volumes/ANF_VFX/prjx531-Xfers/ANF_103_230908_Soft Lock_MixStage_test.mxf'

Getting error
[NULL @ 0x7f814601a200] Unable to find a suitable output format for 'OUTPUT_CH0'
OUTPUT_CH0: Invalid argument

Also tried removing the extra 0 in the -map_channel lines,
e.g. -map_channel 1.0 OUTPUT_CH0 instead of
-map_channel 1.0.0 OUTPUT_CH0

Got error
Syntax error, mapchan usage: [file.stream.channel|-1][:syncfile:syncstream]


___
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] Trouble with frame accuracy applying subcaps using .ass files to 23.976fps video

2023-08-25 Thread Media Mouth
Currently testing .ass subcaps in a VFX workflow.
The goal is to drop specfic text over specific shots and the in/out points have 
to be frame accurate
We're working in a 23.976 project.

Currently having no trouble using FFmpeg to generate frame-accurate subclips of 
individual shots from a full-show export by converting hh:mm:ss:ff to seconds 
and then handling the 24 to 23.976 offset, using the following alorithm:

InPoint_Seconds = ConvertToSeconds(InPoint_Hmsf_FullShow) - 
ConvertToSeconds(Start_Hmsf_FullShow) // Convert from SMTPE Time Code to 
seconds.
InPoint_Seconds = InPoint_Seconds * (1001 / 1000) //Handle 24 to 23.976 
offset
OutPoint_Seconds = [Same idea as above]
Duration_Seconds = Output_Seconds - InPoint_Seconds
> ffmpeg -ss InPoint_Seconds -t Duration_Seconds -i SourcePath -c copy 
DestPath

So generating frame-accurate copies of portions of a larger file works with 
perfect accuracy

BUT when applying the same logic to subcaps using .ass files, sometimes they 
land with frame accuracy, and sometimes they don't (They'll be 1 frame late at 
most, and it does not increase over the span of the source clip).

Curious if anyone has any ideas.

- Chris C
___
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] How to matte/letterbox plus burn in timecode and subcaps over the letterboxing

2023-08-21 Thread Media Mouth
We've got 1920x1080 source
We want to letterbox top and bottom to create 2.39 aspect ratio, maintaining 
that within the original 1920x1080

Then over the composited letterboxed picture we want to burn in timecode and 
subcaps

We're currently achieving the letterbox by means superimposing a photoshop file 
that handles the letterboxing
ffmpeg \
-i Source.mxf \
-i Source.psd \
-filter_complex "[0:v][1:v] overlay=0:0:enable='between(t,2,10)'" \
Dest.mxf

But when adding the overlays we run into trouble
ffmpeg \
-i Source.mxf \
-i Source.psd \
-filter_complex "[0:v][1:v] overlay=0:0:enable='between(t,2,10)'" \
 -vf 
"drawtext=fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode='00\\:59\\:57\\:00':rate=23.976:fontsize=43.5:fontcolor=white:x=(w-text_w-35):bordercolor=black:borderw=2:y=75,
 subtitles=Subcaps.ass" \
Dest.mxf

Error is
[vost#0:0/mpeg2video @ 0x12ba058f0] Filtergraph 
'drawtext=fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode='00\:59\:57\:00':rate=23.976:fontsize=43.5:fontcolor=white:x=(w-text_w-35):bordercolor=black:borderw=2:y=75,
 subtitles=Subcaps.ass' was specified through the -vf/-af/-filter option for 
output stream 0:0, which is fed from a complex filtergraph.
-vf/-af/-filter and -filter_complex cannot be used together for the same stream.

Is there a way to properly configure this?

Thanks
___
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] Is it possible to burn in two .srt files simultaneously to the same file?

2023-08-19 Thread Media Mouth
I've got 2 different .srt files and was hoping to use them both simultaneously 
to create burns in two different locations into the same video.

Currently I've got a watermark plus one .srt working just fine.  Was hoping to 
add the additional .srt.

The following CLI works just fine (ie Time code & 1 .srt file)
ffmpeg -i SourcePath \
-vf 
'drawtext=fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode='01\\:45\\:20\\:13':rate=23.976:fontsize=43.5:fontcolor=white:x=(w-text_w-35):bordercolor=black:borderw=2:y=75,
 
subtitles=${SrtPath1}:force_style='Alignment=4,Fontname=Helvetica,FontSize=12,PrimaryColour=&Hff'
 \
DestPath

The following CLI fails (ie Time code & 2 .srt files)
ffmpeg -i SourcePath \
drawtext=fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode='01\\:45\\:20\\:13':rate=23.976:fontsize=43.5:fontcolor=white:x=(w-text_w-35):bordercolor=black:borderw=2:y=75,
 
subtitles=${SrtPath1}:force_style='Alignment=4,Fontname=Helvetica,FontSize=12,PrimaryColour=&Hff,
 
subtitles=${SrtPath2}:force_style='Alignment=0,Fontname=Helvetica,FontSize=12,PrimaryColour=&Hff
 \
DestPath

The error points to the use of Helvetica font, but since the successful CLI 
above uses Helvetica as well with no problem, it sounds like a mislead.

ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0 --enable-shared 
--enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= 
--enable-ffplay --enable-gnutls --enable-gpl --enable-libaom 
--enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame 
--enable-libopus --enable-librav1e --enable-librist --enable-librubberband 
--enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract 
--enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis 
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig 
--enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex 
--enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack 
--disable-indev=jack --enable-videotoolbox --enable-neon
  libavutil  58.  2.100 / 58.  2.100
  libavcodec 60.  3.100 / 60.  3.100
  libavformat60.  3.100 / 60.  3.100
  libavdevice60.  1.100 / 60.  1.100
  libavfilter 9.  3.100 /  9.  3.100
  libswscale  7.  1.100 /  7.  1.100

  libswresample   4. 10.100 /  4. 10.100
  libpostproc57.  1.100 / 57.  1.100

[dnxhd @ 0x159905860] frame size changed: 1920x1088 -> 1920x1080

Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, mxf, from 'SourcePath':
  Metadata:
operational_pattern_ul: 060e2b34.04010101.0d010201.01010900
uid : adab4424-2f25-4dc7-92ff-29bd000c
generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001
company_name: FFmpeg
product_name: OP1a Muxer
product_version_num: 58.29.100.0.0
product_version : 58.29.100
product_uid : adab4424-2f25-4dc7-92ff-29bd000c0002
toolkit_version_num: 58.29.100.0.0
material_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB000
timecode: 01:45:20:13
  Duration: 
00:00:28.40, start: 0.00, bitrate: 37516 kb/s
  Stream #0:0: Video: dnxhd (DNXHD), yuv422p(bt709/unknown/unknown, 
progressive), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23.98 tbn
Metadata:
  file_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB001
  file_package_name: Source Package
  Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
Metadata:
  file_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB001
  file_package_name: Source Package

Stream mapping:
  Stream #0:0 -> #0:0 (dnxhd (native) -> mpeg2video (native))
  Stream #0:1 -> #0:1 (pcm_s24le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help

[AVFilterGraph @ 0x138e05620] No option name near 'Helvetica'
[AVFilterGraph @ 0x138e05620] Error parsing a filter description around: 
,FontSize=12,PrimaryColour=&Hff
[AVFilterGraph @ 0x138e05620] Error parsing filterchain 
'drawtext=fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode='01\:45\:20\:13':rate=23.976:fontsize=43.5:fontcolor=white:x=(w-text_w-35):bordercolor=black:borderw=2:y=75,
 
subtitles=Path/To/TcTest1.srt:force_style='Alignment=4,Fontname=Helvetica,FontSize=12,PrimaryColour=&Hff,
 
subtitles=Path/To/TcTest2.srt:force_style='Alignment=10,Fontname=Helvetica,FontSize=12,PrimaryColour=&Hff'
 around: ,FontSize=12,PrimaryColour=&Hff
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0

Conversion fa

Re: [FFmpeg-user] How to drawtext hh:mm:ss:ff timecode (on an old version ffmpeg)

2023-08-16 Thread Media Mouth


>> Thanks Paul,
>> 
>> Yes indeed you do need to escape the colons.  They seem to be the
>> delimiter for 'drawtext'
>> Not sure why it didn't show in my prior post, but here is another test,
>> confirmed with escapes before :, and using a more recent version of FFmpeg
>> (v6)
>> but still getting the same error: "Both text and text file provided.
>> Please provide only one"
>> 
>> Here's the command:
>> 
>> ffmpeg -y -i ~/Downloads/TcTest.mxf -vf
>> 'drawtext=fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode=01\:45\:20.13:rate=23.976:fontsize=24:fontcolor=white:x=860:y=960'
>> ~/Downloads/TcTest-Burns.mxf
> On Aug 16, 2023, at 12:49, Paul B Mahol  wrote:
> 
> Also need to escape \
> 
> So before each : in timecode put four \

Thanks again Paul,

A few more tests and got it working
You were right about the double backslashes.

At that point the period before the frame is not necessary.  Frames are fine, 
so "timecode=01\\:45\\:20\\:13 did the trick."

The final code that worked:

ffmpeg -i ~/Downloads/TcTest.mxf \
-vf 
'drawtext=fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode=01\\:45\\:20\\:13:rate=23.976:fontsize=24:fontcolor=white:x=860:y=960'
 \
~/Downloads/TcTest-Burns.mxf

Thanks for your help!!!

C.C.



___
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] How to drawtext hh:mm:ss:ff timecode (on an old version ffmpeg)

2023-08-16 Thread Media Mouth


> On Aug 16, 2023, at 11:03, Paul B Mahol  wrote:
> 
> On Wed, Aug 16, 2023 at 1:35 AM Media Mouth  <mailto:commun...@gmail.com>> wrote:
> 
>> Thanks Carl!
>> 
>> The switch from : to . (colon to period) got rid of the first error but it
>> there's still the second:
>> 
>> "Both text and text file provided. Please provide only one"
>> 
>> I tested on a newer system running ffmpeg version 6.0 and received the
>> same error
>> 
>> Thanks again.
>> 
> 
> You need to escape  : with \ IIRC



Thanks Paul,

Yes indeed you do need to escape the colons.  They seem to be the delimiter for 
'drawtext'
Not sure why it didn't show in my prior post, but here is another test, 
confirmed with escapes before :, and using a more recent version of FFmpeg (v6)
but still getting the same error: "Both text and text file provided. Please 
provide only one"

Here's the command:

ffmpeg -y -i ~/Downloads/TcTest.mxf -vf 
'drawtext=fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode=01\:45\:20.13:rate=23.976:fontsize=24:fontcolor=white:x=860:y=960'
 ~/Downloads/TcTest-Burns.mxf 



ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
  built with Apple clang version 14.0.3 (clang-1403.0.22.14.1)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0 --enable-shared 
--enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= 
--enable-ffplay --enable-gnutls --enable-gpl --enable-libaom 
--enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame 
--enable-libopus --enable-librav1e --enable-librist --enable-librubberband 
--enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract 
--enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis 
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig 
--enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex 
--enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack 
--disable-indev=jack --enable-videotoolbox --enable-neon
  libavutil  58.  2.100 / 58.  2.100
  libavcodec 60.  3.100 / 60.  3.100
  libavformat60.  3.100 / 60.  3.100
  libavdevice60.  1.100 / 60.  1.100
  libavfilter 9.  3.100 /  9.  3.100
  libswscale  7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc57.  1.100 / 57.  1.100
[dnxhd @ 0x1226051c0] frame size changed: 1920x1088 -> 1920x1080
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, mxf, from '~/Downloads/TcTest.mxf':
  Metadata:
operational_pattern_ul: 060e2b34.04010101.0d010201.01010900
uid : adab4424-2f25-4dc7-92ff-29bd000c
generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001
company_name: FFmpeg
product_name: OP1a Muxer
product_version_num: 58.29.100.0.0
product_version : 58.29.100
product_uid : adab4424-2f25-4dc7-92ff-29bd000c0002
toolkit_version_num: 58.29.100.0.0
material_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB000
timecode: 01:45:20:13
  Duration: 00:00:28.40, start: 0.00, bitrate: 37516 kb/s
  Stream #0:0: Video: dnxhd (DNXHD), yuv422p(bt709/unknown/unknown, 
progressive), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23.98 tbn
Metadata:
  file_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB001
  file_package_name: Source Package
  Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
Metadata:
  file_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB001
  file_package_name: Source Package
Stream mapping:
  Stream #0:0 -> #0:0 (dnxhd (native) -> mpeg2video (native))
  Stream #0:1 -> #0:1 (pcm_s24le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[Parsed_drawtext_0 @ 0x604a84d0] Both text and text file provided. Please 
provide only one
[AVFilterGraph @ 0x617b8060] Error initializing filters
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!

___
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] How to drawtext hh:mm:ss:ff timecode (on an old version ffmpeg)

2023-08-15 Thread Media Mouth
Thanks Carl!

The switch from : to . (colon to period) got rid of the first error but it 
there's still the second:

"Both text and text file provided. Please provide only one"

I tested on a newer system running ffmpeg version 6.0 and received the same 
error

Thanks again.

Full STD out
ffmpeg version 4.2.2-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 
2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.16)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg 
--extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl 
--enable-libaom --enable-libass --enable-libbluray --enable-libdav1d 
--enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame 
--enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenh264 --enable-libopenjpeg --enable-libopus 
--enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab 
--enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx 
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq 
--enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat58. 29.100 / 58. 29.100
  libavdevice58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc55.  5.100 / 55.  5.100

[dnxhd @ 0x7f8fb1000e00] frame size changed: 1920x1088 -> 1920x1080

Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, mxf, from 'SourcePath':
  Metadata:
operational_pattern_ul: 060e2b34.04010101.0d010201.01010900
uid : adab4424-2f25-4dc7-92ff-29bd000c
generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001
company_name: FFmpeg
product_name: OP1a Muxer
product_version : 58.29.100
product_uid : adab4424-2f25-4dc7-92ff-29bd000c0002
material_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB000
timecode: 01:45:20:13
  Duration: 00:00:28.40, start: 0.00, bitrate: 37516 kb/s
Stream #0:0: Video: dnxhd (DNXHD), yuv422p(bt709/unknown/unknown, 
progressive), 1920x1080, SAR 1:1 DAR 16:9
, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
Metadata:
  file_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB001
  file_package_name: Source Package
Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
Metadata:
  file_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB001
  file_package_name: Source Package

Stream mapping:
  Stream #0:0 -> #0:0 (dnxhd (native) -> mpeg2video (native))
  Stream #0:1 -> #0:1 (pcm_s24le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help

[Parsed_drawtext_0 @ 0x7f8faf401300] Both text and text file provided. Please 
provide only one
[AVFilterGraph @ 0x7f8faf400c00] Error initializing filter 'drawtext' with args 
'fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode=01:45:20.13:rate=23.976:fontsize=24:fontcolor=white:x=860:y=960'

Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument

Error while processing the decoded data for stream #0:0

Conversion failed!

> On Aug 15, 2023, at 14:04, Carl Zwanzig  wrote:
> 
> On 8/15/2023 1:35 PM, Media Mouth wrote:
>> Seems to be a problem with the \:13, based on this error:
> 
> Try it with a '.' or ',' there instead of a colon, hh:mm:ss.ff is a common 
> format and the time parser may be choking in the 3rd colon.
> 
> (Also try with something newer than version 4.2.2.)
> 
> z!
> ___
> 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] How to drawtext hh:mm:ss:ff timecode (on an old version ffmpeg)

2023-08-15 Thread Media Mouth
Based on a number of different forums, I've been testing the following code but 
so far no luck burning hh:mm:ss:ff time code into an .mxf file:

ffmpeg -i SourcePath \
-vf 
'drawtext=timecode=01\:45\:20\:13:rate=24:x=640:y=360:fontsize=24:fontcolor=white:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf'
 \
DestPath

( Also tried wrapping 01\:45\:20\:13 in quotes )


Seems to be a problem with the \:13, based on this error:
[drawtext @ 0x7fe302828000] Invalid 0xRRGGBB[AA] color string: '13'
[Parsed_drawtext_0 @ 0x7fe3020074c0] Both text and text file provided. Please 
provide only one




Here's the full STD out from the 1st attempt above (Note: We are constrained to 
an Mac OS Mojave and are not permitted to upgrade)

StdErr ffmpeg version 4.2.2-tessus  https://evermeet.cx/ffmpeg/  Copyright (c) 
2000-2019 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.16)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg 
--extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl 
--enable-libaom --enable-libass --enable-libbluray --enable-libdav1d 
--enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame 
--enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenh264 --enable-libopenjpeg --enable-libopus 
--enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr 
--enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab 
--enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx 
--enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 
--enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq 
--enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
  libavutil  56. 31.100 / 56. 31.100
  libavcodec 58. 54.100 / 58. 54.100
  libavformat58. 29.100 / 58. 29.100
  libavdevice58.  8.100 / 58.  8.100
  libavfilter 7. 57.100 /  7. 57.100
  libswscale  5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc55.  5.100 / 55.  5.100

[dnxhd @ 0x7fe301000e00] frame size changed: 1920x1088 -> 1920x1080

Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, mxf, from 'SourcePath':
  Metadata:
operational_pattern_ul: 060e2b34.04010101.0d010201.01010900
uid : adab4424-2f25-4dc7-92ff-29bd000c
generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001
company_name: FFmpeg
product_name: OP1a Muxer
product_version : 58.29.100
product_uid : adab4424-2f25-4dc7-92ff-29bd000c0002
material_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB000
timecode: 01:45:20:13
  Duration: 00:00:28.40, start: 0.00, bitrate: 37516 kb/s

Stream #0:0: Video: dnxhd (DNXHD), yuv422p(bt709/unknown/unknown, 
progressive), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 23.98 tbn, 
23.98 tbc
Metadata:
  file_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB001
  file_package_name: Source Package
Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s
Metadata:
  file_package_umid: 
0x060A2B340101010501010D0013B02329529471342CB0232900529471342CB001
  file_package_name: Source Package

Stream mapping:
  Stream #0:0 -> #0:0 (dnxhd (native) -> mpeg2video (native))
  Stream #0:1 -> #0:1 (pcm_s24le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help

[drawtext @ 0x7fe302828000] Invalid 0xRRGGBB[AA] color string: '13'
[drawtext @ 0x7fe302828000] Unable to parse option value "13" as color
[Parsed_drawtext_0 @ 0x7fe3020074c0] Both text and text file provided. Please 
provide only one
[AVFilterGraph @ 0x7fe2ffd025c0] Error initializing filter 'drawtext' with args 
'fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode=01:45:20:13:rate=24:fontsize=24:fontcolor=white:x=860:y=960'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument

Error while processing the decoded data for stream #0:0

Conversion failed!
___
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] ffmpeg capture from DVCam tape on M1?

2022-09-10 Thread Media Mouth
I've got a DVCam deck (DSR-11), trying to digitize old tapes to a MacBook Pro 
16" M1.

I'm able to successfully capture using a FireWire to thunderbolt adaptor, and 
then a thunderbolt to USB-C/Thunderbolt 4 adaptor.
Amazingly this setup works using iMovie.  Picture, sound, and time code all 
capture successfully.

It would be even better if I could capture using FFmpeg.

Based on this page https://ffmpeg.org/ffmpeg-devices.html#iec61883 
 I tried:
ffmpeg -f iec61883 -i auto -dvbuffer 10 out.mpg
which didn't work.

Results:
ffmpeg version 5.0 Copyright (c) 2000-2022 the FFmpeg developers
  built with Apple clang version 13.0.0 (clang-1300.0.29.30)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/5.0 --enable-shared 
--enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= 
--enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray 
--enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e 
--enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt 
--enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf 
--enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma 
--enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg 
--disable-libjack --disable-indev=jack --enable-videotoolbox
  libavutil  57. 17.100 / 57. 17.100
  libavcodec 59. 18.100 / 59. 18.100
  libavformat59. 16.100 / 59. 16.100
  libavdevice59.  4.100 / 59.  4.100
  libavfilter 8. 24.100 /  8. 24.100
  libswscale  6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc56.  3.100 / 56.  3.100
Unrecognized option 'dvbuffer'.
Error splitting the argument list: Option not found


Also tried w/o '-dvbuffer 10'
ffmpeg -f iec61883 -i auto out.mpg

Results:
ffmpeg version 5.0 Copyright (c) 2000-2022 the FFmpeg developers
  built with Apple clang version 13.0.0 (clang-1300.0.29.30)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/5.0 --enable-shared 
--enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= 
--enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray 
--enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e 
--enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt 
--enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf 
--enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 
--enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma 
--enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg 
--enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg 
--disable-libjack --disable-indev=jack --enable-videotoolbox
  libavutil  57. 17.100 / 57. 17.100
  libavcodec 59. 18.100 / 59. 18.100
  libavformat59. 16.100 / 59. 16.100
  libavdevice59.  4.100 / 59.  4.100
  libavfilter 8. 24.100 /  8. 24.100
  libswscale  6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc56.  3.100 / 56.  3.100
Unknown input format: 'iec61883'
___
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] Trouble converting from DNxHD36 to h.264

2022-07-18 Thread Media Mouth
> On Jul 18, 2022, at 7:20 PM, Carl Zwanzig  wrote:
> 
> Quite likely then a different version of ffmpeg. Please post the complete and 
> unedited command output in an email message (not a screen grab).
> 
> (often that type of error is a colorspace mismatch)
> 
> z!

>> 
>> On Jul 18, 2022, at 7:37 PM, Media Mouth  wrote:
>> 
>> ffmpeg -i 'input.mov' -strict -2 -b:v 8000K -vf format=yuv420p -c:a aac 
>> 'output.mov'
>> ffmpeg version 4.4.git Copyright (c) 2000-2022 the FFmpeg developers
>>   built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
>>   configuration: --disable-x86asm



I think I figured it out.
The culprit seems to have been "configuration: --disable-x86asm"
During the first attempted installs a notice came up showing there was some 
kind problem with "yasm" and to go with "-disable-x86asm" to get around it.  My 
impression is -disable-x86asm means you end up without the necessary libraries 
or something.

Solution: Install yasm, re-install ffmpeg.

So far that seems to have solved the problem.
DNxHD36 now transcodes to h.264 just fine.

Thanks ffmpeg!


___
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] Trouble converting from DNxHD36 to h.264

2022-07-18 Thread Media Mouth


> On Jul 18, 2022, at 7:20 PM, Carl Zwanzig  wrote:
> 
> On 7/18/2022 7:13 PM, Media Mouth wrote:
>> I'm running same version MacOS on a different machine across town, where
>> FFmpeg works just fine, so I'm curious what might be the cause of the
>> problem.
> Quite likely then a different version of ffmpeg. Please post the complete and 
> unedited command output in an email message (not a screen grab).
> 
> (often that type of error is a colorspace mismatch)
> 
> z!


RE "different version of ffmpeg"
Yes, probably.

stdout:

ffmpeg -i 'input.mov' -strict -2 -b:v 8000K -vf format=yuv420p -c:a aac 
'output.mov'
ffmpeg version 4.4.git Copyright (c) 2000-2022 the FFmpeg developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: --disable-x86asm
  libavutil  57. 27.100 / 57. 27.100
  libavcodec 59. 33.100 / 59. 33.100
  libavformat59. 25.100 / 59. 25.100
  libavdevice59.  6.100 / 59.  6.100
  libavfilter 8. 41.100 /  8. 41.100
  libswscale  6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov':
  Metadata:
major_brand : qt  
minor_version   : 537199360
compatible_brands: qt  
creation_time   : 2022-07-18T20:05:46.00Z
timecode: 00:59:56:00
  Duration: 00:01:49.19, start: 0.00, bitrate: 36279 kb/s
  Stream #0:0[0x1](eng): Video: dnxhd (DNXHD) (AVdn / 0x6E645641), yuv422p(tv, 
bt709/unknown/unknown), 1920x1080, 36175 kb/s, SAR 1:1 DAR 16:9, 24 fps, 24 
tbr, 23976 tbn (default)
Metadata:
  creation_time   : 2022-07-18T20:05:46.00Z
  handler_name: Apple Video Media Handler
  vendor_id   : AVID
  encoder : DNxHD  709
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 89 kb/s (default)
Metadata:
  creation_time   : 2022-07-18T20:05:46.00Z
  handler_name: Apple Sound Media Handler
  vendor_id   : [0][0][0][0]
  Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
  creation_time   : 2022-07-18T20:08:11.00Z
  handler_name: Time Code Media Handler
  timecode: 00:59:56:00
Stream mapping:
  Stream #0:0 -> #0:0 (dnxhd (native) -> mpeg4 (native))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, mov, to 'output.mov':
  Metadata:
major_brand : qt  
minor_version   : 537199360
compatible_brands: qt  
timecode: 00:59:56:00
encoder : Lavf59.25.100
  Stream #0:0(eng): Video: mpeg4 (mp4v / 0x7634706D), yuv420p(tv, 
bt709/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 8000 
kb/s, 24 fps, 12288 tbn (default)
Metadata:
  creation_time   : 2022-07-18T20:05:46.00Z
  handler_name: Apple Video Media Handler
  vendor_id   : AVID
  encoder : Lavc59.33.100 mpeg4
Side data:
  cpb: bitrate max/min/avg: 0/0/800 buffer size: 0 vbv_delay: N/A
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 128 kb/s (default)
Metadata:
  creation_time   : 2022-07-18T20:05:46.00Z
  handler_name: Apple Sound Media Handler
  vendor_id   : [0][0][0][0]
  encoder : Lavc59.33.100 aac


___
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] Trouble converting from DNxHD36 to h.264

2022-07-18 Thread Media Mouth
Having trouble converting from DNxHD36 to h.264/mp4 and h.264/mov

Code used
> ffmpeg input.mov -strict -2 -b:v 8000K -vf format=yuv420p -c:a aac output.mp4

Picture comes out green or purple with horizontal lines

I'm on an older version MacOS (no choice.  Specs below).
I'm running same version MacOS on a different machine across town, where FFmpeg 
works just fine, so I'm curious what might be the cause of the problem.  
Perhaps not installed correctly?

Including a screen grab here, but not sure if it will post...



System specs:

MacOS Mojave 10.14.6 (18G103)

ffmpeg version 4.4.git Copyright (c) 2000-2022 the FFmpeg developers
  built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
  configuration: --disable-x86asm
  libavutil  57. 27.100 / 57. 27.100
  libavcodec 59. 33.100 / 59. 33.100
  libavformat59. 25.100 / 59. 25.100
  libavdevice59.  6.100 / 59.  6.100
  libavfilter 8. 41.100 /  8. 41.100
  libswscale  6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] 
outfile}...




___
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] DNxHD / DNxHR conversions for Avid

2022-04-12 Thread Media Mouth



> On Apr 12, 2022, at 12:24 PM, Paul B Mahol  wrote:
> 
> On Tue, Apr 12, 2022 at 2:13 AM Media Mouth  <mailto:commun...@gmail.com>> wrote:
> 
>> We've got a bunch of mp4s that need converting to Avid-native MXF that
>> they can be dropped into a ../Avid MediaFiles/MXF folder without being
>> ingested.
>> (In other words, bypassing the need to importing/transcoding and avoiding
>> using AMA+transcoding)
>> 
>> The mp4 sources are 29.97, 23.976 and 25fps (at 3840x2160)
>> The Avid project is DNxHD36 1920x1080 @ 24fps, and the mandate is to not
>> mix frame rates on the timeline.
>> 
>> So the current workflow involves using Resolve, where we select the mp4s
>> and Clip Attributes > Video Frame 24
>> then throw onto a timeline and export using format MXF Op-Atom using Codec
>> DNxHD 1080p 36 8bit video
>> That generates files that can be drag and dropped to Avid Media folders
>> which then show up in bins via importing the msmMMOB.mdb (per folder media
>> database)
>> 
>> I'm trying to achieve the same Avid-compatible MXFs using FFmpeg
>> So far I haven't figure out how do DNxHD w/o getting an error in FFmpeg
>> And my attempts to do DNxHR, while successful in terms of getting a
>> playable file and no errors on the FFmpeg,
>> do cause an error on the Avid side if you drop them directly in an Avid
>> MediaFiles/MXF folder
>> 
>> 
>> Most successful FFMPEG command (the one that resulted in the above error)
>> so far has been this...
>> 
>> ffmpeg -i /path/to/source.mp4 \
>> -c:v dnxhd \
>> -vf 'scale=1920:1080,fps=24/1,format=yuv422p' \
>> -profile:v dnxhr_lb \
>> /path/to/dest.mxf
>> 
> 
> I see nowhere here presentation of the error, either ffmpeg one or avid one.
> 
> Do note that ffmpeg's mxf muxer is not very polished in current version.

Thanks Paul

> RE "not very polished":

Noted.

> RE FFmpeg error

I managed to get past the DNxHD error using the following CLI

ffmpeg -i /path/to/source.mp4  \
-c:v dnxhd \
-vf 'scale=1920:1080,fps=24/1,format=yuv422p' \
-b:v 36M \ 
/path/to/dest.mxf

...so I'm able to create a DNxHD and DNxHR of the mp4 in an MXF wrapper
But neither works in Avid as hoped -- at least not yet.

> RE: not seeing the attachment jpg showing the error...

It was definitely included in the prior email, so I'm not sure why it didn't 
arrive.
Attaching it again, hoping it does this time.
But just in case it doesn't, here's the error dialog that pops up:
"Exception 'LocalMDB::ScanMXFFileToMobManager - Invalid data stream offset'"
"An error occurred scanning the file Avid MediaFiles/MXF/path/to/file"

Button options in the dialogue box are "Abort" "Quarantine" "Quarantine All" 
"Ignore" "Ignore All"





___
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] DNxHD / DNxHR conversions for Avid

2022-04-11 Thread Media Mouth
We've got a bunch of mp4s that need converting to Avid-native MXF  that they 
can be dropped into a ../Avid MediaFiles/MXF folder without being ingested.
(In other words, bypassing the need to importing/transcoding and avoiding using 
AMA+transcoding)

The mp4 sources are 29.97, 23.976 and 25fps  (at 3840x2160)
The Avid project is DNxHD36 1920x1080 @ 24fps, and the mandate is to not mix 
frame rates on the timeline.

So the current workflow involves using Resolve, where we select the mp4s and 
Clip Attributes > Video Frame 24
then throw onto a timeline and export using format MXF Op-Atom using Codec 
DNxHD 1080p 36 8bit video
That generates files that can be drag and dropped to Avid Media folders which 
then show up in bins via importing the msmMMOB.mdb (per folder media database)

I'm trying to achieve the same Avid-compatible MXFs using FFmpeg
So far I haven't figure out how do DNxHD w/o getting an error in FFmpeg
And my attempts to do DNxHR, while successful in terms of getting a playable 
file and no errors on the FFmpeg,
do cause an error on the Avid side if you drop them directly in an Avid 
MediaFiles/MXF folder


Most successful FFMPEG command (the one that resulted in the above error)  so 
far has been this...

ffmpeg -i /path/to/source.mp4 \
-c:v dnxhd \
-vf 'scale=1920:1080,fps=24/1,format=yuv422p' \
-profile:v dnxhr_lb \
/path/to/dest.mxf



___
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] Convert srt Subtitle file into ttml subtitle

2021-10-11 Thread Media Mouth
RE https://microservice.trillionpictures.com 
<https://microservice.trillionpictures.com/> It's working for me, both the web 
page and the API.
RE https://ttconv.sandflow.com/ <https://ttconv.sandflow.com/>  Very Cool!  
Thanks for sharing!!

> On Oct 11, 2021, at 7:14 PM, Pierre-Anthony Lemieux  wrote:
> 
> On Mon, Oct 11, 2021 at 6:38 PM Media Mouth  <mailto:commun...@gmail.com>> wrote:
>> 
>> Here's another possibility. https://microservice.trillionpictures.com 
>> <https://microservice.trillionpictures.com/>
> 
> I am getting a blank page.
> 
> There is also https://ttconv.sandflow.com/ <https://ttconv.sandflow.com/>
> 
> (disclaimer: I am the maintainer)

___
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] Convert srt Subtitle file into ttml subtitle

2021-10-11 Thread Media Mouth
Here's another possibility. https://microservice.trillionpictures.com
I ran a single test with it, and the TTML formatting looked good, but I still 
have to run QC against a full show.

> On Oct 10, 2021, at 11:15 PM, R J  wrote:
> 
> Hi,
> 
> Thanks for your help.
> 
> I have gone through that online translators.
> 
> I am looking for the FFmpeg command which can simplify my requirement.
> 
> You can suggest any other linux tool/applications for this.
> 
> Thank you.
> 
> On Mon, 11 Oct 2021, 11:39 MediaMouth,  wrote:
> 
>> You might try this
>> 
>> https://gotranscript.com/subtitle-converter
>> 
>> If you're comfortable with coding at all, you can create a relatively
>> sophisticated converter that accounts for options like positioning and
>> styling in ttml but which are largely foreign to srt.
>> 
>> 
>> 
>>> On Oct 10, 2021, at 22:58, R J  wrote:
>>> 
>>> Hi,
>>> 
>>> Sorry for putting you in confusion.
>>> 
>>> I tried different ways of conversion from srt to ttml
>>> 
>>> ffmpeg -i my_srt.srt my_output.ttml -v verbose
>>> 
>>> So FFmpeg doesn't have the support for this ttml conversion yet.
>>> 
>>> If so, how to convert this srt into ttml?
>>> 
>>> Regards.
>>> ___
>>> 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 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".