Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ungoogled Chromium #424

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

miloserdev
Copy link

No description provided.

Copy link

@A1exKH A1exKH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link

@Majikmikewrightedu Majikmikewrightedu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dnf

@@ -418,6 +418,7 @@ Only main chapters:

<p>
&nbsp;&nbsp; <a href="https://www.torproject.org/"><b>TOR Browser</b></a> - protect your privacy and defend yourself against network surveillance and traffic analysis.<br>
&nbsp;&nbsp; <a href="https://ungoogled-software.github.io/"><b>Ungoogled Chromium</b></a> - a lightweight approach to removing Google web service dependency.<br>
</p>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dnf

@Majikmikewrightedu
Copy link

ffmpeg -hwaccel auto -y -i "/storage/emulated/0/Android/data/com.silentlexx.ffmpeggui/files/sample.mp4" -c:v libopenh264 -q:v 5 -c:a aac -ab 128k -ar 44100 "/storage/emulated/0/Download/sample.mp4"

ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 4.9.x (GCC) 20150123 (prerelease)
configuration: --enable-gpl --enable-nonfree --disable-indev=v4l2 --disable-protocol='udp,udplite' --enable-libmp3lame --enable-libopenh264 --enable-pthreads --enable-filters --enable-libvo-amrwbenc --disable-network --prefix=/home/silentlexx/AndroidstudioProjects/ffmpeg/ffmpeg/build/arm64-api21-r13b --sysroot=/home/silentlexx/Android/android-ndk-r13b/platforms/android-21/arch-arm64 --arch=arm64 --disable-shared --enable-static --enable-pic --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffnvcodec --disable-avdevice --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-symver --cross-prefix=/home/silentlexx/Android/android-ndk-r13b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --target-os=android --enable-cross-compile --pkg-config-flags=--static --extra-libs='-lgnustl_static -lm -lpng -l:libz.so -lpthread' --enable-asm --enable-neon --disable-runtime-cpudetect --enable-small --enable-version3
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/com.silentlexx.ffmpeggui/files/sample.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
creation_time : 2010-03-20T21:29:11.000000Z
encoder : HandBrake 0.9.4 2009112300
Duration: 00:00:05.57, start: 0.000000, bitrate: 551 kb/s
Stream #0:00x1: Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 560x320, 465 kb/s, 30 fps, 30 tbr, 90k tbn (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
vendor_id : [0][0][0][0]
encoder : JVT/AVC Coding
Stream #0:10x2: Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 83 kb/s (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libopenh264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libopenh264 @ 0xb400007e381096e0] [OpenH264] this = 0x0xb400007d68104090, Warning:layerId(0) doesn't support profile(578), change to UNSPECIFIC profile
[libopenh264 @ 0xb400007e381096e0] [OpenH264] this = 0x0xb400007d68104090, Warning:bEnableFrameSkip = 0,bitrate can't be controlled for RC_QUALITY_MODE,RC_BITRATE_MODE and RC_TIMESTAMP_MODE without enabling skip frame.
[libopenh264 @ 0xb400007e381096e0] [OpenH264] this = 0x0xb400007d68104090, Warning:Change QP Range from(0,51) to (12,42)
Output #0, mp4, to '/storage/emulated/0/Download/sample.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
encoder : Lavf60.3.100
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 560x320, q=2-31, 30 fps, 15360 tbn (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
vendor_id : [0][0][0][0]
encoder : Lavc60.3.100 libopenh264
Side data:
cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: N/A
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 128 kb/s (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
vendor_id : [0][0][0][0]
encoder : Lavc60.3.100 aac
frame= 0 fps=0.0 q=-0.0 size= 0kB time=00:00:00.06 bitrate= 5.7kbits/s speed=0.434x
frame= 40 fps=0.0 q=-0.0 size= 0kB time=00:00:01.30 bitrate= 0.3kbits/s speed=1.97x
frame= 78 fps= 67 q=-0.0 size= 256kB time=00:00:02.60 bitrate= 806.7kbits/s speed=2.23x
frame= 120 fps= 72 q=-0.0 size= 512kB time=00:00:03.96 bitrate=1056.9kbits/s speed=2.38x
frame= 159 fps= 73 q=-0.0 size= 768kB time=00:00:05.31 bitrate=1183.7kbits/s speed=2.44x
frame= 166 fps= 73 q=-0.0 Lsize= 826kB time=00:00:05.54 bitrate=1219.9kbits/s speed=2.45x
video:733kB audio:87kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.724037%
[aac @ 0xb400007e3810e030] Qavg: 310.816

@Fe1777
Copy link

Fe1777 commented Jun 5, 2024

ffmpeg -hwaccel auto -y -i "/storage/emulated/0/Android/data/com.silentlexx.ffmpeggui/files/sample.mp4" -c:v libopenh264 -q:v 5 -c:a aac -ab 128k -ar 44100 "/storage/emulated/0/Download/sample.mp4"

ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 4.9.x (GCC) 20150123 (prerelease)
configuration: --enable-gpl --enable-nonfree --disable-indev=v4l2 --disable-protocol='udp,udplite' --enable-libmp3lame --enable-libopenh264 --enable-pthreads --enable-filters --enable-libvo-amrwbenc --disable-network --prefix=/home/silentlexx/AndroidstudioProjects/ffmpeg/ffmpeg/build/arm64-api21-r13b --sysroot=/home/silentlexx/Android/android-ndk-r13b/platforms/android-21/arch-arm64 --arch=arm64 --disable-shared --enable-static --enable-pic --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffnvcodec --disable-avdevice --disable-debug --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-symver --cross-prefix=/home/silentlexx/Android/android-ndk-r13b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android- --target-os=android --enable-cross-compile --pkg-config-flags=--static --extra-libs='-lgnustl_static -lm -lpng -l:libz.so -lpthread' --enable-asm --enable-neon --disable-runtime-cpudetect --enable-small --enable-version3
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/emulated/0/Android/data/com.silentlexx.ffmpeggui/files/sample.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
creation_time : 2010-03-20T21:29:11.000000Z
encoder : HandBrake 0.9.4 2009112300
Duration: 00:00:05.57, start: 0.000000, bitrate: 551 kb/s
Stream #0:00x1: Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 560x320, 465 kb/s, 30 fps, 30 tbr, 90k tbn (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
vendor_id : [0][0][0][0]
encoder : JVT/AVC Coding
Stream #0:10x2: Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 83 kb/s (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libopenh264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libopenh264 @ 0xb400007e381096e0] [OpenH264] this = 0x0xb400007d68104090, Warning:layerId(0) doesn't support profile(578), change to UNSPECIFIC profile
[libopenh264 @ 0xb400007e381096e0] [OpenH264] this = 0x0xb400007d68104090, Warning:bEnableFrameSkip = 0,bitrate can't be controlled for RC_QUALITY_MODE,RC_BITRATE_MODE and RC_TIMESTAMP_MODE without enabling skip frame.
[libopenh264 @ 0xb400007e381096e0] [OpenH264] this = 0x0xb400007d68104090, Warning:Change QP Range from(0,51) to (12,42)
Output #0, mp4, to '/storage/emulated/0/Download/sample.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomavc1
encoder : Lavf60.3.100
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 560x320, q=2-31, 30 fps, 15360 tbn (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
vendor_id : [0][0][0][0]
encoder : Lavc60.3.100 libopenh264
Side data:
cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: N/A
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 128 kb/s (default)
Metadata:
creation_time : 2010-03-20T21:29:11.000000Z
vendor_id : [0][0][0][0]
encoder : Lavc60.3.100 aac
frame= 0 fps=0.0 q=-0.0 size= 0kB time=00:00:00.06 bitrate= 5.7kbits/s speed=0.434x
frame= 40 fps=0.0 q=-0.0 size= 0kB time=00:00:01.30 bitrate= 0.3kbits/s speed=1.97x
frame= 78 fps= 67 q=-0.0 size= 256kB time=00:00:02.60 bitrate= 806.7kbits/s speed=2.23x
frame= 120 fps= 72 q=-0.0 size= 512kB time=00:00:03.96 bitrate=1056.9kbits/s speed=2.38x
frame= 159 fps= 73 q=-0.0 size= 768kB time=00:00:05.31 bitrate=1183.7kbits/s speed=2.44x
frame= 166 fps= 73 q=-0.0 Lsize= 826kB time=00:00:05.54 bitrate=1219.9kbits/s speed=2.45x
video:733kB audio:87kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.724037%
[aac @ 0xb400007e3810e030] Qavg: 310.816

This FFmpeg command is being used to convert an MP4 video file with specific video and audio encoding settings. Let's go through each aspect to ensure understanding and to identify any areas for potential improvement or issues:

Command Breakdown

ffmpeg -hwaccel auto -y -i "/storage/emulated/0/Android/data/com.silentlexx.ffmpeggui/files/sample.mp4" -c:v libopenh264 -q:v 5 -c:a aac -ab 128k -ar 44100 "/storage/emulated/0/Download/sample.mp4"
  1. FFmpeg Invocation:

    • ffmpeg: This is the command to run the FFmpeg program.
  2. Hardware Acceleration:

    • -hwaccel auto: This option enables hardware acceleration which can speed up the encoding/decoding process if supported by the hardware.
  3. Overwrite Output:

    • -y: This option forces the overwriting of the output file if it already exists.
  4. Input File:

    • -i "/storage/emulated/0/Android/data/com.silentlexx.ffmpeggui/files/sample.mp4": Specifies the input file path.
  5. Video Encoding:

    • -c:v libopenh264: Uses the libopenh264 codec for video encoding.
    • -q:v 5: Sets the video quality scale. The range for H.264 encoding is 0 (best quality) to 51 (worst quality). Here, 5 specifies a fairly high-quality setting.
  6. Audio Encoding:

    • -c:a aac: Uses the aac codec for audio encoding.
    • -ab 128k: Sets the audio bitrate to 128 kbps.
    • -ar 44100: Sets the audio sampling rate to 44.1 kHz.
  7. Output File:

    • "/storage/emulated/0/Download/sample.mp4": Specifies the output file path.

Log Analysis

The command has successfully processed the input file and created the output file with the specified settings. Here are some notable details and warnings from the output log:

  1. Input Metadata:

    • Duration: 5.57 seconds.
    • Video Stream: H.264 codec, 560x320 resolution, 30 fps.
    • Audio Stream: AAC codec, 48 kHz, mono, 83 kb/s.
  2. Encoding Warnings and Details:

    • [libopenh264 @ 0xb400007e381096e0] Warning:layerId(0) doesn't support profile(578), change to UNSPECIFIC profile: Indicates a mismatch in the layer profile, which was adjusted automatically.
    • [libopenh264 @ 0xb400007e381096e0] Warning:bEnableFrameSkip = 0,bitrate can't be controlled for RC_QUALITY_MODE,RC_BITRATE_MODE and RC_TIMESTAMP_MODE without enabling skip frame.: Suggests that bitrate control isn't possible without enabling frame skipping.
    • [libopenh264 @ 0xb400007e381096e0] Warning:Change QP Range from(0,51) to (12,42): Indicates an adjustment in the Quantization Parameter (QP) range for encoding.
  3. Performance:

    • The process reached 166 frames at approximately 73 fps with an overall bitrate of around 1220 kbps.

Potential Improvements and Considerations

  1. Warnings::

    • Bitrate Control: The warning about the bEnableFrameSkip flag suggests that you may not achieve precise bitrate control. If exact bitrate control is necessary, consider looking into how to enable skipping frames or changing the rate control mode.
  2. Output Quality:

    • Video Quality (-q:v 5): The quality setting seems reasonable, but you might need to adjust it based on the desired output quality and file size.
  3. Compatibility:

    • Ensure that the libopenh264 library is correctly set up on your system. The warning message about the profile mismatch doesn't seem critical but could be relevant depending on your use case.
  4. Audio Settings:

    • The audio settings (bitrate and sample rate) are fairly standard. However, if quality isn't as expected, tweaking these values could help.
  5. File Paths:

    • Since this command runs on an Android environment, ensure the file paths and permissions are correct.

Conclusion

The command execution seems successful, considering the final output file was created correctly. The slight warnings and adjustments in the encoder's settings do not appear to have significantly impacted the final result. However, based on the log, if you need precise control over the bitrate or other parameters, you may need to explore additional FFmpeg options or adjust your current command setup accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants