Comments (25)
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.
You can try
https://transfer.sh
from firescrew.
BOOM! Solid!
from firescrew.
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.
This has been implemented in the pre release i mentioned in the other issue
from firescrew.
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.
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.
Seems like maybe because -tag:v hvc1 only works on HEVC (h265)
from firescrew.
So maybe this should be another option in the config for h265 users?
from firescrew.
Yup, im gonna see if i can dynamically get this info
from firescrew.
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.
"codec_name": "hevc",
"codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",
from firescrew.
Thanks,
You can try it here
https://github.com/8ff/firescrew/releases/download/onnx_test_release/firescrew.darwin.arm64
from firescrew.
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.
Are you able to provide a sample video file ?
from firescrew.
Yes, here you go:
file name: firescrew_sample
number: 420
from firescrew.
sorry that seems broken, will try elsewhere
from firescrew.
345270
from firescrew.
345270
Im getting
The key is invalid or has expired
from firescrew.
Nice will bookmark the one you suggested, and will upload to it now.
from firescrew.
https://transfer.sh/a1N58gRGqP/clip_KvesHSA9qZzCpjY.mp4
from firescrew.
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.
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.
Let me know if i can close this
from firescrew.
good to close 💪
from firescrew.
Related Issues (10)
- Fast moving person or vehicle is left out HOT 4
- curl: Remote file name has no length! HOT 1
- No HI res streams found at rtsp://... HOT 10
- default config.json have illegal symbol
- [ERROR] Error getting stream info: ffprobe: exit status 1 HOT 10
- Error running objectPredict: operation timed out HOT 76
- Minor: `homeassitant` tag is mispelled for repo HOT 2
- Audio Detection HOT 1
- Closing out the modal while video is playing continues to play the video audio in the background HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firescrew.