Re: [FFmpeg-user] Subtitle metadata not intercompatible by ffprobe

2022-06-28 Thread Bang He
Can you share your mp4 file generated by subler, i have no apple computer.

On Fri, Jun 10, 2022 at 5:59 AM Robin van der Linden via ffmpeg-user <
ffmpeg-user@ffmpeg.org> wrote:

> Hello.
>
> I'm using ffprobe to import video information into my database using
> python. In general, this process is working fine
> but if I set a subtitle forced or SDH using "Subler"
> (https://subler.org/) I'm not able to later on check with ffprobe if a
> subtitle is set as SDH or is forced. No matter what information I set
> with Subler, the ffprobe output will always be:
>
>   "disposition": {
>  "default": 0,
>  "dub": 0,
>  "original": 0,
>  "comment": 0,
>  "lyrics": 0,
>  "karaoke": 0,
>  "forced": 0,
>  "hearing_impaired": 0,
>  "visual_impaired": 0,
>  "clean_effects": 0,
>  "attached_pic": 1,
>  "timed_thumbnails": 0,
>  "captions": 0,
>  "descriptions": 0,
>  "metadata": 0,
>  "dependent": 0,
>  "still_image": 0
>  },
>
> So basically the only information that really triggers is attached_pic,
> but the rest does not change at all, not matter what I set with Subler.
> The funny thing is that VLC for example recognizes a subtitle as forced
> if I set it as forced using Subler. So I can assume that the Information
> is there, but stored differently so ffprobe can't read it properly. Is
> there any chance that this will be fixed or is there any workaround?
> This is the cmd I fire:
>
> "ffprobe -pretty -print_format json -export_all true -show_programs
> -show_streams -show_format -loglevel quiet -hide_banner 'path/to/file'"
>
>
>
> --
> Grüße / Kind regards,
>
> Robin van der Linden___
> 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] Make white of photo transparant

2022-06-28 Thread Cecil Westerhof via ffmpeg-user
I am still experimenting with ffmpeg.
At the moment I have the folowing:
 ffmpeg -y -ss 21:50 -to 23:20 -i input.MTS -i Photos/output.jpg
\
-filter_complex "[0:v][1:v] overlay=0:-10:enable='between(t, 5, 
85)'"   \
-pix_fmt yuv420p -acodec copy -vcodec libx264 -preset veryfast -crf 
26  \
output.mp4

The background of the photo is white. Would it be possible to make
that transparent? (So where there is white, I do not see white, but
the video.)

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] Problem with videos not playing in mobile browser

2022-06-28 Thread Cecil Westerhof via ffmpeg-user
"Dr Mark A. Garlick"  writes:

> Dear all
>
> I am new to this forum.
>
> I have noticed that some of my videos, encoded with ffmpeg and uploaded
> to my websites, do not play on mobile web browsers, but they work 
> perfectly well on desktop browsers on my Linux machine. I get either a
> message saying 'file is corrupted' or no message at all (just a blank 
> video) depending on the browser. I've tried Brave, Firefox and Chrome,
> on an iPhone, a Samsung tablet and a Samsung Galaxy s10 plus. The 'bad' 
> videos consistently fail to play on mobile devices.

Try it with:
-pix_fmt yuv420p

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
___
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] Vertically flipped mp4 video

2022-06-28 Thread Ulf Zibis


Am 28.06.22 um 17:01 schrieb Gyan Doshi:

That's a H.264 bitstream filter. It can only be used on H.264 video streams.

This is the case here.


Basic syntax is

     ffmpeg -i input -c copy -bsf:v 
h264_metadata=display_orientation=insert:flip=horizontal output


Much thanks for this syntax.

Unfortunately it does nothing, even as the predicted Output.

With this syntax
$ ffmpeg -i input.mp4  -c copy -metadata:s:v:0 
display_orientation=insert:flip=horizontaloutput.mp4
I get at least for the predicted output (which looks weird):
[.]
Output #0, mp4, to 'output.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf59.16.100
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), 
yuv420p(progressive), 854x480 [SAR 320:427 DAR 4:3], q=2-31, 686 kb/s, 24 fps, 
24 tbr, 12288 tbn (default)
    Metadata:
  handler_name    : VideoHandler
  vendor_id   : [0][0][0][0]
  display_orientation: insert:flip=horizontal
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 56 kb/s (default)
    Metadata:
  handler_name    : SoundHandler
  vendor_id   : [0][0][0][0]
[.]

But the metadata tag is still missing in the result, verified by ffprobe.

So I still think, there is a mistake in the documentation.
Can one please proof this?

-Ulf


___
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] Vertically flipped mp4 video

2022-06-28 Thread Gyan Doshi



On 2022-06-28 07:38 pm, Ulf Zibis wrote:


Am 28.06.22 um 15:14 schrieb Ulf Zibis:


Am 28.06.22 um 14:59 schrieb Moritz Barsnick:

Metadata flags do exist for rotating, but not for flipping. Thus this
cannot be done without re-encoding.

I'm irritated. Here I can read, that it exists:
https://ffmpeg.org/ffmpeg-all.html#h264_005fmetadata


So is this an error in the documentation, or what can I learn from this?


That's a H.264 bitstream filter. It can only be used on H.264 video streams.

Basic syntax is

    ffmpeg -i input -c copy -bsf:v 
h264_metadata=display_orientation=insert:flip=horizontal output


Regards,
Gyan
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Vertically flipped mp4 video

2022-06-28 Thread Ulf Zibis



Am 28.06.22 um 15:14 schrieb Ulf Zibis:


Am 28.06.22 um 14:59 schrieb Moritz Barsnick:

Metadata flags do exist for rotating, but not for flipping. Thus this
cannot be done without re-encoding.

I'm irritated. Here I can read, that it exists:
https://ffmpeg.org/ffmpeg-all.html#h264_005fmetadata


So is this an error in the documentation, or what can I learn from this?

-Ulf


___
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] RTMP speed vlue never reaches 1 (100%), streamign fail in short time

2022-06-28 Thread Lordrak

Hello,

I am trying streaming rtpm using ffmpeg but i have few problems. FPS has 
never reach 25fps, only 21 for example. So stream stopping and in short 
time (couple minutes) buffer overflow. Ffmpeg is unusable to stream 
using rtmp protocol.


In complete scenario i need use tee muxer and send stream to rtmp and 
mpegts udp destination. When i leave only mpegts udp, streaming works 
fine.


Here are three tests:



ffmpeg-2022.06.12.exe -f dshow -rtbufsize 10
-pixel_format uyvy422 -s 1920x1080 -r 25 -fflags +genpts
-i video="Decklink Video Capture (2)":audio="Decklink Audio Capture (2)"
-vf yadif,fps=25 -map 0:v -map 0:a -codec:a aac -ac 2 -ar 48000
-b:a 128k -vcodec libx264 -preset veryfast -tune zerolatency -profile:v main
-g 12 -top 1 -sc_threshold 0 -bufsize 11000k -minrate 8000k -maxrate 8000k
-b:v 8000k -muxrate 11000k -pix_fmt yuv420p -s 1920x1080 -aspect 16:9
-flags +ildct+ilme+global_header -streamid 0:481 -streamid 1:482
-map_metadata -1 -metadata service_provider="TIK BOHUMIN" -metadata 
service_name="TIK BOHUMIN" -mpegts_pmt_start_pid 480
-f tee 
[f=mpegts:bsfs/v=h264_mp4toannexb:use_fifo=1:onfail=ignore:pkt_size=1316]udp://@239.0.0.51:5000|
[f=flv:onfail=ignore:flvflags=no_duration_filesize:bsfs/v=h264_mp4toannexb:use_fifo=1]rtmp://upstream.server.eu/live/tik2"
2> out1.txt



ffmpeg-2022.06.12.exe -f dshow -rtbufsize 10 -pixel_format uyvy422
-s 1920x1080 -r 25 -fflags +genpts -i video="Decklink Video Capture 
(2)":audio="Decklink Audio Capture (2)"
-vf yadif,fps=25 -map 0:v -map 0:a -codec:a aac -ac 2 -ar 48000 -b:a 128k
-vcodec libx264 -preset veryfast -tune zerolatency -profile:v main -g 12 -top 1
-sc_threshold 0 -bufsize 11000k -minrate 8000k -maxrate 8000k -b:v 8000k
-muxrate 11000k -pix_fmt yuv420p -s 1920x1080 -aspect 16:9 -flags 
+ildct+ilme+global_header -streamid 0:481 -streamid 1:482 -map_metadata -1 -metadata 
service_provider="TIK BOHUMIN"
-metadata service_name="TIK BOHUMIN"
-mpegts_pmt_start_pid 480   -f tee 
"[f=mpegts:bsfs/v=h264_mp4toannexb:use_fifo=1:onfail=ignore:pkt_size=1316]udp://@239.0.0.51:5000"
   2> out2.txt


ffmpeg-2022.06.12.exe -f dshow -rtbufsize 10 -pixel_format uyvy422
-s 1920x1080 -r 25 -fflags +genpts
-i video="Decklink Video Capture (2)":audio="Decklink Audio Capture (2)"
-vf yadif,fps=25 -map 0:v -map 0:a -codec:a aac -ac 2 -ar 48000 -b:a 128k
-vcodec libx264 -preset veryfast -tune zerolatency -profile:v main -g 12 -top 1
-sc_threshold 0 -bufsize 11000k -minrate 8000k -maxrate 8000k -b:v 8000k
-muxrate 11000k -pix_fmt yuv420p -s 1920x1080 -aspect 16:9 -flags 
+ildct+ilme+global_header -streamid 0:481 -streamid 1:482
-map_metadata -1 -metadata service_provider="TIK BOHUMIN" -metadata 
service_name="TIK BOHUMIN"
-mpegts_pmt_start_pid 480   -f 
tee"[f=flv:onfail=ignore:flvflags=no_duration_filesize:bsfs/v=h264_mp4toannexb:use_fifo=1]rtmp://upstream.server.eu/live/tik2"
2> out3.txt


Here are output from latest test using only rtmp
ffmpeg version 2022-06-12-git-4d45f5acbd-full_build-www.gyan.dev Copyright (c) 
2000-2022 the FFmpeg developers
  built with gcc 11.3.0 (Rev1, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static 
--disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv 
--enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma 
--enable-libsnappy --enable-zlib --enable-librist --enable-libsrt 
--enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray 
--enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 
--enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 
--enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg 
--enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r 
--enable-libfreetype --enable-libfribidi --enable-liblensfun 
--enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf 
--enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec 
--enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx 
--enable-libshaderc --enable-vulkan
 --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme 
--enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb 
--enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame 
--enable-libvo-amrwbenc --enable-libilbc --enable-libgsm 
--enable-libopencore-amrnb --enable-libopus --enable-libspeex 
--enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite 
--enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil  57. 26.100 / 57. 26.100
  libavcodec 59. 33.100 / 59. 33.100
  libavformat59. 24.100 / 59. 24.100
  libavdevice59.  6.100 / 59.  6.100
  libavfilter 8. 40.100 /  8. 40.100
  libswscale  6.  6.100 /  6.  6.100
  libswresample   4.  6.100 /  4.  6.100
  libpostproc56.  5.100 / 56.  5.100
Guessed Channel Layout for Input Stream #0.1 

Re: [FFmpeg-user] Problem with videos not playing in mobile browser

2022-06-28 Thread Paul B Mahol
On Tue, Jun 28, 2022 at 3:44 PM Dr Mark A. Garlick 
wrote:

> Dear all
>
> I am new to this forum.
>
> I have noticed that some of my videos, encoded with ffmpeg and uploaded
> to my websites, do not play on mobile web browsers, but they work
> perfectly well on desktop browsers on my Linux machine. I get either a
> message saying 'file is corrupted' or no message at all (just a blank
> video) depending on the browser. I've tried Brave, Firefox and Chrome,
> on an iPhone, a Samsung tablet and a Samsung Galaxy s10 plus. The 'bad'
> videos consistently fail to play on mobile devices.
>
> I've run an ffprobe on two .mp4 files: one which works on a mobile and
> desktop browser (good.mp4) and one which will only play on a desktop
> browser (bad.mp4. These are partial outputs (the rest of the output for
> the two files seems identical):
>
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bad.mp4':
>Metadata:
>  major_brand : isom
>  minor_version   : 512
>  compatible_brands: isomiso2avc1mp41
>  encoder : Lavf58.76.100
>Duration: 00:00:30.02, start: 0.00, bitrate: 1582 kb/s
>Stream #0:0(und): Video: h264 (High 4:2:2) (avc1 / 0x31637661),
> yuv422p10le(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 1574 kb/s, 24 fps,
> 24 tbr, 12288 tbn, 48 tbc (default)
>  Metadata:
>handler_name: VideoHandler
>vendor_id   : [0][0][0][0]
>Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
> stereo, fltp, 2 kb/s (default)
>  Metadata:
>handler_name: SoundHandler
>vendor_id   : [0][0][0][0]
>
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'good.mp4':
>Metadata:
>  major_brand : isom
>  minor_version   : 512
>  compatible_brands: isomiso2avc1mp41
>  encoder : Lavf58.76.100
>Duration: 00:00:30.00, start: 0.00, bitrate: 4824 kb/s
>Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
> bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 4821 kb/s, 24
> fps, 24 tbr, 12288 tbn, 48 tbc (default)
>  Metadata:
>handler_name: VideoHandler
>vendor_id   : [0][0][0][0]
>
> The command I used to encode them both (via a bash scrip on Linux) is
>
> for f in *.mp4
>  do ffmpeg -i "$f"  -vf "drawtext=text='© Mark A. Garlick /
> markgarlick.com':x=w-tw-10:y=10:
> fontfile=/usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS.ttf:fontsize=25:fontcolor=white"
>
> -write_tmcd false -s 1280x720 -preset medium -crf 24 "full/${f%.*}.mp4"
> done
>
> Can anybody offer any insight?
>

probably YUV420P vs YUV422P

Some players only supports YUV420P.


>
> My thanks.
>
> --
> Dr Mark A. Garlick  *Dr Mark A. Garlick
>  *   [Follow me on Facebook!]
>  [Follow me on Twitter!]
>  [Follow me on LinkedIn!]
>  [Subscribe on
> YouTube!]  [Follow me on
> Instagram!] 
> Illustrator | Author | Animator
> e: m...@markgarlick.com 
> t:+44 7952 830 945
> w: markgarlick.com 
> w: space-art.co.uk 
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
>
___
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] Problem with videos not playing in mobile browser

2022-06-28 Thread Jess Portnoy via ffmpeg-user
Hello,

Could you share a URI for one of these videos?
Also, do they play on mobile before you add the text filter?

Cheers,

--
May the source be with you,

Jess Portnoy

From: ffmpeg-user  on behalf of Dr Mark A. 
Garlick 
Sent: 28 June 2022 14:44
To: ffmpeg-user@ffmpeg.org 
Subject: [FFmpeg-user] Problem with videos not playing in mobile browser

CAUTION: External email - use caution opening links or attachments


Dear all

I am new to this forum.

I have noticed that some of my videos, encoded with ffmpeg and uploaded
to my websites, do not play on mobile web browsers, but they work
perfectly well on desktop browsers on my Linux machine. I get either a
message saying 'file is corrupted' or no message at all (just a blank
video) depending on the browser. I've tried Brave, Firefox and Chrome,
on an iPhone, a Samsung tablet and a Samsung Galaxy s10 plus. The 'bad'
videos consistently fail to play on mobile devices.

I've run an ffprobe on two .mp4 files: one which works on a mobile and
desktop browser (good.mp4) and one which will only play on a desktop
browser (bad.mp4. These are partial outputs (the rest of the output for
the two files seems identical):

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bad.mp4':
   Metadata:
 major_brand : isom
 minor_version   : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.76.100
   Duration: 00:00:30.02, start: 0.00, bitrate: 1582 kb/s
   Stream #0:0(und): Video: h264 (High 4:2:2) (avc1 / 0x31637661),
yuv422p10le(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 1574 kb/s, 24 fps,
24 tbr, 12288 tbn, 48 tbc (default)
 Metadata:
   handler_name: VideoHandler
   vendor_id   : [0][0][0][0]
   Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 2 kb/s (default)
 Metadata:
   handler_name: SoundHandler
   vendor_id   : [0][0][0][0]

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'good.mp4':
   Metadata:
 major_brand : isom
 minor_version   : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.76.100
   Duration: 00:00:30.00, start: 0.00, bitrate: 4824 kb/s
   Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 4821 kb/s, 24
fps, 24 tbr, 12288 tbn, 48 tbc (default)
 Metadata:
   handler_name: VideoHandler
   vendor_id   : [0][0][0][0]

The command I used to encode them both (via a bash scrip on Linux) is

for f in *.mp4
 do ffmpeg -i "$f"  -vf "drawtext=text='© Mark A. Garlick /
markgarlick.com':x=w-tw-10:y=10:
fontfile=/usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS.ttf:fontsize=25:fontcolor=white"
-write_tmcd false -s 1280x720 -preset medium -crf 24 "full/${f%.*}.mp4"
done

Can anybody offer any insight?

My thanks.

--
Dr Mark A. Garlick  *Dr Mark A. Garlick

 *   [Follow me on Facebook!]

 [Follow me on Twitter!]

 [Follow me on LinkedIn!]

 [Subscribe on
YouTube!] 

 [Follow me on
Instagram!] 

[FFmpeg-user] Problem with videos not playing in mobile browser

2022-06-28 Thread Dr Mark A. Garlick

Dear all

I am new to this forum.

I have noticed that some of my videos, encoded with ffmpeg and uploaded 
to my websites, do not play on mobile web browsers, but they work 
perfectly well on desktop browsers on my Linux machine. I get either a 
message saying 'file is corrupted' or no message at all (just a blank 
video) depending on the browser. I've tried Brave, Firefox and Chrome, 
on an iPhone, a Samsung tablet and a Samsung Galaxy s10 plus. The 'bad' 
videos consistently fail to play on mobile devices.


I've run an ffprobe on two .mp4 files: one which works on a mobile and 
desktop browser (good.mp4) and one which will only play on a desktop 
browser (bad.mp4. These are partial outputs (the rest of the output for 
the two files seems identical):


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bad.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.76.100
  Duration: 00:00:30.02, start: 0.00, bitrate: 1582 kb/s
  Stream #0:0(und): Video: h264 (High 4:2:2) (avc1 / 0x31637661), 
yuv422p10le(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 1574 kb/s, 24 fps, 
24 tbr, 12288 tbn, 48 tbc (default)

    Metadata:
  handler_name    : VideoHandler
  vendor_id   : [0][0][0][0]
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 
stereo, fltp, 2 kb/s (default)

    Metadata:
  handler_name    : SoundHandler
  vendor_id   : [0][0][0][0]

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'good.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.76.100
  Duration: 00:00:30.00, start: 0.00, bitrate: 4824 kb/s
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, 
bt470bg/unknown/unknown), 1920x1080 [SAR 1:1 DAR 16:9], 4821 kb/s, 24 
fps, 24 tbr, 12288 tbn, 48 tbc (default)

    Metadata:
  handler_name    : VideoHandler
  vendor_id   : [0][0][0][0]

The command I used to encode them both (via a bash scrip on Linux) is

for f in *.mp4
    do ffmpeg -i "$f"  -vf "drawtext=text='© Mark A. Garlick / 
markgarlick.com':x=w-tw-10:y=10: 
fontfile=/usr/share/fonts/truetype/msttcorefonts/Trebuchet_MS.ttf:fontsize=25:fontcolor=white" 
-write_tmcd false -s 1280x720 -preset medium -crf 24 "full/${f%.*}.mp4"

done

Can anybody offer any insight?

My thanks.

--
Dr Mark A. Garlick 	*Dr Mark A. Garlick 
 * 	[Follow me on Facebook!] 
 [Follow me on Twitter!] 
 [Follow me on LinkedIn!] 
 [Subscribe on 
YouTube!]  [Follow me on 
Instagram!] 

Illustrator | Author | Animator
e: m...@markgarlick.com 
t:+44 7952 830 945
w: markgarlick.com 
w: space-art.co.uk 
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Vertically flipped mp4 video

2022-06-28 Thread Ulf Zibis



Am 28.06.22 um 14:59 schrieb Moritz Barsnick:

Metadata flags do exist for rotating, but not for flipping. Thus this
cannot be done without re-encoding.

I'm irritated. Here I can read, that it exists:
https://ffmpeg.org/ffmpeg-all.html#toc-h264_005fmetadata


Even for rotation, the player needs to understand the flag. This is not
the case for all players.


Thanks for the hint!

-Ulf

___
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] Vertically flipped mp4 video

2022-06-28 Thread Moritz Barsnick
On Tue, Jun 28, 2022 at 14:55:58 +0200, Ulf Zibis wrote:
> Am 28.06.22 um 13:45 schrieb Ulf Zibis:
> > how can I correct a vertically flipped mp4 video without re-encoding? The 
> > left side is on the right side and vice versa.
> I tried:
> ffmpeg -i input.mp4  -c copy -metadata:s:v:0 flip=horizontal output.mp4
> But this changed nothing :-(

Metadata flags do exist for rotating, but not for flipping. Thus this
cannot be done without re-encoding.

Even for rotation, the player needs to understand the flag. This is not
the case for all players.

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".


Re: [FFmpeg-user] Vertically flipped mp4 video

2022-06-28 Thread Ulf Zibis


Am 28.06.22 um 13:45 schrieb Ulf Zibis:

Hi,

how can I correct a vertically flipped mp4 video without re-encoding? The left 
side is on the right side and vice versa.


I tried:
ffmpeg -i input.mp4  -c copy -metadata:s:v:0 flip=horizontal output.mp4
But this changed nothing :-(

$ ffprobe input.mp4
ffprobe version 5.0.1-1+20.04.sav1 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --prefix=/usr --extra-version=1+20.04.sav1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --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-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --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-pocketsphinx --enable-librsvg --enable-libdav1d --enable-librist --enable-libvmaf --enable-libzimg --enable-crystalhd --enable-libmfx --enable-libsvtav1 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libplacebo --enable-libx264 --enable-shared

  WARNING: library configuration mismatch
  avcodec configuration: --prefix=/usr --extra-version=1+20.04.sav1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --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-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --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-pocketsphinx --enable-librsvg --enable-libdav1d --enable-librist --enable-libvmaf --enable-libzimg --enable-crystalhd --enable-libmfx --enable-libsvtav1 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libplacebo --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-liblensfun --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libshaderc --enable-libsmbclient

  libavutil  57. 17.100 / 57. 17.100
  libavcodec 59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  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
  libpostproc    56.  3.100 / 56.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
  Metadata:
    major_brand : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf57.83.100
  Duration: 01:28:19.99, start: 0.00, bitrate: 747 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), 
yuv420p(progressive), 854x480 [SAR 320:427 DAR 4:3], 686 kb/s, 24 fps, 24 tbr, 
12288 tbn (default)
    Metadata:
  handler_name    : VideoHandler
  vendor_id   : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, 
fltp, 56 kb/s (default)
    Metadata:
  handler_name    : SoundHandler
  vendor_id   : [0][0][0][0]

-Ulf

___
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] Vertically flipped mp4 video

2022-06-28 Thread Ulf Zibis

Hi,

how can I correct a vertically flipped mp4 video without re-encoding? The left 
side is on the right side and vice versa.

Thanks,
-Ulf

___
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".