Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (50)

Sur d’autres sites (8992)

  • M2tS ffmpeg command

    27 août 2020, par pixbye

    I try to use a ffmpeg command to convert via shell an TS stream to m2ts stream

    


    I use :

    


    ffmpeg -i "D:\assets\data1-1.ts" -vcodec copy -r 29.97 -acodec ac3 out_data1.m2ts
pause


    


    But the result mediainfo result is :

    


    General
ID                                       : 1 (0x1)
Complete name                            : D:\analzye\ffmpeg\out\out_data1.m2ts
Format                                   : BDAV
Format/Info                              : Blu-ray Video
File size                                : 413 MiB
Duration                                 : 10 min 3 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 5 751 kb/s

Video
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 1 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 1 frame
Format settings, GOP                     : M=1, N=15
Codec ID                                 : 27
Duration                                 : 10 min 3 s
Bit rate                                 : 5 322 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Stream size                              : 383 MiB (93%)

Audio
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : 129
Duration                                 : 10 min 3 s
Bit rate mode                            : Constant
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Delay relative to video                  : 32 ms
Stream size                              : 13.8 MiB (3%)
Service kind                             : Complete Main

Menu
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Duration                                 : 10 min 3 s
List                                     : 4113 (0x1011) (AVC) / 4352 (0x1100) (AC-3)
Service name                             : Service01
Service provider                         : FFmpeg
Service type                             : digital television


    


    So, no FPS info in Video. How to avoid the menu stream and get the FPS to the video stream ?
I tried to find it here on stackoverflow and google but git no success. Is it needed to encode video new to get the framerate well ? I thought it is a muxing issue.

    


  • How the ffmpeg is fixing Handle page termination with same page number ...? [closed]

    11 avril 2024, par adarsh

    Im working on the teletext subtitle feature and faced with subs not clearing issue.
the subtitle lines remain displayed until being replaced by a new version of the specific line. So the subtitles never disappear and often an old line is still displayed, after another, more recent line is displayed/updated.
take a look at the issue in this sample video file : https://code.videolan.org/videolan/vlc/uploads/58c2e1660e94e2df5e8cdb75edf531d9/GODFATHER__03_.ts
Issue reported : https://sourceforge.net/p/zapping/bugs/203/

    


    The player is using ffmpeg and libzvbi library.

    


    At first I suspected that the Erase Page Flag (C4) in the Page Header was not set, but the flag was indeed set (at least once between two LOPs with subtitles). After further debugging it turned out that the Teletext service in the two issues consists of just a single Teletext page - which is the reason here :

    


    The Teletext spec defines the Magazine Serial Flag (C11) in Table 2 (ETSI EN 300 706 v1.2.1) as (bold font by me) :

    


    When set to '1' the service is designated to be in Serial mode and the transmission of a page is terminated by the next page header with a different page number.
When set to '0' the service is designated to be in Parallel mode and the transmission of a page is terminated by the next page header with a different page number but the same magazine number.
The same setting shall be used for all page headers in the service.
(BTW it doesn't really matter, but in these two cases this flag is always 0)

    


    In vbi_decode_teletext in /src/packet.c, storing the page is aborted, if the condition "page terminated" in the C11 definition is not met. But as the service here consists of only one page, this condition is never met !

    


    Luckily, this issue was fixed in ffmpeg- https://github.com/FFmpeg/FFmpeg/commit/b1e0e216462a989a39e7b413aef6d32f8cedc154

    


    and also in zvbi :
https://github.com/zapping-vbi/zvbi/commit/40a6ab0200c46b67b059b5b1fb15793ce780892a

    


    I understand the root cause and fix in zvbi library, and how it is ignoring c4 flag in case the same page no.

    


    But i want to understand how the ffmpeg fix is working ?
ffmpeg fix : https://github.com/FFmpeg/FFmpeg/commit/b1e0e216462a989a39e7b413aef6d32f8cedc154

    


    what is the rule for repeated page headers ?

    


  • Adding a rotating effect on an image using ffmpeg ? [closed]

    5 mai 2024, par Garry

    I'm trying to overlay an image on a video, and add subtle rotating effects for that image, left, right, left right, and so on. (see pictures) The rotation works, however the edges are always very jagged and bad quality.
Is there a way to improve my filters, or is there a better approach that I can use, without jagged edges ?

    


    This works, overlays the image.png and applies to rotating effect :

    


    ffmpeg -loop 1 -i image.png -i video.mp4 -t 10 -filter_complex "[0:v]scale=720:720:flags=lanczos,fps=25,format=rgba,rotate=0.05*sin(2*PI*t/4):c=black@0:ow=round(iw*1.5):oh=round(ih*1.5)[rotated];[1:v][rotated]overlay=(W-w)/2:(H-h)/2:shortest=1" -c:v libx264 -crf 16 -preset veryslow -c:a copy -y output.mp4

    


    But the edges turn out to be very jagged :

    


    jagged edges

    


    jagged edge

    


    jagged edge