Giter VIP home page Giter VIP logo

Comments (25)

chiefMarlin avatar chiefMarlin commented on August 25, 2024 1

Its worth trying it, you are suggesting that this be added to tje Onlyremuxmp4 parameters ?
if globalConfig.Video.OnlyRemuxMp4 {
cmd = exec.Command("ffmpeg", "-i", inputFile, "-c", "copy", outputFile)

from firescrew.

chiefMarlin avatar chiefMarlin commented on August 25, 2024 1

You can try
https://transfer.sh

from firescrew.

wehbs avatar wehbs commented on August 25, 2024 1

BOOM! Solid!

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

if globalConfig.Video.OnlyRemuxMp4 {
cmd = exec.Command("ffmpeg", "-i", inputFile, "-c", "copy", "-hls_segment_type", "fmp4", outputFile)
}

I think that should do it.

from firescrew.

chiefMarlin avatar chiefMarlin commented on August 25, 2024

This has been implemented in the pre release i mentioned in the other issue

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

Ok, so I tried it out but it still didn't work. Spent some time messing with ffmpeg and I finally got it to work. Can you please change to:

if globalConfig.Video.OnlyRemuxMp4 {
cmd = exec.Command("ffmpeg", "-i", inputFile,
"-c:v", "copy",
"-c:a", "aac",
"-tag:v", "hvc1",
"-movflags", "+faststart",
"-hls_segment_type", "fmp4",
outputFile)
}

from firescrew.

chiefMarlin avatar chiefMarlin commented on August 25, 2024

When i run ffmpeg -i a.ts -c:v copy -c:a aac -tag:v hvc1 -movflags +faststart -hls_segment_type fmp4 b.mp4
i get an error
Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 130 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help [mp4 @ 0x12ef068a0] Tag hvc1 incompatible with output codec id '27' (avc1) [out#0/mp4 @ 0x600000a600c0] Could not write header (incorrect codec parameters ?): Invalid data found when processing input [aost#0:1/aac @ 0x12ef07ef0] Error initializing output stream: [aac @ 0x12ef081c0] Qavg: nan Conversion failed!

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

Seems like maybe because -tag:v hvc1 only works on HEVC (h265)

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

So maybe this should be another option in the config for h265 users?

from firescrew.

chiefMarlin avatar chiefMarlin commented on August 25, 2024

Yup, im gonna see if i can dynamically get this info

from firescrew.

chiefMarlin avatar chiefMarlin commented on August 25, 2024

So when stream info is pulled, it gets the codec name, for me it shows up as 'h264' when "printDebug": true, is enabled in config
i am assuming for your stream it would show h265 or something similar ?
If thats the case then i can use that to determine ffmpeg options

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

"codec_name": "hevc",
"codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",

from firescrew.

chiefMarlin avatar chiefMarlin commented on August 25, 2024

Thanks,
You can try it here
https://github.com/8ff/firescrew/releases/download/onnx_test_release/firescrew.darwin.arm64

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

Ok, so it's improved, in that it allows me to press play and plays the audio but still no video in Safari. However, if I open the .mp4 file directly from drive with either quicktime or safari directly it does now play when it wouldn't before. When I download said video through the web gui it downloads a .TS version that also does not play in Safari or quicktime.

from firescrew.

chiefMarlin avatar chiefMarlin commented on August 25, 2024

Are you able to provide a sample video file ?

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

Yes, here you go:

https://tempcloud.cf/

file name: firescrew_sample
number: 420

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

sorry that seems broken, will try elsewhere

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

https://send-anywhere.com/

345270

from firescrew.

chiefMarlin avatar chiefMarlin commented on August 25, 2024

https://send-anywhere.com/

345270

Im getting
The key is invalid or has expired

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

Nice will bookmark the one you suggested, and will upload to it now.

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

https://transfer.sh/a1N58gRGqP/clip_KvesHSA9qZzCpjY.mp4

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

New revelation, it does work on mobile safari.. lol.. Which is really what matters the most in this scenario since it also still works very well in Chrome.

from firescrew.

chiefMarlin avatar chiefMarlin commented on August 25, 2024

Thanks for that, i think the issue was the filename was being requested with .ts extension but later served with as mp4
i have fixed it (atleast on my safari 😄 )
https://github.com/8ff/firescrew/releases/download/onnx_test_release/firescrew.darwin.arm64

from firescrew.

chiefMarlin avatar chiefMarlin commented on August 25, 2024

Let me know if i can close this

from firescrew.

wehbs avatar wehbs commented on August 25, 2024

good to close 💪

from firescrew.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.