Hi all.
Hi all.
I am developing an application, capturing the MPEG-2 TS from the DVB-S device 
and saving its parts to a file according to a user-defined schedule.

File format - MPEG program stream. 
I don't have to decode and re-encode data, I only need to remux parts of the 
stream.

Input audio codec context has 
codec->codec_type == CODEC_TYPE_AUDIO
codec->codec_id == CODEC_ID_MP3
codec->sub_id == 2

How should I set the output->stream[1]->codec that it has the same parameters?

Currently I copy all fields from the input codec to the output. I've copied a 
code from ffmpeg.c

However, the dump_format shows

Output #0, dvd, to 'filename':
Stream #0.0: Video: mpeg2video, yuv420p, 720x576, q=2-31, 3409 kb/s, 25.00 tb(c)
Stream #0.1: Audio: 0x0000, 48000 Hz, stereo, 192 kb/s 

The file is saved, but av_interleaved_write_frame sometimes says that it has 
buffer underflow.

And the VLC player doesn't play any sound, only video, and hangs on my file.



_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to