Newest 'x264' Questions - Stack Overflow
Les articles publiés sur le site
-
ffmpeg-mp4box-mpeg dash plays only few segments
30 octobre 2015, par IdrisNeed help in debugging the segment dash files
The input was an MP4 with these details. This was recorded from a video camera, the output from the camera was mkv and we converted into MP4 after editing the audio via adobe
- Size: 7.51 GB Frame rate: 25 frames/ second
- Data rate: 25326kbps
- Total bitrate: 25525kbps
Converted this to another mp4 with this command
ffmpeg -i "input.mp4" -s 1280x720 -c:v libx264 -b:v 750k -bf 2 -g 75 -sc_threshold 0 -an video_1280x720_750k.mp4 ffmpeg -i "input.mp4" -c:a aac -strict experimental -b:a 96k -ar 32000 -vn audio_96k.mp4
The output video has
- fps: 25
- Data rate: 761kbps
- bitrate: 761kbps
Then, created the segmented dash through MP4Box
MP4Box -dash 10000 -frag 10000 -rap -segment-name video_0_1280000\segment_ video_1280x720_750k.mp4 MP4Box -dash 3000 -frag 10000 -rap -segment-name audio_0_96000\segment_ audio_96k.mp4
The MPD generated was validated online and its perfect
UPDATE! Included the MPD file
<?xml version="1.0"?>
Played the video through dashjs.. I believe it just plays the initial segment and errors out as MEDIA_ERR_DECODE..MEDIA_ERR_SRC_NOT_SUPPORTED.. or some message which says start not found..
Through chrome debugging I see that atleast 4 segments are correctly loading.. I am not sure whats going on..
Any help in debugging the issue is really appreciated. I really can't understand if this is a problem with the file or ffmpeg or mp4box or chrome.
Output from chrome debugging tool
[dash.js 1.5.1] new MediaPlayer instance has been created dash.all.js:11 Playback initiated! dash.all.js:11 Parsing complete: ( xml2json: 5ms, objectiron: 10ms, total: 0.015s) dash.all.js:11 Manifest has been refreshed at Mon Oct 26 2015 10:19:22 GMT-0400 (Eastern Daylight Time)[1445869162092] dash.all.js:11 SegmentTimeline detected using calculated Live Edge Time dash.all.js:11 MediaSource is open! dash.all.js:11 [object Event] dash.all.js:11 Duration successfully set to: 120 dash.all.js:11 Added 0 inline events dash.all.js:11 video codec: video/mp4;codecs="avc3.64001f" dash.all.js:11 [video] stop dash.all.js:11 audio codec: audio/mp4;codecs="mp4a.40.2" dash.all.js:11 [audio] stop dash.all.js:11 No text data. dash.all.js:11 No fragmentedText data. dash.all.js:11 No muxed data. dash.all.js:11 [video] start dash.all.js:11 [video] Getting the request for time: 0 dash.all.js:11 [video] Index for time 0 is 0 dash.all.js:11 [video] SegmentList: 0 / 120 dash.all.js:11 [audio] start dash.all.js:11 [audio] Getting the request for time: 0 dash.all.js:11 [audio] Index for time 0 is 0 dash.all.js:11 [audio] SegmentList: 0 / 120 dash.all.js:11 [video] Getting the request for time: 9.83328125 dash.all.js:11 [video] Index for time 9.83328125 is 0 dash.all.js:11 [video] SegmentList: 0 / 120 dash.all.js:11 [video] SegmentList: 9.83328125 / 120 dash.all.js:11 [audio] Getting the request for time: 9.99996875 dash.all.js:11 [audio] Index for time 9.99996875 is 0 dash.all.js:11 [audio] SegmentList: 0 / 120 dash.all.js:11 [audio] SegmentList: 9.99996875 / 120 dash.all.js:11 loaded audio:Media Segment:0 (200, 20ms, 6ms) dash.all.js:11 loaded video:Media Segment:0 (200, 153ms, 43ms) dash.all.js:11 loaded video:Initialization Segment:NaN (200, 0ms, 32ms) dash.all.js:11 [video] Initialization finished loading dash.all.js:11 loaded audio:Initialization Segment:NaN (200, 0ms, 34ms) dash.all.js:11 [audio] Initialization finished loading dash.all.js:11 [video] Getting the request for time: 19.6665625 dash.all.js:11 [video] Index for time 19.6665625 is 1 dash.all.js:11 [video] SegmentList: 9.83328125 / 120 dash.all.js:11 [video] SegmentList: 19.6665625 / 120 dash.all.js:11 [audio] Getting the request for time: 19.9999375 dash.all.js:11 [audio] Index for time 19.9999375 is 1 dash.all.js:11 [audio] SegmentList: 9.99996875 / 120 dash.all.js:11 [audio] SegmentList: 19.9999375 / 120 dash.all.js:11 [video] Stalling Buffer dash.all.js:11 [video] Waiting for more buffer before starting playback. dash.all.js:11 [video] Getting the request for time: 0 dash.all.js:11 [video] Index for time 0 is 0 dash.all.js:11 [audio] Stalling Buffer dash.all.js:11 [audio] Waiting for more buffer before starting playback. dash.all.js:11 [audio] Getting the request for time: 0 dash.all.js:11 [audio] Index for time 0 is 0 dash.all.js:11
-
Is there any good documentation of **x264** internals ?
18 octobre 2015, par firoozgI want a to study about x264 internals?
Is there any good resource about the algorithms and code structure?
Or at least a resource to study about the intra prediction algorithms used in x264.
-
x264 intra prediction mode for 4x4 luma blocks
14 octobre 2015, par firoozgwhat is the exact algorithm x264 uses for:
intra prediction mode selection for 4x4 luma blocks in I-fames
which parts of libx264 code are related to the above algorithm?
-
Batch Encode video with command line using x264, neroAacEnc& mkvmerge [closed]
10 octobre 2015, par KeyI have 200+ videos in a folder, which i need to encode with a profile setting i have in MeGUI. I tried this profile setting using this command line and it works fine for only video.
"D:\Encoders\Megui\tools\x264\x264.exe" --preset veryslow --tune animation --crf 22.0 --deblock 2:1 --min-keyint 1 --bframes 8 --qpmin 10 --qpmax 51 --aq-mode 2 --nr 500 --non-deterministic --output "Output-01.mkv" "Input-01.mkv"
Well, it only encodes video and one file at a time.
Is there batch script to run in a folder for x264 to encode videos, neroAacEnc audios and mkvmerge join the files together. I have ffmpeg installed but i'm not sure if this profile setting will work with ffmpeg.
If it's not possible with a single batch file. Then alternatively i'm thinking x264 to encode all videos in a new output folder. neroAacEnc to encode audios in that same output folder and then another command for mkvmerge to join videos and audios.
-
What does ' wpredp' parameter do in x264 (or FFmpeg) ?
9 octobre 2015, par AlexandrI don't understand what 'wpredp' do? I've tried to find the description of 'wpredp' parameter but without success. Can somebody explain what it do?