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.
Questions tagged [muxer]
70 questions
2
votes
1 answer
h264 stream muxing: duration of resulting file is shorter than recording time
I am muxing H264 stream from v4l device to avi container using the approach outlined in the following stackoverflow question
The resulting files are playable, but for (lets say) 30 second recording the resulting file is only 10 seconds length. In…

user466540
- 81
- 1
- 3
2
votes
0 answers
What are supported ffmpeg rtp_mpegts Muxer options? (mpegts Muxer options are ignored)
I created a UDP stream with -f mpegts and some options like -mpegts_transport_stream_id.
I received the stream with "StreamXpert - Real-time stream analyzer" that shows all options are in the output. See my ffmpeg parameters and the StreamXpert at…

drake7
- 952
- 7
- 20
2
votes
5 answers
java.lang.OutOfMemoryError: Java heap space
My application is deployed on a cluster environment. Recently the server went down with the following stacktrace. It doesn't seem to be coming from the code. It was running all right until recently when this error pop up. No major changes were made…

Dave
- 147
- 2
- 3
- 6
2
votes
1 answer
How to replace avcodec_encode_audio2()/avcodec_encode_video2() with avcodec_send_frame() and avcodec_receive_packet()?
In muxing example in link am attempting to use avcodec_send_frame() and avcodec_receive_packet() instead of avcodec_encode_audio2()/avcodec_encode_video2() as they are deprecated. In
352 ret = avcodec_encode_audio2(c, &pkt, frame,…

Optic_Ray
- 63
- 2
- 8
2
votes
1 answer
C/C++ FLV muxer encapsulating H.264 not working as expected
I'm trying to make a FLV muxer. And I'm started to test on a h264 stream I capture from my camera (c920). After encoding the .flv file, it doesn't play correctly.
First I tried to find NALs in h264 searching for the pattern 0x00 0x00 0x00 0x01...…

ARibeiro
- 94
- 7
2
votes
1 answer
Microsoft FileSink Mpeg4
I have 2 questions
1)How do I write raw data to a file sinker. I am trying to mux.
2)How do I make sure the sinked data is not written to a file but to a memory buffer
So in Detail:
I am trying to use windows MPEG-4 File Sink to write some Intel…

Evren Bingøl
- 1,306
- 1
- 20
- 32
2
votes
0 answers
Audio/Video encoding with ffmpeg
Audio/Video encoding with ffmpeg:
I am trying to create an avi file with encoded video and audio, using ffmpeg.
First, I create the file:
//define BITRATE 10000000
//define GOP 300
//define FPS 60
…

Vroz
- 21
- 2
2
votes
1 answer
H.264 muxing to MP4 from CCTV (HW) encoder using ffmpeg library in C / C++, how to fetch AVCodecContext::extradata
I am trying to mux a video to mp4 file from packets received via SDK API of CCTV camera. The stream from CCTV seems to consist of packets of h264 I and P-frames only (no B-frames).
The problem is, that the file is not playable in Daum PotPlayer when…

Dom
- 532
- 1
- 9
- 23
2
votes
2 answers
Merge 2 video files with their audio in a single file side by side
I need to merge 2 video files along with their audio in a single file, side by side.
I am able to merge 2 video files in single file but it's using the audio from first video file only, whereas I need to merge the audio of the second file as…

meghana
- 907
- 1
- 20
- 45
2
votes
3 answers
Problems of using MediaCodec.getOutputFormat() for an encoder in Android 4.1/4.2 devices
I'm trying to use MediaCodec to encode frames (either by camera or decoder) into a video.
When processing the encoder output by dequeueOutputBuffer(), I expect to receive the return index = MediaCodec.INFO_OUTPUT_FORMAT_CHANGED, so I can call…

Mark
- 305
- 5
- 17
2
votes
1 answer
Android MediaMuxer illegalstateexception failed to stop the muxer mMediaMuxer.stop()
I am having problems stopping the MediaMuxer.
Pretty much have followed fadden's example all the way, except I am using audio, so I am not 100% sure the audio and video tracks line up yet. This might be the problem.
When I hit the breakpoint for…

HPP
- 1,074
- 1
- 13
- 28
2
votes
3 answers
Media Codec API with Input as Surface not working with H264 encoder (bigflake example code)
I am trying to run the example code of Media Codec API with H264 Encoder on 4.3 explained in following link of bigflake
http://bigflake.com/mediacodec/CameraToMpegTest.java.txt
I have faced following problem.
-> In H264 encoder code the color…

Nehal Shah
- 93
- 2
- 11
2
votes
0 answers
Video recording codec/muxer pack
We are developing a multimedia application and we need an ability to save video recording from webcam to the hard drive. Currently, we are using WebM VP8 codec and muxer DShow filters.
We want to add ability to save recording in different containers…

Dalamber
- 1,009
- 1
- 12
- 32
1
vote
0 answers
Q: Gstreamer mp4mux issue with encodebin and concat pipeline
I've been trying out this fancy encodebin gstreamer element lately. Simple examples work pretty well but I have some issues with more complex pipelines. I'm using gst-launch-1.0 version 1.18.4 on msys. My workflow is as follows:
Firstly I create…

rafauu
- 101
- 4
1
vote
1 answer
Getting video duration with ffmpeg null muxer. With or without stream copy?
Because ffprobe is sometimes reporting invalid values for video duration, one recommanded way to get accurate video duration we often find on the web for this specific problem is to decode the file with ffmpeg null muxer and parse the "time=..."…

AoEmaster
- 139
- 1
- 2
- 7