[FFmpeg-user] hwo to generate subtitle track in mp4 from png file

2022-07-17 Thread Bang He
I have a png file and a MP4 file.
I want to let that png file be a subtitle track and add the subtitle track
to a mp4 file.
What should I do?
___
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] 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".


Re: [FFmpeg-user] how to compile ffmpeg with some arguments in bash script file?

2022-06-15 Thread Bang He
>
> screenshot:
> [image: 1.png]
>
[image: 2.png]
___
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 compile ffmpeg with some arguments in bash script file?

2022-06-15 Thread Bang He
my operating system is ubuntu-22.04-desktop-amd64.iso

bash script file is 'compile.sh'. content of the file is bellow:

#!/bin/bash

## set some flags
DEBUG_FLAG='--extra-cflags="-g -O0" --extra-cxxflags="-g -O0"'

CC="gcc" CXX="g++" LD="ld" AR="ar" CCAS="gcc -c" RANLIB="ranlib"
STRIP="strip" ./configure $DEBUG_FLAG
<

when i run it: ./compile.sh, error happen:
./configure: 1: eval: Syntax error: Unterminated quoted string


What should I do now?
___
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] failed to compile with av_ts2timestr

2022-05-28 Thread Bang He
my application code will call some ffmpeg api.

here is my code which call ffmpeg api:
printf("pts %s\n", av_ts2timestr(packet.pts, stream->time_base));

error when compiled:
ffmpeg/include/libavutil/timestamp.h:76:83: error: taking address of
temporary array
 #define av_ts2timestr(ts, tb)
av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb)

what should i do?
___
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] force to decode with the special audio encoding

2022-05-27 Thread Bang He
 have a file which contains hevc and g711. when i run ffplay, it doesn't
recognize the g711 encoding. can i force ffplay to decode with  g711  audio
coder?
___
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] i forgot my usename and password of patchwork. who can help up

2022-05-18 Thread Bang He
thanks

On Thu, May 19, 2022 at 10:18 AM Andriy Gelman 
wrote:

> Hi,
>
> The password reset link should be working now.
>
> Andriy
>
> On Wed, 18 May 2022 at 20:07, Bang He  wrote:
>
> > dear 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 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] i forgot my usename and password of patchwork. who can help up

2022-05-18 Thread Bang He
dear 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".


Re: [FFmpeg-user] Add datetime to output frames

2022-05-16 Thread Bang He
need some post-filter?

On Mon, May 16, 2022 at 8:22 PM  wrote:

>
> Hi
>
> I need to extract frames from video (2 frames per second) but I need to
> write the exact time of capture of frames
> Eg the video starts at 14:05:10 and because fps is 2 I expect 2 picture
> with time  14:05:10.000 14:05:10,500
>
> is it possible ?
>
>
> If not is it possible to write the creation_time in the name of the
> outputted files ?
>
> thx
>
> Francesco
> ___
> 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] Difference between FFmpeg Formats/Containers MP4 and H264

2022-05-14 Thread Bang He
-f mp4:  file format/container is mp4
-f h264: file format is h264, even if the file extension is mp4

On Sun, May 15, 2022 at 10:58 AM Roger  wrote:

> >MP4 can contain a variety of streams, including h264. If you specify h264,
> >you just have a raw h264 video stream, that's it.
>
> I've always used -f h264 until I ran into Hauppauge WinTV Version 10 using:
>
> ffmpeg -i "[SOURCE_FILE]" -f mp4 -vcodec libx264 -preset ultrafast
> -profile:v main -acodec aac "[DEST_FILE].mp4
>
> On the flip, I've never seen a *.h264 file name.
>
> If I'm not mistaken, the "-f" specifies the format or the container of the
> video/audio stream.
>
> So when specifying, "-f h264", format is assuming a video only container?
>
> ___
> 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] avsynctest

2022-05-12 Thread Bang He
hi all
it seems avsynctest filter is helpful on my job. can you demo some command
line?
thanks.

On Tue, Apr 19, 2022 at 5:10 PM Michael Koch 
wrote:

> Hello,
>
> it's unclear how the new "avsynctest" source is expected to work. The
> most simple command line
>
> ffmpeg -f lavfi -i avsynctest=d=5 out.mov
>
> gives this error message:
>
> [lavfi @ 02741200efc0] Output pad "video" with type video of the
> filter instance "Parsed_avsynctest_0" of avsynctest not connected to any
> destination
> avsynctest=d=5: Invalid argument
>
> The console output is below.
>
> Michael
>
>
>
> C:\Users\astro\Desktop>ffmpeg -f lavfi -i avsynctest=d=5 out.mov
> ffmpeg version 2022-04-18-git-d5687236ab-full_build-www.gyan.dev
> Copyright (c) 2000-2022 the FFmpeg developers
>built with gcc 11.2.0 (Rev10, 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-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. 24.101 / 57. 24.101
>libavcodec 59. 26.100 / 59. 26.100
>libavformat59. 22.100 / 59. 22.100
>libavdevice59.  6.100 / 59.  6.100
>libavfilter 8. 33.100 /  8. 33.100
>libswscale  6.  6.100 /  6.  6.100
>libswresample   4.  6.100 /  4.  6.100
>libpostproc56.  5.100 / 56.  5.100
> [lavfi @ 02741200efc0] Output pad "video" with type video of the
> filter instance "Parsed_avsynctest_0" of avsynctest not connected to any
> destination
> avsynctest=d=5: 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".
>
___
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] lavfi-preview

2022-04-24 Thread Bang He
hwo to run it

On Wed, Mar 30, 2022 at 7:53 PM Paul B Mahol  wrote:

> Hello,
>
> I would like to inform you about the new tool, located here:
>
> https://github.com/richardpl/lavfi-preview
>
> It is GUI filtergraph editor and foremost ffmpeg's libavfilter filtergraph
> preview tool.
>
> It is in early stage, but already functional.
>
> 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".


Re: [FFmpeg-user] How to extract all the pictures but no repeat in an mp4 video file?

2022-04-24 Thread Bang He
what is your meaning of 'repeat '?

On Thu, Apr 21, 2022 at 10:29 PM mikelee164396 
wrote:

> I want to extract all the pictures in an mp4 video file , but don't repeat
> it. How to implement it with 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".
>
___
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] showvolume filter memory leak

2022-04-24 Thread Bang He
why do you use nut format? i think that is not popular.

On Sat, Apr 23, 2022 at 7:06 AM ramon  wrote:

> You were right, there is no memory leak in the showvolume. Vagrind does not
> detect memory leaks and graphmonitor oscillates in green colour between 1
> and 2 in the queue.
> The problem I see is in the NUT output format.
>
> I need to generate a vumeter from the input stream and pipe to vlc. So, I
> make a vumeter and use a rawvideo  cocdec without encoding and pipe in nut
> format to VLC. This works fine with the memory leak problem.
> I have tried "-syncpoints none" option for nut but VLC won't play it. Also
> I tried rawvideo format output but it doesn't work either.
>
> Is there any other way to send a raw video output to vlc?
>
> Thank you,
>
> On Tue, Apr 19, 2022 at 7:00 PM Paul B Mahol  wrote:
>
> > On Tue, Apr 19, 2022 at 12:15 PM ramon  wrote:
> >
> > > OK I'll check the pts sync as you say.
> > >
> > > I am simply trying the following command based on
> > >
> > >
> >
> https://hhsprings.bitbucket.io/docs/programming/examples/ffmpeg/audio_visualization/_showvolume_.html
> > > and I get memory leaks.,   I don't know the reason.
> > >
> > > ffmpeg -re -stream_loop -1 -i test.mp3 -filter_complex
> > > "[0:a]showvolume,scale=1920:-1,pad=1920:1080:(ow-iw)/2:(oh-ih)/2[v]"
> -map
> > > [v] -map 0:a -c:a copy -f null -
> > >
> >
> >
> > Used valgrind and top with exact that line and spotted nothing out of
> > normal.
> >
> >
> > >
> > >
> > > On Mon, Apr 18, 2022 at 8:27 PM Paul B Mahol  wrote:
> > >
> > > > On Mon, Apr 18, 2022 at 8:13 PM Paul B Mahol 
> wrote:
> > > >
> > > > >
> > > > >
> > > > > On Mon, Apr 18, 2022 at 7:00 PM ramon  wrote:
> > > > >
> > > > >> Yes, I used the master versión with your 24144af2 patch.
> > > > >> Your patch corectec the leak if  dm (draw_persistent_duration) >
> 0,
> > > and
> > > > >> the
> > > > >> leak memory occurs also with dm=0.
> > > > >>
> > > > >
> > > > > Does not leak here at all.
> > > > >
> > > >
> > > > Do note that if PTS get out of sync it could start to keep yet not
> used
> > > > frames.
> > > >
> > > > Could you use graphmonitor filter after showvolume filter? The queue
> > > items
> > > > displayed in video should not reach red colored numbers.
> > > >
> > > >
> > > > >
> > > > >
> > > > >>
> > > > >>
> > > > >>
> > > > >> On Mon, Apr 18, 2022 at 5:51 PM Paul B Mahol 
> > > wrote:
> > > > >>
> > > > >> > On Mon, Apr 18, 2022 at 5:32 PM ramon 
> wrote:
> > > > >> >
> > > > >> > > Thanks,but not work.  The memory leak is the same.
> > > > >> > > The init function is called only once.
> > > > >> > >
> > > > >> > >
> > > > >> > Sorry, use master version of ffmpeg.
> > > > >> >
> > > > >> >
> > > > >> > >
> > > > >> > >
> > > > >> > > On Wed, Apr 13, 2022 at 6:24 PM Paul B Mahol <
> one...@gmail.com>
> > > > >> wrote:
> > > > >> > >
> > > > >> > > > On Wed, Apr 13, 2022 at 5:58 PM ramon 
> > > wrote:
> > > > >> > > >
> > > > >> > > > > I'm testing the showolume filter to generate a single
> > vumeter
> > > > >> from an
> > > > >> > > > input
> > > > >> > > > > stream.
> > > > >> > > > > The filter works perfectly but eats memory. Approximately
> > > > >> 500MBytes
> > > > >> > > > every 2
> > > > >> > > > > days.
> > > > >> > > > >
> > > > >> > > > > Using ffmpeg version 5.0-static on GNU/Linux
> > 4.15.0-45-generic
> > > > >> x86_64
> > > > >> > > > >
> > > > >> > > > > In normal use I use an output nut format with a pipe to a
> > vlc
> > > > >> player.
> > > > >> > > But
> > > > >> > > > > with a simple output to null it also has a memory leak.
> > > > >> > > > >
> > > > >> > > > > My testing commandline:
> > > > >> > > > >
> > > > >> > > > > ffmpeg -i udp://@239.1.1.1:1234 -filter_complex
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> [0:a]showvolume=r=20:ds=log:m=r:v=0:t=0:dm=2:dmc=yellow:o=h:w=320:h=8[out]
> > > > >> > > > > -map [out] -map 0:a -an -c:v rawvideo -pix_fmt rgb24 -f
> null
> > > > >> > /dev/null
> > > > >> > > > >
> > > > >> > > >
> > > > >> > > > Small leaks (648 bytes per each init) have been fixed.
> Thanks
> > > for
> > > > >> > report.
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > Thanks,
> > > > >> > > > > Ramon
> > > > >> > > > > ___
> > > > >> > > > > 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
> > > > >> > > >