Claude 1e8eedc253 Fix OGG-FLAC streaming: proper metadata block format and frame boundary detection
FFPlay and strict decoders were rejecting the OGG-FLAC stream due to two critical issues:

1. **Invalid Vorbis Comment metadata block** (line 933)
   - Previous: Sent raw Vorbis Comment data without FLAC metadata block wrapper
   - Fixed: Wrap Vorbis Comment in proper FLAC metadata block format:
     * Byte 0: 0x84 (type 4 = VORBIS_COMMENT + last-block flag)
     * Bytes 1-3: length (24-bit big-endian)
     * Bytes 4+: Vorbis Comment data
   - Compliant with OGG-FLAC mapping spec (xiph.org/flac/ogg_mapping.html)

2. **Arbitrary 8KB frame segmentation** (line 799)
   - Previous: Cut FLAC data at arbitrary 8KB boundaries, breaking frames mid-stream
   - Fixed: Apply FLAC frame boundary detection (same as StreamingFlacSink fix in f783244)
     * Add find_complete_frames_boundary() to detect sync codes (0xFF 0xF8-0xFE)
     * Use 16KB read buffer + accumulator pattern
     * Only broadcast complete frames (4KB minimum for OGG page efficiency)
     * Send remaining data on EOF to prevent loss
   - Ensures each OGG page contains only complete FLAC frames

Validation:
- ffplay successfully opens and decodes the stream
- ffprobe correctly identifies: Input #0, ogg / Stream #0:0: Audio: flac, 44100 Hz, stereo, s16

This fixes "invalid sync code" and "invalid frame header" errors in FFPlay while
maintaining compatibility with VLC and other tolerant players.
2025-11-13 09:29:19 +00:00
2025-11-03 14:45:37 +01:00
2025-09-07 12:14:50 +02:00
2025-10-05 22:03:13 +02:00
2025-09-06 17:45:28 +02:00
2025-10-29 22:36:36 +01:00
2025-10-29 22:35:53 +01:00
2025-10-29 22:35:53 +01:00
2025-11-03 14:45:37 +01:00
2025-11-03 14:45:37 +01:00
2025-10-05 22:03:13 +02:00
2025-10-20 19:50:58 +02:00
2025-11-03 14:45:37 +01:00
2025-10-05 22:03:13 +02:00

Développement de l'application PMOMusic en RUST

🚀 Démarrage rapide

Installation des dépendances (environnement sans sudo)

Pour compiler PMOMusic dans un environnement sans privilèges sudo (comme Claude Code) :

# 1. Installation automatique de libsoxr et libasound2 (une seule fois)
./setup-deps.sh

# 2. Créer le fichier setup-env.sh (une seule fois, voir INSTALL_LIBSOXR.md pour le contenu)
cat > setup-env.sh << 'EOF'
#!/bin/bash
export PKG_CONFIG_PATH="$HOME/.local/usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH="$HOME/.local/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
export RUSTFLAGS="-L $HOME/.local/usr/lib/x86_64-linux-gnu"
echo "Variables d'environnement configurées pour PMOMusic"
EOF

# 3. Configuration de l'environnement (à chaque nouvelle session)
source setup-env.sh

# 4. Compilation
cargo build

# 5. Test de l'exemple Radio Paradise
cargo run --package pmoparadise --example play_and_cache --features full -- 0

⚠️ Note : Le fichier setup-env.sh est dans .gitignore car il contient une configuration locale.

Documentation


Création de la structure

mkdir pizzicato
cd pizzicato
jj git init
touch Readme.md

Maintenant on peu créer l'application PMOMusic

cargo new PMOMusic

On ajoute un fichier Cargo.toml décrivant le workspace pizzicato qui ne contient que notre nouvelle application

[workspace]
members = ["PMOMusic"]

On crée le package pmoupnp

cargo new  pmoupnp --lib

Cela modifie automatiquement le fichier Cargo.toml créé juste avant. Dans ce package un sous module statevariable

cd pmoupnp/src
mkdir statevariable

Petite expériences jujutsu

  • Je veux voir l'historique
jj log
@  lkmlpmnk eric@coissac.eu 2025-09-12 09:48:38 a27b6a9a
│  On commence les states variables
○  mzvokmpk eric@coissac.eu 2025-09-12 09:32:27 926827f3
│  Retire le répertoir target du suivi
○  skknrvut eric@coissac.eu 2025-09-12 09:05:27 cbad5c34
│  Initialisation des l'arborescence de répertoires
◆  zzzzzzzz root() 00000000
  • Je veux me mettre dans un commit:
jj edit mzvokmpk

je veux créer un nouveau commit à la suite d'un autre et m'y placer

jj new mzvokmpk

mzvokmpk peut être @ pour dans le commit courant ou @- pour dans le parent

  • je veux arreter de suivre
    • un fichier
jj file untrack <filename> 
  • un répertoire
find dirname -type f -exec jj file untrack {} \;

Dans tous les cas ne pas oublier d'inscrire le fichier ou le repertoire dans le .gitignore

  • je veux déplacer un commit comme un sous commit d'un aute
jj rebase -d destination -r source

eventuellement faire un

jj resolve --all
jj rebase --continue

pour résoudre les conflits

Installer rust sur mac

brew install rustup-init
rustup-init
rustup default stable
Description
No description provided
Readme 242 MiB
Languages
Rust 73%
HTML 11.6%
Vue 9.5%
TypeScript 2.6%
Python 1.3%
Other 1.9%