Ffmpeg command results in output contains no video stream error - ffmpeg

I'm trying to execute the following command:
ffmpeg -hide_banner -loglevel warning -progress -i E:\TEMP\mtc\input\sample2.mp4 -acodec mp3 -vcodec libx265 -r 60 -vf "scale=2560:1440" -b:v 35000k -f matroska E:\TEMP\mtc\input\output\result.mkv
This results in error:
Output file #0 does not contain any stream
The input file exists and can be accessed by ffmpeg.
I'm working on Windows 10 with latest version of FFmpeg.

Fixed by adding - after -progress
ffmpeg -hide_banner -loglevel warning -progress - -i E:\TEMP\mtc\input\sample2.mp4 -acodec mp3 -vcodec libx265 -r 60 -vf "scale=2560:1440" -b:v 35000k -f matroska "E:\TEMP\mtc\input\output\result.mkv"

Related

ffmpeg images list (text file) to video with overlay watermark

I have 250 images / day of 4000*3000 pixels in a text file.
file '/home/user/camdata/nonseqdata.jpg'
file '/home/user/camdata/strangedata.jpg'
i created mp4 video with this command
ffmpeg -y -f concat -safe 0 -i ecam.001_20210525.txt -c:v libx264 -vf "scale=1280:720,fps=25,format=yuv420p" out.mp4
Now i need to add watermark to video.(in same command)
closest example i found on web, trying to modify that and use in my case is like..
ffmpeg -r 25 -f image2 -s 1280x720 -i ecam.001_20210525.txt -i wm.png -filter_complex "[0:v][1:v] overlay=0:0" -vcodec libx264 -crf 25 -pix_fmt yuv420p test_overlay.mp4
OR
ffmpeg -r 25 -f concat -safe 0 -s 1280x720 -i ecam.001_20210525.txt -i wm.png -filter_complex "[0:v]pad=width=mainw:height=mainh:x=0:y=0,[1:v] overlay=0:0" -c:v libx264 test_overlay.mp4
BUT it error out to >> Decoder (codec none) not found for input stream #0:0
Q. how exactly to fix this.? i need output to be 720p or 1080p.?
Use
ffmpeg -y -f concat -safe 0 -i ecam.001_20210525.txt -i wm.png -filter_complex "[0]scale=1280:720[v];[v][1]overlay=x=0:y=0,fps=25,format=yuv420p" -c:v libx264 out.mp4

ffmpeg play RTSP stream while recording

I successfully record to a file a RTSP stream using ffmpeg with the following command:
ffmpeg -i "rtsp://1.1.1.1:554/user=admin&password=admin&channel=1&stream=1" -acodec copy -vcodec copy -movflags frag_keyframe+empty_moov -y http://www.example.com/rec/1.mp4
now I need to play video while ffmpeg is still writing to file. Even changing file format, is it possible?
Pipe a 2nd output to ffplay
ffmpeg -i "rtsp://1.1.1.1:554/user=admin&password=admin&channel=1&stream=1" -acodec copy -vcodec copy -movflags frag_keyframe+empty_moov -y http://www.example.com/rec/1.mp4 -c copy -f nut - | ffplay

ffmpeg error when I make TS file

I use ffmpeg to make video from audio/image to mp4.
I want merge/concatenate two mp4 video.
I have this to make mp4 video:
ffmpeg -i "background.png" -i "audio.mp3" -y -r 30 -b 2500k -acodec ac3 -ab 384k -vcodec mpeg4 "result.mp4"
This, it works!
To concatenate two mp4 video, I must pass by ts files.
ffmpeg -i "result.mp4" -codec copy -bsf:v hevc_mp4toannexb intermediate1.ts
But, I have this error:

FFMpeg not printing SDP information to console

I was trying to create an FFMpeg stream and read it from VLC player, but I am getting an error saying SDP is required. However FFMpeg is not printing the SDP information to console as it is supposed to. How can I get the SDP file for the stream?
Here is the command I am using to stream
ffmpeg -f dshow -r 10000/1001 -i video="screen-capture-recorder" -vcodec libx264 -tune zerolatency -b 900k -f mpegts rtp://127.0.0.1:1234
I found out what I had done wrong. I was previously using this command:
ffmpeg -f dshow -r 10000/1001 -i video="screen-capture-recorder" -vcodec libx264 -tune zerolatency -b 900k -f mpegts rtp://127.0.0.1:1234
Which I changed to this:
ffmpeg -f dshow -r 10000/1001 -i video="screen-capture-recorder" -vcodec libx264 -tune zerolatency -b 900k -f rtp rtp://127.0.0.1:1234
I just changed "mpegts" to "rtp" since that is the protocol I was using.

FFmpeg Brrip or Dvdrip To Mp4

I want to compress a film which has dvdrip and brrip with mp4 and h.264 codecs.
ffmpeg -i video.avi -vcodec libx264 -crf 25 -acodec libfaac -vpre slower \
-acodec copy video.mp4
error message
Invalid option or argument: 'directpred=3', parsed as 'directpred' = '3'
Console output

Resources