19:31
I have a *.mp4 video file(MPEG4 video codec) and I am trying to convert this to a H264 video codec format(raw h.264 format) using ffmpeg on Linux(Version - FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard,) using command line as shown below,
ffmpeg -i input .mp4 output.h264
but I get an error saying -
Unsupported codec for output stream #0.0
Then when i try this option:
ffmpeg -i input .mp4 -formats h264 output.h264
it still does not work, and gives -
Seems stream 0 (...)
18:08
I use ffmpeg to grab TS streams of PTS and DTS, I did not find a command to grab PCR.
Can FFMPEG tools capture the PCR and PTS values in the realtime streaming TS?
We need to use a tool to grab the PCR and PTS values of the real-time streaming TS for comparison.
14:38
I'm reading frames from RTSP stream, which produces raw h264 frames. I'm using RtspClientSharp library, so the code looks like this
var uri = new Uri("rtsp://x.x.x.x/onvif/media?profile=Profile1");
var credentials = new NetworkCredential("xxxxx", "xxxxx");
var rtspClient = new RtspClient(new ConnectionParameters(uri, credentials));
rtspClient.FrameReceived += (sender, frame) =>
if (frame.Type is FrameType.Audio) return;
Console.WriteLine($"Received frame of type frame.GetType().Name at frame.Timestamp");
;
await (...)
09:43
Add-Type -AssemblyName System.Windows.Forms
$ffmpegPath = "C:\\ffmpeg\\bin\\ffmpeg.exe"
$outputFilePrefix = "output"
$recordDuration = 10
$global:ffmpegProcess = $null
$global:recordingInProgress = $false
function Start-Recording
$global:recordingInProgress = $true
$recordIndex = 1
while ($global:recordingInProgress)
$outputFile = "$outputFilePrefix$recordIndex.mp4"
$processStartInfo = New-Object System.Diagnostics.ProcessStartInfo
$processStartInfo.FileName = $ffmpegPath
$processStartInfo.Arguments = "-f gdigrab (...)
06:45
Example code:
from moviepy.editor import *
clip = VideoFileClip('video.mp4')
clip.write_videofile('video2.mp4', fps=30)
After showing the following messages, showing that the video is being built and written,
Moviepy - Building video video2.mp4.
Moviepy - Writing video video2.mp4
The following error message occurs:
Traceback (most recent call last):
File "", line 1, in
File "C:\\Users\\User\\Anaconda3\\lib\\site-packages\\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File (...)
07:13
from the stream i am getting metadata as below output
Input #0, mpegts, from 'stream_capture1.ts':
Duration: 20:56:00.19, start: 21971.910678, bitrate: 5 kb/s
Program 1
Metadata:
service_name : CS11G
service_provider: ABC
Stream #0:1[0x70]: Video: hevc (Rext) ([36][0][0][0] / 0x0024), yuv422p10le(tv, progressive), 1920x540 [SAR 1:2 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0:2[0x71]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp, 379 kb/s
Stream #0:3[0x72]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, (...)
01:27
I am trying to stream a video file with fluent-ffmpeg. But i could't do it.
Here is my code
var filePath = null;
filePath = "video.mp4";
var stat = fs.statSync(filePath);
var range = req.headers.range;
var parts = range.replace(/bytes=/, "").split("-");
var partialstart = parts[0];
var partialend = parts[1];
var start = parseInt(partialstart, 10);
var end = partialend ? parseInt(partialend, 10) : total-1;
var chunksize = (end-start)+1;
var file = fs.createReadStream(filePath, start: start, end: (...)