Questions tagged [muxer]

Generic tag about the process of programmatic laying out multiple media streams in a single file or octet stream, so that they can be played in sync.

70 questions
1
vote
1 answer

How do I stream with grpc-web and use a REST API on the same port?

I have a server witten in Go that uses cmux to allow multiple protocols to run on the same port, but there's a limitation specified in the README saying that cmux matches the connection when it's accepted. For example, one connection can be either…
Bluskript
  • 235
  • 1
  • 5
  • 14
1
vote
0 answers

Best way to merge video and audio?

I want to merge video(.mp4) and audio(.wav, .pcm), video and audio has same lengh. What is the best way (fastest merging time)? muxer? ffmpeg?
bottlejin
  • 29
  • 4
1
vote
2 answers

Implement a simple MPEG-TS muxer using ffmpeg-lib

I have an application that records raw audio data in LPCM stored in a buffer. I would like to encapsulate the data in a transport stream and send that transport stream through UDP to a stream segmenter (according to HTTP Live Streaming…
Pierre P.
  • 1,055
  • 2
  • 14
  • 26
1
vote
0 answers

What Tee pseudo-muxer command line for multiple output ffmpeg works for output in mp4 and stream udp unicast?

I am using ffmpeg command line for getting multiple outputs with tee pseudo-muxer. Commands I have tried: Case 1- To muxed Video (video.h264) with Audio (audio.aac) in mp4 and send mpegts to udp unicast address: ffmpeg -i 'video.h264' -i "audio.aac"…
1
vote
0 answers

How to mux (intercept) net (tcp) sockets in node.js?

I want to look at headers on the first packet of a net socket connection and then decide what to do with it from there. TCP Example (works, but useless) This is useless because it doesn't solve my problem, it just demonstrates that, in theory, the…
coolaj86
  • 74,004
  • 20
  • 105
  • 125
1
vote
1 answer

MediaCodecMuxer encode video too slow

I am using MediaCodec Muxer to encode videos,but the process is too slow. Sometimes 60 seconds video, the encode process takes more than 90 seconds. The encode plan comes from ExtractDecodeEditEncodeMuxTest(BigFlake) and I interpret this example…
Yupeng Zhu
  • 23
  • 4
1
vote
1 answer

ffmpeg error: Data doesn't look like RTP packets, make sure the RTP muxer is used

I am trying to stream both video&audio from usbcam&mic throw ffmpeg over ffserver I got 2 errors: - ffmpeg seems functionning but showing "Data doesn't look like RTP packets, make sure the RTP muxer is used" - i can connect to ffserver only…
SOFuser
  • 134
  • 1
  • 10
1
vote
1 answer

FFMPEG - RTMP to HLS no audio output

I am currently developing a dynamic HLS segmenter for our livecam application. Therefor I catch the external RTMP stream and convert it into segments with ffmpeg. The following command works: ffmpeg -i…
DerHighland
  • 41
  • 1
  • 6
1
vote
3 answers

MP4 filewriter in android 4.1+

Starting from Android 4.1 (API level 16) MediaCodec APIs have been introduced. These APIs support Elementary stream Decoding & Encoding. Also MediaExtractor API will give elementary track details by analyzing Media streams. My Question is, I setup a…
1
vote
1 answer

Gstreamer mux, caps refused

I'm using the following pipeline (SIMPLIFIED) in Gstreamer OSS Build 0.10.7 on Win 7 x64: udpsrc ! application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96 ! gstrtpjitterbuffer latency=200 !…
0
votes
1 answer

MkvToolNix: Bat file / Batch file to mux pairs of videos together

Struggling for some time in that problem. I have a list of videos going this way, by pairs : magic.mkv magic-1.mkv food.mkv food-2.mkv wedding.mkv wedding-3.mkv etc. Each video has its pair, and the pair has a number that is incrementing every time.…
estevenin
  • 3
  • 3
0
votes
2 answers

Windows Media Player doesn't reproduce audio from file that was created with mp4box library

I am using the mp4box library to create a media file that includes video and audio tracks. I have set up my audio encoder output callback using the following code: if (encodingAudioTrack === null) { let encodingAudioTrackOptions = { …
0
votes
0 answers

Android MediaExtractor not removing ADTS headers from AAC stream. Or is it not its responsibility?

Android MediaExtractor not removing ADTS headers from AAC stream. I have AAC LC files with ADTS header and using MediaExtractor to get the audio frames. These frames are then fed to MediaMuxer to generate mp4 file. This mp4 also contains H264. I…
0
votes
0 answers

How can I implement h264 video stream encapsulation in flv format and push it using WebSocket in iOS using native lightweight code?

As the title, I am an iOS developer now, but I know nothing about the packaging of flv format, but there are no similar code cases in the community. Some are just some heavy third-party libraries based on rtmp or ffmpeg, so there is no lightweight…
0
votes
0 answers

How to embed additional metadata to a video file in libavcodec (FFmpeg C source code fork)

I'm extending an existing codec (Hap) inside ffmpeg library, adding some additional stuff to it (modifying FFmpeg code in my own fork of it) One of the things I'd like to do is to store a per-file maximum encoded packet size in some global…
leavittx
  • 87
  • 5