Hi,
is there anybody who can help me with video encoding? I want to encode video to MPEG-TS with null packet (PID 0x1fff). Anybody know how to do this? Is it possible?
My current command:
ffmpeg -i audio.mp2 -i video.mpg -s 720x576 -minrate 3200k -maxrate 3200k -bufsize 3200k -vcodec libx264 -vpre libx264-iptv -acodec copy -r 25 -f mpegts out.mpg
+ Reply to Thread
Results 1 to 11 of 11
-
-
mpg isn't a transport stream container. You should use out.ts
About null packets...
AFAIK, there is no setting for that but I once looked in the FFmpeg source code where null packets are mentioned so I suppose they are inserted automatically (not sure).
I would say, just try and see if the clip is accepted. -
Thanks for fast reply
. How can I check it? Is there any app to check null packets in file?
-
Thank you Bonie. Now it looks better
, but I have another problem. I want to mux two files: video.h264 (720x576, 25fps, 2.5Mbps CBR) and audio.mp2 (192kbps, 48kHZ) to MPEGTS 3.2Mbps CBR.
Mediainfo information from out.ts file muxed with tsMuxeR:
Overall bit rate : 3 200 Kbps
Maximum Overall bit rate : 35.5 Mbps
I need to mux it with CBR. Second thing is NIT table. I want to set only PAT and PMT nothing else.
Please help. -
@adismsc
i do not have much experience or deep knowledge about DVB - Transport stream.
i do not think that any free encoder or muxer will serve your purpose for NIT Table. PAT and PMT.
Search for NTT HVE9100 H.264 and MPEG-2 Broadcast Encoder.
Last Q?
does ffmpeg serve your purpose for NIT Table. PAT and PMT?
coz they have specific broadcast version too!!! -
My specification is listed below:
Elementary stream bitrate [kbit/s]
video: 2575
audio: 2 x 192
subtitle: -
PAT/PMT: -
Stuffing: -
Component TS bitrate [kbit/s]
video: 2652
audio: 395
subtitle: 45
PAT/PMT: 45
Stuffing: 62
Total: 3200
Additional required components:
PAT
PMT
Null packets
without others:
NIT, SDT, EIT, etc.
I have two files: video.h264 (720x576, 25fps, 2.5Mbps CBR) and audio.mp2 (192kbps, 48kHZ). How can I mux it with this spec? Can I? -
OpenCaster http://www.avalpa.com/the-key-values/15-free-software/33-opencaster
AFAIR TS in FFMPEG is not very well implemented (some people says that it is broken) -
No I have another problem
This is how my current script looks like:
Code:vcodec="h264" acodec="mpga" bitrate="2500" arate="192" samplerate=48000 ext="mpg" mux="ts" vlc="/usr/bin/vlc" fmt="mpg" dst="/home/adam/test/" for a in *$fmt; do $vlc -I dummy -vvv "/home/adam/test/" --sout "#transcode{vcodec=$vcodec,venc=x264{profile=main,level=3.0,hrd=cbr,bframes=2},vb=$bitrate,acodec=$acodec,ab=$arate,samplerate=$samplerate,channels=2}:standard{mux=$mux,dst=\"$dst$a.$ext\",ac$ done
Similar Threads
-
libfaac encoding with ffmpeg
By chicken264 in forum Video ConversionReplies: 31Last Post: 20th Dec 2012, 08:04 -
ffmpeg output 2gb limit? Is there one? ffmpeg stops encoding h264 @ 2gb
By BrainiakZ in forum Video ConversionReplies: 14Last Post: 30th Mar 2011, 12:04 -
how mpegts works
By alntke in forum Newbie / General discussionsReplies: 2Last Post: 15th Mar 2011, 11:36 -
Convert MPEGTS to MP4 and Maintain Sync
By hillbilly1980 in forum Video ConversionReplies: 0Last Post: 18th Oct 2010, 02:22 -
ffmpeg encoding help
By guitarscn in forum Newbie / General discussionsReplies: 1Last Post: 21st Apr 2008, 16:11