Repository: yt-dlp
Issue: Audio is out of sync and breaking on arte.tv
Labels: site-bug,triage

### Checklist

- [X] I'm reporting a broken site
- [X] I've verified that I'm running yt-dlp version **2022.07.18** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/ytdl-org/youtube-dl#video-url-contains-an-ampersand-and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

France

### Provide a description that is worded well enough to be understood

The audio is out of sync after merging, and with breaks. On the web site player it is fine.

Example on https://www.arte.tv/fr/videos/046579-001-A/real-humans-saison-1-1-10/

I have run also today's master build and tried replacing the arte.py file from other issues discussions: same result.



### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', 'https://www.arte.tv/fr/videos/046579-001-A/real-humans-saison-1-1-10/']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.07.18 [135f05ef6] (linux_exe)
[debug] Python 3.8.10 (CPython 64bit) - Linux-5.4.0-122-generic-x86_64-with-glibc2.14 (glibc 2.31)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg N-103860-ge2d40cd1d5 (fdk,setts), ffprobe N-103860-ge2d40cd1d5, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.07.18, Current version: 2022.07.18
yt-dlp is up to date (2022.07.18)
[debug] [ArteTV] Extracting URL: https://www.arte.tv/fr/videos/046579-001-A/real-humans-saison-1-1-10/
[ArteTV] 046579-001-A: Downloading JSON metadata
[ArteTV] 046579-001-A: Downloading m3u8 information
[ArteTV] 046579-001-A: Downloading m3u8 information
[ArteTV] 046579-001-A: Downloading m3u8 information
[ArteTV] 046579-001-A: Downloading m3u8 information
[ArteTV] 046579-001-A: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 046579-001-A: Downloading 1 format(s): VF-STF-2312+VF-STF-program_audio_0-VF
[debug] Invoking hlsnative downloader on "https://arte-cmafhls.akamaized.net/am/cmaf/046000/046500/046579-001-A/220629004511/medias/046579-001-A_v720.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 584
[download] Destination: Real Humans - Saison 1 (1_10) [046579-001-A].fVF-STF-2312.mp4
[download] 100% of 911.54MiB in 01:26 at 10.58MiB/s
[debug] Invoking hlsnative downloader on "https://arte-cmafhls.akamaized.net/am/cmaf/046000/046500/046579-001-A/220629004511/medias/046579-001-A_aud_VF.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 585
[download] Destination: Real Humans - Saison 1 (1_10) [046579-001-A].fVF-STF-program_audio_0-VF.mp4
[download] 100% of 54.44MiB in 00:35 at 1.52MiB/s
[debug] ffmpeg command line: ffprobe -show_streams 'file:Real Humans - Saison 1 (1_10) [046579-001-A].fVF-STF-program_audio_0-VF.mp4'
[Merger] Merging formats into "Real Humans - Saison 1 (1_10) [046579-001-A].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Real Humans - Saison 1 (1_10) [046579-001-A].fVF-STF-2312.mp4' -i 'file:Real Humans - Saison 1 (1_10) [046579-001-A].fVF-STF-program_audio_0-VF.mp4' -c copy -map 0:v:0 -map 1:a:0 -bsf:a:0 aac_adtstoasc -movflags +faststart 'file:Real Humans - Saison 1 (1_10) [046579-001-A].temp.mp4'
Deleting original file Real Humans - Saison 1 (1_10) [046579-001-A].fVF-STF-program_audio_0-VF.mp4 (pass -k to keep)
Deleting original file Real Humans - Saison 1 (1_10) [046579-001-A].fVF-STF-2312.mp4 (pass -k to keep)
```