[FFmpeg-user] Windows FFMPEG Playback

2021-04-13 Thread Gabriel Silva via ffmpeg-user
Hello FFmpeg team,
I am trying to find the most optimized method using FFMPEG or FFPLAY to 
playback videos on Windows and Intel architecture.  
I have tried ffplay (see below) and it utilizes too much CPU so I am suspecting 
color conversion is being done on the CPU instead of offloaded to the GPU/MFX. 
I've tried several commands but they either do not work or are not fully 
utilizing the iGPU as expected. Any help would be appreciated. Thank you.
ffplay -i my4K60Video.mp4 Yields 0%  for Video Decode (not what I want).
 ffplay -codec:v:1 h264_qsv -i %videoFile% Shows Video Decode usage and 
3D/GPGPU usage which is better but still not using MFX/VPP engine for color 
conversion

I have tried FFmpeg instead where there are more options to specify DXVA or QSV 
but still no luck.
ffmpeg -hwaccel qsv -c:v h264_qsv -i %videoFile% -vf vpp_qsv=format=rgb32 
-pix_fmt rgb32 -f sdl2 -
Shows Video Decode usage and 3D/GPGPU usage still like above. Lots of CPU usage 
as well likely because of the -pix_fmt but removing this on Windows produces an 
error "AVHWFramesContext...] Unsupported pixel format: bgra 
ffmpeg -hwaccel dxva2 -hwaccel_output_format dxva2_vld -i %videoFile% -vf 
format=rgba,hwdownload -pix_fmt rgb32 -f sdl2 -
Tried creating a dxva2 pipeline but unable to get it to work. This command 
produces an error: Impossible to convert between the formats supported by the 
filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
___
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] Preserving PAL 720x576 resolution

2021-04-13 Thread Carl Eugen Hoyos
Am Di., 13. Apr. 2021 um 12:48 Uhr schrieb Erik Dobberkau
:
>
> > Is your input really 720x576 or is it maybe interlaced content
> > encoded as two separate frames with height 288? This is not
> > yet supported by FFmpeg at all without filter insertion, it is
> > possible that we will never write such atrocities.

> Like it or not, it's a SMPTE standard (doesn't make it "right", but a
> whopping lot of people abide by it, therefore it has relevance in real
> life), which specifies to either wrap every field (i.e. half-frame) into
> its own KLV set (labeled as I1) or both into one (labeled ad I2). The first
> produces a valid Picture Item using a pair of its KLVs, the second only
> needs one, obviously. I've seen I1 more often than I2.
> (There's a third version for "interlaced essence" called F1 which I've not
> yet had to deal with.)

I don't like it, I definitely do not doubt the relevance (I did look into
the issue several times), I just want to point out that once the issue
is fixed (from our pov), it is possible that the requested feature
(remuxing of "interlaced" j2k) will still not work, and never will.

Otoh, it may be possible to only fix the remuxing without supporting
the content;-(
(the worst case, imo)

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Preserving PAL 720x576 resolution

2021-04-13 Thread Carl Eugen Hoyos
Am Di., 13. Apr. 2021 um 17:25 Uhr schrieb Carl Zwanzig :
>
> On 4/13/2021 12:48 AM, Kieran O Leary wrote:
> > The developer of mediainfo, as mediainfo output was included.
>
> Cool, so completely irrelevant* to the question; that or we start
> "blaming" every developer for their program's output.

Given how much I respect and like Jérôme I did not want to blame
anybody, I made a joke (that some people enjoyed).

> *only important if MI and ffmpeg report contradicting info for the same

> data, and I think that's unlikely here

This is a very surprising comment about a long-time bug that
nobody wants to deal with, in addition to the fact that
MediaInfo and FFmpeg use different semantics for "interlaced".
(Sadly no joke this time)

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Change in video length and loss of audio sync

2021-04-13 Thread Carl Eugen Hoyos
Am Di., 13. Apr. 2021 um 22:18 Uhr schrieb Michael Koch
:
>
> Am 13.04.2021 um 21:53 schrieb John Harlow via ffmpeg-user:
> > RES1=`nice -20 cpulimit -l 400 /usr/bin/ffmpeg -y -hide_banner -loglevel 
> > verbose -r 29.97 -i "$TMP" \
>
> I'm not sure, but doesn't the -r option before the input overwrite the
> framerate of the input?

Yes, the input option -r is meant to break A/V sync.

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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

Re: [FFmpeg-user] Change in video length and loss of audio sync

2021-04-13 Thread Michael Koch

Am 13.04.2021 um 21:53 schrieb John Harlow via ffmpeg-user:

RES1=`nice -20 cpulimit -l 400 /usr/bin/ffmpeg -y -hide_banner -loglevel verbose -r 29.97 
-i "$TMP" \


I'm not sure, but doesn't the -r option before the input overwrite the 
framerate of the input?


Michael

___
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 convert video.ts to video.mp4 efficiently?

2021-04-13 Thread James Darnley
On 13/04/2021, Bo Berglund  wrote:
> $ ffmpeg -i 2021-04-13_input09.ts -vf -c:v libx264 -preset fast -crf 20 -c:a
> copy 2021-04-13_input09.mp4

Read the command line better.  You have "-vf -c:v" in there so it
thinks "libx264" is an output file you want.  It cannot guess what
format that should be so shows you that error.

To address your original point, using "-c copy" is an idea if you just
want to change the ts container into an mp4 container.  No costly
encoder required but you cannot change the properties of the video
stream such as the size.
___
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] Change in video length and loss of audio sync

2021-04-13 Thread John Harlow via ffmpeg-user
Hi:

I have a large number of videos I am converting to a standardized HLS video 
with a particular format and frame rate and I’ve automated the process. The 
source videos are in many different formats (16:9, 4:3), densities 720, 1080, 
480 and frame rates. 

After it completed and I tested the videos I found that about 6% of them were 
shortened and lost audio/video sync in the conversion. They also take an 
inordinately long time to start streaming.

Examining the source videos, it seems that many of them were at unusual frame 
rates (like15, 24, 25…)

I’ve put a test mp4 that I sourced from and the resulting m3u8 video up in 
http://ipziptv.com/testing/test.mp4 and http://iziptv.com/testing/video.m3u8

Below is mediainfo on the source video (263.8 seconds long) and the converted 
m3u8 video (220 seconds long), the script I converted with and the ffmpeg 
output.

Any advice on how I can successfully convert these would be appreciated. 


==Start of 
output=


Here is mediainfo’s view of that mp4. You can see that (for some reason) it is 
at 25FPS.

mediainfo test.mp4
General
Complete name: test.mp4
Format   : MPEG-4
Format profile   : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size: 46.9 MiB
Duration : 4 min 23 s
Overall bit rate : 1 491 kb/s
Writing application  : Lavf57.83.100

Video
ID   : 1
Format   : AVC
Format/Info  : Advanced Video Codec
Format profile   : High@L3.1
Format settings  : CABAC / 4 Ref Frames
Format settings, CABAC   : Yes
Format settings, Reference frames: 4 frames
Codec ID : avc1
Codec ID/Info: Advanced Video Coding
Duration : 4 min 23 s
Bit rate : 1 354 kb/s
Width: 1 280 pixels
Height   : 720 pixels
Display aspect ratio : 16:9
Frame rate mode  : Constant
Frame rate   : 25.000 FPS
Color space  : YUV
Chroma subsampling   : 4:2:0
Bit depth: 8 bits
Scan type: Progressive
Bits/(Pixel*Frame)   : 0.059
Stream size  : 42.6 MiB (91%)
Writing library  : x264 core 148 r2795 aaa9aa8
Encoding settings: cabac=1 / ref=3 / deblock=1:0:0 / 
analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / 
me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / 
fast_pskip=1 / chroma_qp_offset=-2 / threads=22 / lookahead_threads=3 / 
sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / 
constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 
/ weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 
/ intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 
/ qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Codec configuration box  : avcC

Audio
ID   : 2
Format   : AAC LC
Format/Info  : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 4 min 23 s
Bit rate mode: Constant
Bit rate : 132 kb/s
Channel(s)   : 2 channels
Channel layout   : L R
Sampling rate: 48.0 kHz
Frame rate   : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size  : 4.10 MiB (9%)
Language : English
Default  : Yes
Alternate group  : 1

Here is mediainfo’s view of the first segment of the m3u8. You can see that it 
is at 29.97FPS.

mediainfo video.ts 
General
ID   : 1 (0x1)
Complete name: video.ts
Format   : MPEG-TS
File size: 1.53 MiB
Duration : 5 s 939 ms
Overall bit rate mode: Variable
Overall bit rate : 2 143 kb/s

Video
ID 

Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Laine Lee
On 4/13/21, 11:11 AM, "ffmpeg-user on behalf of Bo Berglund" 
 wrote:

 

On Tue, 13 Apr 2021 18:02:04 +0200, Bo Berglund  wrote:

 

[NULL @ 0x5614c4007400] Unable to find a suitable output format for 'libx264'

libx264: Invalid argument

 

 

So I am clearly doing something wrong here, but what?

 

 

How do I specify an output format? I did not do that in the original command

where the size was also changed and it still made the mp4 format...

 

Maybe you would benefit from using “h264_videotoolbox” rather than “libx264”. 
Could you provide an example .ts video?

 

Laine Lee

 

___
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] Issue affecting ffmpeg and youtube-dl

2021-04-13 Thread JD
On Tue, Apr 13, 2021 at 11:47 AM Paul B Mahol  wrote:

> Please try setts bitstream filter.
>
> It is specifically designed for such videos.
>
> Actually I tested setts bitstream filter with broken youtube files.
>


Understood. I will relay this to youtube-dl's github.
___
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] Issue affecting ffmpeg and youtube-dl

2021-04-13 Thread Paul B Mahol
Please try setts bitstream filter.

It is specifically designed for such videos.

Actually I tested setts bitstream filter with broken youtube files.

On Tue, Apr 13, 2021 at 12:18 AM Carl Eugen Hoyos 
wrote:

> Am Mo., 12. Apr. 2021 um 23:46 Uhr schrieb JD :
> >
> > Noted.
> >
> > >While there, please find out what top-posting means and avoid it here.
> >
> > Here is the output:
> >
> > Y:\youtube-dl>ffmpeg -y -loglevel "repeat+info" -i "file:deltron -
> > Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.f302.webm" -i "file:deltron -
> > Videos\LIGHTSKINJOHN - only - MakTbhIZ5zo.f251.webm" -c copy -map "0:v:0"
> > -map "1:a:0" "file:deltron - Videos\LIGHTSKINJOHN - only -
> > MakTbhIZ5zo.temp.webm"
> > ffmpeg version 2021-02-16-git-8331eb058d-full_build-www.gyan.dev
> Copyright
> > (c) 2000-2021 the FFmpeg developers
> >   built with gcc 10.2.0 (Rev6, 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-lzma
> > --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh
> > --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca
> > --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e
> > --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265
> > --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx
> > --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi
> > --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-libglslang --enable-vulkan --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  56. 65.100 / 56. 65.100
> >   libavcodec 58.123.100 / 58.123.100
> >   libavformat58. 67.100 / 58. 67.100
> >   libavdevice58. 12.100 / 58. 12.100
> >   libavfilter 7.107.100 /  7.107.100
> >   libswscale  5.  8.100 /  5.  8.100
> >   libswresample   3.  8.100 /  3.  8.100
> >   libpostproc55.  8.100 / 55.  8.100
> > Input #0, matroska,webm, from 'file:deltron - Videos\LIGHTSKINJOHN -
> only -
> > MakTbhIZ5zo.f302.webm':
> >   Metadata:
> > encoder : google/video-file
> > http://youtube.com/streaming/otf/durations/112015: Segment-Count: 17
> > : Segment-Durations-Ms:
> >
> 5339,5338,5339(r=1),5338,5339(r=1),5338,5339(r=1),5338,5339(r=1),5338,5339(r=1),901,
> > :
> > :
> >   Duration: N/A, start: 0.00, bitrate: N/A
> >   Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv,
> > bt709/unknown/unknown), 1280x720, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr,
> > 1k tbn, 1k tbc (default)
> > Input #1, matroska,webm, from 'file:deltron - Videos\LIGHTSKINJOHN -
> only -
> > MakTbhIZ5zo.f251.webm':
> >   Metadata:
> > encoder : google/video-file
> >   Duration: 00:01:26.40, start: -0.007000, bitrate: 141 kb/s
> >   Stream #1:0(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
> > Output #0, webm, to 'file:deltron - Videos\LIGHTSKINJOHN - only -
> > MakTbhIZ5zo.temp.webm':
> >   Metadata:
> > http://youtube.com/streaming/otf/durations/112015: Segment-Count: 17
> > : Segment-Durations-Ms:
> >
> 5339,5338,5339(r=1),5338,5339(r=1),5338,5339(r=1),5338,5339(r=1),5338,5339(r=1),901,
> > :
> > :
> > encoder : Lavf58.67.100
> >   Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv,
> > bt709/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 59.94 fps,
> > 59.94 tbr, 1k tbn, 1k tbc (default)
> >   Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
> > Stream mapping:
> >   Stream #0:0 -> #0:0 (copy)
> >   Stream #1:0 -> #0:1 (copy)
> > Press [q] to stop, [?] for help
> > [webm @ 02372e6c47c0] Application provided invalid, non monotonically
> > increasing dts to muxer in stream 0: 5355 >= 5339
> > av_interleaved_write_frame(): Invalid argument
> > frame=  323 fps=0.0 q=-1.0 Lsize= 906kB time=00:00:05.36
> > bitrate=1384.3kbits/s speed=61.2x
> > video:825kB audio:89kB subtitle:0kB other streams:0kB global headers:0kB
> > muxing overhead: unknown
> > Conversion failed!
>
> I can reproduce the issue with the following command:
> $ ffmpeg -i LIGHTSKINJOHN\ -\ only-MakTbhIZ5zo.f302.webm -c copy out.webm
>
> The issue is not reproducible with "-ss 6", I don't know if

Re: [FFmpeg-user] audio normalization - nth attempt

2021-04-13 Thread Emanuel Berg via ffmpeg-user
Paul B Mahol wrote:

> Try alt boundary option, b=1, that will prevent fades after
> seek/start.

Thanks, will try.

n + 1

-- 
underground experts united
https://dataswamp.org/~incal

___
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] audio normalization - nth attempt

2021-04-13 Thread Paul B Mahol
On Tue, Apr 13, 2021 at 7:42 AM Emanuel Berg  wrote:

> Paul B Mahol wrote:
>
> >>> One problem with just af=dynaudnorm is that when you
> >>> backtrack to play a sequence again the volume drops so
> >>> much you don't hear anything, almost, until it picks up
> >>> much later.
> >>
> >> This helps for that
> >>
> >>   af=dynaudnorm=g=7
> >
> > That enables very agressive compression.
>
> Please visit Uppsala, Sweden, we'll watch 4K Ultra HD
> "Mission Impossible 6: Fallout" together with and without it.
> With it, works great. Without it, you barely hear what the
> say (you don't hear what they say) yet 5s later, firefight
> BOOM BOOM BOOM with dramatic music and the building wakes up.
>
> > Have you ever read documentation of dynaudnorm filter, the
> > ffmpeg one or the original one?
>
> I don't know, I have read ffmpeg-filters(1) lines 2885-2899
> and 2918-2935.
>

Try alt boundary option, b=1, that will prevent fades after seek/start.

>
> --
> underground experts united
> https://dataswamp.org/~incal
>
___
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 convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Carl Zwanzig

On 4/13/2021 9:11 AM, Bo Berglund wrote:

How do I specify an output format? I did not do that in the original command
where the size was also changed and it still made the mp4 format...


Not to be unkind, but have you read the man page for ffmpeg?

-f fmt (input/output)
Force input or output file format. The format is normally auto detected 
for input files and guessed from the file extension for output files, so 
this option is not needed in most cases.


If you call the output file fred.mp4, without saying otherwise you're going 
to get an mp4 file.


Please read up on all of the options you're using- for instance, -vf without 
a filtergraph is meaningless.


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

Re: [FFmpeg-user] How to convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Bo Berglund
On Tue, 13 Apr 2021 18:02:04 +0200, Bo Berglund  wrote:

>[NULL @ 0x5614c4007400] Unable to find a suitable output format for 'libx264'
>libx264: Invalid argument
>
>
>So I am clearly doing something wrong here, but what?
>

How do I specify an output format? I did not do that in the original command
where the size was also changed and it still made the mp4 format...


-- 
Bo Berglund
Developer in Sweden

___
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 convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Bo Berglund
On Tue, 13 Apr 2021 17:49:55 +0200, Bo Berglund  wrote:

>Question:
>Is there a quicker way to just go from ts to mp4 so the file format is OK even
>though the video size remains at 1280x720?
>
>(I could live with the size even though the disk storage takes a hit...)
>Do I just take away this argument:
>
>scale=w=-4:h=%VSIZE%
>

I tried this on my Ubuntu box rather than on teh Windows PC I asked about:

It failed in a way I don't understand:

$ ffmpeg -i 2021-04-13_input09.ts -vf -c:v libx264 -preset fast -crf 20 -c:a
copy 2021-04-13_input09.mp4
ffmpeg version 4.3.2-0york0~18.04 Copyright (c) 2000-2021 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
Input #0, mpegts, from '2021-04-13_input09.ts':
  Duration: 01:06:00.10, start: 1.40, bitrate: 2787 kb/s
  Program 1
Metadata:
  service_name: Service01
  service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 1280x720, 30 fps, 30 tbr, 90k tbn, 60 tbc
Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz,
stereo, fltp, 165 kb/s
[NULL @ 0x5614c4007400] Unable to find a suitable output format for 'libx264'
libx264: Invalid argument


So I am clearly doing something wrong here, but what?


-- 
Bo Berglund
Developer in Sweden

___
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 convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Carl Zwanzig

On 4/13/2021 8:49 AM, Bo Berglund wrote:

set COMMAND=ffmpeg -hide_banner -i %INFILE% -vf scale=w=-4:h=%VSIZE% -c:v
libx264 -preset fast -crf 20 -c:a copy %OUTFILE%


a) you should add " -movflags +faststart" if writing to an mp4 file
b) always post the complete command _and_ it's output without -hide_banner 
c) always use the latest ffmpeg build for testing

(pls read the list FAQ- https://ffmpeg.org/mailing-list-faq.html


This works but it takes about 10 min to convert one 44 min video and meanwhile
the PC runs at almost 100% CPU load.


That could be expected, we don't know anything about your PC. Also, some 
steps can use multiple cpu cores and some can't.



Question:
Is there a quicker way to just go from ts to mp4 so the file format is OK even
though the video size remains at 1280x720


Probably not, you're changing the codec so have to decode/encode the file 
and that just takes time & effort.


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] How to convert video.ts to video.mp4 efficiently?

2021-04-13 Thread Bo Berglund
I am downloading video streams from a source that does not suppy alternate
resolutions and is only sending a ts stream.
So the result is that the downloaded files have these problems:

1) They are the original resolution: 1280x720 px but I prefer a 480p size

2) They are in ts format rather than mp4

When I want to view them through my website I need them to be in mp4 format as
well as smaller in size (both pixel resolution and file size on disk).

So with advice from here and some other places I have composed the following
commands in my batch script to do the conversion:

SET VSIZE=%~1
SET INFILE=%~2
SET OUTFILE=%~3

set COMMAND=ffmpeg -hide_banner -i %INFILE% -vf scale=w=-4:h=%VSIZE% -c:v
libx264 -preset fast -crf 20 -c:a copy %OUTFILE%

%COMMAND%

This works but it takes about 10 min to convert one 44 min video and meanwhile
the PC runs at almost 100% CPU load.

Question:
Is there a quicker way to just go from ts to mp4 so the file format is OK even
though the video size remains at 1280x720?

(I could live with the size even though the disk storage takes a hit...)
Do I just take away this argument:

scale=w=-4:h=%VSIZE%

Is there something else I can do?


-- 
Bo Berglund
Developer in Sweden

___
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] Advice on getting help from ffmpeg-user list

2021-04-13 Thread Carl Zwanzig

On 4/13/2021 1:29 AM, Reindl Harald wrote:

99% of users simply have not the
mentally capabilities to get a working snapshot compiled at all


Sort of-
Most of the users are just that, _users_; they're not developers and it's 
ridiculous to expect it. I don't think it's not having "mentally 
capabilities", more like not having the learning and experience (which is 
quite different) for something they really don't need to do.


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

Re: [FFmpeg-user] Preserving PAL 720x576 resolution

2021-04-13 Thread Carl Zwanzig

On 4/13/2021 12:48 AM, Kieran O Leary wrote:

The developer of mediainfo, as mediainfo output was included.


Cool, so completely irrelevant* to the question; that or we start "blaming" 
every developer for their program's output.


*only important if MI and ffmpeg report contradicting info for the same 
data, and I think that's unlikely here


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] Preserving PAL 720x576 resolution

2021-04-13 Thread Erik Dobberkau
> Is your input really 720x576 or is it maybe interlaced content
> encoded as two separate frames with height 288? This is not
> yet supported by FFmpeg at all without filter insertion, it is
> possible that we will never write such atrocities.
>
> Carl Eugen
>


Like it or not, it's a SMPTE standard (doesn't make it "right", but a
whopping lot of people abide by it, therefore it has relevance in real
life), which specifies to either wrap every field (i.e. half-frame) into
its own KLV set (labeled as I1) or both into one (labeled ad I2). The first
produces a valid Picture Item using a pair of its KLVs, the second only
needs one, obviously. I've seen I1 more often than I2.
(There's a third version for "interlaced essence" called F1 which I've not
yet had to deal with.)

Best regards,
Erik
___
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] Advice on getting help from ffmpeg-user list

2021-04-13 Thread Reindl Harald



Am 12.04.21 um 23:40 schrieb Mark Filipak (ffmpeg):

On 2021-04-12 17:19, Carl Eugen Hoyos wrote:

Am Mo., 12. Apr. 2021 um 10:42 Uhr schrieb Jim DeLaHunt
:


3. Use the current version of ffmpeg to reproduce your problem. Your
output says, "ffmpeg version n3.0.1", but the current numbered version
is 4.4.


To make this as clear as possible:
The only version supported on this mailing list is current FFmpeg git
head, ask whoever offered you a release binary for support, they are
responsible for it (and they know this).

Carl Eugen


Dear Carl Eugen,

Re, "only version supported on this mailing list"

This is the ffmpeg-user list. We are here to help each other. We're not 
here to help you. Kindly drop your attitude, please.


he will never get it

it's that simple: what others support and answer to is not your business 
and 99% of users simply have not the

mentally capabilities to get a working snapshot compiled at 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] Preserving PAL 720x576 resolution

2021-04-13 Thread Kieran O Leary
On Mon 12 Apr 2021 at 23:39, Mark Filipak (ffmpeg) 
wrote:

> On 2021-04-12 18:02, Carl Eugen Hoyos wrote:
> > Am Mo., 12. Apr. 2021 um 23:52 Uhr schrieb Carl Zwanzig :
> >>
> >> On 4/12/2021 2:42 PM, Carl Eugen Hoyos wrote:
> >>> and since Matthew didn't mention "interlaced"
> >>
> >> Video (ORIGINAL)
> >> Scan type: Interlaced
> >> Scan order   : Top Field First
> >>
> >> Yes, he did.
> >
> > I consider Jérôme and Matthew two different persons;-)
>
> Jerome? Who is Jerome?


The developer of mediainfo, as mediainfo output was included.
___
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".