[FFmpeg-user] Failed to generate stream segment video frames

2021-02-07 Thread Vijay Rakesh Munganda
Hi,

I'm trying to generate video and audio stream segments, with below command
I'm able to generate audio segments but not full video segments. Please
find the attached log file.

$ffmpeg -f alsa -channels 1 -thread_queue_size 1024 -i hw:1 -f video4linux2
-i /dev/video0 -c:a aac -ar 48k -t 0:30 -segment_time 00:00.08
-segment_start_number 1 -f stream_segment
/home/test/samples/aacSampleFrames/sample-%003d.aac -c:v h264 -pix_fmt
yuv420p -s:v 640x480 -t 0:30 -r 25 -g 45 -bf 0 -segment_time 00:00.08
-segment_start_number 1 -f stream_segment
/home/test/samples/h264SampleFrames/frame-%003d.h264
$ffmpeg -f alsa -channels 1 -thread_queue_size 1024 -i hw:1 -f video4linux2 -i 
/dev/video0 -c:a aac -ar 48k -t 0:30 -segment_time 00:00.08 
-segment_start_number 1 -f stream_segment 
/home/test/samples/aacSampleFrames/sample-%003d.aac -c:v h264 -pix_fmt yuv420p 
-s:v 640x480 -t 0:30 -r 25 -g 45 -bf 0 -segment_time 00:00.08 
-segment_start_number 1 -f stream_segment 
/home/test/samples/h264SampleFrames/frame-%003d.h264

---LOG---
ffmpeg version 4.3.1-0york0~18.04 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version='0york0~18.04' 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl 
--disable-stripping --enable-avresample --disable-filter=resample 
--enable-gnutls --enable-ladspa --enable-libaom --enable-libass 
--enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio 
--enable-libcodec2 --enable-libflite --enable-libfontconfig 
--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm 
--enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg 
--enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq 
--enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy 
--enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh 
--enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis 
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 
--enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 
--enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 
--enable-libzimg --enable-pocketsphinx --enable-libdc1394 --enable-libdrm 
--enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 
--enable-shared
  libavutil  56. 51.100 / 56. 51.100
  libavcodec 58. 91.100 / 58. 91.100
  libavformat58. 45.100 / 58. 45.100
  libavdevice58. 10.100 / 58. 10.100
  libavfilter 7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc55.  7.100 / 55.  7.100
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, alsa, from 'hw:1':
  Duration: N/A, start: 1612769875.699063, bitrate: 768 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 9430.548807, bitrate: 147456 kb/s
Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 
kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> aac (native))
  Stream #1:0 -> #1:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[stream_segment,ssegment @ 0x559fbce4f540] Opening 
'/home/test/samples/aacSampleFrames/sample-001.aac' for writing
Output #0, stream_segment,ssegment, to 
'/home/test/samples/aacSampleFrames/sample-%003d.aac':
  Metadata:
encoder : Lavf58.45.100
Stream #0:0: Audio: aac (LC), 48000 Hz, mono, fltp, 69 kb/s
Metadata:
  encoder : Lavc58.91.100 aac
[libx264 @ 0x559fbce5ab80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x559fbce5ab80] profile High, level 3.0
[stream_segment,ssegment @ 0x559fbce58ec0] Opening 
'/home/test/samples/h264SampleFrames/frame-001.h264' for writing
Output #1, stream_segment,ssegment, to 
'/home/test/samples/h264SampleFrames/frame-%003d.h264':
  Metadata:
encoder : Lavf58.45.100
Stream #1:0: Video: h264 (libx264), yuv420p, 640x480, q=-1--1, 25 fps, 25 
tbn, 25 tbc
Metadata:
  encoder : Lavc58.91.100 libx264
Side data:
  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
[stream_segment,ssegment @ 0x559fbce4f540] Opening 
'/home/test/samples/aacSampleFrames/sample-002.aac' for writing
[stream_segment,ssegment @ 0x559fbce4f540] Opening 
'/home/test/samples/aacSampleFrames/sample-003.aac' for writing
[stream_segment,ssegment @ 0x559fbce4f540] Opening 
'/home/test/samples/aacSampleFrames/sample-004.aac' for writing
[stream_segment,ssegment @ 0x559fbce4f540] Opening 
'/home/test/samples/aacSampleFrames/sample-005.aac' for writing
[stream_segment,ssegment @ 0x559fbce4f540] Opening 

Re: [FFmpeg-user] Script to time all encoders on a given machine?

2021-02-07 Thread Moritz Barsnick
On Sun, Feb 07, 2021 at 14:15:34 -0800, Steven Kan wrote:
> for each $thisencoder in “ffmpeg -encoders”
>   time ffmpeg -i testfile.mp4 -vcodec $thisencoder out.mp4 (or whatever 
> extension is suitable) > results.txt
> next $encoder
>
> with error checking, etc.
>
> Or would this not be useful because y’all already know what works on your 
> machine?

What would the results be useful for? Do you want to test whether they
work correctly?

ffmpeg has a regression testing quite called "fate", which is run very
frequently (but does not cover external libraries).

Cheers,
Moritz
___
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] Script to time all encoders on a given machine?

2021-02-07 Thread Steven Kan
I know that ffmpeg -encoders will return all the encoders compiled into a given 
build, but has anyone written a script to actually test each of them and time 
the results?

Something like:

for each $thisencoder in “ffmpeg -encoders”
time ffmpeg -i testfile.mp4 -vcodec $thisencoder out.mp4 (or whatever 
extension is suitable) > results.txt
next $encoder

with error checking, etc. 

Or would this not be useful because y’all already know what works on your 
machine?
___
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] Removing a metadata tag from a specfic stream

2021-02-07 Thread MediaMouth
On Feb 7, 2021, at 6:51 AM, Paul B Mahol  wrote:
> 
> This is because it does not allow arbitrary values, just some small set.

Thanks for all the info Paul.  Very revealing.

A couple of side questions:

- I noticed on the https://id3.org/id3v2.4.0-frames 
 page they distinguish "Description" and 
"Picture type".  It's "Picture type" that seems to be accessed by ffmpeg's 
-metadata:s:v:0 comment="Cover (front)".  If that's correct, is there an ffmpeg 
-metadata key that accesses "Description"? (It's not 'description')

- From this page  
there's a note "id3 tags are not normally, and should not be used on flacs".  
Is the technique we're using here in ffmpeg to control the metadata an id3 tag 
or a flac tag, and does it matter?

- One of those "arbitrary values" listed at https://id3.org/id3v2.4.0-frames 
 is "A bright coloured fish".  I tested, and 
indeed it works as a valid entry.  I know this is more a question for the folks 
at id3.org , but I do wonder if that's a joke or  a meaning 
value.  I mean, why not, "A spectacularly unsheared sheep"?

___
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] Removing a metadata tag from a specfic stream

2021-02-07 Thread Thibeau
Apologies,  it makes sense if it chooses from a list of recognized values.
Thx for all the help and patience!

On Sun, 7 Feb 2021 at 14:52, Paul B Mahol  wrote:

> This is because it does not allow arbitrary values, just some small set.
>
> On Sun, Feb 7, 2021 at 3:51 PM Paul B Mahol  wrote:
>
> >
> >
> > On Sun, Feb 7, 2021 at 3:49 PM Thibeau 
> > wrote:
> >
> >> It is very strange that if you change the value you set comment from
> >> 'Cover
> >> (front)' to e.g 'Cover' it will set the tag to cover but ffmpeg won't
> >> recognize it and display it as Other any ideas why this is?
> >>
> >
> > Because if your set value does not match any from specification section I
> > linked previously
> > it will pick first entry, And first entry is "Other".
> >
> >
> >>
> >> On Sun, 7 Feb 2021 at 11:03, Thibeau 
> >> wrote:
> >>
> >> > First ffprobe shows before executing ffmpeg command . I installed the
> >> git
> >> > version for ffmpeg to make sure it was the same as yours. It seems
> >> you're
> >> > infact corrrect and it allows for you to set the tag to another and
> >> value
> >> > and will default to Other. Thx for the help of explaining it. Didn't
> >> find
> >> > the docs on my own so thx for giving a link to them.
> >> > Don't know alot about ffmpeg either but adding -vsync 2 to your
> command
> >> > would seem like a good idea no? Than the error in the command (see
> >> second
> >> > command [2]) would go away. Unless I'm mistaken and it's intent to be
> >> not
> >> > use vsync 2 method.
> >> > -- [1]
> >> > ffprobe '29 My Girl.flac'
> >> > ffprobe version N-100998-g134193a2ff Copyright (c) 2007-2021 the
> FFmpeg
> >> > developers
> >> >   built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
> >> >   configuration: --prefix=/usr --libdir=/usr/lib64
> --shlibdir=/usr/lib64
> >> > --docdir=/usr/share/doc/ffmpeg-/html --mandir=/usr/share/man
> >> > --enable-shared --cc=x86_64-pc-linux-gnu-gcc
> >> --cxx=x86_64-pc-linux-gnu-g++
> >> > --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm
> >> > --ranlib=x86_64-pc-linux-gnu-ranlib
> >> > --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native
> >> -O3
> >> > -pipe -flto=5 -fgraphite-identity -floop-nest-optimize
> -ftree-vectorize
> >> > -fsched-pressure -fipa-pta -fno-semantic-interposition
> >> -fuse-linker-plugin
> >> > -fno-common -fdevirtualize-at-ltrans -falign-functions=32
> >> > --param=l1-cache-size=32 --param=l1-cache-line-size=64
> >> > --param=l2-cache-size=6144' --disable-static --enable-avfilter
> >> > --enable-avresample --disable-stripping --disable-optimizations
> >> > --disable-libcelt --enable-nonfree --disable-indev=v4l2
> >> > --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack
> >> > --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect
> >> > --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp
> >> --enable-gpl
> >> > --disable-hardcoded-tables --enable-iconv --disable-libtls
> >> > --disable-libxml2 --disable-lzma --disable-network --disable-opencl
> >> > --enable-openssl --enable-postproc --disable-libsmbclient
> >> --disable-ffplay
> >> > --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan
> >> > --enable-xlib --enable-libxcb --enable-libxcb-shm
> --enable-libxcb-xfixes
> >> > --enable-zlib --disable-libcdio --disable-libiec61883
> >> --disable-libdc1394
> >> > --enable-libcaca --disable-openal --disable-opengl --disable-libv4l2
> >> > --disable-libpulse --enable-libdrm --disable-libjack
> >> > --disable-libopencore-amrwb --disable-libopencore-amrnb
> >> --disable-libcodec2
> >> > --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg
> >> > --enable-libbluray --disable-libgme --disable-libgsm
> >> --disable-libaribb24
> >> > --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc
> >> > --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt
> >> > --enable-librsvg --disable-ffnvcodec --enable-libvorbis
> --disable-libvpx
> >> > --disable-libzvbi --disable-appkit --disable-libbs2b
> >> --disable-chromaprint
> >> > --disable-cuda-llvm --disable-libflite
> >> > --disable-frei0r --disable-libfribidi --enable-fontconfig
> >> --disable-ladspa
> >> > --disable-libass --disable-libtesseract --disable-lv2
> >> --enable-libfreetype
> >> > --disable-libvidstab --disable-librubberband --disable-libzmq
> >> > --disable-libzimg --disable-libsoxr --enable-pthreads
> >> > --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar
> >> > --disable-libaom --disable-libopenh264 --disable-librav1e
> >> > --disable-libsnappy --disable-libtheora --disable-libtwolame
> >> > --disable-libwebp --disable-libx264 --disable-libx265
> --disable-libxvid
> >> > --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2
> >> > --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8
> >> > --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu
> >> --disable-altivec
> >> > --disable-vsx --disable-power8 --disable-amd3dnow
> 

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Paul B Mahol
This is because it does not allow arbitrary values, just some small set.

On Sun, Feb 7, 2021 at 3:51 PM Paul B Mahol  wrote:

>
>
> On Sun, Feb 7, 2021 at 3:49 PM Thibeau 
> wrote:
>
>> It is very strange that if you change the value you set comment from
>> 'Cover
>> (front)' to e.g 'Cover' it will set the tag to cover but ffmpeg won't
>> recognize it and display it as Other any ideas why this is?
>>
>
> Because if your set value does not match any from specification section I
> linked previously
> it will pick first entry, And first entry is "Other".
>
>
>>
>> On Sun, 7 Feb 2021 at 11:03, Thibeau 
>> wrote:
>>
>> > First ffprobe shows before executing ffmpeg command . I installed the
>> git
>> > version for ffmpeg to make sure it was the same as yours. It seems
>> you're
>> > infact corrrect and it allows for you to set the tag to another and
>> value
>> > and will default to Other. Thx for the help of explaining it. Didn't
>> find
>> > the docs on my own so thx for giving a link to them.
>> > Don't know alot about ffmpeg either but adding -vsync 2 to your command
>> > would seem like a good idea no? Than the error in the command (see
>> second
>> > command [2]) would go away. Unless I'm mistaken and it's intent to be
>> not
>> > use vsync 2 method.
>> > -- [1]
>> > ffprobe '29 My Girl.flac'
>> > ffprobe version N-100998-g134193a2ff Copyright (c) 2007-2021 the FFmpeg
>> > developers
>> >   built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
>> >   configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
>> > --docdir=/usr/share/doc/ffmpeg-/html --mandir=/usr/share/man
>> > --enable-shared --cc=x86_64-pc-linux-gnu-gcc
>> --cxx=x86_64-pc-linux-gnu-g++
>> > --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm
>> > --ranlib=x86_64-pc-linux-gnu-ranlib
>> > --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native
>> -O3
>> > -pipe -flto=5 -fgraphite-identity -floop-nest-optimize -ftree-vectorize
>> > -fsched-pressure -fipa-pta -fno-semantic-interposition
>> -fuse-linker-plugin
>> > -fno-common -fdevirtualize-at-ltrans -falign-functions=32
>> > --param=l1-cache-size=32 --param=l1-cache-line-size=64
>> > --param=l2-cache-size=6144' --disable-static --enable-avfilter
>> > --enable-avresample --disable-stripping --disable-optimizations
>> > --disable-libcelt --enable-nonfree --disable-indev=v4l2
>> > --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack
>> > --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect
>> > --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp
>> --enable-gpl
>> > --disable-hardcoded-tables --enable-iconv --disable-libtls
>> > --disable-libxml2 --disable-lzma --disable-network --disable-opencl
>> > --enable-openssl --enable-postproc --disable-libsmbclient
>> --disable-ffplay
>> > --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan
>> > --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes
>> > --enable-zlib --disable-libcdio --disable-libiec61883
>> --disable-libdc1394
>> > --enable-libcaca --disable-openal --disable-opengl --disable-libv4l2
>> > --disable-libpulse --enable-libdrm --disable-libjack
>> > --disable-libopencore-amrwb --disable-libopencore-amrnb
>> --disable-libcodec2
>> > --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg
>> > --enable-libbluray --disable-libgme --disable-libgsm
>> --disable-libaribb24
>> > --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc
>> > --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt
>> > --enable-librsvg --disable-ffnvcodec --enable-libvorbis --disable-libvpx
>> > --disable-libzvbi --disable-appkit --disable-libbs2b
>> --disable-chromaprint
>> > --disable-cuda-llvm --disable-libflite
>> > --disable-frei0r --disable-libfribidi --enable-fontconfig
>> --disable-ladspa
>> > --disable-libass --disable-libtesseract --disable-lv2
>> --enable-libfreetype
>> > --disable-libvidstab --disable-librubberband --disable-libzmq
>> > --disable-libzimg --disable-libsoxr --enable-pthreads
>> > --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar
>> > --disable-libaom --disable-libopenh264 --disable-librav1e
>> > --disable-libsnappy --disable-libtheora --disable-libtwolame
>> > --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid
>> > --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2
>> > --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8
>> > --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu
>> --disable-altivec
>> > --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext
>> > --disable-fma4 --disable-xop --cpu=host --enable-lto --disable-doc
>> > --disable-htmlpages --enable-manpages
>> >   libavutil  56. 64.100 / 56. 64.100
>> >   libavcodec 58.121.100 / 58.121.100
>> >   libavformat58. 67.100 / 58. 67.100
>> >   libavdevice58. 11.103 / 58. 11.103
>> >   libavfilter 7.102.100 /  7.102.100
>> >   

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Paul B Mahol
On Sun, Feb 7, 2021 at 3:49 PM Thibeau 
wrote:

> It is very strange that if you change the value you set comment from 'Cover
> (front)' to e.g 'Cover' it will set the tag to cover but ffmpeg won't
> recognize it and display it as Other any ideas why this is?
>

Because if your set value does not match any from specification section I
linked previously
it will pick first entry, And first entry is "Other".


>
> On Sun, 7 Feb 2021 at 11:03, Thibeau 
> wrote:
>
> > First ffprobe shows before executing ffmpeg command . I installed the git
> > version for ffmpeg to make sure it was the same as yours. It seems you're
> > infact corrrect and it allows for you to set the tag to another and value
> > and will default to Other. Thx for the help of explaining it. Didn't find
> > the docs on my own so thx for giving a link to them.
> > Don't know alot about ffmpeg either but adding -vsync 2 to your command
> > would seem like a good idea no? Than the error in the command (see second
> > command [2]) would go away. Unless I'm mistaken and it's intent to be not
> > use vsync 2 method.
> > -- [1]
> > ffprobe '29 My Girl.flac'
> > ffprobe version N-100998-g134193a2ff Copyright (c) 2007-2021 the FFmpeg
> > developers
> >   built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
> >   configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
> > --docdir=/usr/share/doc/ffmpeg-/html --mandir=/usr/share/man
> > --enable-shared --cc=x86_64-pc-linux-gnu-gcc
> --cxx=x86_64-pc-linux-gnu-g++
> > --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm
> > --ranlib=x86_64-pc-linux-gnu-ranlib
> > --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O3
> > -pipe -flto=5 -fgraphite-identity -floop-nest-optimize -ftree-vectorize
> > -fsched-pressure -fipa-pta -fno-semantic-interposition
> -fuse-linker-plugin
> > -fno-common -fdevirtualize-at-ltrans -falign-functions=32
> > --param=l1-cache-size=32 --param=l1-cache-line-size=64
> > --param=l2-cache-size=6144' --disable-static --enable-avfilter
> > --enable-avresample --disable-stripping --disable-optimizations
> > --disable-libcelt --enable-nonfree --disable-indev=v4l2
> > --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack
> > --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect
> > --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp
> --enable-gpl
> > --disable-hardcoded-tables --enable-iconv --disable-libtls
> > --disable-libxml2 --disable-lzma --disable-network --disable-opencl
> > --enable-openssl --enable-postproc --disable-libsmbclient
> --disable-ffplay
> > --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan
> > --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes
> > --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394
> > --enable-libcaca --disable-openal --disable-opengl --disable-libv4l2
> > --disable-libpulse --enable-libdrm --disable-libjack
> > --disable-libopencore-amrwb --disable-libopencore-amrnb
> --disable-libcodec2
> > --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg
> > --enable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24
> > --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc
> > --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt
> > --enable-librsvg --disable-ffnvcodec --enable-libvorbis --disable-libvpx
> > --disable-libzvbi --disable-appkit --disable-libbs2b
> --disable-chromaprint
> > --disable-cuda-llvm --disable-libflite
> > --disable-frei0r --disable-libfribidi --enable-fontconfig
> --disable-ladspa
> > --disable-libass --disable-libtesseract --disable-lv2
> --enable-libfreetype
> > --disable-libvidstab --disable-librubberband --disable-libzmq
> > --disable-libzimg --disable-libsoxr --enable-pthreads
> > --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar
> > --disable-libaom --disable-libopenh264 --disable-librav1e
> > --disable-libsnappy --disable-libtheora --disable-libtwolame
> > --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid
> > --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2
> > --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8
> > --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec
> > --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext
> > --disable-fma4 --disable-xop --cpu=host --enable-lto --disable-doc
> > --disable-htmlpages --enable-manpages
> >   libavutil  56. 64.100 / 56. 64.100
> >   libavcodec 58.121.100 / 58.121.100
> >   libavformat58. 67.100 / 58. 67.100
> >   libavdevice58. 11.103 / 58. 11.103
> >   libavfilter 7.102.100 /  7.102.100
> >   libavresample   4.  0.  0 /  4.  0.  0
> >   libswscale  5.  8.100 /  5.  8.100
> >   libswresample   3.  8.100 /  3.  8.100
> >   libpostproc55.  8.100 / 55.  8.100
> > Input #0, flac, from '29 My Girl.flac':
> >   Metadata:
> > ALBUM   : Prodigal 

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Thibeau
It is very strange that if you change the value you set comment from 'Cover
(front)' to e.g 'Cover' it will set the tag to cover but ffmpeg won't
recognize it and display it as Other any ideas why this is?

On Sun, 7 Feb 2021 at 11:03, Thibeau  wrote:

> First ffprobe shows before executing ffmpeg command . I installed the git
> version for ffmpeg to make sure it was the same as yours. It seems you're
> infact corrrect and it allows for you to set the tag to another and value
> and will default to Other. Thx for the help of explaining it. Didn't find
> the docs on my own so thx for giving a link to them.
> Don't know alot about ffmpeg either but adding -vsync 2 to your command
> would seem like a good idea no? Than the error in the command (see second
> command [2]) would go away. Unless I'm mistaken and it's intent to be not
> use vsync 2 method.
> -- [1]
> ffprobe '29 My Girl.flac'
> ffprobe version N-100998-g134193a2ff Copyright (c) 2007-2021 the FFmpeg
> developers
>   built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
>   configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
> --docdir=/usr/share/doc/ffmpeg-/html --mandir=/usr/share/man
> --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++
> --ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm
> --ranlib=x86_64-pc-linux-gnu-ranlib
> --pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O3
> -pipe -flto=5 -fgraphite-identity -floop-nest-optimize -ftree-vectorize
> -fsched-pressure -fipa-pta -fno-semantic-interposition -fuse-linker-plugin
> -fno-common -fdevirtualize-at-ltrans -falign-functions=32
> --param=l1-cache-size=32 --param=l1-cache-line-size=64
> --param=l2-cache-size=6144' --disable-static --enable-avfilter
> --enable-avresample --disable-stripping --disable-optimizations
> --disable-libcelt --enable-nonfree --disable-indev=v4l2
> --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack
> --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect
> --disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl
> --disable-hardcoded-tables --enable-iconv --disable-libtls
> --disable-libxml2 --disable-lzma --disable-network --disable-opencl
> --enable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay
> --disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan
> --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes
> --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394
> --enable-libcaca --disable-openal --disable-opengl --disable-libv4l2
> --disable-libpulse --enable-libdrm --disable-libjack
> --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2
> --enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg
> --enable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24
> --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc
> --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt
> --enable-librsvg --disable-ffnvcodec --enable-libvorbis --disable-libvpx
> --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint
> --disable-cuda-llvm --disable-libflite
> --disable-frei0r --disable-libfribidi --enable-fontconfig --disable-ladspa
> --disable-libass --disable-libtesseract --disable-lv2 --enable-libfreetype
> --disable-libvidstab --disable-librubberband --disable-libzmq
> --disable-libzimg --disable-libsoxr --enable-pthreads
> --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar
> --disable-libaom --disable-libopenh264 --disable-librav1e
> --disable-libsnappy --disable-libtheora --disable-libtwolame
> --disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid
> --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2
> --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8
> --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec
> --disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext
> --disable-fma4 --disable-xop --cpu=host --enable-lto --disable-doc
> --disable-htmlpages --enable-manpages
>   libavutil  56. 64.100 / 56. 64.100
>   libavcodec 58.121.100 / 58.121.100
>   libavformat58. 67.100 / 58. 67.100
>   libavdevice58. 11.103 / 58. 11.103
>   libavfilter 7.102.100 /  7.102.100
>   libavresample   4.  0.  0 /  4.  0.  0
>   libswscale  5.  8.100 /  5.  8.100
>   libswresample   3.  8.100 /  3.  8.100
>   libpostproc55.  8.100 / 55.  8.100
> Input #0, flac, from '29 My Girl.flac':
>   Metadata:
> ALBUM   : Prodigal Son: Season 1 (Original Television
> Soundtrack)
> ARTIST  : Nathaniel Blume
> DATE: 2020
> TITLE   : My Girl
> track   : 29
>   Duration: 00:02:55.60, start: 0.00, bitrate: 1424 kb/s
>   Stream #0:0: Audio: flac, 44100 Hz, stereo, s32 (24 bit)
>   Stream #0:1: Video: mjpeg (Baseline), yuvj444p(pc,
> 

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Thibeau
First ffprobe shows before executing ffmpeg command . I installed the git
version for ffmpeg to make sure it was the same as yours. It seems you're
infact corrrect and it allows for you to set the tag to another and value
and will default to Other. Thx for the help of explaining it. Didn't find
the docs on my own so thx for giving a link to them.
Don't know alot about ffmpeg either but adding -vsync 2 to your command
would seem like a good idea no? Than the error in the command (see second
command [2]) would go away. Unless I'm mistaken and it's intent to be not
use vsync 2 method.
-- [1]
ffprobe '29 My Girl.flac'
ffprobe version N-100998-g134193a2ff Copyright (c) 2007-2021 the FFmpeg
developers
  built with gcc 9.3.0 (Gentoo 9.3.0-r2 p4)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
--docdir=/usr/share/doc/ffmpeg-/html --mandir=/usr/share/man
--enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++
--ar=x86_64-pc-linux-gnu-ar --nm=x86_64-pc-linux-gnu-nm
--ranlib=x86_64-pc-linux-gnu-ranlib
--pkg-config=x86_64-pc-linux-gnu-pkg-config --optflags='-march=native -O3
-pipe -flto=5 -fgraphite-identity -floop-nest-optimize -ftree-vectorize
-fsched-pressure -fipa-pta -fno-semantic-interposition -fuse-linker-plugin
-fno-common -fdevirtualize-at-ltrans -falign-functions=32
--param=l1-cache-size=32 --param=l1-cache-line-size=64
--param=l2-cache-size=6144' --disable-static --enable-avfilter
--enable-avresample --disable-stripping --disable-optimizations
--disable-libcelt --enable-nonfree --disable-indev=v4l2
--disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack
--disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect
--disable-debug --disable-gcrypt --enable-gnutls --disable-gmp --enable-gpl
--disable-hardcoded-tables --enable-iconv --disable-libtls
--disable-libxml2 --disable-lzma --disable-network --disable-opencl
--enable-openssl --enable-postproc --disable-libsmbclient --disable-ffplay
--disable-sdl2 --disable-vaapi --disable-vdpau --disable-vulkan
--enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes
--enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394
--enable-libcaca --disable-openal --disable-opengl --disable-libv4l2
--disable-libpulse --enable-libdrm --disable-libjack
--disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2
--enable-libdav1d --disable-libfdk-aac --disable-libopenjpeg
--enable-libbluray --disable-libgme --disable-libgsm --disable-libaribb24
--disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc
--disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt
--enable-librsvg --disable-ffnvcodec --enable-libvorbis --disable-libvpx
--disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint
--disable-cuda-llvm --disable-libflite
--disable-frei0r --disable-libfribidi --enable-fontconfig --disable-ladspa
--disable-libass --disable-libtesseract --disable-lv2 --enable-libfreetype
--disable-libvidstab --disable-librubberband --disable-libzmq
--disable-libzimg --disable-libsoxr --enable-pthreads
--disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar
--disable-libaom --disable-libopenh264 --disable-librav1e
--disable-libsnappy --disable-libtheora --disable-libtwolame
--disable-libwebp --disable-libx264 --disable-libx265 --disable-libxvid
--disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2
--disable-neon --disable-vfp --disable-vfpv3 --disable-armv8
--disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec
--disable-vsx --disable-power8 --disable-amd3dnow --disable-amd3dnowext
--disable-fma4 --disable-xop --cpu=host --enable-lto --disable-doc
--disable-htmlpages --enable-manpages
  libavutil  56. 64.100 / 56. 64.100
  libavcodec 58.121.100 / 58.121.100
  libavformat58. 67.100 / 58. 67.100
  libavdevice58. 11.103 / 58. 11.103
  libavfilter 7.102.100 /  7.102.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc55.  8.100 / 55.  8.100
Input #0, flac, from '29 My Girl.flac':
  Metadata:
ALBUM   : Prodigal Son: Season 1 (Original Television
Soundtrack)
ARTIST  : Nathaniel Blume
DATE: 2020
TITLE   : My Girl
track   : 29
  Duration: 00:02:55.60, start: 0.00, bitrate: 1424 kb/s
  Stream #0:0: Audio: flac, 44100 Hz, stereo, s32 (24 bit)
  Stream #0:1: Video: mjpeg (Baseline), yuvj444p(pc,
bt470bg/unknown/unknown), 640x640 [SAR 118:118 DAR 1:1], 90k tbr, 90k tbn,
90k tbc (attached pic)
Metadata:
  comment : Other
 [1]
- [2]
brandon@NKWTMEID /tmp/x $ ffmpeg -i '29 My Girl.flac' -c:v png
-disposition:v:1 attached_pic -metadata:s:v:0 comment="Cover (front)"
out.flac
ffmpeg version N-100998-g134193a2ff Copyright (c) 2000-2021 

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Thibeau
That’s what I didn’t know. Thanks for the help and the link!

> On 7 Feb 2021, at 11:35, Paul B Mahol  wrote:
> 
> On Sun, Feb 7, 2021 at 11:19 AM Paul B Mahol  wrote:
> 
>> 
>> 
>>> On Sun, Feb 7, 2021 at 12:59 AM MediaMouth  wrote:
>>> 
>>> On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
 
 Can you share file?
>>> Yes.  The O.P. made it available here: https://ufile.io/bgunj34e <
>>> https://ufile.io/bgunj34e>
>>> 
 
 ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
 -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
 
 Note that metadata order is important. The command above adds comment
 metadata to video stream.
>>> 
>>> Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
>>> Here are the steps I did...
>>> 
>> 
>> Your steps are all invalid. Why you put first audio then video?
>> My command only works with first video stream and after that audio stream.
>> In ffmpeg every item position matters.
>> 
> 
> Also you can not remove description of attached picture at all. "Other" is
> just default value if no other valid values are set.
> You can change value to "Cover (front)" if you like, please read 4.14
> section of https://id3.org/id3v2.4.0-frames
> 
> So command to change Other to Cover is:
> ffmpeg -i INPUT.flac -c:v png -disposition:v:1 attached_pic -metadata:s:v:0
> comment="Cover (front)" OUTPUT.flac
> 
> 
> 
>> 
>> 
>>> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract
>>> the album art to an external file.
>>> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
>>> Girl-NoArt.flac'; #Remove the album art, save results to a new .flac file.
>>> ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata
>>> comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1
>>> -metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back using
>>> the metadata commands as you suggest, and store to yet another .flac file.
>>> Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format
>>> used, make sure you did set range correctly
>>> 
>>> 
>>> ___
>>> 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".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Paul B Mahol
On Sun, Feb 7, 2021 at 11:31 AM Thibeau 
wrote:

> I did that command you gave with video and than audio in that order
> checked it three times.
> The metadata went to the audio not the video.
> Feel free to test it yourself with the provided file.
> Please let me know if it was my mistake and the command is correct when
> you execute it.
>
>
I can not guess what you typed. And user assume to much things these days.

So next time post full ffmpeg log.



> > On 7 Feb 2021, at 11:19, Paul B Mahol  wrote:
> >
> > On Sun, Feb 7, 2021 at 12:59 AM MediaMouth  wrote:
> >
> >>> On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
> >>>
> >>> Can you share file?
> >> Yes.  The O.P. made it available here: https://ufile.io/bgunj34e <
> >> https://ufile.io/bgunj34e>
> >>
> >>>
> >>> ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
> >>> -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
> >>>
> >>> Note that metadata order is important. The command above adds comment
> >>> metadata to video stream.
> >>
> >> Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
> >> Here are the steps I did...
> >>
> >
> > Your steps are all invalid. Why you put first audio then video?
> > My command only works with first video stream and after that audio
> stream.
> > In ffmpeg every item position matters.
> >
> >
> >> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract
> >> the album art to an external file.
> >> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
> >> Girl-NoArt.flac'; #Remove the album art, save results to a new .flac
> file.
> >> ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata
> >> comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1
> >> -metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back
> using
> >> the metadata commands as you suggest, and store to yet another .flac
> file.
> >> Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format
> used,
> >> make sure you did set range correctly
> >>
> >>
> >> ___
> >> 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".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Paul B Mahol
On Sun, Feb 7, 2021 at 11:19 AM Paul B Mahol  wrote:

>
>
> On Sun, Feb 7, 2021 at 12:59 AM MediaMouth  wrote:
>
>> On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
>> >
>> > Can you share file?
>> Yes.  The O.P. made it available here: https://ufile.io/bgunj34e <
>> https://ufile.io/bgunj34e>
>>
>> >
>> > ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
>> > -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
>> >
>> > Note that metadata order is important. The command above adds comment
>> > metadata to video stream.
>>
>> Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
>> Here are the steps I did...
>>
>
> Your steps are all invalid. Why you put first audio then video?
> My command only works with first video stream and after that audio stream.
> In ffmpeg every item position matters.
>

Also you can not remove description of attached picture at all. "Other" is
just default value if no other valid values are set.
You can change value to "Cover (front)" if you like, please read 4.14
section of https://id3.org/id3v2.4.0-frames

So command to change Other to Cover is:
ffmpeg -i INPUT.flac -c:v png -disposition:v:1 attached_pic -metadata:s:v:0
comment="Cover (front)" OUTPUT.flac



>
>
>> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract
>> the album art to an external file.
>> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
>> Girl-NoArt.flac'; #Remove the album art, save results to a new .flac file.
>> ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata
>> comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1
>> -metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back using
>> the metadata commands as you suggest, and store to yet another .flac file.
>> Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format
>> used, make sure you did set range correctly
>>
>>
>> ___
>> 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] Removing a metadata tag from a specfic stream

2021-02-07 Thread Thibeau
I did that command you gave with video and than audio in that order checked it 
three times.
The metadata went to the audio not the video.
Feel free to test it yourself with the provided file.
Please let me know if it was my mistake and the command is correct when you 
execute it.

> On 7 Feb 2021, at 11:19, Paul B Mahol  wrote:
> 
> On Sun, Feb 7, 2021 at 12:59 AM MediaMouth  wrote:
> 
>>> On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
>>> 
>>> Can you share file?
>> Yes.  The O.P. made it available here: https://ufile.io/bgunj34e <
>> https://ufile.io/bgunj34e>
>> 
>>> 
>>> ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
>>> -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
>>> 
>>> Note that metadata order is important. The command above adds comment
>>> metadata to video stream.
>> 
>> Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
>> Here are the steps I did...
>> 
> 
> Your steps are all invalid. Why you put first audio then video?
> My command only works with first video stream and after that audio stream.
> In ffmpeg every item position matters.
> 
> 
>> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract
>> the album art to an external file.
>> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
>> Girl-NoArt.flac'; #Remove the album art, save results to a new .flac file.
>> ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata
>> comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1
>> -metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back using
>> the metadata commands as you suggest, and store to yet another .flac file.
>> Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format used,
>> make sure you did set range correctly
>> 
>> 
>> ___
>> 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".

Re: [FFmpeg-user] Removing a metadata tag from a specfic stream

2021-02-07 Thread Paul B Mahol
On Sun, Feb 7, 2021 at 12:59 AM MediaMouth  wrote:

> On Feb 6, 2021, at 3:32 PM, Paul B Mahol  wrote:
> >
> > Can you share file?
> Yes.  The O.P. made it available here: https://ufile.io/bgunj34e <
> https://ufile.io/bgunj34e>
>
> >
> > ffmpeg -i INPUT.png -i AUDIO.flac -map:v 0 -metadata comment=Other
> > -disposition:v:0 attached_pic -map:a 1 -metadata album=test FINAL.flac
> >
> > Note that metadata order is important. The command above adds comment
> > metadata to video stream.
>
> Thanks for posting.  Clear and helpful.  Unfortunately, I got an error
> Here are the steps I did...
>

Your steps are all invalid. Why you put first audio then video?
My command only works with first video stream and after that audio stream.
In ffmpeg every item position matters.


> ffmpeg -i '29 My Girl.flac' -an -vcodec copy '29 My Girl.png'; #Extract
> the album art to an external file.
> ffmpeg -i '29 My Girl.flac' -map 0 -map -0:v:0 -c copy '29 My
> Girl-NoArt.flac'; #Remove the album art, save results to a new .flac file.
> ffmpeg -i '29 My Girl-NoArt.flac' -i '29 My Girl.png' -map:v 0 -metadata
> comment=SomethingOtherThanOther -disposition:v:0 attached_pic -map:a 1
> -metadata comment= '29 My Girl-ReArt.flac'; #Add the album art back using
> the metadata commands as you suggest, and store to yet another .flac file.
> Error received:  [swscaler @ 0x7f9648038000] deprecated pixel format used,
> make sure you did set range correctly
>
>
> ___
> 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".