6 votes
Accepted

How to decode the PTS timestamps and extract the video frames

FFmpeg will, by default, remove the starting offset. To preserve it, add -copyts. The description of -vsync 0 isn't accurate and was written 8+ years ago: Each frame is passed with its timestamp ...
Gyan's user avatar
  • 33.2k
4 votes
Accepted

Proper command to remux mpeg-ts to mp4 with FFmpeg?

Unless you know you have a specific need to preserve timestamps, there's no need to use -copyts. MPEG-TS, being a format, used for remote viewing, will have some start time offset, by default, to ...
Gyan's user avatar
  • 33.2k
2 votes
Accepted

avconv: What are the mpegvideo private options?

Private options are switches/flags only applicable to specific encoders or decoders, and ignored by anything else. To see the available private options for an encoder, use avconv -h encoder=name e.g. ...
Gyan's user avatar
  • 33.2k
2 votes
Accepted

DVD not displaying full picture

You will need to work within the title safe areas when burning to DVD as depending on what the final player will be, there might be overscan which will/can crop anything out that is not within this ...
Adam Mann Pro's user avatar
2 votes
Accepted

MPEGTS & HLS: Only second segment onwards is valid

For non-conventional layouts, the native AAC encoder writes a PCE section in the bitstream header as part of the AudioSpecificConfig. However, it does so only at the beginning, therefore subsequent ...
Gyan's user avatar
  • 33.2k
2 votes
Accepted

Leaflets or brochures for MPEG codecs

I take the references from Tektronix seriously in my daily work. Amazon has a 48-page magazine-sized technical booklet from this company or you could download it from this link Of course, this company ...
xer-rex's user avatar
  • 792
1 vote
Accepted

Errors in FFmpegSource2 plugin source filter for AviSynth

The short answer, if you're familiar with AviSynth You don't need to use LoadPlugin(), if you copy the four files in the plugin: FFMS2.avsi ffms2.dll ffms2.lib ffmsindex.exe to the plugins ...
MarianD's user avatar
  • 1,564
1 vote
Accepted

Can AviSynth handle MTS files?

Use cross-platform wrapper library FFmpegSource (around FFmpeg) — particularly, its filter FFmpegSource2() (instead of built-in AviSource() or DirectShowSource()). See AviSynth Wiki about it.
MarianD's user avatar
  • 1,564
1 vote

How to fix interlaced mpeg2 video marked as progressive?

Sorry for the late reply. For anyone wondering, the video actually is progressive. The next line in the mediainfo shows 2:3 pulldown, which is a software added telecine (soft telecine). You can also ...
user40165's user avatar
1 vote

Extract PTS, Frame Number from a TS file using the bytes representation of it

As per my reading of the demuxer, this is the method to derive the PTS from a base 16 dump. b'4700ff1de05ca7686c2b43f5e37e6dafd388761c36900ab37... Skip the first 7 bytes, or more precisely, the ...
Gyan's user avatar
  • 33.2k
1 vote

Extracting segment from .mpg file using ffmpeg; why does result have video but no audio?

Until very recently (2018-02-17), ffmpeg wasn't able to correctly remux pcm_dvd streams in MPEG-PS. You'll have to upgrade to a recent version. Get a git snapshot binary from FFmpeg (under More ...
Gyan's user avatar
  • 33.2k
1 vote
Accepted

Could not find codec parameters -- for gif?

It's worth a try using the concat demuxer. First, create a text file like this: file 'motor_animate_000.gif' file 'motor_animate_001.gif' file 'motor_animate_002.gif' file 'motor_animate_003.gif' ......
Gyan's user avatar
  • 33.2k
1 vote

How to create MPEG-DASH variants at resolutions where one dimension is not a whole number in pixels?

The scale filter resets the sample aspect ratio to match the original display aspect ratio. You should add setsar=1 after each scale. In any case, videos don't contain pixel count with fractional ...
Gyan's user avatar
  • 33.2k
1 vote
Accepted

To MP4V, or to DX50, or not to be

If it's just a matter of which FOURCC to assign, and not the codec, then choose MP4V since it has broader compatibility, and the tag can always be changed later, using a tool like ffmpeg i.e. ffmpeg -...
Gyan's user avatar
  • 33.2k
1 vote

Is it possible to create a continuously looping video?

If you have the option to embed the video in a simple webpage you could use the HTML5 video player loop option: <video loop="loop"></video>
jsleuth's user avatar
  • 119
1 vote

Is it possible to create a continuously looping video?

Use a DVD authoring program. For example, Adobe Encore to create a VOB (MPEG2) DVD file. Most media players recognize this format. In the authoring software, you can make the movie autoloop, so the ...
Maarten van Vooren's user avatar
1 vote

Combine video and audio TS segments coming from HLS stream

Do you have a m3u8 file? If so, I assume you can just do ffmpeg -i indexfile.m3u8 -acodec copy -vcodec copy output.ts You could also convert it directly into the mp4 container: ffmpeg -i indexfile....
erik's user avatar
  • 216
1 vote
Accepted

Hardsubbing ASS onto MPEG4

ffmpeg has an amazing article on burning the subs into the videos. I trust ffmpeg to be very careful with (the lack of) quality loss. Given you are dealing with ASS, here are the important bits, You ...
TAbdiukov's user avatar
  • 209

Only top scored, non community-wiki answers of a minimum length are eligible