[FFmpeg-user] Generating HLS chunks on demand

2023-01-20 Thread Vincent Deconinck
Hi, I have thousands of files that I would like to serve as HLS streams to a very small number of users (3-5), without having to process them all upfront. So I'm looking for a way to generate single HLS chunks (as opposed to a full HLS package) only when they are requested. My problem is the result

Re: [FFmpeg-user] Generating HLS chunks on demand

2023-01-23 Thread Vincent Deconinck
764972 sample_part1.ts 383896 sample_part2.ts 582424 sample0.ts 764972 sample1.ts 401004 sample2.ts ... What is the reason for that difference, and how can I make sure I generate a valid segment for those 4 seconds ? Kind regards, Vincent On Fri, Jan 20, 2023 at 5:44 PM Vincent Deconinck wr

Re: [FFmpeg-user] Generating HLS chunks on demand

2023-01-24 Thread Vincent Deconinck
utput seeking. The > former is achieved by specifying -ss before -i in your command line, > whereas you're doing the latter by specifying -ss after -i. > See https://trac.ffmpeg.org/wiki/Seeking > > HTH > Cyril > > Le lun. 23 janv. 2023 à 09:15, Vincent Deconinck a > é

Re: [FFmpeg-user] Generating HLS chunks on demand

2023-01-25 Thread Vincent Deconinck
Hi German, Thanks for your reply. > Do not use -ss and -t parameters simultaneously. FFmpeg cannot form an > output container well in that case. > I also think the -ss and -t options are the root cause of my issues, but I cannot see another way to generate only some segments (or are there "star

Re: [FFmpeg-user] Generating HLS chunks on demand

2023-01-25 Thread Vincent Deconinck
Hi German So, my advice is the following: > 1. Produce a full set of HLS segments for your source file and save > them in some folder that is not accessible to your users (archive). > ... > Yes, that is the traditional way of doing it, but it would basically mean keeping a low res version of each

Re: [FFmpeg-user] Generating HLS chunks on demand

2023-01-26 Thread Vincent Deconinck
Hi, OK, I made some progress, so replying to self : So although I'm forcing keyframes, the durations are actually not 4 seconds > (the EXT-X-TARGETDURATION field even says 5) > Is there another way to force all segments to be exactly the same duration > ? > After a bit of reading, the -g option

Re: [FFmpeg-user] Generating HLS chunks on demand

2023-01-27 Thread Vincent Deconinck
know where the 0.02 comes from). So it seems it all boils down to frame accurate splicing indeed. Any help in that regard would be greatly appreciated... KR, Vincent On Thu, Jan 26, 2023 at 5:42 PM Vincent Deconinck wrote: > Hi, > > OK, I made some progress, so replying to self

Re: [FFmpeg-user] Generating HLS chunks on demand

2023-01-27 Thread Vincent Deconinck
difference. So I believe the difference lies in the hls muxer details, but I have no idea how to get a single slice using the hls muxer. Any idea ? Kind regards, Vincent On Fri, Jan 27, 2023 at 1:38 PM Vincent Deconinck wrote: > Hi all, > > I tried analyzing the differences between the

Re: [FFmpeg-user] Generating HLS chunks on demand

2023-01-30 Thread Vincent Deconinck
Hi Cyril, I remember that in the first tests I made before answering your first email > in this thread, I tried to use -ss and -t params with both ts and mp4 > output formats. The ts segments were seemingly random length whereas the > mp4 seemed strictly of the same length. Good to know. In fact

Re: [FFmpeg-user] Generating HLS chunks on demand

2023-01-30 Thread Vincent Deconinck
Hi all, Re-reading this thread and German's first answer in particular, I realized that there are two diffierent "segment" muxers: '-f segment' and '-f ssegment' (with double 's', for 'stream-segment') and decided to try playlists of ts files built by each of them, but none of them plays back OK.

Re: [FFmpeg-user] Generating HLS chunks on demand

2023-01-31 Thread Vincent Deconinck
Hi, Here is my progress report. I wanted to understand why files (even the ones created with the hls muxer) cannot be played smoothly one after the other if they were generated by different runs. So I executed 13 HLS encodings (A-M) of different parts of the first 36 seconds of my sample file. I

Re: [FFmpeg-user] New user question - please

2023-02-04 Thread Vincent Deconinck
Could we please stop polluting this mailing list ? If you want to continue discussing this, please do it off the list using private mails. Thank you. Vincent. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-u

Re: [FFmpeg-user] Help with converting .avi to mp4

2023-02-12 Thread Vincent Deconinck
Hi Jeff, struggling with the correct syntax to use for "input_filename". > The simplest syntax for a file conversion is ffmpeg -i > I keep getting the message on my Ubuntu terminal; file as "Input_.avi">. > Could you please copy/paste the exact command you are typing and the full ffmpeg out

Re: [FFmpeg-user] Help with converting .avi to mp4

2023-02-12 Thread Vincent Deconinck
Hi Jeff, I'll copy and paste as you requested but could you confirm you > mean " ...-1" and not "...-i" please. > I mean -i See https://ffmpeg.org/ Please post more details if you need more help :-) Vincent ___ ffmpeg-user mailing list ffmpeg-user@ff

Re: [FFmpeg-user] Help with converting .avi to mp4

2023-02-12 Thread Vincent Deconinck
could you confirm you mean " ...-1" and not "...-i" please.. > Oh, I realize you may now hesitate on the syntax of "ls" and not the one of ffmpeg. The option I requested was -l as in "long format". If you copy/paste from my mail, you'll be sure to get it right. Vincent ___

Re: [FFmpeg-user] Repeatable resolution issue exporting mxfs, 1080p is coming out as 1088p

2023-02-27 Thread Vincent Deconinck
On Mon, Feb 27, 2023 at 5:33 PM William Jones wrote: > Yeah ive treid in that and thats good but but was really hoping for a fix > in ffmpeg as than can be better added into our existing pipeline. > Hi, I read that "This is due to MPEG-2 video format, which requires the number of coded luma pixe

Re: [FFmpeg-user] Why are these different?

2024-02-11 Thread Vincent Deconinck
Hi, I will probably get flamed because I'm for jumping into this conversation while being a complete newbie :-), but I think nobody replied with an answer to Mark's question "why". All I know is the ffmpeg page on seeking - https://trac.ffmpeg.org/wiki/Seeking - ends with a paragraph saying: "Usi

Re: [FFmpeg-user] This is totally out of line / should not happen / is a reason for moderation on this list.

2024-06-19 Thread Vincent Deconinck
Oh no, please don't ask for moderation ! I unsubscribed from Netflix since I have my series on this mailing list every night! A beer, some chips, and 30 minutes of daily laughter watching the smartest guys on the planet waste time arguing like they're in a kindergarten playground is hilarious, much

[FFmpeg-user] Rotate metadata flag not applied on mp4 ?

2024-07-06 Thread Vincent Deconinck
Hi, I have a few videos that have been shot upside down but lack the rotate flag so they play upside down in e.g. VLC. Here is an example : https://www.swisstransfer.com/d/48602faa-73aa-4c6d-b3bf-d2db6b2ffe9c I'd like to add the rotation information without reencoding. Many pages indicate it can

[FFmpeg-user] Reordering frames in corrupt GoPro videos

2024-07-11 Thread Vincent Deconinck
Hi, A few months ago, my GoPro randomly started creating some corrupt (or partly-corrupt) video files, mixing up frames and causing jaggy playback.To illustrate the case, here is an excerpt I generated with "ffmpeg -c copy" from a corrupt source file : https://drive.google.com/file/d/1GD7YiVS2z8h0

Re: [FFmpeg-user] Lossless concatenation of 2 MP4 files with video and multiple audio streams plus subtitles and chapter markers

2024-07-13 Thread Vincent Deconinck
On Sat, Jul 13, 2024 at 4:26 AM Rick Keniuk wrote: > I have tried the following simple concatenation command which worked > perfectly only it outputs just the video and the first audio stream. > ffmpeg -f concat -i videos.txt -c copy output.mp4 > Hi Rick, By default only the first audio stream

Re: [FFmpeg-user] Reordering frames in corrupt GoPro videos

2024-07-17 Thread Vincent Deconinck
On Fri, Jul 12, 2024 at 1:04 AM Mark Filipak wrote: > Try this: > -filter_complex "shuffleframes=" > It's worked for me. > Hi Mark and Paul, Sorry for the delay. Thanks very much for the "shuffleframes" filter tip, this seems the right tool to use, even if it implies reencoding. My tests co

Re: [FFmpeg-user] Reordering frames in corrupt GoPro videos

2024-07-18 Thread Vincent Deconinck
On Thu, Jul 18, 2024 at 12:26 AM Mark Filipak wrote: > Have you tried appealing to the manufacturer for a repair? > Well, the camera is a GoPro Hero8, it's out of warranty and basically outdated so I doubt they do anything except charge me for more than the price of a brand new one. [Off-topic]

Re: [FFmpeg-user] Reordering frames in corrupt GoPro videos

2024-07-20 Thread Vincent Deconinck
On Fri, Jul 19, 2024 at 3:59 AM Mark Filipak wrote: > My bad. I assumed you knew more. Oh, no-one should over-estimate my knowledge :-) > Try this: > ffprobe -flags2 +showall -sexagesimal -select_streams v -show_frames -of > flat -dn -i > in_bad_frame_order.mp4 > Thanks. ffprobe does not see

Re: [FFmpeg-user] Reordering frames in corrupt GoPro videos

2024-07-20 Thread Vincent Deconinck
On Sat, Jul 20, 2024 at 9:55 PM Mark Filipak wrote: > I don't know of any tool where you can simply pick up a frame and move it > while you're watching a stream. You might be able to use shuffleframes for > uniform runs, but when the pattern changes you're stuck with making > intermediate shuffle

Re: [FFmpeg-user] HTTP async client does not work with HLS source

2024-08-24 Thread Vincent Deconinck
> > The following logs show that the async cannot request the ts files of the > m3u8 playlist. > Hi Ali, Before anyone else asks in rude terms ;-), could you please copy and paste here the *full*, *unedited* command line *and* log ? Kind regards, Vincent

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-21 Thread Vincent Deconinck
> > In that case, what are some video editor software does with the videos? > They can cut some frames from the original video and create a new MP4 file. > Are these software just decode and uncompress everything, then remove some > frames, then re-encode and re-compress the remaining video? > Tha

Re: [FFmpeg-user] How to reassemble raw packet data back into a new MP4 file?

2024-09-22 Thread Vincent Deconinck
> I have tried the following commands > > ffmpeg -err_detect ignore_err -i old.mp4 -c copy new.mp4 > ... > [mov,mp4,m4a,3gp,3g2,mj2 @ 00158b00] stream 1, contradictionary STSC and > STCO > [mov,mp4,m4a,3gp,3g2,mj2 @ 00158b00] error reading header Hmm, I see. Maybe one last "cheap" attempt: if yo

Re: [FFmpeg-user] Questions about `-to` parameter

2024-11-15 Thread Vincent Deconinck
> > I look up the ffmpeg document You have probably missed the part of https://trac.ffmpeg.org/wiki/Seeking that says 'Note when "-ss" used before "-i" only: ("-ss" as input option) the timestamps will be reset according to 0.͏ So "-t" and "-to" shall be the same.' :-) [Q1] Is this really intent

Re: [FFmpeg-user] Problem creating video segment from still image

2024-12-03 Thread Vincent Deconinck
> > This indicates that it should be rotated 90 degress clock-wise (I think). Something in ffmpeg's chain is taking that into consideration, > and rotating the image, but not reporting it in the console output > Moritz is right. With ffmpeg, you can get that "orientation" info with : ffprobe -v e

Re: [FFmpeg-user] ffmpeg v7.1 h264 (libx264) stretching video on X-axis (take2 w/ smaller pix)

2025-01-03 Thread Vincent Deconinck
On Fri, Jan 3, 2025 at 4:26 PM Ferdi Scholten wrote: > Well overlaying both images on top of each other clearly shows the face > did not get wider, however because the transcoded image lacks some fine > details it appears to look wider. > Well, I think the OP meant that the aspect ratio changed.

Re: [FFmpeg-user] Non-monotonic DTS errors, saving a live encode via mediaMTX

2024-12-27 Thread Vincent Deconinck
Masaru Nomiya wrote: Non-monotonic DTS (Decoding Time Stamp) errors are a common problem > that occurs when processing video and audio files with FFmpeg. This > error occurs when the timestamps of the output stream are not > monotonically increasing. > Please refrain from using AI generated answ

Re: [FFmpeg-user] convert mkv to mp4

2025-02-13 Thread Vincent Deconinck
> I have version 7.0.2-5, but when I start with the command it does not > start, but on older version starts. Hi, This sounds like a basic shell usage issue... If you want to start a specific version, type the full path to ffmpeg, e.g. : /volume1/@appstore/ffmpeg7/bin/ffmpeg -i /volume1/video/

Re: [FFmpeg-user] convert mkv to mp4

2025-02-13 Thread Vincent Deconinck
We are almost there. I have two notes: > - the output file has different permissions (this way Plex could not read > it just after I modified perissions like other files have) > - my tv only plays it as HDR10+ instead of Dolby Vision, this is the main > point of converting. mk4s are played in HDR10