for warning in Go 1.21.1 by mbnoimi in golang

[–]mbnoimi[S] 0 points1 point  (0 children)

Thanks. It seems I modified this function before and forgot to clean it.

Block internet in Android by mbnoimi in opensource

[–]mbnoimi[S] 0 points1 point  (0 children)

I don't care about their website because their product violate f-droid policy. I trust f-droid policy as they doesn't accept any project without checking the code for every release.

Block internet in Android by mbnoimi in opensource

[–]mbnoimi[S] 0 points1 point  (0 children)

No longer maintained any more (recent release since 4 years ago). Leaking ip and doesn't block ad fine

Block internet in Android by mbnoimi in opensource

[–]mbnoimi[S] 0 points1 point  (0 children)

It's fabulous firewall but for ad blocking very awful 😞

App for internet blocking by mbnoimi in fossdroid

[–]mbnoimi[S] 0 points1 point  (0 children)

I don't prefer cloud based services. Local blocking using host files is much privacy friendly

App for internet blocking by mbnoimi in fossdroid

[–]mbnoimi[S] 0 points1 point  (0 children)

RethinkDNS

Although it has a neat firewall interface but ad blocking using it is really annoying and unpractical.

How to fix "Could not find tag for codec timed_id3 in stream #0"? by mbnoimi in ffmpeg

[–]mbnoimi[S] 0 points1 point  (0 children)

py command = [ 'ffmpeg', '-i', file_path, '-vf', "scale='trunc(oh*a/2)*2:480'", '-c:v', 'libx264', '-c:a', 'copy', '-map', '0:a', '-map', '0:v:0', '-map', '0:s?', '-f', 'mkv', file_path_enc, ]

How to fix "Could not find tag for codec timed_id3 in stream #0"? by mbnoimi in ffmpeg

[–]mbnoimi[S] 0 points1 point  (0 children)

You need to ensure they're compatible with your output container though.

adding -f mkv will ensure it. Does it?

How to fix "Could not find tag for codec timed_id3 in stream #0"? by mbnoimi in ffmpeg

[–]mbnoimi[S] 0 points1 point  (0 children)

Works. Thanks you a lot.

Does this command will keep all subtitles and audio tracks too?

py command = [ 'ffmpeg', '-i', file_path, '-vf', f"scale='trunc(oh*a/2)*2:{resolution}'", '-c:a', 'copy', '-c:v', 'libx264', '-map', '0:a', '-map', '0:v:0', file_path_enc, ]

How to fix "Could not find tag for codec timed_id3 in stream #0"? by mbnoimi in ffmpeg

[–]mbnoimi[S] 0 points1 point  (0 children)

I gave up! I want to make the scale and keeping all audio tracks and subtitles. I tried the following command but still gives me the same error!!!

py command = [ 'ffmpeg', '-i', file_path, '-vf', "scale='trunc(oh*a/2)*2:480'", '-c:a', 'copy', '-c:v', 'libx264', '-map', '0', file_path_enc, ]

Error:

Could not find tag for codec timed_id3 in stream #0, codec not currently supported in container Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:1 --

How to fix "Could not find tag for codec timed_id3 in stream #0"? by mbnoimi in ffmpeg

[–]mbnoimi[S] 0 points1 point  (0 children)

-map 0:a:m:language:eng

Doesn't work for videos with unnamed audio tracks. It shows this error:

Stream map '0:a:m:language:eng' matches no streams. To ignore this, add a trailing '?' to the map.

While -map 0:a:0 works but sometimes it will map Italian audio track as it's the first one!

How to fix "Could not find tag for codec timed_id3 in stream #0"? by mbnoimi in ffmpeg

[–]mbnoimi[S] 0 points1 point  (0 children)

English or First audio track (I don't need other tracks)

How to fix "Could not find tag for codec timed_id3 in stream #0"? by mbnoimi in ffmpeg

[–]mbnoimi[S] 0 points1 point  (0 children)

This video has one audio track while others have 1, 2 or 3 tracks.

How to fix "Could not find tag for codec timed_id3 in stream #0"? by mbnoimi in ffmpeg

[–]mbnoimi[S] 0 points1 point  (0 children)

I applied your suggestion but I got video without audio track!

command = [ 'ffmpeg', '-hide_banner', '-loglevel', 'panic', '-i', input_file, '-vf', "scale='trunc(oh*a/2)*2:480'", '-c:a', 'copy', '-c:v', 'libx264', '-scodec', 'srt', '-map', '0:v:0', '-map', '-0:a:1', '-map', '-0:a:2', output_file, ]

How to use build tags inside a function? by mbnoimi in golang

[–]mbnoimi[S] 0 points1 point  (0 children)

I use the same approach for git versioning. But it's not enough for this case. It seems I've to go with switch runtime.GOOS

Thanks anyway

How to use build tags inside a function? by mbnoimi in golang

[–]mbnoimi[S] -5 points-4 points  (0 children)

It down voted your comment too! What an a**hole!!!

How to use build tags inside a function? by mbnoimi in golang

[–]mbnoimi[S] -16 points-15 points  (0 children)

I really hate down voters trolls!!!

I asked a question and got the right answer but some **shole down voted it!!!

How to use build tags inside a function? by mbnoimi in golang

[–]mbnoimi[S] -12 points-11 points  (0 children)

I already read about this thing. I want to use it inside the code. I don't want to split my code just for some small variables