From d0743de04ddb76cda070b3c6a2ed05ab95f7350d Mon Sep 17 00:00:00 2001 From: jeanlf Date: Thu, 7 Nov 2024 14:42:15 +0100 Subject: [PATCH] fixed profile and x264-params syntax in examples --- docs/Howtos/encoding.md | 4 ++-- docs/Howtos/filters-oneliners.md | 4 ++-- docs/aspell_dict_gpac.txt | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/Howtos/encoding.md b/docs/Howtos/encoding.md index f47ac4b0..7eb62a09 100644 --- a/docs/Howtos/encoding.md +++ b/docs/Howtos/encoding.md @@ -103,11 +103,11 @@ The above command will encode the video track in `source.mp4` into AVC|H264 at The above command will encode the video track in `source.mp4` into AVC|H264 at 500 kbps and enforce intra frames using [fintra](ffenc) every 2 seconds. This doesn't prevent the encoder to produce intra frames within this period (e.g. scene cut), but ensures you always have IDRs at the right period. This is obviously designed for HTTP Adaptive Streaming. -```gpac -i source.mp4 c=avc::x264-params=no-mbtree:sync-lookahead=0::profile=baseline -o test.avc``` +```gpac -i source.mp4 c=avc::x264-params=no-mbtree=1:sync-lookahead=0::profile=baseline -o test.avc``` The above command will encode the video track in `source.mp4` into AVC|H264 and pass two options to FFmpeg encoder: -- `x264-params`, with value `no-mbtree:sync-lookahead=0` +- `x264-params`, with value `no-mbtree=1:sync-lookahead=0` - `profile`, with value `baseline` __Discussion__ diff --git a/docs/Howtos/filters-oneliners.md b/docs/Howtos/filters-oneliners.md index 35840457..e83f0254 100644 --- a/docs/Howtos/filters-oneliners.md +++ b/docs/Howtos/filters-oneliners.md @@ -301,7 +301,7 @@ gpac -i source.pcm:sr=44100:ch=1 resample:sr=48k -o dump.pcm Setting FFmpeg and x264 options - _see [filter](ffenc)_ ``` -gpac -i vid.mp4 enc:c=avc:b=2m:fintra=2:vprofile=baseline:preset=ultrafast:tune=zerolatency::x264-params=no-mbtree:sliced-threads:sync-lookahead=0 -o dst.mp4 +gpac -i vid.mp4 enc:c=avc:b=2m:fintra=2:profile=baseline:preset=ultrafast:tune=zerolatency::x264-params=no-mbtree=1:sliced-threads=1:sync-lookahead=0 -o dst.mp4 ``` Transcode to AVC 1mbps and aac 128k while monitoring video output and filter stats- _see [filter](ffenc)_ @@ -836,4 +836,4 @@ Fractal-like animated video reuse ] } ] -``` \ No newline at end of file +``` diff --git a/docs/aspell_dict_gpac.txt b/docs/aspell_dict_gpac.txt index 4e6fd91e..7a1e6f7d 100644 --- a/docs/aspell_dict_gpac.txt +++ b/docs/aspell_dict_gpac.txt @@ -2498,7 +2498,6 @@ Muxing remux khz FFmpeg -vprofile ultrafast zerolatency mbps @@ -3460,4 +3459,4 @@ cpf cpx cN rM -vtth \ No newline at end of file +vtth