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
0
votes
0 answers

Failed to instantiate extractor in MediaExtractor android

the media extractor works perfectly for many other versions. But when doing on android 26 it throws java.io.IOException: Failed to instantiate extractor. This is how it is being set. The videoFileDescriptor is perfectly valid. The error is in the…
simplegalaxy
  • 135
  • 1
  • 2
  • 6
0
votes
1 answer

Glitchy audio or broken video in fragmented MP4

I'm working on small C++ library for muxing audio and video. This is basically a facade for FFMPEG functions and structures. The code is here with minimal reproduction testing code here and as of now it seems like it's working fine... almost. For…
PookyFan
  • 785
  • 1
  • 8
  • 23
0
votes
0 answers

Stop() called but track is not started

Here is my logcat: System.err:java.lang.IllegalStateException: Failed to add the track to the muxer W/System.err: at android.media.MediaMuxer.nativeAddTrack(Native Method) W/System.err: at…
0
votes
1 answer

Can't remux MP4 into MP4 with FFmpeg (Could not find tag for codec none in stream #1)

I'm trying to create a copy of an MP4 with all streams (and metadata) except video. However, for some reason, I get a codec error even though both input and output are mp4. I've tried mapping everything, but with -vn: ffmpeg -i input.mp4 -vn…
nmkd
  • 306
  • 3
  • 9
0
votes
1 answer

FFmpeg output video file much smaller than uncompressed input audio file, using option to preserve original audio quality

I attempt to create a video slideshow from a number of image files and an audio file in 2 steps: Create a temporary video file from a sequence of image files Add an audio file to the temporary video file with a delay of 5 seconds The audio file is…
Jan
  • 3
  • 2
0
votes
1 answer

GStreamer qtmux/mp4mux command to code converting

I'm using qtmux to merge audio and video to mp4 container file with GStreamer. My pipeline looks like: gst-launch-1.0 autovideosrc ! x264enc ! queue ! qtmux0. autoaudiosrc! wavenc ! queue ! qtmux ! filesink location=file.mp4 videotestsrc --> x264enc…
Jimmy
  • 147
  • 1
  • 11
0
votes
2 answers

Realtime Muxing of videos

My problem basically comes from me having 2 different streams for videoplayback and having to mux them realtime in memory. One for video, and another for audio. My goal is to create a proxy which can mux 2 different webm streams from their URLs,…
0
votes
1 answer

Encode and mux GStreamer pipeline into MPEG-TS

I'm trying to encode and mux GESPipeline into MPEG-TS for streaming over UDP. The pipeline plays fine on screen in preview mode. My attempt, essentially: GstEncodingContainerProfile *prof; GstCaps *caps; caps =…
sa7
  • 160
  • 8
0
votes
2 answers

Filter word in a string in batch script

I created a batch script for windows that I use for mux mkv files. When launch this command: ffprobe -v 0 -select_streams s -show_entries stream=index:disposition=default -of compact=nk=0 file.mkv | findstr disposition:default=1 Output…
0
votes
2 answers

How to write a video stream containing B-frame and no DTS to a MP4 container?

I want to save a h264 video stream received from a RTSP source to a MP4 container. Not like other questions asked on SO, here the challenges I face are: The stream contains B frames. The stream has only PTS given by the RTP/RTCP. Here is the…
SteveH
  • 233
  • 5
  • 15
0
votes
0 answers

FFmpeg concat demuxer and handling encrypted chunks

I'm trying to process a remote m3u8 playlist containing (a possibly encrypted) HLS stream. The output I'm looking for is a mp4 container with MPEG-4 inside. The playlist is a result of an ended live stream and may contain EXT-X-DISCONTINUITY tags.…
0
votes
1 answer

Video is much faster than audio when muxed in GStreamer

I am trying to learn to record X11 windows' contents to do game screencasts for Youtube. This should be a fairly trivial task, but it already ate a full evening. Now I have learned a bit about muxing and queueing (using gst-launch), but the problem…
alamar
  • 18,729
  • 4
  • 64
  • 97
0
votes
1 answer

Writing Tee Pseudo muxer of FFMPEG by C++ code

Is there anyone who knows how to use Tee pseudo muxer of ffmpeg by c++ code. Kindly guide in doing this. I am working on getting multiple outputs of muxed transport stream (ts) data. I am able to mux aac and h264 in ts. But i have to get muxed ts…
0
votes
0 answers

HLS stream created by ffmpeg pauses every 5 seconds

I am having problem remuxing an H264/AAC encoded file. There is a file on a server with H264-encoded video with AAC audio (example: input_video.mp4). An I-frame exists every 5 sec video. It is read by ffmpeg splitter/muxer application which…
0
votes
1 answer

MediaMuxer sometimes resulting in black video

I am using AndroidEncoder to produce a H264 video with AAC audio that I send both over an RTMP network and also store locally in a MP4 file using MediaMuxer. Broadcasting is working nicely over RTMP, but when saving locally the resulting video is…
M Rajoy
  • 4,028
  • 14
  • 54
  • 111