Re: [FFmpeg-user] HDR bt.2020 to SDR bt.709 conversion

2023-10-22 Thread pehache
Le 22/10/2023 à 01:20, Dennis Mungai a écrit : Please provide a sample of the input file and uncut output of the ffmpeg command line in use. Here is a 60 sec. piece of the input video, extracted with ffmpeg -ss 75 -i in0.mkv -map 0:0 -c copy in1.mkv http://pehache.free.fr/TEMP/in1.mkv Here

[FFmpeg-user] HDR bt.2020 to SDR bt.709 conversion

2023-10-21 Thread pehache
Hello, I have trouble converting a 4K HDR video into a HD SDR one. Basically it plays much too dark and reddish in VLC (on macOS). The ffprobe output is this video is at the bottom of the post I first tried applying a curve filter to boost the dark tones. I works not too bad, but the reddi

Re: [FFmpeg-user] Converting BT2020 HVEC Videos to H.264 without Color Washout

2023-10-21 Thread pehache
Le 26/03/2021 à 00:55, Craig L. a écrit : Sorry. I don't think I responded to this correctly before. I think I tried exactly that based upon this stackoverflow question: https://stackoverflow.com/questions/64981984/ffmpeg-transcode-uhd-h265-to-sdr-h264-without-color-loss The example in tha

Re: [FFmpeg-user] h265 output bigger than h264 input, how to level the both quality to make h265 smaller than h264

2023-01-17 Thread pehache
Le 06/01/2023 à 14:30, Ricardo Henrique a écrit : Hello FFMpeg team, well I'm using FFMpeg to change the encode from h264 to h265 and works fine for most of files, but some files has the output file (h265) bigger than input file (h264), what is the reason for this to happen? I know that there i

Re: [FFmpeg-user] MKV to MP4 subtitle issue

2023-01-17 Thread pehache
Le 16/01/2023 à 11:47, Moritz Barsnick a écrit : MP4 cannot carry those HDMV PGS subtitles (or any other bitmap based format, if I remember correctly). MP4 can carry the DVDSUB format, which is bitmap. The OP can give a try transcoding the PGS subtitles to DVDSUB, using "-c:s dvdsub", but in

Re: [FFmpeg-user] Does "cat" degrade video quality?

2023-01-02 Thread pehache
Le 01/01/2023 à 19:21, Reindl Harald a écrit : Am 01.01.23 um 19:16 schrieb pehache: Couldn't I, or anyone else, just edit the license check code out then? Indeed yes in the case of a free software (but no in the case of MakeMKV) when the source code is available *you can* and the

Re: [FFmpeg-user] Does "cat" degrade video quality?

2023-01-01 Thread pehache
Le 03/12/2022 à 15:42, David Niklas a écrit : On Fri, 2 Dec 2022 11:49:04 -0800 Dan Harkless wrote: MakeMKV is in a semi-permanent Beta state, so you need to periodically download new license keys from:     https://forum.makemkv.com/forum/viewtopic.php?t=1053 but aside from that, it's eas

Re: [FFmpeg-user] Does "cat" degrade video quality?

2023-01-01 Thread pehache
Le 02/12/2022 à 13:36, MyCraigs List via ffmpeg-user a écrit : I'm running Debian 11. I use the command line "cat" to concatenate videos of all the same quality together.  All VOB files are cat'd together and none others.  The second bunch of videos I cat together are from a Sony video camera a

Re: [FFmpeg-user] How to Transcode ALL Audio streams from input to output using ffmpeg?

2022-11-25 Thread pehache
Le 24/11/2022 à 14:29, Mahesh Velankar a écrit : I have an input MPEG TS file 'unit_test.ts'. This file has following content (shown by ffprobe): Input #0, mpegts, from 'unit_test.ts': Duration: 00:00:57.23, start: 73674.049844, bitrate: 2401 kb/s Program 1 Metadata: service_na

Re: [FFmpeg-user] How to reduce interlace artifacts while trancoding to mp4

2022-11-15 Thread pehache
Le 12/11/2022 à 10:57, Bouke / Videotoolshed a écrit : So, you need to de-interlace the filter. There's also the possibility to keep the interlacing and encode an interlaced h264 (so relying on the player to properly deinterlace). I have never done that, and I am not sure which coding is app

[FFmpeg-user] I'm lost with the options to set a default subtitle

2022-11-02 Thread pehache
Say I have an input file with several subtitles, one of them being flagged "default" (say the 0:s:1 stream, that is the 2nd subtitle stream). I am copying all of them: "-map 0:s -c:s copy" Empirically I have found that: * no option -> the default flag is unmodified * "-disposition:s:2

Re: [FFmpeg-user] encode to RAW video

2022-11-02 Thread pehache
Le 01/11/2022 à 00:01, Carl Zwanzig a écrit : -c:v rawvideo -pixel_format yuv420p Use the video codec "rawvideo" with that pixel format for output, except AFAICT that there is no video encoder "rawvideo" (that should throw an error, which because of the missing command output, we don't see).

Re: [FFmpeg-user] encode to RAW video

2022-11-02 Thread pehache
Le 31/10/2022 à 14:23, Naveen.B a écrit : I observed some weird behaviour with fast and medium preset, fast preset: *ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i CapturedImage-%03d.raw -c:v rawvideo -pixel_format yuv420p -f rawvideo -c:v libx264 -preset fast -crf 18 test.raw* "-c:v raw

Re: [FFmpeg-user] Basic Video Manipulation Qustions

2022-10-27 Thread pehache
Le 27/10/2022 à 17:46, John Van Ostrand a écrit : Hi All, The RAW video discussion had me thinking about resolution and bit rates for video and I had some questions. These are not how-to questions but general video questions. I'm an amateur so the contest of these questions is around video for h

Re: [FFmpeg-user] encode to RAW video

2022-10-27 Thread pehache
Le 27/10/2022 à 13:31, Naveen.B a écrit : one last question, any idea on how to know/measure how long the ffmpeg takes to encode the file. The answer depends on too many parameters. i.e, basically I want to know how much time it takes to compress with different presets and how much time it

Re: [FFmpeg-user] encode to RAW video

2022-10-26 Thread pehache
Le 24/10/2022 à 18:36, Naveen.B a écrit : I tried by giving the input with -pix_fmt, it's the same error. Yes, I want raw video. I have converted RAW files to .mp4 successfully with uncompressed, the size of the .mp4 format video was less comparatively. I have 30 RAW files with each file is ar

[FFmpeg-user] ffmpeg/ffprobe won't detect the language of a webvvt (subtitles) file

2022-10-25 Thread pehache
Hello, A webtt subtitles files starts with a few header lines, and one of them indicates the language: == WEBVTT Kind: captions Language: en == But ffmpeg won't detect the language. The ffprobe output on the above file makes no

Re: [FFmpeg-user] How to concat two videos with same size but different source?

2022-10-18 Thread pehache
Le 15/10/2022 à 11:20, Reindl Harald a écrit : Am 14.10.22 um 19:24 schrieb Bo Berglund: Is this a flawed assumption? as it told you at the begin of this thread: you can't concat video formats like H264 as it where wave audiofiles Which is not what he is doing... unless I missed somethi

Re: [FFmpeg-user] How to concat two videos with same size but different source?

2022-10-18 Thread pehache
Le 14/10/2022 à 19:24, Bo Berglund a écrit : First I advice reading this: https://trac.ffmpeg.org/wiki/Concatenate Been there and tried that, in fact my main concat script uses the first approach to create the list file and supplies that to ffmpeg. Sure, but the different methods have diffe

Re: [FFmpeg-user] Video concat problem

2022-10-17 Thread pehache
Le 14/10/2022 à 16:46, ibur...@compuscience.com a écrit : I have two videos that I want to concatenate: Video 1 - very short one with a silent audio track (2 seconds) Video 2 - About 2 minutes. The audio starts around 10 seconds from start The final concatenation is strange:

Re: [FFmpeg-user] Re-encoding mkv files from makemkv

2022-10-11 Thread pehache
Le 08/09/2022 à 00:04, James Board via ffmpeg-user a écrit : I'm trying to re-encode an MKV file that I originally created with makemkv from the original BluRay disc.  My ffmpeg command is:     ffmpeg-4.1.2-amd64-static/ffmpeg -y -i Twin_Peaks-_A_Limited_Event_Series_-_Disc_2_t01.mkv -c:a copy

Re: [FFmpeg-user] How to concat two videos with same size but different source?

2022-10-11 Thread pehache
Le 08/10/2022 à 10:31, Bo Berglund a écrit : I have two mp4 videos both at 480p resolution, which I want to concat. They are together about 80 minutes long. When I do this using the common way with this command: ffmpeg -f concat -safe 0 -i join.txt -c copy joinedfile.mp4 using a file specifyin

Re: [FFmpeg-user] Trying to extract an image from a video

2022-09-29 Thread pehache
Le 26/09/2022 à 02:51, Damien Vandame a écrit : *The specified filename 'myvideo.jpg' does not contain an image sequence pattern or a pattern is invalid.[image2 @ 0273929beb40] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a

[FFmpeg-user] stream specifier from -drc_scale option ?

2022-08-31 Thread pehache
Hi, -drc_scale is an AC3 decoder option for dynamic range compression, which must be placed before -i Is it possible to append a stream specifier if one want to selectively apply DRC to some streams, e.g. -drc_scale:3 to apply DRC only to the stream #3 of the input file ? Thanks

Re: [FFmpeg-user] Need to Convert MP4 (or MKV) with AAC *and* AC-3 Audio to Multi-Rendition HLS (each with *both* audio streams)

2022-08-31 Thread pehache
Le 31/08/2022 à 00:51, Clay a écrit : Hi folks, Can you help me fix this ffmpeg script: The goal: Take in an mp4 (or mkv) with one video stream and TWO audio streams (one AAC/2ch and one AC-3/5.1ch)... and output four video renditions (1920, 1280, 720, 480) that all keep *both* audio streams. The

[FFmpeg-user] 5.1 downmix to 2.0 (again) and buried dialogs

2022-08-26 Thread pehache
Hi, Not strictly speaking a ffmpeg (recurring) question, but ffmpeg is often used for that... Since I a have only a stereo setup (albeit a decent one) attached to my TV, I started a while ago to generate downmixed 2.0 tracks with ffmpeg on my video files with 5.1 (or 7.1) tracks. My orig

Re: [FFmpeg-user] aresample=matrix_encoding=dplii output is still 5.1 ??

2019-01-28 Thread pehache
Le 28/01/2019 à 23:58, pehache a écrit : Le 28/01/2019 à 14:11, Carl Eugen Hoyos a écrit : 2019-01-28 9:00 GMT+01:00, pehache : Le 27/01/2019 à 16:53, Carl Eugen Hoyos a écrit : 2019-01-27 16:44 GMT+01:00, pehache : I used to apply a Dolby Pro Logic II encoding this way : Actual command

Re: [FFmpeg-user] aresample=matrix_encoding=dplii output is still 5.1 ??

2019-01-28 Thread pehache
Le 28/01/2019 à 14:11, Carl Eugen Hoyos a écrit : 2019-01-28 9:00 GMT+01:00, pehache : Le 27/01/2019 à 16:53, Carl Eugen Hoyos a écrit : 2019-01-27 16:44 GMT+01:00, pehache : I used to apply a Dolby Pro Logic II encoding this way : Actual command line and complete, uncut console output

Re: [FFmpeg-user] aresample=matrix_encoding=dplii output is still 5.1 ??

2019-01-28 Thread pehache
Le 28/01/2019 à 09:00, pehache a écrit : Le 27/01/2019 à 16:53, Carl Eugen Hoyos a écrit : 2019-01-27 16:44 GMT+01:00, pehache : I used to apply a Dolby Pro Logic II encoding this way : Actual command line and complete, uncut console output missing. OK ffmpeg -i test.mkv -map 0:1 -c:a

Re: [FFmpeg-user] aresample=matrix_encoding=dplii output is still 5.1 ??

2019-01-28 Thread pehache
Le 27/01/2019 à 16:53, Carl Eugen Hoyos a écrit : 2019-01-27 16:44 GMT+01:00, pehache : I used to apply a Dolby Pro Logic II encoding this way : Actual command line and complete, uncut console output missing. OK ffmpeg -i test.mkv -map 0:1 -c:a aac -b:a 256k -af aresample

[FFmpeg-user] aresample=matrix_encoding=dplii output is still 5.1 ??

2019-01-27 Thread pehache
Hi, I used to apply a Dolby Pro Logic II encoding this way : "-af aresample=matrix_encoding=dplii -ac 2" But I learned that "-ac 2" does a full downmix of the 5.1 stream, which is not what I want : after the DPL II resampling one simply want to extract the 2 (encoded) front channels and that'