Skip to content

Commit

Permalink
fixed profile and x264-params syntax in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanlf committed Nov 7, 2024
1 parent 8debea4 commit d0743de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/Howtos/encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down
4 changes: 2 additions & 2 deletions docs/Howtos/filters-oneliners.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)_
Expand Down Expand Up @@ -836,4 +836,4 @@ Fractal-like animated video reuse
]
}
]
```
```
3 changes: 1 addition & 2 deletions docs/aspell_dict_gpac.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2498,7 +2498,6 @@ Muxing
remux
khz
FFmpeg
vprofile
ultrafast
zerolatency
mbps
Expand Down Expand Up @@ -3460,4 +3459,4 @@ cpf
cpx
cN
rM
vtth
vtth

0 comments on commit d0743de

Please sign in to comment.