Recherche avancée

Médias (1)

Mot : - Tags -/blender

Autres articles (43)

Sur d’autres sites (7788)

  • avformat/url : check url root node when rel include double dot and trim double dot

    29 avril 2020, par Steven Liu
    avformat/url : check url root node when rel include double dot and trim double dot
    

    fix ticket : 8625
    and add testcase into url for double dot corner case

    Signed-off-by : Steven Liu <lq@chinaffmpeg.org>

    • [DH] libavformat/tests/url.c
    • [DH] libavformat/url.c
    • [DH] tests/ref/fate/url
  • Revision e5f715201a : Change to band calculation. Change band calculation back to simpler model based

    9 mai 2013, par Paul Wilkins

    Changed Paths :
     Modify /vp9/common/vp9_entropy.c


     Modify /vp9/common/vp9_entropy.h


     Modify /vp9/decoder/vp9_decodframe.c


     Modify /vp9/decoder/vp9_detokenize.c


     Modify /vp9/encoder/vp9_encodemb.c


     Modify /vp9/encoder/vp9_rdopt.c


     Modify /vp9/encoder/vp9_tokenize.c



    Change to band calculation.

    Change band calculation back to simpler model based
    on the order in which coefficients are coded in scan order
    not the absolute coefficient positions.

    With the scatter scan experiment enabled the results were
    appear broadly neutral on derf (-0.028) but up a little on std-hd +0.134).

    Without the scatterscan experiment on the results were up derf as well.

    Change-Id : Ie9ef03ce42a6b24b849a4bebe950d4a5dffa6791

  • Using FFMPEG to merge video frames back into a video with subtitle messes up the audio when seeking

    26 juin 2023, par YoungDON

    I broke down a h265 video into frames and try to merge them back together with its original audio, subtitle and fonts. The resulting video has an issue where when I try to seek at some points in the video, the audio stops playing. And even when I don't seek, at a point the video hangs and the audio keeps playing. Seconds later, the video resumes, but now, video and audio are out of sync. This doesn't happen with the original video.

    &#xA;

    The reason I'm breaking the video into frames and merging them is because I want to upscale each frame. But I'm going to leave that part out because this issue occurs with the original unscaled frames.

    &#xA;

    Here's the details of the original video. Notice it has video, audio and two font streams.

    &#xA;

    .\ffmpeg.exe -i "input.mkv"&#xA;&#xA;Input #0, matroska,webm, from &#x27;input.mkv&#x27;:&#xA;  Metadata:&#xA;    encoder         : libebml v1.3.10 &#x2B; libmatroska v1.5.2&#xA;    creation_time   : 2021-01-07T00:20:19.000000Z&#xA;  Duration: 00:23:02.05, start: 0.000000, bitrate: 320 kb/s&#xA;    Stream #0:0: Video: hevc (Main), yuv420p(tv), 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)&#xA;    Metadata:&#xA;      BPS-eng         : 278671&#xA;      DURATION-eng    : 00:23:02.006000000&#xA;      NUMBER_OF_FRAMES-eng: 33135&#xA;      NUMBER_OF_BYTES-eng: 48140731&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 (&#x27;No Deeper Escape&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;    Stream #0:1(jpn): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp&#xA;    Metadata:&#xA;      BPS-eng         : 36166&#xA;      DURATION-eng    : 00:23:02.016000000&#xA;      NUMBER_OF_FRAMES-eng: 32391&#xA;      NUMBER_OF_BYTES-eng: 6247833&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 (&#x27;No Deeper Escape&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;    Stream #0:2(eng): Subtitle: ass (default)&#xA;    Metadata:&#xA;      BPS-eng         : 76&#xA;      DURATION-eng    : 00:21:20.790000000&#xA;      NUMBER_OF_FRAMES-eng: 246&#xA;      NUMBER_OF_BYTES-eng: 12264&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 (&#x27;No Deeper Escape&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;    Stream #0:3: Attachment: ttf&#xA;    Metadata:&#xA;      filename        : Roboto-Medium.ttf&#xA;      mimetype        : application/x-truetype-font&#xA;    Stream #0:4: Attachment: ttf&#xA;    Metadata:&#xA;      filename        : Roboto-MediumItalic.ttf&#xA;      mimetype        : application/x-truetype-font&#xA;

    &#xA;

    Here's how I break it into frames

    &#xA;

    .\ffmpeg.exe -i "input.mkv" -qscale:v 1 -qmin 1 -qmax 1 -vsync 0 "InputFolder/frame%08d.png"&#xA;

    &#xA;

    Here's how I merge the frames back to video with all the original streams except the video

    &#xA;

    .\ffmpeg.exe -r 23.98 -i "InputFolder\frame%08d.png" -i "input.mkv" -map 0:v:0 -map 1 -map -1:v -c:a copy -c:v libx265 -r 23.98 -pix_fmt yuv420p "output.mkv"&#xA;

    &#xA;

    Here's the details of the resulting video :

    &#xA;

    .\ffmpeg.exe -i "output.mkv"&#xA;&#xA;Input #0, matroska,webm, from &#x27;output.mkv&#x27;:&#xA;  Metadata:&#xA;    ENCODER         : Lavf58.45.100&#xA;  Duration: 00:23:02.05, start: 0.000000, bitrate: 245 kb/s&#xA;    Stream #0:0: Video: hevc (Main), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)&#xA;    Metadata:&#xA;      ENCODER         : Lavc58.91.100 libx265&#xA;      DURATION        : 00:23:01.777000000&#xA;    Stream #0:1(jpn): Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default)&#xA;    Metadata:&#xA;      BPS-eng         : 36166&#xA;      DURATION-eng    : 00:23:02.016000000&#xA;      NUMBER_OF_FRAMES-eng: 32391&#xA;      NUMBER_OF_BYTES-eng: 6247833&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 (&#x27;No Deeper Escape&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;      DURATION        : 00:23:02.046000000&#xA;    Stream #0:2(eng): Subtitle: ass (default)&#xA;    Metadata:&#xA;      BPS-eng         : 76&#xA;      DURATION-eng    : 00:21:20.790000000&#xA;      NUMBER_OF_FRAMES-eng: 246&#xA;      NUMBER_OF_BYTES-eng: 12264&#xA;      _STATISTICS_WRITING_APP-eng: mkvmerge v46.0.0 (&#x27;No Deeper Escape&#x27;) 64-bit&#xA;      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-07 00:20:19&#xA;      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES&#xA;      ENCODER         : Lavc58.91.100 ssa&#xA;      DURATION        : 00:21:21.580000000&#xA;    Stream #0:3: Attachment: ttf&#xA;    Metadata:&#xA;      filename        : Roboto-Medium.ttf&#xA;      mimetype        : application/x-truetype-font&#xA;    Stream #0:4: Attachment: ttf&#xA;    Metadata:&#xA;      filename        : Roboto-MediumItalic.ttf&#xA;      mimetype        : application/x-truetype-font&#xA;

    &#xA;

    One thing to note is that I've done this successfully numerous times with h264 videos. No audio issues. Another thing to note which might be more relevant is that when I merge the frames with only the original audio stream (as opposed to all original streams except video), the audio issue does not occur.

    &#xA;

    .\ffmpeg.exe -r 23.98 -i "InputFolder\frame%08d.png" -i "input.mkv" -map 0:v:0 -map 1:a:0 -c:a copy -c:v libx265 -r 23.98 -pix_fmt yuv420p "output.mkv"&#xA;&#xA;Produces no audio issues. But this isn&#x27;t good for me because I want the subtitles and fonts from the original video.&#xA;

    &#xA;

    If anyone needs me to upload the original video somewhere so they can reproduce it, let me know.

    &#xA;

    Edit : Also note that Merging the frames with the original audio AND subtitle stream, i.e without the fonts, the issue remains.

    &#xA;